mshtml: Store HTMLElement struct instead of pointer in HTMLAnchorElement.
[wine] / configure
CommitLineData
e2991ea7 1#! /bin/sh
e2991ea7 2# Guess values for system-dependent variables and create Makefiles.
69016cfa 3# Generated by GNU Autoconf 2.61 for Wine 0.9.45.
e2991ea7 4#
875927f6
AJ
5# Report bugs to <wine-devel@winehq.org>.
6#
fc6ffb29
AJ
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
e2991ea7
AJ
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
daa2886c
AJ
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
f5818d2f 14
dc9f3843
AJ
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
f5818d2f
AJ
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
11af04e3
AJ
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
fc6ffb29
AJ
23 setopt NO_GLOB_SUBST
24else
dc9f3843
AJ
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
f5818d2f 29fi
dc9f3843
AJ
30
31
f5818d2f 32
fc6ffb29
AJ
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53fi
54
daa2886c 55# Support unset when possible.
875927f6 56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
daa2886c
AJ
57 as_unset=unset
58else
59 as_unset=false
60fi
61
11af04e3 62
fc6ffb29
AJ
63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
11af04e3 96# Work around bugs in pre-3.0 UWIN ksh.
fc6ffb29
AJ
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
11af04e3
AJ
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
e24bcc77
AJ
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
11af04e3 109do
875927f6 110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11af04e3
AJ
111 eval $as_var=C; export $as_var
112 else
fc6ffb29 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11af04e3
AJ
114 fi
115done
116
117# Required to use basename.
fc6ffb29
AJ
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11af04e3
AJ
120 as_expr=expr
121else
122 as_expr=false
123fi
124
fc6ffb29 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11af04e3
AJ
126 as_basename=basename
127else
128 as_basename=false
129fi
daa2886c
AJ
130
131
f5818d2f 132# Name of the executable.
fc6ffb29 133as_me=`$as_basename -- "$0" ||
daa2886c
AJ
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
fc6ffb29 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
daa2886c 137echo X/"$0" |
fc6ffb29
AJ
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
daa2886c 151
fc6ffb29
AJ
152# CDPATH.
153$as_unset CDPATH
11af04e3 154
daa2886c 155
fc6ffb29
AJ
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
daa2886c
AJ
161fi
162
fc6ffb29
AJ
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
daa2886c 179
fc6ffb29
AJ
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
daa2886c 187
fc6ffb29
AJ
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
daa2886c 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dc9f3843 224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
daa2886c
AJ
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
fc6ffb29 228 case $as_dir in
daa2886c 229 /*)
fc6ffb29
AJ
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
0ebeb530
JW
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
fc6ffb29
AJ
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
dc9f3843
AJ
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
fc6ffb29 254fi
dc9f3843 255
fc6ffb29
AJ
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
0ebeb530 262 if { "$as_shell" 2> /dev/null <<\_ASEOF
fc6ffb29
AJ
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
dc9f3843
AJ
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
fc6ffb29 275fi
dc9f3843 276
fc6ffb29
AJ
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
daa2886c
AJ
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
daa2886c 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
fc6ffb29
AJ
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
daa2886c
AJ
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
fc6ffb29
AJ
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
daa2886c 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
fc6ffb29
AJ
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
daa2886c 444 sed '
fc6ffb29
AJ
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
daa2886c 449 N
fc6ffb29
AJ
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
daa2886c 452 t loop
fc6ffb29 453 s/-\n.*//
daa2886c 454 ' >$as_me.lineno &&
fc6ffb29 455 chmod +x "$as_me.lineno" ||
daa2886c
AJ
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
fc6ffb29
AJ
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
daa2886c
AJ
463 # Exit status is that of the last command.
464 exit
465}
466
467
0ebeb530 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
fc6ffb29
AJ
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
daa2886c 483esac
f5818d2f 484
fc6ffb29
AJ
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f5818d2f
AJ
487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
fc6ffb29
AJ
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
f5818d2f
AJ
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
fc6ffb29
AJ
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f5818d2f 507 as_ln_s='cp -p'
f5818d2f
AJ
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
fc6ffb29
AJ
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
f5818d2f 515
11af04e3
AJ
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
875927f6 519 test -d ./-p && rmdir ./-p
11af04e3
AJ
520 as_mkdir_p=false
521fi
522
dc9f3843
AJ
523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
fc6ffb29 525else
dc9f3843
AJ
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
fc6ffb29 543fi
dc9f3843 544as_executable_p=$as_test_x
f5818d2f 545
daa2886c 546# Sed expression to map a string onto a valid CPP name.
875927f6 547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
daa2886c
AJ
548
549# Sed expression to map a string onto a valid variable name.
875927f6 550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
f5818d2f 551
f5818d2f 552
daa2886c 553
fc6ffb29 554exec 7<&0 </dev/null 6>&1
f5818d2f
AJ
555
556# Name of the host.
557# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558# so uname gets run too.
559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
f5818d2f
AJ
561#
562# Initializations.
563#
e2991ea7 564ac_default_prefix=/usr/local
fc6ffb29 565ac_clean_files=
11af04e3 566ac_config_libobj_dir=.
fc6ffb29 567LIBOBJS=
f5818d2f
AJ
568cross_compiling=no
569subdirs=
daa2886c
AJ
570MFLAGS=
571MAKEFLAGS=
f5818d2f
AJ
572SHELL=${CONFIG_SHELL-/bin/sh}
573
daa2886c
AJ
574# Identity of this package.
575PACKAGE_NAME='Wine'
576PACKAGE_TARNAME='wine'
69016cfa
AJ
577PACKAGE_VERSION='0.9.45'
578PACKAGE_STRING='Wine 0.9.45'
875927f6 579PACKAGE_BUGREPORT='wine-devel@winehq.org'
daa2886c 580
f5818d2f
AJ
581ac_unique_file="server/atom.c"
582# Factoring default headers for most tests.
583ac_includes_default="\
584#include <stdio.h>
f0ca586f 585#ifdef HAVE_SYS_TYPES_H
f5818d2f
AJ
586# include <sys/types.h>
587#endif
f0ca586f 588#ifdef HAVE_SYS_STAT_H
f5818d2f
AJ
589# include <sys/stat.h>
590#endif
f0ca586f 591#ifdef STDC_HEADERS
f5818d2f
AJ
592# include <stdlib.h>
593# include <stddef.h>
594#else
f0ca586f 595# ifdef HAVE_STDLIB_H
f5818d2f
AJ
596# include <stdlib.h>
597# endif
598#endif
f0ca586f
PK
599#ifdef HAVE_STRING_H
600# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
f5818d2f
AJ
601# include <memory.h>
602# endif
603# include <string.h>
604#endif
f0ca586f 605#ifdef HAVE_STRINGS_H
f5818d2f
AJ
606# include <strings.h>
607#endif
f0ca586f 608#ifdef HAVE_INTTYPES_H
f5818d2f 609# include <inttypes.h>
fc6ffb29 610#endif
f0ca586f 611#ifdef HAVE_STDINT_H
fc6ffb29 612# include <stdint.h>
f5818d2f 613#endif
f0ca586f 614#ifdef HAVE_UNISTD_H
f5818d2f
AJ
615# include <unistd.h>
616#endif"
e2991ea7 617
fc6ffb29
AJ
618ac_subst_vars='SHELL
619PATH_SEPARATOR
620PACKAGE_NAME
621PACKAGE_TARNAME
622PACKAGE_VERSION
623PACKAGE_STRING
624PACKAGE_BUGREPORT
625exec_prefix
626prefix
627program_transform_name
628bindir
629sbindir
630libexecdir
631datarootdir
632datadir
633sysconfdir
634sharedstatedir
635localstatedir
636includedir
637oldincludedir
638docdir
639infodir
640htmldir
641dvidir
642pdfdir
643psdir
644libdir
645localedir
646mandir
647DEFS
648ECHO_C
649ECHO_N
650ECHO_T
651LIBS
652build_alias
653host_alias
654target_alias
655build
656build_cpu
657build_vendor
658build_os
659host
660host_cpu
661host_vendor
662host_os
663WIN16_FILES
664WIN16_INSTALL
665SET_MAKE
666CC
667CFLAGS
668LDFLAGS
669CPPFLAGS
670ac_ct_CC
671EXEEXT
672OBJEXT
673CXX
674CXXFLAGS
675ac_ct_CXX
676CPPBIN
677TOOLSDIR
678XMKMF
679CPP
680X_CFLAGS
681X_PRE_LIBS
682X_LIBS
683X_EXTRA_LIBS
4091627c 684FLEX
fc6ffb29
AJ
685BISON
686AS
687ac_ct_AS
688LD
689AR
690RANLIB
691STRIP
692WINDRES
693LN_S
694LN
695GREP
696EGREP
697LDCONFIG
698INSTALL_PROGRAM
699INSTALL_SCRIPT
700INSTALL_DATA
701LINT
702LINTFLAGS
703FONTFORGE
704PKG_CONFIG
705PRELINK
706LIBPTHREAD
707XLIB
708XFILES
709OPENGLFILES
710GLU32FILES
711OPENGL_LIBS
08884514 712QUARTZFILES
a3097628
AJ
713DLLEXT
714DLLFLAGS
715LDSHARED
716LDDLLFLAGS
717LIBEXT
718IMPLIBEXT
719LDRPATH_INSTALL
720LDRPATH_LOCAL
721LDD
722DLLTOOL
723DLLWRAP
724MINGWAR
725COREFOUNDATIONLIB
726IOKITLIB
727LDEXECFLAGS
728DISKARBITRATIONLIB
729COREAUDIO
730CARBONLIB
731CROSSTEST
732CROSSCC
733CROSSWINDRES
fc6ffb29
AJ
734NASLIBS
735XML2LIBS
736XML2INCL
737XSLTLIBS
738XSLTINCL
739HALINCL
fc6ffb29 740sane_devel
fc6ffb29
AJ
741SANEINCL
742gphoto2_devel
743gphoto2port_devel
744GPHOTO2LIBS
745GPHOTO2INCL
746ICULIBS
747RESOLVLIBS
748LCMSLIBS
749LDAPLIBS
24a55f38 750ft_devel
fc6ffb29
AJ
751FREETYPELIBS
752FREETYPEINCL
fc6ffb29 753FONTSSUBDIRS
fc6ffb29
AJ
754ESDCONFIG
755ESDLIBS
756ESDINCL
757ALSALIBS
758AUDIOIOLIBS
759EXTRACFLAGS
760BUILTINFLAG
fc6ffb29
AJ
761LDPATH
762CRTLIBS
763SOCKETLIBS
764MAIN_BINARY
765EXTRA_BINARIES
e533e972 766LIBDL
1089260f 767LIBPOLL
32ab895e 768DEPENDENCIES
fc6ffb29
AJ
769LIBOBJS
770LTLIBOBJS'
771ac_subst_files='MAKE_RULES
772MAKE_DLL_RULES
773MAKE_IMPLIB_RULES
774MAKE_TEST_RULES
fc6ffb29
AJ
775MAKE_PROG_RULES'
776 ac_precious_vars='build_alias
777host_alias
778target_alias
779CC
780CFLAGS
781LDFLAGS
dc9f3843 782LIBS
fc6ffb29
AJ
783CPPFLAGS
784CXX
785CXXFLAGS
786CCC
787XMKMF
788CPP'
789
daa2886c 790
e2991ea7 791# Initialize some variables set by options.
f5818d2f
AJ
792ac_init_help=
793ac_init_version=false
e2991ea7
AJ
794# The variables have the same names as the options, with
795# dashes changed to underlines.
f5818d2f 796cache_file=/dev/null
e2991ea7 797exec_prefix=NONE
e2991ea7 798no_create=
e2991ea7
AJ
799no_recursion=
800prefix=NONE
801program_prefix=NONE
802program_suffix=NONE
803program_transform_name=s,x,x,
804silent=
805site=
806srcdir=
e2991ea7
AJ
807verbose=
808x_includes=NONE
809x_libraries=NONE
f5818d2f
AJ
810
811# Installation directory options.
812# These are left unexpanded so users can "make install exec_prefix=/foo"
813# and all the variables that are supposed to be based on exec_prefix
814# by default will actually change.
815# Use braces instead of parens because sh, perl, etc. also accept them.
fc6ffb29 816# (The list follows the same order as the GNU Coding Standards.)
d7d4fdf8
AJ
817bindir='${exec_prefix}/bin'
818sbindir='${exec_prefix}/sbin'
819libexecdir='${exec_prefix}/libexec'
fc6ffb29
AJ
820datarootdir='${prefix}/share'
821datadir='${datarootdir}'
d7d4fdf8
AJ
822sysconfdir='${prefix}/etc'
823sharedstatedir='${prefix}/com'
824localstatedir='${prefix}/var'
d7d4fdf8
AJ
825includedir='${prefix}/include'
826oldincludedir='/usr/include'
fc6ffb29
AJ
827docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828infodir='${datarootdir}/info'
829htmldir='${docdir}'
830dvidir='${docdir}'
831pdfdir='${docdir}'
832psdir='${docdir}'
833libdir='${exec_prefix}/lib'
834localedir='${datarootdir}/locale'
835mandir='${datarootdir}/man'
e2991ea7 836
e2991ea7 837ac_prev=
fc6ffb29 838ac_dashdash=
e2991ea7
AJ
839for ac_option
840do
e2991ea7
AJ
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
fc6ffb29 843 eval $ac_prev=\$ac_option
e2991ea7
AJ
844 ac_prev=
845 continue
846 fi
847
fc6ffb29
AJ
848 case $ac_option in
849 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 *) ac_optarg=yes ;;
851 esac
e2991ea7
AJ
852
853 # Accept the important Cygnus configure options, so we can diagnose typos.
854
fc6ffb29
AJ
855 case $ac_dashdash$ac_option in
856 --)
857 ac_dashdash=yes ;;
e2991ea7 858
d7d4fdf8
AJ
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
f5818d2f 862 bindir=$ac_optarg ;;
d7d4fdf8
AJ
863
864 -build | --build | --buil | --bui | --bu)
f5818d2f 865 ac_prev=build_alias ;;
d7d4fdf8 866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
f5818d2f 867 build_alias=$ac_optarg ;;
e2991ea7
AJ
868
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
f5818d2f
AJ
874 cache_file=$ac_optarg ;;
875
876 --config-cache | -C)
877 cache_file=config.cache ;;
e2991ea7 878
fc6ffb29 879 -datadir | --datadir | --datadi | --datad)
d7d4fdf8 880 ac_prev=datadir ;;
fc6ffb29 881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
f5818d2f 882 datadir=$ac_optarg ;;
d7d4fdf8 883
fc6ffb29
AJ
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
890
e2991ea7 891 -disable-* | --disable-*)
f5818d2f 892 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
e2991ea7 893 # Reject names that are not valid shell variable names.
dc9f3843 894 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
f5818d2f
AJ
895 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
896 { (exit 1); exit 1; }; }
dc9f3843 897 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
fc6ffb29
AJ
898 eval enable_$ac_feature=no ;;
899
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
904
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
e2991ea7
AJ
909
910 -enable-* | --enable-*)
f5818d2f 911 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
e2991ea7 912 # Reject names that are not valid shell variable names.
dc9f3843 913 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
f5818d2f
AJ
914 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
915 { (exit 1); exit 1; }; }
dc9f3843 916 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
fc6ffb29 917 eval enable_$ac_feature=\$ac_optarg ;;
e2991ea7
AJ
918
919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921 | --exec | --exe | --ex)
922 ac_prev=exec_prefix ;;
923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925 | --exec=* | --exe=* | --ex=*)
f5818d2f 926 exec_prefix=$ac_optarg ;;
e2991ea7
AJ
927
928 -gas | --gas | --ga | --g)
929 # Obsolete; use --with-gas.
930 with_gas=yes ;;
931
f5818d2f
AJ
932 -help | --help | --hel | --he | -h)
933 ac_init_help=long ;;
934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935 ac_init_help=recursive ;;
936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937 ac_init_help=short ;;
e2991ea7
AJ
938
939 -host | --host | --hos | --ho)
f5818d2f 940 ac_prev=host_alias ;;
e2991ea7 941 -host=* | --host=* | --hos=* | --ho=*)
f5818d2f 942 host_alias=$ac_optarg ;;
e2991ea7 943
fc6ffb29
AJ
944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945 ac_prev=htmldir ;;
946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947 | --ht=*)
948 htmldir=$ac_optarg ;;
949
d7d4fdf8
AJ
950 -includedir | --includedir | --includedi | --included | --include \
951 | --includ | --inclu | --incl | --inc)
952 ac_prev=includedir ;;
953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954 | --includ=* | --inclu=* | --incl=* | --inc=*)
f5818d2f 955 includedir=$ac_optarg ;;
d7d4fdf8
AJ
956
957 -infodir | --infodir | --infodi | --infod | --info | --inf)
958 ac_prev=infodir ;;
959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
f5818d2f 960 infodir=$ac_optarg ;;
d7d4fdf8
AJ
961
962 -libdir | --libdir | --libdi | --libd)
963 ac_prev=libdir ;;
964 -libdir=* | --libdir=* | --libdi=* | --libd=*)
f5818d2f 965 libdir=$ac_optarg ;;
d7d4fdf8
AJ
966
967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968 | --libexe | --libex | --libe)
969 ac_prev=libexecdir ;;
970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971 | --libexe=* | --libex=* | --libe=*)
f5818d2f 972 libexecdir=$ac_optarg ;;
d7d4fdf8 973
fc6ffb29
AJ
974 -localedir | --localedir | --localedi | --localed | --locale)
975 ac_prev=localedir ;;
976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977 localedir=$ac_optarg ;;
978
d7d4fdf8 979 -localstatedir | --localstatedir | --localstatedi | --localstated \
fc6ffb29 980 | --localstate | --localstat | --localsta | --localst | --locals)
d7d4fdf8
AJ
981 ac_prev=localstatedir ;;
982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
fc6ffb29 983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
f5818d2f 984 localstatedir=$ac_optarg ;;
d7d4fdf8
AJ
985
986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987 ac_prev=mandir ;;
988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
f5818d2f 989 mandir=$ac_optarg ;;
d7d4fdf8 990
e2991ea7
AJ
991 -nfp | --nfp | --nf)
992 # Obsolete; use --without-fp.
993 with_fp=no ;;
994
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
daa2886c 996 | --no-cr | --no-c | -n)
e2991ea7
AJ
997 no_create=yes ;;
998
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001 no_recursion=yes ;;
1002
d7d4fdf8
AJ
1003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005 | --oldin | --oldi | --old | --ol | --o)
1006 ac_prev=oldincludedir ;;
1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
f5818d2f 1010 oldincludedir=$ac_optarg ;;
d7d4fdf8 1011
e2991ea7
AJ
1012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013 ac_prev=prefix ;;
1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f5818d2f 1015 prefix=$ac_optarg ;;
e2991ea7
AJ
1016
1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018 | --program-pre | --program-pr | --program-p)
1019 ac_prev=program_prefix ;;
1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
f5818d2f 1022 program_prefix=$ac_optarg ;;
e2991ea7
AJ
1023
1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025 | --program-suf | --program-su | --program-s)
1026 ac_prev=program_suffix ;;
1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
f5818d2f 1029 program_suffix=$ac_optarg ;;
e2991ea7
AJ
1030
1031 -program-transform-name | --program-transform-name \
1032 | --program-transform-nam | --program-transform-na \
1033 | --program-transform-n | --program-transform- \
1034 | --program-transform | --program-transfor \
1035 | --program-transfo | --program-transf \
1036 | --program-trans | --program-tran \
1037 | --progr-tra | --program-tr | --program-t)
1038 ac_prev=program_transform_name ;;
1039 -program-transform-name=* | --program-transform-name=* \
1040 | --program-transform-nam=* | --program-transform-na=* \
1041 | --program-transform-n=* | --program-transform-=* \
1042 | --program-transform=* | --program-transfor=* \
1043 | --program-transfo=* | --program-transf=* \
1044 | --program-trans=* | --program-tran=* \
1045 | --progr-tra=* | --program-tr=* | --program-t=*)
f5818d2f 1046 program_transform_name=$ac_optarg ;;
e2991ea7 1047
fc6ffb29
AJ
1048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049 ac_prev=pdfdir ;;
1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051 pdfdir=$ac_optarg ;;
1052
1053 -psdir | --psdir | --psdi | --psd | --ps)
1054 ac_prev=psdir ;;
1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056 psdir=$ac_optarg ;;
1057
e2991ea7
AJ
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1060 silent=yes ;;
1061
d7d4fdf8
AJ
1062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063 ac_prev=sbindir ;;
1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065 | --sbi=* | --sb=*)
f5818d2f 1066 sbindir=$ac_optarg ;;
d7d4fdf8
AJ
1067
1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070 | --sharedst | --shareds | --shared | --share | --shar \
1071 | --sha | --sh)
1072 ac_prev=sharedstatedir ;;
1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076 | --sha=* | --sh=*)
f5818d2f 1077 sharedstatedir=$ac_optarg ;;
d7d4fdf8 1078
e2991ea7
AJ
1079 -site | --site | --sit)
1080 ac_prev=site ;;
1081 -site=* | --site=* | --sit=*)
f5818d2f 1082 site=$ac_optarg ;;
e2991ea7
AJ
1083
1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085 ac_prev=srcdir ;;
1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
f5818d2f 1087 srcdir=$ac_optarg ;;
e2991ea7 1088
d7d4fdf8
AJ
1089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090 | --syscon | --sysco | --sysc | --sys | --sy)
1091 ac_prev=sysconfdir ;;
1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
f5818d2f 1094 sysconfdir=$ac_optarg ;;
d7d4fdf8 1095
e2991ea7 1096 -target | --target | --targe | --targ | --tar | --ta | --t)
f5818d2f 1097 ac_prev=target_alias ;;
e2991ea7 1098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
f5818d2f 1099 target_alias=$ac_optarg ;;
e2991ea7
AJ
1100
1101 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102 verbose=yes ;;
1103
f5818d2f
AJ
1104 -version | --version | --versio | --versi | --vers | -V)
1105 ac_init_version=: ;;
e2991ea7
AJ
1106
1107 -with-* | --with-*)
f5818d2f 1108 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
e2991ea7 1109 # Reject names that are not valid shell variable names.
dc9f3843 1110 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
f5818d2f
AJ
1111 { echo "$as_me: error: invalid package name: $ac_package" >&2
1112 { (exit 1); exit 1; }; }
dc9f3843 1113 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
fc6ffb29 1114 eval with_$ac_package=\$ac_optarg ;;
e2991ea7
AJ
1115
1116 -without-* | --without-*)
f5818d2f 1117 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
e2991ea7 1118 # Reject names that are not valid shell variable names.
dc9f3843 1119 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
f5818d2f
AJ
1120 { echo "$as_me: error: invalid package name: $ac_package" >&2
1121 { (exit 1); exit 1; }; }
dc9f3843 1122 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
fc6ffb29 1123 eval with_$ac_package=no ;;
e2991ea7
AJ
1124
1125 --x)
1126 # Obsolete; use --with-x.
1127 with_x=yes ;;
1128
1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130 | --x-incl | --x-inc | --x-in | --x-i)
1131 ac_prev=x_includes ;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
f5818d2f 1134 x_includes=$ac_optarg ;;
e2991ea7
AJ
1135
1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138 ac_prev=x_libraries ;;
1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
f5818d2f 1141 x_libraries=$ac_optarg ;;
e2991ea7 1142
f5818d2f
AJ
1143 -*) { echo "$as_me: error: unrecognized option: $ac_option
1144Try \`$0 --help' for more information." >&2
1145 { (exit 1); exit 1; }; }
e2991ea7
AJ
1146 ;;
1147
f5818d2f
AJ
1148 *=*)
1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1153 { (exit 1); exit 1; }; }
fc6ffb29 1154 eval $ac_envvar=\$ac_optarg
f5818d2f
AJ
1155 export $ac_envvar ;;
1156
d7d4fdf8 1157 *)
f5818d2f
AJ
1158 # FIXME: should be removed in autoconf 3.0.
1159 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
e2991ea7
AJ
1163 ;;
1164
1165 esac
1166done
1167
1168if test -n "$ac_prev"; then
f5818d2f
AJ
1169 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170 { echo "$as_me: error: missing argument to $ac_option" >&2
1171 { (exit 1); exit 1; }; }
e2991ea7 1172fi
e2991ea7 1173
fc6ffb29
AJ
1174# Be sure to have absolute directory names.
1175for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
e2991ea7 1179do
fc6ffb29 1180 eval ac_val=\$$ac_var
f5818d2f 1181 case $ac_val in
fc6ffb29
AJ
1182 [\\/$]* | ?:[\\/]* ) continue;;
1183 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
e2991ea7 1184 esac
fc6ffb29
AJ
1185 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1186 { (exit 1); exit 1; }; }
e2991ea7
AJ
1187done
1188
f5818d2f
AJ
1189# There might be people who depend on the old broken behavior: `$host'
1190# used to hold the argument of --host etc.
daa2886c 1191# FIXME: To remove some day.
f5818d2f
AJ
1192build=$build_alias
1193host=$host_alias
1194target=$target_alias
1195
daa2886c 1196# FIXME: To remove some day.
f5818d2f
AJ
1197if test "x$host_alias" != x; then
1198 if test "x$build_alias" = x; then
1199 cross_compiling=maybe
1200 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1201 If a cross compiler is detected then cross compile mode will be used." >&2
1202 elif test "x$build_alias" != "x$host_alias"; then
1203 cross_compiling=yes
1204 fi
1205fi
e2991ea7 1206
f5818d2f
AJ
1207ac_tool_prefix=
1208test -n "$host_alias" && ac_tool_prefix=$host_alias-
e2991ea7 1209
f5818d2f 1210test "$silent" = yes && exec 6>/dev/null
e2991ea7 1211
daa2886c 1212
fc6ffb29
AJ
1213ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214ac_ls_di=`ls -di .` &&
1215ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216 { echo "$as_me: error: Working directory cannot be determined" >&2
1217 { (exit 1); exit 1; }; }
1218test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 { echo "$as_me: error: pwd does not report name of working directory" >&2
1220 { (exit 1); exit 1; }; }
1221
1222
e2991ea7
AJ
1223# Find the source files, if location was not specified.
1224if test -z "$srcdir"; then
1225 ac_srcdir_defaulted=yes
fc6ffb29
AJ
1226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir=`$as_dirname -- "$0" ||
daa2886c 1228$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875927f6
AJ
1229 X"$0" : 'X\(//\)[^/]' \| \
1230 X"$0" : 'X\(//\)$' \| \
fc6ffb29 1231 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
daa2886c 1232echo X"$0" |
fc6ffb29
AJ
1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234 s//\1/
1235 q
1236 }
1237 /^X\(\/\/\)[^/].*/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)$/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\).*/{
1246 s//\1/
1247 q
1248 }
1249 s/.*/./; q'`
e2991ea7 1250 srcdir=$ac_confdir
fc6ffb29 1251 if test ! -r "$srcdir/$ac_unique_file"; then
e2991ea7
AJ
1252 srcdir=..
1253 fi
1254else
1255 ac_srcdir_defaulted=no
1256fi
fc6ffb29
AJ
1257if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
f5818d2f 1260 { (exit 1); exit 1; }; }
e2991ea7 1261fi
fc6ffb29
AJ
1262ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263ac_abs_confdir=`(
1264 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
11af04e3 1265 { (exit 1); exit 1; }; }
fc6ffb29
AJ
1266 pwd)`
1267# When building in place, set srcdir=.
1268if test "$ac_abs_confdir" = "$ac_pwd"; then
1269 srcdir=.
1270fi
1271# Remove unnecessary trailing slashes from srcdir.
1272# Double slashes in file names in object file debugging info
1273# mess up M-x gdb in Emacs.
1274case $srcdir in
1275*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276esac
1277for ac_var in $ac_precious_vars; do
1278 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_${ac_var}_value=\$${ac_var}
1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282done
f5818d2f
AJ
1283
1284#
1285# Report the --help message.
1286#
1287if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
daa2886c 1290 cat <<_ACEOF
69016cfa 1291\`configure' configures Wine 0.9.45 to adapt to many kinds of systems.
f5818d2f
AJ
1292
1293Usage: $0 [OPTION]... [VAR=VALUE]...
1294
1295To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296VAR=VALUE. See below for descriptions of some of the useful variables.
1297
1298Defaults for the options are specified in brackets.
1299
1300Configuration:
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1310
f5818d2f
AJ
1311Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
875927f6 1313 [$ac_default_prefix]
f5818d2f 1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
875927f6 1315 [PREFIX]
f5818d2f
AJ
1316
1317By default, \`make install' will install all the files in
1318\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320for instance \`--prefix=\$HOME'.
1321
1322For better control, use the options below.
1323
1324Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
f5818d2f
AJ
1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
fc6ffb29
AJ
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
daa2886c 1344_ACEOF
f5818d2f 1345
daa2886c 1346 cat <<\_ACEOF
f5818d2f
AJ
1347
1348X features:
1349 --x-includes=DIR X include files are in DIR
1350 --x-libraries=DIR X library files are in DIR
1351
1352System types:
1353 --build=BUILD configure for building on BUILD [guessed]
daa2886c 1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
daa2886c 1355_ACEOF
f5818d2f
AJ
1356fi
1357
1358if test -n "$ac_init_help"; then
1359 case $ac_init_help in
69016cfa 1360 short | recursive ) echo "Configuration of Wine 0.9.45:";;
f5818d2f 1361 esac
daa2886c 1362 cat <<\_ACEOF
f5818d2f
AJ
1363
1364Optional Features:
1365 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1366 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
53fa0d54 1367 --disable-win16 do not include Win16 support
2aa8e871
AJ
1368 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1369 binaries)
f5818d2f
AJ
1370
1371Optional Packages:
1372 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1373 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53fa0d54 1374 --without-opengl do not use OpenGL
53fa0d54 1375 --with-wine-tools=<dir> use Wine tools from directory <dir>
f5818d2f
AJ
1376 --with-x use the X Window System
1377
1378Some influential environment variables:
53fa0d54
EP
1379 CC C compiler command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir>
dc9f3843 1383 LIBS libraries to pass to the linker, e.g. -l<library>
fc6ffb29
AJ
1384 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir>
f41c2b21
DP
1386 CXX C++ compiler command
1387 CXXFLAGS C++ compiler flags
fc6ffb29 1388 XMKMF Path to xmkmf, Makefile generator for X Window System
53fa0d54 1389 CPP C preprocessor
f5818d2f
AJ
1390
1391Use these variables to override the choices made by `configure' or to help
1392it to find libraries and programs with nonstandard names/locations.
1393
875927f6 1394Report bugs to <wine-devel@winehq.org>.
daa2886c 1395_ACEOF
fc6ffb29 1396ac_status=$?
f5818d2f
AJ
1397fi
1398
1399if test "$ac_init_help" = "recursive"; then
1400 # If there are subdirs, report their specific --help.
daa2886c 1401 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
0ebeb530 1402 test -d "$ac_dir" || continue
daa2886c
AJ
1403 ac_builddir=.
1404
fc6ffb29
AJ
1405case "$ac_dir" in
1406.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407*)
daa2886c 1408 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
fc6ffb29
AJ
1409 # A ".." for each directory in $ac_dir_suffix.
1410 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1411 case $ac_top_builddir_sub in
1412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 esac ;;
1415esac
1416ac_abs_top_builddir=$ac_pwd
1417ac_abs_builddir=$ac_pwd$ac_dir_suffix
1418# for backward compatibility:
1419ac_top_builddir=$ac_top_build_prefix
f5818d2f 1420
daa2886c 1421case $srcdir in
fc6ffb29 1422 .) # We are building in place.
daa2886c 1423 ac_srcdir=.
fc6ffb29
AJ
1424 ac_top_srcdir=$ac_top_builddir_sub
1425 ac_abs_top_srcdir=$ac_pwd ;;
1426 [\\/]* | ?:[\\/]* ) # Absolute name.
daa2886c 1427 ac_srcdir=$srcdir$ac_dir_suffix;
fc6ffb29
AJ
1428 ac_top_srcdir=$srcdir
1429 ac_abs_top_srcdir=$srcdir ;;
1430 *) # Relative name.
1431 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1432 ac_top_srcdir=$ac_top_build_prefix$srcdir
1433 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
875927f6 1434esac
fc6ffb29 1435ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
daa2886c 1436
fc6ffb29
AJ
1437 cd "$ac_dir" || { ac_status=$?; continue; }
1438 # Check for guested configure.
0ebeb530 1439 if test -f "$ac_srcdir/configure.gnu"; then
fc6ffb29 1440 echo &&
0ebeb530
JW
1441 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1442 elif test -f "$ac_srcdir/configure"; then
fc6ffb29 1443 echo &&
0ebeb530 1444 $SHELL "$ac_srcdir/configure" --help=recursive
f5818d2f 1445 else
daa2886c 1446 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
fc6ffb29
AJ
1447 fi || ac_status=$?
1448 cd "$ac_pwd" || { ac_status=$?; break; }
f5818d2f
AJ
1449 done
1450fi
e2991ea7 1451
fc6ffb29 1452test -n "$ac_init_help" && exit $ac_status
f5818d2f 1453if $ac_init_version; then
daa2886c 1454 cat <<\_ACEOF
69016cfa 1455Wine configure 0.9.45
dc9f3843 1456generated by GNU Autoconf 2.61
f5818d2f 1457
fc6ffb29
AJ
1458Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14592002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
f5818d2f
AJ
1460This configure script is free software; the Free Software Foundation
1461gives unlimited permission to copy, distribute and modify it.
daa2886c 1462_ACEOF
fc6ffb29 1463 exit
f5818d2f 1464fi
fc6ffb29 1465cat >config.log <<_ACEOF
f5818d2f
AJ
1466This file contains any messages produced by compilers while
1467running configure, to aid debugging if configure makes a mistake.
1468
69016cfa 1469It was created by Wine $as_me 0.9.45, which was
dc9f3843 1470generated by GNU Autoconf 2.61. Invocation command line was
f5818d2f
AJ
1471
1472 $ $0 $@
1473
daa2886c 1474_ACEOF
fc6ffb29 1475exec 5>>config.log
f5818d2f
AJ
1476{
1477cat <<_ASUNAME
daa2886c
AJ
1478## --------- ##
1479## Platform. ##
1480## --------- ##
f5818d2f
AJ
1481
1482hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1483uname -m = `(uname -m) 2>/dev/null || echo unknown`
1484uname -r = `(uname -r) 2>/dev/null || echo unknown`
1485uname -s = `(uname -s) 2>/dev/null || echo unknown`
1486uname -v = `(uname -v) 2>/dev/null || echo unknown`
1487
1488/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1489/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1490
1491/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1492/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1493/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
fc6ffb29 1494/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
f5818d2f
AJ
1495/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1496/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1497/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1498
f5818d2f 1499_ASUNAME
daa2886c
AJ
1500
1501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502for as_dir in $PATH
1503do
1504 IFS=$as_save_IFS
1505 test -z "$as_dir" && as_dir=.
1506 echo "PATH: $as_dir"
1507done
fc6ffb29 1508IFS=$as_save_IFS
daa2886c 1509
f5818d2f
AJ
1510} >&5
1511
daa2886c
AJ
1512cat >&5 <<_ACEOF
1513
1514
1515## ----------- ##
1516## Core tests. ##
1517## ----------- ##
1518
1519_ACEOF
f5818d2f 1520
f5818d2f
AJ
1521
1522# Keep a trace of the command line.
1523# Strip out --no-create and --no-recursion so they do not pile up.
e24bcc77 1524# Strip out --silent because we don't want to record it for future runs.
f5818d2f 1525# Also quote any args containing shell meta-characters.
e24bcc77 1526# Make two passes to allow for proper duplicate-argument suppression.
f5818d2f 1527ac_configure_args=
e24bcc77
AJ
1528ac_configure_args0=
1529ac_configure_args1=
e24bcc77
AJ
1530ac_must_keep_next=false
1531for ac_pass in 1 2
f5818d2f 1532do
e24bcc77
AJ
1533 for ac_arg
1534 do
1535 case $ac_arg in
1536 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1538 | -silent | --silent | --silen | --sile | --sil)
1539 continue ;;
fc6ffb29 1540 *\'*)
e24bcc77
AJ
1541 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1542 esac
1543 case $ac_pass in
1544 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1545 2)
1546 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1547 if test $ac_must_keep_next = true; then
875927f6 1548 ac_must_keep_next=false # Got value, back to normal.
e24bcc77 1549 else
875927f6
AJ
1550 case $ac_arg in
1551 *=* | --config-cache | -C | -disable-* | --disable-* \
1552 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1553 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1554 | -with-* | --with-* | -without-* | --without-* | --x)
1555 case "$ac_configure_args0 " in
1556 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1557 esac
1558 ;;
1559 -* ) ac_must_keep_next=true ;;
1560 esac
e24bcc77 1561 fi
0ebeb530 1562 ac_configure_args="$ac_configure_args '$ac_arg'"
e24bcc77
AJ
1563 ;;
1564 esac
1565 done
f5818d2f 1566done
e24bcc77
AJ
1567$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1568$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
f5818d2f
AJ
1569
1570# When interrupted or exit'd, cleanup temporary files, and complete
1571# config.log. We remove comments because anyway the quotes in there
1572# would cause problems or look ugly.
fc6ffb29
AJ
1573# WARNING: Use '\'' to represent an apostrophe within the trap.
1574# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
f5818d2f
AJ
1575trap 'exit_status=$?
1576 # Save into config.log some information that might help in debugging.
daa2886c
AJ
1577 {
1578 echo
11af04e3 1579
daa2886c
AJ
1580 cat <<\_ASBOX
1581## ---------------- ##
1582## Cache variables. ##
1583## ---------------- ##
1584_ASBOX
1585 echo
1586 # The following way of writing the cache mishandles newlines in values,
fc6ffb29
AJ
1587(
1588 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1589 eval ac_val=\$$ac_var
1590 case $ac_val in #(
1591 *${as_nl}*)
1592 case $ac_var in #(
1593 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1594echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1595 esac
1596 case $ac_var in #(
1597 _ | IFS | as_nl) ;; #(
1598 *) $as_unset $ac_var ;;
1599 esac ;;
1600 esac
1601 done
f5818d2f 1602 (set) 2>&1 |
fc6ffb29
AJ
1603 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1604 *${as_nl}ac_space=\ *)
f5818d2f 1605 sed -n \
fc6ffb29
AJ
1606 "s/'\''/'\''\\\\'\'''\''/g;
1607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1608 ;; #(
f5818d2f 1609 *)
fc6ffb29 1610 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f5818d2f 1611 ;;
fc6ffb29
AJ
1612 esac |
1613 sort
1614)
daa2886c 1615 echo
11af04e3
AJ
1616
1617 cat <<\_ASBOX
1618## ----------------- ##
1619## Output variables. ##
1620## ----------------- ##
1621_ASBOX
1622 echo
1623 for ac_var in $ac_subst_vars
1624 do
fc6ffb29 1625 eval ac_val=\$$ac_var
0ebeb530
JW
1626 case $ac_val in
1627 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 esac
fc6ffb29 1629 echo "$ac_var='\''$ac_val'\''"
11af04e3
AJ
1630 done | sort
1631 echo
1632
1633 if test -n "$ac_subst_files"; then
1634 cat <<\_ASBOX
fc6ffb29
AJ
1635## ------------------- ##
1636## File substitutions. ##
1637## ------------------- ##
11af04e3
AJ
1638_ASBOX
1639 echo
1640 for ac_var in $ac_subst_files
1641 do
fc6ffb29 1642 eval ac_val=\$$ac_var
0ebeb530
JW
1643 case $ac_val in
1644 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1645 esac
fc6ffb29 1646 echo "$ac_var='\''$ac_val'\''"
11af04e3
AJ
1647 done | sort
1648 echo
1649 fi
1650
daa2886c
AJ
1651 if test -s confdefs.h; then
1652 cat <<\_ASBOX
1653## ----------- ##
1654## confdefs.h. ##
1655## ----------- ##
1656_ASBOX
1657 echo
fc6ffb29 1658 cat confdefs.h
daa2886c
AJ
1659 echo
1660 fi
1661 test "$ac_signal" != 0 &&
1662 echo "$as_me: caught signal $ac_signal"
1663 echo "$as_me: exit $exit_status"
1664 } >&5
fc6ffb29
AJ
1665 rm -f core *.core core.conftest.* &&
1666 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
f5818d2f 1667 exit $exit_status
fc6ffb29 1668' 0
f5818d2f
AJ
1669for ac_signal in 1 2 13 15; do
1670 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1671done
1672ac_signal=0
1673
1674# confdefs.h avoids OS command line length limits that DEFS can exceed.
fc6ffb29 1675rm -f -r conftest* confdefs.h
f5818d2f 1676
daa2886c
AJ
1677# Predefined preprocessor variables.
1678
1679cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_NAME "$PACKAGE_NAME"
1681_ACEOF
1682
1683
1684cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1686_ACEOF
1687
1688
1689cat >>confdefs.h <<_ACEOF
1690#define PACKAGE_VERSION "$PACKAGE_VERSION"
1691_ACEOF
1692
1693
1694cat >>confdefs.h <<_ACEOF
1695#define PACKAGE_STRING "$PACKAGE_STRING"
1696_ACEOF
1697
1698
1699cat >>confdefs.h <<_ACEOF
1700#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1701_ACEOF
1702
1703
f5818d2f 1704# Let the site file select an alternate cache file if it wants to.
e2991ea7 1705# Prefer explicitly selected file to automatically selected ones.
fc6ffb29
AJ
1706if test -n "$CONFIG_SITE"; then
1707 set x "$CONFIG_SITE"
1708elif test "x$prefix" != xNONE; then
1709 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1710else
1711 set x "$ac_default_prefix/share/config.site" \
1712 "$ac_default_prefix/etc/config.site"
e2991ea7 1713fi
fc6ffb29
AJ
1714shift
1715for ac_site_file
1716do
e2991ea7 1717 if test -r "$ac_site_file"; then
daa2886c 1718 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
f5818d2f 1719echo "$as_me: loading site script $ac_site_file" >&6;}
daa2886c 1720 sed 's/^/| /' "$ac_site_file" >&5
e2991ea7
AJ
1721 . "$ac_site_file"
1722 fi
1723done
1724
1725if test -r "$cache_file"; then
f5818d2f
AJ
1726 # Some versions of bash will fail to source /dev/null (special
1727 # files actually), so we avoid doing that.
1728 if test -f "$cache_file"; then
daa2886c 1729 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
f5818d2f
AJ
1730echo "$as_me: loading cache $cache_file" >&6;}
1731 case $cache_file in
0ebeb530
JW
1732 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1733 *) . "./$cache_file";;
f5818d2f
AJ
1734 esac
1735 fi
e2991ea7 1736else
daa2886c 1737 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
f5818d2f
AJ
1738echo "$as_me: creating cache $cache_file" >&6;}
1739 >$cache_file
1740fi
1741
1742# Check that the precious variables saved in the cache have kept the same
1743# value.
1744ac_cache_corrupted=false
fc6ffb29 1745for ac_var in $ac_precious_vars; do
f5818d2f
AJ
1746 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1747 eval ac_new_set=\$ac_env_${ac_var}_set
fc6ffb29
AJ
1748 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1749 eval ac_new_val=\$ac_env_${ac_var}_value
f5818d2f
AJ
1750 case $ac_old_set,$ac_new_set in
1751 set,)
daa2886c 1752 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
f5818d2f
AJ
1753echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754 ac_cache_corrupted=: ;;
1755 ,set)
daa2886c 1756 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
f5818d2f
AJ
1757echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1759 ,);;
1760 *)
1761 if test "x$ac_old_val" != "x$ac_new_val"; then
875927f6 1762 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
f5818d2f 1763echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
875927f6 1764 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
f5818d2f 1765echo "$as_me: former value: $ac_old_val" >&2;}
875927f6 1766 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
f5818d2f 1767echo "$as_me: current value: $ac_new_val" >&2;}
875927f6 1768 ac_cache_corrupted=:
f5818d2f
AJ
1769 fi;;
1770 esac
daa2886c 1771 # Pass precious variables to config.status.
f5818d2f
AJ
1772 if test "$ac_new_set" = set; then
1773 case $ac_new_val in
fc6ffb29 1774 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
daa2886c
AJ
1775 *) ac_arg=$ac_var=$ac_new_val ;;
1776 esac
1777 case " $ac_configure_args " in
1778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1779 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
f5818d2f
AJ
1780 esac
1781 fi
1782done
1783if $ac_cache_corrupted; then
daa2886c 1784 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
f5818d2f 1785echo "$as_me: error: changes in the environment can compromise the build" >&2;}
daa2886c 1786 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
f5818d2f
AJ
1787echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1788 { (exit 1); exit 1; }; }
e2991ea7
AJ
1789fi
1790
daa2886c
AJ
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
fc6ffb29
AJ
1815ac_ext=c
1816ac_cpp='$CPP $CPPFLAGS'
1817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819ac_compiler_gnu=$ac_cv_c_compiler_gnu
daa2886c 1820
e2991ea7 1821
11af04e3 1822
fc6ffb29 1823ac_config_headers="$ac_config_headers include/config.h"
18f92e76 1824
d7d4fdf8 1825ac_aux_dir=
0ebeb530
JW
1826for ac_dir in tools "$srcdir"/tools; do
1827 if test -f "$ac_dir/install-sh"; then
d7d4fdf8
AJ
1828 ac_aux_dir=$ac_dir
1829 ac_install_sh="$ac_aux_dir/install-sh -c"
1830 break
0ebeb530 1831 elif test -f "$ac_dir/install.sh"; then
d7d4fdf8
AJ
1832 ac_aux_dir=$ac_dir
1833 ac_install_sh="$ac_aux_dir/install.sh -c"
1834 break
0ebeb530 1835 elif test -f "$ac_dir/shtool"; then
f5818d2f
AJ
1836 ac_aux_dir=$ac_dir
1837 ac_install_sh="$ac_aux_dir/shtool install -c"
1838 break
d7d4fdf8
AJ
1839 fi
1840done
1841if test -z "$ac_aux_dir"; then
0ebeb530
JW
1842 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1843echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
f5818d2f 1844 { (exit 1); exit 1; }; }
d7d4fdf8 1845fi
0ebeb530
JW
1846
1847# These three variables are undocumented and unsupported,
1848# and are intended to be withdrawn in a future Autoconf release.
1849# They can cause serious problems if a builder's source tree is in a directory
1850# whose full name contains unusual characters.
1851ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1852ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1853ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1854
ff8331ea 1855
daa2886c
AJ
1856
1857
fc6ffb29 1858# Check whether --enable-win16 was given.
c728efc3 1859if test "${enable_win16+set}" = set; then
fc6ffb29
AJ
1860 enableval=$enable_win16;
1861fi
c728efc3 1862
fc6ffb29 1863# Check whether --enable-win64 was given.
2aa8e871 1864if test "${enable_win64+set}" = set; then
fc6ffb29
AJ
1865 enableval=$enable_win64;
1866fi
2aa8e871 1867
b8074991
AJ
1868
1869
fc6ffb29 1870# Check whether --with-opengl was given.
b8074991 1871if test "${with_opengl+set}" = set; then
fc6ffb29
AJ
1872 withval=$with_opengl;
1873fi
f90efa9c
AJ
1874
1875
fc6ffb29 1876# Check whether --with-wine-tools was given.
fc01b729 1877if test "${with_wine_tools+set}" = set; then
fc6ffb29
AJ
1878 withval=$with_wine_tools;
1879fi
fc01b729 1880
fc01b729 1881
f5818d2f 1882# Make sure we can run config.sub.
0ebeb530
JW
1883$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1884 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1885echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
f5818d2f
AJ
1886 { (exit 1); exit 1; }; }
1887
fc6ffb29
AJ
1888{ echo "$as_me:$LINENO: checking build system type" >&5
1889echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
f5818d2f
AJ
1890if test "${ac_cv_build+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
fc6ffb29
AJ
1893 ac_build_alias=$build_alias
1894test "x$ac_build_alias" = x &&
0ebeb530 1895 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
fc6ffb29 1896test "x$ac_build_alias" = x &&
daa2886c 1897 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
f5818d2f
AJ
1898echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1899 { (exit 1); exit 1; }; }
0ebeb530
JW
1900ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1901 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1902echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
f5818d2f
AJ
1903 { (exit 1); exit 1; }; }
1904
1905fi
fc6ffb29
AJ
1906{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1907echo "${ECHO_T}$ac_cv_build" >&6; }
1908case $ac_cv_build in
1909*-*-*) ;;
1910*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1911echo "$as_me: error: invalid value of canonical build" >&2;}
1912 { (exit 1); exit 1; }; };;
1913esac
f5818d2f 1914build=$ac_cv_build
fc6ffb29
AJ
1915ac_save_IFS=$IFS; IFS='-'
1916set x $ac_cv_build
1917shift
1918build_cpu=$1
1919build_vendor=$2
1920shift; shift
1921# Remember, the first character of IFS is used to create $*,
1922# except with old shells:
1923build_os=$*
1924IFS=$ac_save_IFS
1925case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1926
1927
1928{ echo "$as_me:$LINENO: checking host system type" >&5
1929echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
f5818d2f
AJ
1930if test "${ac_cv_host+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
fc6ffb29
AJ
1933 if test "x$host_alias" = x; then
1934 ac_cv_host=$ac_cv_build
1935else
0ebeb530
JW
1936 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1937 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1938echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
f5818d2f 1939 { (exit 1); exit 1; }; }
fc6ffb29 1940fi
f5818d2f
AJ
1941
1942fi
fc6ffb29
AJ
1943{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1944echo "${ECHO_T}$ac_cv_host" >&6; }
1945case $ac_cv_host in
1946*-*-*) ;;
1947*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1948echo "$as_me: error: invalid value of canonical host" >&2;}
1949 { (exit 1); exit 1; }; };;
1950esac
f5818d2f 1951host=$ac_cv_host
fc6ffb29
AJ
1952ac_save_IFS=$IFS; IFS='-'
1953set x $ac_cv_host
1954shift
1955host_cpu=$1
1956host_vendor=$2
1957shift; shift
1958# Remember, the first character of IFS is used to create $*,
1959# except with old shells:
1960host_os=$*
1961IFS=$ac_save_IFS
1962case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
f5818d2f 1963
daa2886c 1964
2aa8e871
AJ
1965case $host in
1966 x86_64*linux*)
1967 if test "x$enable_win64" != "xyes"
1968 then
1969 test -n "$CC" || CC="gcc -m32"
e06016fa 1970 test -n "$CXX"|| CXX="g++ -m32"
2aa8e871
AJ
1971 test -n "$LD" || LD="ld -m elf_i386"
1972 test -n "$AS" || AS="as --32"
bbcf9864 1973 host_cpu="i386"
2aa8e871
AJ
1974 fi
1975 ;;
1976esac
1977
71440f35
AJ
1978case $host_cpu in
1979 *i[3456789]86*)
1980 if test "x$enable_win16" != "xno"
1981 then
1982 enable_win16="yes"
1983 fi
1984 ;;
1985esac
1986
1987WIN16_FILES="\$(WIN16_FILES)"
1988
1989WIN16_INSTALL="\$(WIN16_INSTALL)"
1990
1991if test "x$enable_win16" != "xyes"
1992then
1993 WIN16_FILES=""
1994 WIN16_INSTALL=""
1995fi
1996
73b724e7
AJ
1997case "$srcdir" in
1998 .) ;;
1999 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2000 { { echo "$as_me:$LINENO: error: you are building out of the source tree, but the source tree contains object files.
2001You need to run 'make distclean' in the source tree first." >&5
2002echo "$as_me: error: you are building out of the source tree, but the source tree contains object files.
2003You need to run 'make distclean' in the source tree first." >&2;}
2004 { (exit 1); exit 1; }; }
2005 fi ;;
2006esac
2007
71440f35 2008
fc6ffb29
AJ
2009{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2010echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
0ebeb530 2011set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
fc6ffb29 2012if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f
AJ
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2014else
daa2886c 2015 cat >conftest.make <<\_ACEOF
fc6ffb29 2016SHELL = /bin/sh
e2991ea7 2017all:
0ebeb530 2018 @echo '@@@%%%=$(MAKE)=@@@%%%'
daa2886c 2019_ACEOF
e2991ea7 2020# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0ebeb530
JW
2021case `${MAKE-make} -f conftest.make 2>/dev/null` in
2022 *@@@%%%=?*=@@@%%%*)
2023 eval ac_cv_prog_make_${ac_make}_set=yes;;
2024 *)
2025 eval ac_cv_prog_make_${ac_make}_set=no;;
2026esac
f5818d2f 2027rm -f conftest.make
e2991ea7 2028fi
0ebeb530 2029if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
fc6ffb29
AJ
2030 { echo "$as_me:$LINENO: result: yes" >&5
2031echo "${ECHO_T}yes" >&6; }
e2991ea7
AJ
2032 SET_MAKE=
2033else
fc6ffb29
AJ
2034 { echo "$as_me:$LINENO: result: no" >&5
2035echo "${ECHO_T}no" >&6; }
e2991ea7
AJ
2036 SET_MAKE="MAKE=${MAKE-make}"
2037fi
2038
f5818d2f
AJ
2039ac_ext=c
2040ac_cpp='$CPP $CPPFLAGS'
2041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044if test -n "$ac_tool_prefix"; then
2045 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2046set dummy ${ac_tool_prefix}gcc; ac_word=$2
fc6ffb29
AJ
2047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2049if test "${ac_cv_prog_CC+set}" = set; then
2050 echo $ECHO_N "(cached) $ECHO_C" >&6
2051else
2052 if test -n "$CC"; then
2053 ac_cv_prog_CC="$CC" # Let the user override the test.
2054else
daa2886c
AJ
2055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056for as_dir in $PATH
2057do
2058 IFS=$as_save_IFS
2059 test -z "$as_dir" && as_dir=.
2060 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2062 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 break 2
2065 fi
2066done
f5818d2f 2067done
fc6ffb29 2068IFS=$as_save_IFS
f5818d2f
AJ
2069
2070fi
2071fi
2072CC=$ac_cv_prog_CC
2073if test -n "$CC"; then
fc6ffb29
AJ
2074 { echo "$as_me:$LINENO: result: $CC" >&5
2075echo "${ECHO_T}$CC" >&6; }
f5818d2f 2076else
fc6ffb29
AJ
2077 { echo "$as_me:$LINENO: result: no" >&5
2078echo "${ECHO_T}no" >&6; }
f5818d2f
AJ
2079fi
2080
fc6ffb29 2081
f5818d2f
AJ
2082fi
2083if test -z "$ac_cv_prog_CC"; then
2084 ac_ct_CC=$CC
2085 # Extract the first word of "gcc", so it can be a program name with args.
e2991ea7 2086set dummy gcc; ac_word=$2
fc6ffb29
AJ
2087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2089if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2091else
2092 if test -n "$ac_ct_CC"; then
2093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2094else
daa2886c
AJ
2095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096for as_dir in $PATH
2097do
2098 IFS=$as_save_IFS
2099 test -z "$as_dir" && as_dir=.
2100 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2102 ac_cv_prog_ac_ct_CC="gcc"
2103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104 break 2
2105 fi
2106done
f5818d2f 2107done
fc6ffb29 2108IFS=$as_save_IFS
f5818d2f
AJ
2109
2110fi
2111fi
2112ac_ct_CC=$ac_cv_prog_ac_ct_CC
2113if test -n "$ac_ct_CC"; then
fc6ffb29
AJ
2114 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2115echo "${ECHO_T}$ac_ct_CC" >&6; }
f5818d2f 2116else
fc6ffb29
AJ
2117 { echo "$as_me:$LINENO: result: no" >&5
2118echo "${ECHO_T}no" >&6; }
f5818d2f
AJ
2119fi
2120
fc6ffb29
AJ
2121 if test "x$ac_ct_CC" = x; then
2122 CC=""
2123 else
2124 case $cross_compiling:$ac_tool_warned in
2125yes:)
2126{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2127whose name does not start with the host triplet. If you think this
2128configuration is useful to you, please write to autoconf@gnu.org." >&5
2129echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2130whose name does not start with the host triplet. If you think this
2131configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2132ac_tool_warned=yes ;;
2133esac
2134 CC=$ac_ct_CC
2135 fi
f5818d2f
AJ
2136else
2137 CC="$ac_cv_prog_CC"
2138fi
2139
2140if test -z "$CC"; then
fc6ffb29
AJ
2141 if test -n "$ac_tool_prefix"; then
2142 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
f5818d2f 2143set dummy ${ac_tool_prefix}cc; ac_word=$2
fc6ffb29
AJ
2144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2146if test "${ac_cv_prog_CC+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
2148else
2149 if test -n "$CC"; then
2150 ac_cv_prog_CC="$CC" # Let the user override the test.
2151else
daa2886c
AJ
2152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153for as_dir in $PATH
2154do
2155 IFS=$as_save_IFS
2156 test -z "$as_dir" && as_dir=.
2157 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2159 ac_cv_prog_CC="${ac_tool_prefix}cc"
2160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161 break 2
2162 fi
2163done
f5818d2f 2164done
fc6ffb29 2165IFS=$as_save_IFS
f5818d2f 2166
e2991ea7
AJ
2167fi
2168fi
f5818d2f 2169CC=$ac_cv_prog_CC
e2991ea7 2170if test -n "$CC"; then
fc6ffb29
AJ
2171 { echo "$as_me:$LINENO: result: $CC" >&5
2172echo "${ECHO_T}$CC" >&6; }
f5818d2f 2173else
fc6ffb29
AJ
2174 { echo "$as_me:$LINENO: result: no" >&5
2175echo "${ECHO_T}no" >&6; }
f5818d2f
AJ
2176fi
2177
e2991ea7 2178
fc6ffb29 2179 fi
f5818d2f 2180fi
b817f4fb
AJ
2181if test -z "$CC"; then
2182 # Extract the first word of "cc", so it can be a program name with args.
2183set dummy cc; ac_word=$2
fc6ffb29
AJ
2184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2186if test "${ac_cv_prog_CC+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
b817f4fb
AJ
2188else
2189 if test -n "$CC"; then
2190 ac_cv_prog_CC="$CC" # Let the user override the test.
2191else
b817f4fb 2192 ac_prog_rejected=no
daa2886c
AJ
2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194for as_dir in $PATH
2195do
2196 IFS=$as_save_IFS
2197 test -z "$as_dir" && as_dir=.
2198 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2200 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2201 ac_prog_rejected=yes
2202 continue
2203 fi
2204 ac_cv_prog_CC="cc"
2205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206 break 2
2207 fi
2208done
f5818d2f 2209done
fc6ffb29 2210IFS=$as_save_IFS
f5818d2f 2211
b817f4fb
AJ
2212if test $ac_prog_rejected = yes; then
2213 # We found a bogon in the path, so make sure we never use it.
2214 set dummy $ac_cv_prog_CC
2215 shift
f5818d2f 2216 if test $# != 0; then
b817f4fb
AJ
2217 # We chose a different compiler from the bogus one.
2218 # However, it has the same basename, so the bogon will be chosen
2219 # first if we set CC to just the basename; use the full file name.
2220 shift
11af04e3 2221 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
b817f4fb
AJ
2222 fi
2223fi
2224fi
2225fi
f5818d2f 2226CC=$ac_cv_prog_CC
b817f4fb 2227if test -n "$CC"; then
fc6ffb29
AJ
2228 { echo "$as_me:$LINENO: result: $CC" >&5
2229echo "${ECHO_T}$CC" >&6; }
b817f4fb 2230else
fc6ffb29
AJ
2231 { echo "$as_me:$LINENO: result: no" >&5
2232echo "${ECHO_T}no" >&6; }
b817f4fb
AJ
2233fi
2234
fc6ffb29 2235
f5818d2f
AJ
2236fi
2237if test -z "$CC"; then
2238 if test -n "$ac_tool_prefix"; then
fc6ffb29 2239 for ac_prog in cl.exe
f5818d2f
AJ
2240 do
2241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2242set dummy $ac_tool_prefix$ac_prog; ac_word=$2
fc6ffb29
AJ
2243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2245if test "${ac_cv_prog_CC+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247else
2248 if test -n "$CC"; then
18ad24a7
EP
2249 ac_cv_prog_CC="$CC" # Let the user override the test.
2250else
daa2886c
AJ
2251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252for as_dir in $PATH
2253do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2258 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 break 2
2261 fi
2262done
f5818d2f 2263done
fc6ffb29 2264IFS=$as_save_IFS
f5818d2f 2265
18ad24a7
EP
2266fi
2267fi
f5818d2f 2268CC=$ac_cv_prog_CC
18ad24a7 2269if test -n "$CC"; then
fc6ffb29
AJ
2270 { echo "$as_me:$LINENO: result: $CC" >&5
2271echo "${ECHO_T}$CC" >&6; }
18ad24a7 2272else
fc6ffb29
AJ
2273 { echo "$as_me:$LINENO: result: no" >&5
2274echo "${ECHO_T}no" >&6; }
b817f4fb 2275fi
e2991ea7 2276
fc6ffb29 2277
f5818d2f
AJ
2278 test -n "$CC" && break
2279 done
2280fi
2281if test -z "$CC"; then
2282 ac_ct_CC=$CC
fc6ffb29 2283 for ac_prog in cl.exe
f5818d2f
AJ
2284do
2285 # Extract the first word of "$ac_prog", so it can be a program name with args.
2286set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
2287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2289if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291else
2292 if test -n "$ac_ct_CC"; then
2293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2294else
daa2886c
AJ
2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296for as_dir in $PATH
2297do
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2302 ac_cv_prog_ac_ct_CC="$ac_prog"
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 break 2
2305 fi
2306done
f5818d2f 2307done
fc6ffb29 2308IFS=$as_save_IFS
da0cfb36 2309
f5818d2f
AJ
2310fi
2311fi
2312ac_ct_CC=$ac_cv_prog_ac_ct_CC
2313if test -n "$ac_ct_CC"; then
fc6ffb29
AJ
2314 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2315echo "${ECHO_T}$ac_ct_CC" >&6; }
f5818d2f 2316else
fc6ffb29
AJ
2317 { echo "$as_me:$LINENO: result: no" >&5
2318echo "${ECHO_T}no" >&6; }
f5818d2f 2319fi
da0cfb36 2320
fc6ffb29 2321
f5818d2f
AJ
2322 test -n "$ac_ct_CC" && break
2323done
18ad24a7 2324
fc6ffb29
AJ
2325 if test "x$ac_ct_CC" = x; then
2326 CC=""
2327 else
2328 case $cross_compiling:$ac_tool_warned in
2329yes:)
2330{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2331whose name does not start with the host triplet. If you think this
2332configuration is useful to you, please write to autoconf@gnu.org." >&5
2333echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2334whose name does not start with the host triplet. If you think this
2335configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2336ac_tool_warned=yes ;;
2337esac
2338 CC=$ac_ct_CC
2339 fi
f5818d2f
AJ
2340fi
2341
2342fi
2343
daa2886c 2344
e24bcc77
AJ
2345test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2346See \`config.log' for more details." >&5
2347echo "$as_me: error: no acceptable C compiler found in \$PATH
2348See \`config.log' for more details." >&2;}
f5818d2f
AJ
2349 { (exit 1); exit 1; }; }
2350
2351# Provide some information about the compiler.
fc6ffb29 2352echo "$as_me:$LINENO: checking for C compiler version" >&5
f5818d2f 2353ac_compiler=`set X $ac_compile; echo $2`
0ebeb530
JW
2354{ (ac_try="$ac_compiler --version >&5"
2355case "(($ac_try" in
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2358esac
2359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_compiler --version >&5") 2>&5
f5818d2f 2361 ac_status=$?
daa2886c 2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2363 (exit $ac_status); }
0ebeb530
JW
2364{ (ac_try="$ac_compiler -v >&5"
2365case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368esac
2369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compiler -v >&5") 2>&5
f5818d2f 2371 ac_status=$?
daa2886c 2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2373 (exit $ac_status); }
0ebeb530
JW
2374{ (ac_try="$ac_compiler -V >&5"
2375case "(($ac_try" in
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2378esac
2379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2380 (eval "$ac_compiler -V >&5") 2>&5
f5818d2f 2381 ac_status=$?
daa2886c 2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2383 (exit $ac_status); }
2384
2385cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
2386/* confdefs.h. */
2387_ACEOF
2388cat confdefs.h >>conftest.$ac_ext
2389cat >>conftest.$ac_ext <<_ACEOF
2390/* end confdefs.h. */
18ad24a7 2391
f5818d2f
AJ
2392int
2393main ()
2394{
2395
2396 ;
2397 return 0;
2398}
2399_ACEOF
2400ac_clean_files_save=$ac_clean_files
0ebeb530 2401ac_clean_files="$ac_clean_files a.out a.exe b.out"
f5818d2f
AJ
2402# Try to create an executable without -o first, disregard a.out.
2403# It will help us diagnose broken compilers, and finding out an intuition
2404# of exeext.
fc6ffb29
AJ
2405{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2406echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
f5818d2f 2407ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
0ebeb530
JW
2408#
2409# List of possible output files, starting from the most likely.
2410# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2411# only as a last resort. b.out is created by i960 compilers.
2412ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2413#
2414# The IRIX 6 linker writes into existing files which may not be
2415# executable, retaining their permissions. Remove them first so a
2416# subsequent execution test works.
2417ac_rmfiles=
2418for ac_file in $ac_files
2419do
2420 case $ac_file in
2421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2422 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2423 esac
2424done
2425rm -f $ac_rmfiles
fc6ffb29 2426
0ebeb530
JW
2427if { (ac_try="$ac_link_default"
2428case "(($ac_try" in
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2431esac
2432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433 (eval "$ac_link_default") 2>&5
f5818d2f 2434 ac_status=$?
daa2886c 2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2436 (exit $ac_status); }; then
0ebeb530
JW
2437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2438# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2439# in a Makefile. We should not override ac_cv_exeext if it was cached,
2440# so that the user can short-circuit this test for compilers unknown to
2441# Autoconf.
78bd1948 2442for ac_file in $ac_files ''
e24bcc77 2443do
11af04e3 2444 test -f "$ac_file" || continue
f5818d2f 2445 case $ac_file in
0ebeb530
JW
2446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2447 ;;
2448 [ab].out )
2449 # We found the default executable, but exeext='' is most
2450 # certainly right.
2451 break;;
2452 *.* )
2453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2454 then :; else
2455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2456 fi
2457 # We set ac_cv_exeext here because the later test for it is not
2458 # safe: cross compilers may not add the suffix if given an `-o'
2459 # argument, so we may need to know it at that point already.
2460 # Even if this section looks crufty: it has the advantage of
2461 # actually working.
2462 break;;
2463 * )
2464 break;;
f5818d2f
AJ
2465 esac
2466done
0ebeb530 2467test "$ac_cv_exeext" = no && ac_cv_exeext=
fc6ffb29 2468
f5818d2f 2469else
78bd1948
AJ
2470 ac_file=''
2471fi
2472
2473{ echo "$as_me:$LINENO: result: $ac_file" >&5
2474echo "${ECHO_T}$ac_file" >&6; }
2475if test -z "$ac_file"; then
f5818d2f 2476 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
11af04e3 2479{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
e24bcc77 2480See \`config.log' for more details." >&5
11af04e3 2481echo "$as_me: error: C compiler cannot create executables
e24bcc77 2482See \`config.log' for more details." >&2;}
f5818d2f
AJ
2483 { (exit 77); exit 77; }; }
2484fi
2485
0ebeb530 2486ac_exeext=$ac_cv_exeext
0ebeb530 2487
fc6ffb29 2488# Check that the compiler produces executables we can run. If not, either
f5818d2f 2489# the compiler is broken, or we cross compile.
fc6ffb29
AJ
2490{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2491echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
f5818d2f
AJ
2492# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2493# If not cross compiling, check that we can run a simple program.
2494if test "$cross_compiling" != yes; then
2495 if { ac_try='./$ac_file'
0ebeb530
JW
2496 { (case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2499esac
2500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501 (eval "$ac_try") 2>&5
f5818d2f 2502 ac_status=$?
daa2886c 2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2504 (exit $ac_status); }; }; then
2505 cross_compiling=no
7e6ae4ba 2506 else
f5818d2f
AJ
2507 if test "$cross_compiling" = maybe; then
2508 cross_compiling=yes
2509 else
daa2886c 2510 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
e24bcc77
AJ
2511If you meant to cross compile, use \`--host'.
2512See \`config.log' for more details." >&5
f5818d2f 2513echo "$as_me: error: cannot run C compiled programs.
e24bcc77
AJ
2514If you meant to cross compile, use \`--host'.
2515See \`config.log' for more details." >&2;}
f5818d2f
AJ
2516 { (exit 1); exit 1; }; }
2517 fi
7e6ae4ba 2518 fi
f5818d2f 2519fi
fc6ffb29
AJ
2520{ echo "$as_me:$LINENO: result: yes" >&5
2521echo "${ECHO_T}yes" >&6; }
f5818d2f 2522
0ebeb530
JW
2523rm -f a.out a.exe conftest$ac_cv_exeext b.out
2524ac_clean_files=$ac_clean_files_save
2525# Check that the compiler produces executables we can run. If not, either
2526# the compiler is broken, or we cross compile.
fc6ffb29
AJ
2527{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2528echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2529{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2530echo "${ECHO_T}$cross_compiling" >&6; }
2531
2532{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2533echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
0ebeb530
JW
2534if { (ac_try="$ac_link"
2535case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538esac
2539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540 (eval "$ac_link") 2>&5
f5818d2f 2541 ac_status=$?
daa2886c 2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2543 (exit $ac_status); }; then
0ebeb530
JW
2544 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2545# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2546# work properly (i.e., refer to `conftest.exe'), while it won't with
2547# `rm'.
2548for ac_file in conftest.exe conftest conftest.*; do
2549 test -f "$ac_file" || continue
2550 case $ac_file in
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2552 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2553 break;;
2554 * ) break;;
2555 esac
2556done
da0cfb36 2557else
e24bcc77
AJ
2558 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2559See \`config.log' for more details." >&5
2560echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2561See \`config.log' for more details." >&2;}
f5818d2f 2562 { (exit 1); exit 1; }; }
da0cfb36 2563fi
da0cfb36 2564
0ebeb530 2565rm -f conftest$ac_cv_exeext
fc6ffb29
AJ
2566{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2567echo "${ECHO_T}$ac_cv_exeext" >&6; }
0ebeb530
JW
2568
2569rm -f conftest.$ac_ext
f5818d2f
AJ
2570EXEEXT=$ac_cv_exeext
2571ac_exeext=$EXEEXT
fc6ffb29
AJ
2572{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2573echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
f5818d2f
AJ
2574if test "${ac_cv_objext+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 2576else
0ebeb530
JW
2577 cat >conftest.$ac_ext <<_ACEOF
2578/* confdefs.h. */
2579_ACEOF
2580cat confdefs.h >>conftest.$ac_ext
2581cat >>conftest.$ac_ext <<_ACEOF
2582/* end confdefs.h. */
2583
2584int
2585main ()
2586{
2587
2588 ;
2589 return 0;
2590}
2591_ACEOF
2592rm -f conftest.o conftest.obj
2593if { (ac_try="$ac_compile"
2594case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2597esac
2598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_compile") 2>&5
f5818d2f 2600 ac_status=$?
daa2886c 2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2602 (exit $ac_status); }; then
fc6ffb29
AJ
2603 for ac_file in conftest.o conftest.obj conftest.*; do
2604 test -f "$ac_file" || continue;
f5818d2f 2605 case $ac_file in
fc6ffb29 2606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
f5818d2f
AJ
2607 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2608 break;;
2609 esac
2610done
18ad24a7 2611else
f5818d2f 2612 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2613sed 's/^/| /' conftest.$ac_ext >&5
2614
2615{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2616See \`config.log' for more details." >&5
2617echo "$as_me: error: cannot compute suffix of object files: cannot compile
2618See \`config.log' for more details." >&2;}
f5818d2f 2619 { (exit 1); exit 1; }; }
18ad24a7
EP
2620fi
2621
0ebeb530 2622rm -f conftest.$ac_cv_objext conftest.$ac_ext
f5818d2f 2623fi
fc6ffb29
AJ
2624{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2625echo "${ECHO_T}$ac_cv_objext" >&6; }
f5818d2f
AJ
2626OBJEXT=$ac_cv_objext
2627ac_objext=$OBJEXT
fc6ffb29
AJ
2628{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2629echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
f5818d2f
AJ
2630if test "${ac_cv_c_compiler_gnu+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 2632else
f5818d2f 2633 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
2634/* confdefs.h. */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
2638/* end confdefs.h. */
f5818d2f
AJ
2639
2640int
2641main ()
2642{
2643#ifndef __GNUC__
2644 choke me
2645#endif
2646
2647 ;
2648 return 0;
2649}
2650_ACEOF
2651rm -f conftest.$ac_objext
0ebeb530
JW
2652if { (ac_try="$ac_compile"
2653case "(($ac_try" in
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2656esac
2657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compile") 2>conftest.er1
f5818d2f 2659 ac_status=$?
875927f6
AJ
2660 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
daa2886c 2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
2664 (exit $ac_status); } && {
2665 test -z "$ac_c_werror_flag" ||
2666 test ! -s conftest.err
2667 } && test -s conftest.$ac_objext; then
f5818d2f
AJ
2668 ac_compiler_gnu=yes
2669else
2670 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2671sed 's/^/| /' conftest.$ac_ext >&5
2672
fc6ffb29 2673 ac_compiler_gnu=no
f5818d2f 2674fi
fc6ffb29 2675
0ebeb530 2676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f
AJ
2677ac_cv_c_compiler_gnu=$ac_compiler_gnu
2678
2679fi
fc6ffb29
AJ
2680{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2681echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
f5818d2f
AJ
2682GCC=`test $ac_compiler_gnu = yes && echo yes`
2683ac_test_CFLAGS=${CFLAGS+set}
2684ac_save_CFLAGS=$CFLAGS
fc6ffb29
AJ
2685{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2686echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
f5818d2f
AJ
2687if test "${ac_cv_prog_cc_g+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2689else
fc6ffb29
AJ
2690 ac_save_c_werror_flag=$ac_c_werror_flag
2691 ac_c_werror_flag=yes
2692 ac_cv_prog_cc_g=no
2693 CFLAGS="-g"
2694 cat >conftest.$ac_ext <<_ACEOF
2695/* confdefs.h. */
2696_ACEOF
2697cat confdefs.h >>conftest.$ac_ext
2698cat >>conftest.$ac_ext <<_ACEOF
2699/* end confdefs.h. */
2700
2701int
2702main ()
2703{
2704
2705 ;
2706 return 0;
2707}
2708_ACEOF
2709rm -f conftest.$ac_objext
0ebeb530
JW
2710if { (ac_try="$ac_compile"
2711case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714esac
2715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compile") 2>conftest.er1
fc6ffb29
AJ
2717 ac_status=$?
2718 grep -v '^ *+' conftest.er1 >conftest.err
2719 rm -f conftest.er1
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
2722 (exit $ac_status); } && {
2723 test -z "$ac_c_werror_flag" ||
2724 test ! -s conftest.err
2725 } && test -s conftest.$ac_objext; then
fc6ffb29
AJ
2726 ac_cv_prog_cc_g=yes
2727else
2728 echo "$as_me: failed program was:" >&5
2729sed 's/^/| /' conftest.$ac_ext >&5
2730
2731 CFLAGS=""
2732 cat >conftest.$ac_ext <<_ACEOF
2733/* confdefs.h. */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
2737/* end confdefs.h. */
2738
2739int
2740main ()
2741{
2742
2743 ;
2744 return 0;
2745}
2746_ACEOF
2747rm -f conftest.$ac_objext
0ebeb530
JW
2748if { (ac_try="$ac_compile"
2749case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752esac
2753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compile") 2>conftest.er1
fc6ffb29
AJ
2755 ac_status=$?
2756 grep -v '^ *+' conftest.er1 >conftest.err
2757 rm -f conftest.er1
2758 cat conftest.err >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
2760 (exit $ac_status); } && {
2761 test -z "$ac_c_werror_flag" ||
2762 test ! -s conftest.err
2763 } && test -s conftest.$ac_objext; then
fc6ffb29
AJ
2764 :
2765else
2766 echo "$as_me: failed program was:" >&5
2767sed 's/^/| /' conftest.$ac_ext >&5
2768
2769 ac_c_werror_flag=$ac_save_c_werror_flag
2770 CFLAGS="-g"
2771 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
2772/* confdefs.h. */
2773_ACEOF
2774cat confdefs.h >>conftest.$ac_ext
2775cat >>conftest.$ac_ext <<_ACEOF
2776/* end confdefs.h. */
f5818d2f
AJ
2777
2778int
2779main ()
2780{
2781
2782 ;
2783 return 0;
2784}
2785_ACEOF
2786rm -f conftest.$ac_objext
0ebeb530
JW
2787if { (ac_try="$ac_compile"
2788case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791esac
2792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_compile") 2>conftest.er1
f5818d2f 2794 ac_status=$?
875927f6
AJ
2795 grep -v '^ *+' conftest.er1 >conftest.err
2796 rm -f conftest.er1
2797 cat conftest.err >&5
daa2886c 2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
2799 (exit $ac_status); } && {
2800 test -z "$ac_c_werror_flag" ||
2801 test ! -s conftest.err
2802 } && test -s conftest.$ac_objext; then
7e6ae4ba 2803 ac_cv_prog_cc_g=yes
e2991ea7 2804else
f5818d2f 2805 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2806sed 's/^/| /' conftest.$ac_ext >&5
2807
fc6ffb29
AJ
2808
2809fi
2810
0ebeb530 2811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
2812fi
2813
0ebeb530 2814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e2991ea7 2815fi
fc6ffb29 2816
0ebeb530 2817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 2818 ac_c_werror_flag=$ac_save_c_werror_flag
e2991ea7 2819fi
fc6ffb29
AJ
2820{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2821echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18ad24a7 2822if test "$ac_test_CFLAGS" = set; then
f5818d2f 2823 CFLAGS=$ac_save_CFLAGS
18ad24a7
EP
2824elif test $ac_cv_prog_cc_g = yes; then
2825 if test "$GCC" = yes; then
da0cfb36
AJ
2826 CFLAGS="-g -O2"
2827 else
18ad24a7 2828 CFLAGS="-g"
e2991ea7
AJ
2829 fi
2830else
18ad24a7
EP
2831 if test "$GCC" = yes; then
2832 CFLAGS="-O2"
2833 else
2834 CFLAGS=
2835 fi
e2991ea7 2836fi
fc6ffb29
AJ
2837{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2838echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2839if test "${ac_cv_prog_cc_c89+set}" = set; then
11af04e3
AJ
2840 echo $ECHO_N "(cached) $ECHO_C" >&6
2841else
fc6ffb29 2842 ac_cv_prog_cc_c89=no
11af04e3
AJ
2843ac_save_CC=$CC
2844cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
2845/* confdefs.h. */
2846_ACEOF
2847cat confdefs.h >>conftest.$ac_ext
2848cat >>conftest.$ac_ext <<_ACEOF
2849/* end confdefs.h. */
11af04e3
AJ
2850#include <stdarg.h>
2851#include <stdio.h>
2852#include <sys/types.h>
2853#include <sys/stat.h>
2854/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2855struct buf { int x; };
2856FILE * (*rcsopen) (struct buf *, struct stat *, int);
2857static char *e (p, i)
2858 char **p;
2859 int i;
2860{
2861 return p[i];
2862}
2863static char *f (char * (*g) (char **, int), char **p, ...)
2864{
2865 char *s;
2866 va_list v;
2867 va_start (v,p);
2868 s = g (p, va_arg (v,int));
2869 va_end (v);
2870 return s;
2871}
875927f6
AJ
2872
2873/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2874 function prototypes and stuff, but not '\xHH' hex character constants.
2875 These don't provoke an error unfortunately, instead are silently treated
fc6ffb29 2876 as 'x'. The following induces an error, until -std is added to get
875927f6
AJ
2877 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2878 array size at least. It's necessary to write '\x00'==0 to get something
fc6ffb29 2879 that's true only with -std. */
875927f6
AJ
2880int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2881
f5f37a85
AJ
2882/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2883 inside strings and character constants. */
2884#define FOO(x) 'x'
2885int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2886
11af04e3
AJ
2887int test (int i, double x);
2888struct s1 {int (*f) (int a);};
2889struct s2 {int (*f) (double a);};
2890int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2891int argc;
2892char **argv;
2893int
2894main ()
2895{
2896return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2897 ;
2898 return 0;
2899}
2900_ACEOF
fc6ffb29
AJ
2901for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2902 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11af04e3
AJ
2903do
2904 CC="$ac_save_CC $ac_arg"
2905 rm -f conftest.$ac_objext
0ebeb530
JW
2906if { (ac_try="$ac_compile"
2907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
2911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compile") 2>conftest.er1
11af04e3 2913 ac_status=$?
875927f6
AJ
2914 grep -v '^ *+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
11af04e3 2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
2918 (exit $ac_status); } && {
2919 test -z "$ac_c_werror_flag" ||
2920 test ! -s conftest.err
2921 } && test -s conftest.$ac_objext; then
fc6ffb29 2922 ac_cv_prog_cc_c89=$ac_arg
11af04e3
AJ
2923else
2924 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2925sed 's/^/| /' conftest.$ac_ext >&5
2926
fc6ffb29 2927
11af04e3 2928fi
fc6ffb29 2929
0ebeb530 2930rm -f core conftest.err conftest.$ac_objext
fc6ffb29 2931 test "x$ac_cv_prog_cc_c89" != "xno" && break
11af04e3 2932done
fc6ffb29 2933rm -f conftest.$ac_ext
11af04e3
AJ
2934CC=$ac_save_CC
2935
2936fi
fc6ffb29
AJ
2937# AC_CACHE_VAL
2938case "x$ac_cv_prog_cc_c89" in
2939 x)
2940 { echo "$as_me:$LINENO: result: none needed" >&5
2941echo "${ECHO_T}none needed" >&6; } ;;
2942 xno)
2943 { echo "$as_me:$LINENO: result: unsupported" >&5
2944echo "${ECHO_T}unsupported" >&6; } ;;
11af04e3 2945 *)
fc6ffb29
AJ
2946 CC="$CC $ac_cv_prog_cc_c89"
2947 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2948echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
11af04e3
AJ
2949esac
2950
e24bcc77 2951
f5818d2f
AJ
2952ac_ext=c
2953ac_cpp='$CPP $CPPFLAGS'
2954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956ac_compiler_gnu=$ac_cv_c_compiler_gnu
e2991ea7 2957
fc6ffb29 2958ac_ext=cpp
f41c2b21
DP
2959ac_cpp='$CXXCPP $CPPFLAGS'
2960ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
fc6ffb29
AJ
2963if test -z "$CXX"; then
2964 if test -n "$CCC"; then
2965 CXX=$CCC
2966 else
2967 if test -n "$ac_tool_prefix"; then
2968 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
f41c2b21
DP
2969 do
2970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
fc6ffb29
AJ
2972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f41c2b21
DP
2974if test "${ac_cv_prog_CXX+set}" = set; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976else
2977 if test -n "$CXX"; then
2978 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2979else
2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
2985 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f41c2b21
DP
2987 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 break 2
2990 fi
2991done
2992done
fc6ffb29 2993IFS=$as_save_IFS
f41c2b21
DP
2994
2995fi
2996fi
2997CXX=$ac_cv_prog_CXX
2998if test -n "$CXX"; then
fc6ffb29
AJ
2999 { echo "$as_me:$LINENO: result: $CXX" >&5
3000echo "${ECHO_T}$CXX" >&6; }
f41c2b21 3001else
fc6ffb29
AJ
3002 { echo "$as_me:$LINENO: result: no" >&5
3003echo "${ECHO_T}no" >&6; }
f41c2b21
DP
3004fi
3005
fc6ffb29 3006
f41c2b21
DP
3007 test -n "$CXX" && break
3008 done
3009fi
3010if test -z "$CXX"; then
3011 ac_ct_CXX=$CXX
fc6ffb29 3012 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
f41c2b21
DP
3013do
3014 # Extract the first word of "$ac_prog", so it can be a program name with args.
3015set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
3016{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f41c2b21
DP
3018if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
3021 if test -n "$ac_ct_CXX"; then
3022 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3023else
3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025for as_dir in $PATH
3026do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f41c2b21
DP
3031 ac_cv_prog_ac_ct_CXX="$ac_prog"
3032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 break 2
3034 fi
3035done
3036done
fc6ffb29 3037IFS=$as_save_IFS
f41c2b21
DP
3038
3039fi
3040fi
3041ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3042if test -n "$ac_ct_CXX"; then
fc6ffb29
AJ
3043 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3044echo "${ECHO_T}$ac_ct_CXX" >&6; }
f41c2b21 3045else
fc6ffb29
AJ
3046 { echo "$as_me:$LINENO: result: no" >&5
3047echo "${ECHO_T}no" >&6; }
f41c2b21
DP
3048fi
3049
fc6ffb29 3050
f41c2b21
DP
3051 test -n "$ac_ct_CXX" && break
3052done
f41c2b21 3053
fc6ffb29
AJ
3054 if test "x$ac_ct_CXX" = x; then
3055 CXX="g++"
3056 else
3057 case $cross_compiling:$ac_tool_warned in
3058yes:)
3059{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3060whose name does not start with the host triplet. If you think this
3061configuration is useful to you, please write to autoconf@gnu.org." >&5
3062echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3063whose name does not start with the host triplet. If you think this
3064configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3065ac_tool_warned=yes ;;
3066esac
3067 CXX=$ac_ct_CXX
3068 fi
f41c2b21
DP
3069fi
3070
fc6ffb29
AJ
3071 fi
3072fi
f41c2b21 3073# Provide some information about the compiler.
fc6ffb29 3074echo "$as_me:$LINENO: checking for C++ compiler version" >&5
f41c2b21 3075ac_compiler=`set X $ac_compile; echo $2`
0ebeb530
JW
3076{ (ac_try="$ac_compiler --version >&5"
3077case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
3081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compiler --version >&5") 2>&5
f41c2b21
DP
3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }
0ebeb530
JW
3086{ (ac_try="$ac_compiler -v >&5"
3087case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3090esac
3091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_compiler -v >&5") 2>&5
f41c2b21
DP
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }
0ebeb530
JW
3096{ (ac_try="$ac_compiler -V >&5"
3097case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compiler -V >&5") 2>&5
f41c2b21
DP
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }
3106
fc6ffb29
AJ
3107{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3108echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
f41c2b21
DP
3109if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111else
3112 cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122#ifndef __GNUC__
3123 choke me
3124#endif
3125
3126 ;
3127 return 0;
3128}
3129_ACEOF
3130rm -f conftest.$ac_objext
0ebeb530
JW
3131if { (ac_try="$ac_compile"
3132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
f41c2b21
DP
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3143 (exit $ac_status); } && {
3144 test -z "$ac_cxx_werror_flag" ||
3145 test ! -s conftest.err
3146 } && test -s conftest.$ac_objext; then
f41c2b21
DP
3147 ac_compiler_gnu=yes
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
fc6ffb29 3152 ac_compiler_gnu=no
f41c2b21 3153fi
fc6ffb29 3154
0ebeb530 3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21
DP
3156ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3157
3158fi
fc6ffb29
AJ
3159{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3160echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
f41c2b21
DP
3161GXX=`test $ac_compiler_gnu = yes && echo yes`
3162ac_test_CXXFLAGS=${CXXFLAGS+set}
3163ac_save_CXXFLAGS=$CXXFLAGS
fc6ffb29
AJ
3164{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3165echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
f41c2b21
DP
3166if test "${ac_cv_prog_cxx_g+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168else
fc6ffb29
AJ
3169 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3170 ac_cxx_werror_flag=yes
3171 ac_cv_prog_cxx_g=no
3172 CXXFLAGS="-g"
3173 cat >conftest.$ac_ext <<_ACEOF
f41c2b21
DP
3174/* confdefs.h. */
3175_ACEOF
3176cat confdefs.h >>conftest.$ac_ext
3177cat >>conftest.$ac_ext <<_ACEOF
3178/* end confdefs.h. */
3179
3180int
3181main ()
3182{
3183
3184 ;
3185 return 0;
3186}
3187_ACEOF
3188rm -f conftest.$ac_objext
0ebeb530
JW
3189if { (ac_try="$ac_compile"
3190case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193esac
3194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_compile") 2>conftest.er1
f41c2b21
DP
3196 ac_status=$?
3197 grep -v '^ *+' conftest.er1 >conftest.err
3198 rm -f conftest.er1
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3201 (exit $ac_status); } && {
3202 test -z "$ac_cxx_werror_flag" ||
3203 test ! -s conftest.err
3204 } && test -s conftest.$ac_objext; then
f41c2b21
DP
3205 ac_cv_prog_cxx_g=yes
3206else
3207 echo "$as_me: failed program was:" >&5
3208sed 's/^/| /' conftest.$ac_ext >&5
3209
fc6ffb29
AJ
3210 CXXFLAGS=""
3211 cat >conftest.$ac_ext <<_ACEOF
f41c2b21
DP
3212/* confdefs.h. */
3213_ACEOF
3214cat confdefs.h >>conftest.$ac_ext
3215cat >>conftest.$ac_ext <<_ACEOF
3216/* end confdefs.h. */
fc6ffb29 3217
f41c2b21
DP
3218int
3219main ()
3220{
fc6ffb29 3221
f41c2b21
DP
3222 ;
3223 return 0;
3224}
3225_ACEOF
3226rm -f conftest.$ac_objext
0ebeb530
JW
3227if { (ac_try="$ac_compile"
3228case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231esac
3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
f41c2b21
DP
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3239 (exit $ac_status); } && {
3240 test -z "$ac_cxx_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
f41c2b21
DP
3243 :
3244else
3245 echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
fc6ffb29
AJ
3248 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3249 CXXFLAGS="-g"
3250 cat >conftest.$ac_ext <<_ACEOF
f41c2b21
DP
3251/* confdefs.h. */
3252_ACEOF
3253cat confdefs.h >>conftest.$ac_ext
3254cat >>conftest.$ac_ext <<_ACEOF
3255/* end confdefs.h. */
fc6ffb29 3256
f41c2b21
DP
3257int
3258main ()
3259{
fc6ffb29 3260
f41c2b21
DP
3261 ;
3262 return 0;
3263}
3264_ACEOF
3265rm -f conftest.$ac_objext
0ebeb530
JW
3266if { (ac_try="$ac_compile"
3267case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270esac
3271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_compile") 2>conftest.er1
f41c2b21
DP
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3278 (exit $ac_status); } && {
3279 test -z "$ac_cxx_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
fc6ffb29 3282 ac_cv_prog_cxx_g=yes
f41c2b21
DP
3283else
3284 echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
3286
fc6ffb29 3287
f41c2b21 3288fi
fc6ffb29 3289
0ebeb530 3290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
3291fi
3292
0ebeb530 3293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21
DP
3294fi
3295
0ebeb530 3296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
3297 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3298fi
3299{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3300echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3301if test "$ac_test_CXXFLAGS" = set; then
3302 CXXFLAGS=$ac_save_CXXFLAGS
3303elif test $ac_cv_prog_cxx_g = yes; then
3304 if test "$GXX" = yes; then
3305 CXXFLAGS="-g -O2"
3306 else
3307 CXXFLAGS="-g"
3308 fi
3309else
3310 if test "$GXX" = yes; then
3311 CXXFLAGS="-O2"
3312 else
3313 CXXFLAGS=
3314 fi
3315fi
f41c2b21
DP
3316ac_ext=c
3317ac_cpp='$CPP $CPPFLAGS'
3318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321
3e61ef7d
AJ
3322if test -n "$ac_tool_prefix"; then
3323 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3324set dummy ${ac_tool_prefix}cpp; ac_word=$2
fc6ffb29
AJ
3325{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3326echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a631ef63 3327if test "${ac_cv_prog_CPPBIN+set}" = set; then
f41c2b21
DP
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329else
a631ef63
AJ
3330 if test -n "$CPPBIN"; then
3331 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
f41c2b21
DP
3332else
3333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334for as_dir in $PATH
3335do
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a631ef63 3340 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
f41c2b21
DP
3341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 break 2
3343 fi
3344done
3345done
fc6ffb29 3346IFS=$as_save_IFS
f41c2b21
DP
3347
3348fi
3349fi
a631ef63
AJ
3350CPPBIN=$ac_cv_prog_CPPBIN
3351if test -n "$CPPBIN"; then
fc6ffb29
AJ
3352 { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3353echo "${ECHO_T}$CPPBIN" >&6; }
f41c2b21 3354else
fc6ffb29
AJ
3355 { echo "$as_me:$LINENO: result: no" >&5
3356echo "${ECHO_T}no" >&6; }
f41c2b21
DP
3357fi
3358
fc6ffb29 3359
3e61ef7d 3360fi
a631ef63
AJ
3361if test -z "$ac_cv_prog_CPPBIN"; then
3362 ac_ct_CPPBIN=$CPPBIN
3e61ef7d
AJ
3363 # Extract the first word of "cpp", so it can be a program name with args.
3364set dummy cpp; ac_word=$2
fc6ffb29
AJ
3365{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a631ef63 3367if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3e61ef7d
AJ
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369else
a631ef63
AJ
3370 if test -n "$ac_ct_CPPBIN"; then
3371 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3e61ef7d
AJ
3372else
3373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374for as_dir in $PATH
3375do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a631ef63 3380 ac_cv_prog_ac_ct_CPPBIN="cpp"
3e61ef7d
AJ
3381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384done
3385done
fc6ffb29 3386IFS=$as_save_IFS
3e61ef7d 3387
3e61ef7d
AJ
3388fi
3389fi
a631ef63
AJ
3390ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3391if test -n "$ac_ct_CPPBIN"; then
fc6ffb29
AJ
3392 { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3393echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3e61ef7d 3394else
fc6ffb29
AJ
3395 { echo "$as_me:$LINENO: result: no" >&5
3396echo "${ECHO_T}no" >&6; }
3e61ef7d
AJ
3397fi
3398
fc6ffb29
AJ
3399 if test "x$ac_ct_CPPBIN" = x; then
3400 CPPBIN="cpp"
3401 else
3402 case $cross_compiling:$ac_tool_warned in
3403yes:)
3404{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3405whose name does not start with the host triplet. If you think this
3406configuration is useful to you, please write to autoconf@gnu.org." >&5
3407echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3408whose name does not start with the host triplet. If you think this
3409configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3410ac_tool_warned=yes ;;
3411esac
3412 CPPBIN=$ac_ct_CPPBIN
3413 fi
3e61ef7d 3414else
a631ef63 3415 CPPBIN="$ac_cv_prog_CPPBIN"
3e61ef7d
AJ
3416fi
3417
f41c2b21 3418
fc6ffb29
AJ
3419{ echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3420echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
f41c2b21
DP
3421if test "${wine_cv_toolsdir+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423else
3424 if test -z "$with_wine_tools"; then
3425 if test "$cross_compiling" = "yes"; then
3426 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3427echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3428 { (exit 1); exit 1; }; }
3429 else
3430 wine_cv_toolsdir="\$(TOPOBJDIR)"
3431 fi
3432 elif test -d "$with_wine_tools/tools/winebuild"; then
3433 case $with_wine_tools in
3434 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3435 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3436 esac
3437 else
3438 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3439echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3440 { (exit 1); exit 1; }; }
3441 fi
3442fi
fc6ffb29
AJ
3443{ echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3444echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
f41c2b21
DP
3445TOOLSDIR=$wine_cv_toolsdir
3446
3447
3448
f5818d2f
AJ
3449ac_ext=c
3450ac_cpp='$CPP $CPPFLAGS'
3451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453ac_compiler_gnu=$ac_cv_c_compiler_gnu
fc6ffb29
AJ
3454{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3455echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
e2991ea7
AJ
3456# On Suns, sometimes $CPP names a directory.
3457if test -n "$CPP" && test -d "$CPP"; then
3458 CPP=
3459fi
3460if test -z "$CPP"; then
f5818d2f
AJ
3461 if test "${ac_cv_prog_CPP+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463else
3464 # Double quotes because CPP needs to be expanded
3465 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3466 do
3467 ac_preproc_ok=false
3468for ac_c_preproc_warn_flag in '' yes
3469do
3470 # Use a header file that comes with gcc, so configuring glibc
3471 # with a fresh cross-compiler works.
e24bcc77
AJ
3472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3473 # <limits.h> exists even on freestanding compilers.
e2991ea7 3474 # On the NeXT, cc -E runs the code through the compiler's parser,
f5818d2f
AJ
3475 # not just through cpp. "Syntax error" is here to catch this case.
3476 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3477/* confdefs.h. */
3478_ACEOF
3479cat confdefs.h >>conftest.$ac_ext
3480cat >>conftest.$ac_ext <<_ACEOF
3481/* end confdefs.h. */
3482#ifdef __STDC__
3483# include <limits.h>
3484#else
3485# include <assert.h>
3486#endif
875927f6 3487 Syntax error
f5818d2f 3488_ACEOF
0ebeb530
JW
3489if { (ac_try="$ac_cpp conftest.$ac_ext"
3490case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493esac
3494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 3496 ac_status=$?
11af04e3 3497 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
3498 rm -f conftest.er1
3499 cat conftest.err >&5
daa2886c 3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3501 (exit $ac_status); } >/dev/null && {
3502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 }; then
e2991ea7
AJ
3505 :
3506else
f5818d2f 3507 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
f5818d2f
AJ
3510 # Broken: fails on valid input.
3511continue
3512fi
fc6ffb29 3513
f5818d2f
AJ
3514rm -f conftest.err conftest.$ac_ext
3515
fc6ffb29 3516 # OK, works on sane cases. Now check whether nonexistent headers
f5818d2f
AJ
3517 # can be detected and how.
3518 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3519/* confdefs.h. */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h. */
f5818d2f
AJ
3524#include <ac_nonexistent.h>
3525_ACEOF
0ebeb530
JW
3526if { (ac_try="$ac_cpp conftest.$ac_ext"
3527case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530esac
3531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 3533 ac_status=$?
11af04e3 3534 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
3535 rm -f conftest.er1
3536 cat conftest.err >&5
daa2886c 3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3538 (exit $ac_status); } >/dev/null && {
3539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 }; then
f5818d2f
AJ
3542 # Broken: success on invalid input.
3543continue
18ad24a7 3544else
f5818d2f 3545 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
f5818d2f
AJ
3548 # Passes both tests.
3549ac_preproc_ok=:
3550break
3551fi
fc6ffb29 3552
f5818d2f
AJ
3553rm -f conftest.err conftest.$ac_ext
3554
3555done
3556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3557rm -f conftest.err conftest.$ac_ext
3558if $ac_preproc_ok; then
3559 break
3560fi
3561
3562 done
3563 ac_cv_prog_CPP=$CPP
3564
3565fi
3566 CPP=$ac_cv_prog_CPP
3567else
3568 ac_cv_prog_CPP=$CPP
3569fi
fc6ffb29
AJ
3570{ echo "$as_me:$LINENO: result: $CPP" >&5
3571echo "${ECHO_T}$CPP" >&6; }
f5818d2f
AJ
3572ac_preproc_ok=false
3573for ac_c_preproc_warn_flag in '' yes
3574do
3575 # Use a header file that comes with gcc, so configuring glibc
3576 # with a fresh cross-compiler works.
e24bcc77
AJ
3577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3578 # <limits.h> exists even on freestanding compilers.
f5818d2f
AJ
3579 # On the NeXT, cc -E runs the code through the compiler's parser,
3580 # not just through cpp. "Syntax error" is here to catch this case.
3581 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3582/* confdefs.h. */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
3586/* end confdefs.h. */
3587#ifdef __STDC__
3588# include <limits.h>
3589#else
3590# include <assert.h>
3591#endif
875927f6 3592 Syntax error
f5818d2f 3593_ACEOF
0ebeb530
JW
3594if { (ac_try="$ac_cpp conftest.$ac_ext"
3595case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598esac
3599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 3601 ac_status=$?
11af04e3 3602 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
3603 rm -f conftest.er1
3604 cat conftest.err >&5
daa2886c 3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3606 (exit $ac_status); } >/dev/null && {
3607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3608 test ! -s conftest.err
3609 }; then
e2991ea7
AJ
3610 :
3611else
f5818d2f 3612 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
f5818d2f
AJ
3615 # Broken: fails on valid input.
3616continue
e2991ea7 3617fi
fc6ffb29 3618
f5818d2f
AJ
3619rm -f conftest.err conftest.$ac_ext
3620
fc6ffb29 3621 # OK, works on sane cases. Now check whether nonexistent headers
f5818d2f
AJ
3622 # can be detected and how.
3623 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3624/* confdefs.h. */
3625_ACEOF
3626cat confdefs.h >>conftest.$ac_ext
3627cat >>conftest.$ac_ext <<_ACEOF
3628/* end confdefs.h. */
f5818d2f
AJ
3629#include <ac_nonexistent.h>
3630_ACEOF
0ebeb530
JW
3631if { (ac_try="$ac_cpp conftest.$ac_ext"
3632case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635esac
3636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 3638 ac_status=$?
11af04e3 3639 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
3640 rm -f conftest.er1
3641 cat conftest.err >&5
daa2886c 3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3643 (exit $ac_status); } >/dev/null && {
3644 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3645 test ! -s conftest.err
3646 }; then
f5818d2f
AJ
3647 # Broken: success on invalid input.
3648continue
3649else
3650 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3651sed 's/^/| /' conftest.$ac_ext >&5
3652
f5818d2f
AJ
3653 # Passes both tests.
3654ac_preproc_ok=:
3655break
e2991ea7 3656fi
fc6ffb29 3657
f5818d2f
AJ
3658rm -f conftest.err conftest.$ac_ext
3659
3660done
3661# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3662rm -f conftest.err conftest.$ac_ext
3663if $ac_preproc_ok; then
3664 :
e2991ea7 3665else
e24bcc77
AJ
3666 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3667See \`config.log' for more details." >&5
3668echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3669See \`config.log' for more details." >&2;}
f5818d2f 3670 { (exit 1); exit 1; }; }
e2991ea7 3671fi
e2991ea7 3672
f5818d2f
AJ
3673ac_ext=c
3674ac_cpp='$CPP $CPPFLAGS'
3675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678
daa2886c 3679
0ebeb530 3680{ echo "$as_me:$LINENO: checking for X" >&5
fc6ffb29 3681echo $ECHO_N "checking for X... $ECHO_C" >&6; }
e2991ea7 3682
daa2886c 3683
fc6ffb29 3684# Check whether --with-x was given.
d7d4fdf8 3685if test "${with_x+set}" = set; then
fc6ffb29
AJ
3686 withval=$with_x;
3687fi
e2991ea7 3688
b817f4fb 3689# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
e2991ea7 3690if test "x$with_x" = xno; then
b817f4fb
AJ
3691 # The user explicitly disabled X.
3692 have_x=disabled
e2991ea7 3693else
0ebeb530
JW
3694 case $x_includes,$x_libraries in #(
3695 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3696echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3697 { (exit 1); exit 1; }; };; #(
3698 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
f5818d2f 3699 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
3700else
3701 # One or both of the vars are not set, and there is no cached value.
f5818d2f 3702ac_x_includes=no ac_x_libraries=no
fc6ffb29 3703rm -f -r conftest.dir
f5818d2f
AJ
3704if mkdir conftest.dir; then
3705 cd conftest.dir
daa2886c 3706 cat >Imakefile <<'_ACEOF'
0ebeb530
JW
3707incroot:
3708 @echo incroot='${INCROOT}'
3709usrlibdir:
3710 @echo usrlibdir='${USRLIBDIR}'
3711libdir:
3712 @echo libdir='${LIBDIR}'
daa2886c 3713_ACEOF
fc6ffb29 3714 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
e2991ea7 3715 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0ebeb530
JW
3716 for ac_var in incroot usrlibdir libdir; do
3717 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3718 done
e2991ea7
AJ
3719 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3720 for ac_extension in a so sl; do
0ebeb530
JW
3721 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3722 test -f "$ac_im_libdir/libX11.$ac_extension"; then
875927f6 3723 ac_im_usrlibdir=$ac_im_libdir; break
e2991ea7
AJ
3724 fi
3725 done
da0cfb36
AJ
3726 # Screen out bogus values from the imake configuration. They are
3727 # bogus both because they are the default anyway, and because
3728 # using them would break gcc on systems where it needs fixed includes.
f5818d2f 3729 case $ac_im_incroot in
fc6ffb29 3730 /usr/include) ac_x_includes= ;;
f5818d2f 3731 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
e2991ea7 3732 esac
f5818d2f 3733 case $ac_im_usrlibdir in
e2991ea7 3734 /usr/lib | /lib) ;;
f5818d2f 3735 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
e2991ea7
AJ
3736 esac
3737 fi
3738 cd ..
fc6ffb29 3739 rm -f -r conftest.dir
e2991ea7
AJ
3740fi
3741
f5818d2f
AJ
3742# Standard set of common directories for X headers.
3743# Check X11 before X11Rn because it is often a symlink to the current release.
3744ac_x_header_dirs='
3745/usr/X11/include
3746/usr/X11R6/include
3747/usr/X11R5/include
3748/usr/X11R4/include
3749
3750/usr/include/X11
3751/usr/include/X11R6
3752/usr/include/X11R5
3753/usr/include/X11R4
3754
3755/usr/local/X11/include
3756/usr/local/X11R6/include
3757/usr/local/X11R5/include
3758/usr/local/X11R4/include
3759
3760/usr/local/include/X11
3761/usr/local/include/X11R6
3762/usr/local/include/X11R5
3763/usr/local/include/X11R4
3764
3765/usr/X386/include
3766/usr/x386/include
3767/usr/XFree86/include/X11
3768
3769/usr/include
3770/usr/local/include
3771/usr/unsupported/include
3772/usr/athena/include
3773/usr/local/x11r5/include
3774/usr/lpp/Xamples/include
3775
3776/usr/openwin/include
3777/usr/openwin/share/include'
3778
3779if test "$ac_x_includes" = no; then
fc6ffb29 3780 # Guess where to find include files, by looking for Xlib.h.
b817f4fb 3781 # First, try using that file with no special directory specified.
f5818d2f 3782 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3783/* confdefs.h. */
3784_ACEOF
3785cat confdefs.h >>conftest.$ac_ext
3786cat >>conftest.$ac_ext <<_ACEOF
3787/* end confdefs.h. */
0ebeb530 3788#include <X11/Xlib.h>
f5818d2f 3789_ACEOF
0ebeb530
JW
3790if { (ac_try="$ac_cpp conftest.$ac_ext"
3791case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794esac
3795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 3797 ac_status=$?
11af04e3 3798 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
3799 rm -f conftest.er1
3800 cat conftest.err >&5
daa2886c 3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3802 (exit $ac_status); } >/dev/null && {
3803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3804 test ! -s conftest.err
3805 }; then
b817f4fb
AJ
3806 # We can compile using X headers with no special include directory.
3807ac_x_includes=
e2991ea7 3808else
f5818d2f 3809 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
f5818d2f 3812 for ac_dir in $ac_x_header_dirs; do
d7d3169d 3813 if test -r "$ac_dir/X11/Xlib.h"; then
f5818d2f
AJ
3814 ac_x_includes=$ac_dir
3815 break
3816 fi
3817done
e2991ea7 3818fi
fc6ffb29 3819
f5818d2f
AJ
3820rm -f conftest.err conftest.$ac_ext
3821fi # $ac_x_includes = no
b817f4fb 3822
f5818d2f 3823if test "$ac_x_libraries" = no; then
b817f4fb 3824 # Check for the libraries.
b817f4fb
AJ
3825 # See if we find them without any special options.
3826 # Don't add to $LIBS permanently.
f5818d2f 3827 ac_save_LIBS=$LIBS
d01063e1 3828 LIBS="-lX11 $LIBS"
f5818d2f 3829 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3830/* confdefs.h. */
3831_ACEOF
3832cat confdefs.h >>conftest.$ac_ext
3833cat >>conftest.$ac_ext <<_ACEOF
3834/* end confdefs.h. */
d7d3169d 3835#include <X11/Xlib.h>
f5818d2f
AJ
3836int
3837main ()
3838{
d7d3169d 3839XrmInitialize ()
f5818d2f
AJ
3840 ;
3841 return 0;
3842}
3843_ACEOF
3844rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
3845if { (ac_try="$ac_link"
3846case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_link") 2>conftest.er1
f5818d2f 3852 ac_status=$?
875927f6
AJ
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
daa2886c 3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3857 (exit $ac_status); } && {
3858 test -z "$ac_c_werror_flag" ||
3859 test ! -s conftest.err
3860 } && test -s conftest$ac_exeext &&
3861 $as_test_x conftest$ac_exeext; then
f5818d2f 3862 LIBS=$ac_save_LIBS
b817f4fb
AJ
3863# We can link X programs with no special library path.
3864ac_x_libraries=
e2991ea7 3865else
f5818d2f 3866 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3867sed 's/^/| /' conftest.$ac_ext >&5
3868
fc6ffb29 3869 LIBS=$ac_save_LIBS
f5818d2f 3870for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
e2991ea7 3871do
f5818d2f 3872 # Don't even attempt the hair of trying to link an X program!
e2991ea7 3873 for ac_extension in a so sl; do
d01063e1 3874 if test -r "$ac_dir/libX11.$ac_extension"; then
b817f4fb 3875 ac_x_libraries=$ac_dir
e2991ea7
AJ
3876 break 2
3877 fi
3878 done
3879done
3880fi
fc6ffb29 3881
f0ca586f 3882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 3883 conftest$ac_exeext conftest.$ac_ext
f5818d2f 3884fi # $ac_x_libraries = no
b817f4fb 3885
0ebeb530
JW
3886case $ac_x_includes,$ac_x_libraries in #(
3887 no,* | *,no | *\'*)
3888 # Didn't find X, or a directory has "'" in its name.
3889 ac_cv_have_x="have_x=no";; #(
3890 *)
3891 # Record where we found X for the cache.
3892 ac_cv_have_x="have_x=yes\
3893 ac_x_includes='$ac_x_includes'\
3894 ac_x_libraries='$ac_x_libraries'"
3895esac
e2991ea7 3896fi
0ebeb530
JW
3897;; #(
3898 *) have_x=yes;;
3899 esac
b817f4fb 3900 eval "$ac_cv_have_x"
e2991ea7
AJ
3901fi # $with_x != no
3902
b817f4fb 3903if test "$have_x" != yes; then
fc6ffb29
AJ
3904 { echo "$as_me:$LINENO: result: $have_x" >&5
3905echo "${ECHO_T}$have_x" >&6; }
b817f4fb 3906 no_x=yes
e2991ea7 3907else
b817f4fb 3908 # If each of the values was on the command line, it overrides each guess.
e2991ea7
AJ
3909 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3910 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
b817f4fb 3911 # Update the cache value to reflect the command line values.
0ebeb530
JW
3912 ac_cv_have_x="have_x=yes\
3913 ac_x_includes='$x_includes'\
3914 ac_x_libraries='$x_libraries'"
3915 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3916echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
e2991ea7
AJ
3917fi
3918
b817f4fb 3919if test "$no_x" = yes; then
ff8331ea 3920 # Not all programs may use this symbol, but it does not hurt to define it.
f5818d2f 3921
daa2886c 3922cat >>confdefs.h <<\_ACEOF
da0cfb36 3923#define X_DISPLAY_MISSING 1
daa2886c 3924_ACEOF
da0cfb36
AJ
3925
3926 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
ff8331ea
AJ
3927else
3928 if test -n "$x_includes"; then
3929 X_CFLAGS="$X_CFLAGS -I$x_includes"
3930 fi
3931
ff8331ea
AJ
3932 # It would also be nice to do this for all -L options, not just this one.
3933 if test -n "$x_libraries"; then
3934 X_LIBS="$X_LIBS -L$x_libraries"
da0cfb36
AJ
3935 # For Solaris; some versions of Sun CC require a space after -R and
3936 # others require no space. Words are not sufficient . . . .
c8278926 3937 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
fc6ffb29 3938echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
c8278926
AJ
3939 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3940 ac_xsave_c_werror_flag=$ac_c_werror_flag
3941 ac_c_werror_flag=yes
3942 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
ff8331ea 3948
f5818d2f
AJ
3949int
3950main ()
3951{
da0cfb36 3952
f5818d2f
AJ
3953 ;
3954 return 0;
3955}
3956_ACEOF
3957rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
3958if { (ac_try="$ac_link"
3959case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962esac
3963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_link") 2>conftest.er1
f5818d2f 3965 ac_status=$?
875927f6
AJ
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
daa2886c 3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3970 (exit $ac_status); } && {
3971 test -z "$ac_c_werror_flag" ||
3972 test ! -s conftest.err
3973 } && test -s conftest$ac_exeext &&
3974 $as_test_x conftest$ac_exeext; then
c8278926
AJ
3975 { echo "$as_me:$LINENO: result: no" >&5
3976echo "${ECHO_T}no" >&6; }
3977 X_LIBS="$X_LIBS -R$x_libraries"
ff8331ea 3978else
f5818d2f 3979 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3980sed 's/^/| /' conftest.$ac_ext >&5
3981
da0cfb36 3982 LIBS="$ac_xsave_LIBS -R $x_libraries"
c8278926 3983 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3984/* confdefs.h. */
3985_ACEOF
3986cat confdefs.h >>conftest.$ac_ext
3987cat >>conftest.$ac_ext <<_ACEOF
3988/* end confdefs.h. */
da0cfb36 3989
f5818d2f
AJ
3990int
3991main ()
3992{
da0cfb36 3993
f5818d2f
AJ
3994 ;
3995 return 0;
3996}
3997_ACEOF
3998rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
3999if { (ac_try="$ac_link"
4000case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003esac
4004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_link") 2>conftest.er1
f5818d2f 4006 ac_status=$?
875927f6
AJ
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
daa2886c 4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4011 (exit $ac_status); } && {
4012 test -z "$ac_c_werror_flag" ||
4013 test ! -s conftest.err
4014 } && test -s conftest$ac_exeext &&
4015 $as_test_x conftest$ac_exeext; then
c8278926
AJ
4016 { echo "$as_me:$LINENO: result: yes" >&5
4017echo "${ECHO_T}yes" >&6; }
4018 X_LIBS="$X_LIBS -R $x_libraries"
ff8331ea 4019else
f5818d2f 4020 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
c8278926
AJ
4023 { echo "$as_me:$LINENO: result: neither works" >&5
4024echo "${ECHO_T}neither works" >&6; }
ff8331ea 4025fi
fc6ffb29 4026
f0ca586f 4027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4028 conftest$ac_exeext conftest.$ac_ext
c8278926
AJ
4029fi
4030
f0ca586f 4031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
c8278926
AJ
4032 conftest$ac_exeext conftest.$ac_ext
4033 ac_c_werror_flag=$ac_xsave_c_werror_flag
4034 LIBS=$ac_xsave_LIBS
da0cfb36 4035 fi
ff8331ea
AJ
4036
4037 # Check for system-dependent libraries X programs must link with.
da0cfb36
AJ
4038 # Do this before checking for the system-independent R6 libraries
4039 # (-lICE), since we may need -lsocket or whatever for X linking.
ff8331ea
AJ
4040
4041 if test "$ISC" = yes; then
4042 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4043 else
f5818d2f
AJ
4044 # Martyn Johnson says this is needed for Ultrix, if the X
4045 # libraries were built with DECnet support. And Karl Berry says
ff8331ea 4046 # the Alpha needs dnet_stub (dnet does not exist).
f5818d2f
AJ
4047 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4048 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4049/* confdefs.h. */
4050_ACEOF
4051cat confdefs.h >>conftest.$ac_ext
4052cat >>conftest.$ac_ext <<_ACEOF
4053/* end confdefs.h. */
f5818d2f 4054
fc6ffb29
AJ
4055/* Override any GCC internal prototype to avoid an error.
4056 Use char because int might match the return type of a GCC
4057 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4058#ifdef __cplusplus
4059extern "C"
4060#endif
f5818d2f
AJ
4061char XOpenDisplay ();
4062int
4063main ()
4064{
fc6ffb29 4065return XOpenDisplay ();
f5818d2f
AJ
4066 ;
4067 return 0;
4068}
4069_ACEOF
4070rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4071if { (ac_try="$ac_link"
4072case "(($ac_try" in
4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074 *) ac_try_echo=$ac_try;;
4075esac
4076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077 (eval "$ac_link") 2>conftest.er1
f5818d2f 4078 ac_status=$?
875927f6
AJ
4079 grep -v '^ *+' conftest.er1 >conftest.err
4080 rm -f conftest.er1
4081 cat conftest.err >&5
daa2886c 4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4083 (exit $ac_status); } && {
4084 test -z "$ac_c_werror_flag" ||
4085 test ! -s conftest.err
4086 } && test -s conftest$ac_exeext &&
4087 $as_test_x conftest$ac_exeext; then
f5818d2f 4088 :
ff8331ea 4089else
f5818d2f 4090 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4091sed 's/^/| /' conftest.$ac_ext >&5
4092
fc6ffb29
AJ
4093 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4094echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
f5818d2f
AJ
4095if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098 ac_check_lib_save_LIBS=$LIBS
4099LIBS="-ldnet $LIBS"
4100cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4101/* confdefs.h. */
4102_ACEOF
4103cat confdefs.h >>conftest.$ac_ext
4104cat >>conftest.$ac_ext <<_ACEOF
4105/* end confdefs.h. */
ff8331ea 4106
fc6ffb29
AJ
4107/* Override any GCC internal prototype to avoid an error.
4108 Use char because int might match the return type of a GCC
4109 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4110#ifdef __cplusplus
4111extern "C"
4112#endif
f5818d2f
AJ
4113char dnet_ntoa ();
4114int
4115main ()
4116{
fc6ffb29 4117return dnet_ntoa ();
f5818d2f
AJ
4118 ;
4119 return 0;
4120}
4121_ACEOF
4122rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4123if { (ac_try="$ac_link"
4124case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127esac
4128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_link") 2>conftest.er1
f5818d2f 4130 ac_status=$?
875927f6
AJ
4131 grep -v '^ *+' conftest.er1 >conftest.err
4132 rm -f conftest.er1
4133 cat conftest.err >&5
daa2886c 4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4135 (exit $ac_status); } && {
4136 test -z "$ac_c_werror_flag" ||
4137 test ! -s conftest.err
4138 } && test -s conftest$ac_exeext &&
4139 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4140 ac_cv_lib_dnet_dnet_ntoa=yes
4141else
4142 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4143sed 's/^/| /' conftest.$ac_ext >&5
4144
fc6ffb29 4145 ac_cv_lib_dnet_dnet_ntoa=no
f5818d2f 4146fi
fc6ffb29 4147
f0ca586f 4148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4149 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4150LIBS=$ac_check_lib_save_LIBS
4151fi
fc6ffb29
AJ
4152{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4153echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
f5818d2f 4154if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
ff8331ea 4155 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
ff8331ea
AJ
4156fi
4157
59730ae1 4158 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
fc6ffb29
AJ
4159 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4160echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
f5818d2f
AJ
4161if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 4163else
f5818d2f 4164 ac_check_lib_save_LIBS=$LIBS
ff8331ea 4165LIBS="-ldnet_stub $LIBS"
f5818d2f 4166cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4167/* confdefs.h. */
4168_ACEOF
4169cat confdefs.h >>conftest.$ac_ext
4170cat >>conftest.$ac_ext <<_ACEOF
4171/* end confdefs.h. */
f5818d2f 4172
fc6ffb29
AJ
4173/* Override any GCC internal prototype to avoid an error.
4174 Use char because int might match the return type of a GCC
4175 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4176#ifdef __cplusplus
4177extern "C"
4178#endif
f5818d2f
AJ
4179char dnet_ntoa ();
4180int
4181main ()
4182{
fc6ffb29 4183return dnet_ntoa ();
f5818d2f
AJ
4184 ;
4185 return 0;
4186}
4187_ACEOF
4188rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4189if { (ac_try="$ac_link"
4190case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193esac
4194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_link") 2>conftest.er1
f5818d2f 4196 ac_status=$?
875927f6
AJ
4197 grep -v '^ *+' conftest.er1 >conftest.err
4198 rm -f conftest.er1
4199 cat conftest.err >&5
daa2886c 4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4201 (exit $ac_status); } && {
4202 test -z "$ac_c_werror_flag" ||
4203 test ! -s conftest.err
4204 } && test -s conftest$ac_exeext &&
4205 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4206 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4207else
4208 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4209sed 's/^/| /' conftest.$ac_ext >&5
4210
fc6ffb29 4211 ac_cv_lib_dnet_stub_dnet_ntoa=no
f5818d2f 4212fi
fc6ffb29 4213
f0ca586f 4214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4215 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4216LIBS=$ac_check_lib_save_LIBS
4217fi
fc6ffb29
AJ
4218{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4219echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
f5818d2f 4220if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
ff8331ea 4221 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
ff8331ea
AJ
4222fi
4223
4224 fi
f5818d2f 4225fi
fc6ffb29 4226
f0ca586f 4227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4228 conftest$ac_exeext conftest.$ac_ext
f5818d2f 4229 LIBS="$ac_xsave_LIBS"
ff8331ea
AJ
4230
4231 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4232 # to get the SysV transport functions.
f5818d2f 4233 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
da0cfb36
AJ
4234 # needs -lnsl.
4235 # The nsl library prevents programs from opening the X display
f5818d2f
AJ
4236 # on Irix 5.2, according to T.E. Dickey.
4237 # The functions gethostbyname, getservbyname, and inet_addr are
4238 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
fc6ffb29
AJ
4239 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4240echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
f5818d2f
AJ
4241if test "${ac_cv_func_gethostbyname+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243else
4244 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4245/* confdefs.h. */
4246_ACEOF
4247cat confdefs.h >>conftest.$ac_ext
4248cat >>conftest.$ac_ext <<_ACEOF
4249/* end confdefs.h. */
875927f6
AJ
4250/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4252#define gethostbyname innocuous_gethostbyname
4253
da0cfb36 4254/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
4255 which can conflict with char gethostbyname (); below.
4256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4257 <limits.h> exists even on freestanding compilers. */
875927f6 4258
e24bcc77
AJ
4259#ifdef __STDC__
4260# include <limits.h>
4261#else
4262# include <assert.h>
4263#endif
875927f6
AJ
4264
4265#undef gethostbyname
4266
fc6ffb29
AJ
4267/* Override any GCC internal prototype to avoid an error.
4268 Use char because int might match the return type of a GCC
4269 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4270#ifdef __cplusplus
4271extern "C"
4272#endif
f5818d2f 4273char gethostbyname ();
da0cfb36
AJ
4274/* The GNU C library defines this for functions which it implements
4275 to always fail with ENOSYS. Some functions are actually named
4276 something starting with __ and the normal name is an alias. */
fc6ffb29 4277#if defined __stub_gethostbyname || defined __stub___gethostbyname
da0cfb36 4278choke me
da0cfb36
AJ
4279#endif
4280
e24bcc77
AJ
4281int
4282main ()
4283{
fc6ffb29 4284return gethostbyname ();
f5818d2f
AJ
4285 ;
4286 return 0;
4287}
4288_ACEOF
4289rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4290if { (ac_try="$ac_link"
4291case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294esac
4295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_link") 2>conftest.er1
f5818d2f 4297 ac_status=$?
875927f6
AJ
4298 grep -v '^ *+' conftest.er1 >conftest.err
4299 rm -f conftest.er1
4300 cat conftest.err >&5
daa2886c 4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4302 (exit $ac_status); } && {
4303 test -z "$ac_c_werror_flag" ||
4304 test ! -s conftest.err
4305 } && test -s conftest$ac_exeext &&
4306 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4307 ac_cv_func_gethostbyname=yes
4308else
4309 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4310sed 's/^/| /' conftest.$ac_ext >&5
4311
fc6ffb29 4312 ac_cv_func_gethostbyname=no
f5818d2f 4313fi
fc6ffb29 4314
f0ca586f 4315rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4316 conftest$ac_exeext conftest.$ac_ext
f5818d2f 4317fi
fc6ffb29
AJ
4318{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4319echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
da0cfb36
AJ
4320
4321 if test $ac_cv_func_gethostbyname = no; then
fc6ffb29
AJ
4322 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4323echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
f5818d2f
AJ
4324if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 4326else
f5818d2f 4327 ac_check_lib_save_LIBS=$LIBS
ff8331ea 4328LIBS="-lnsl $LIBS"
f5818d2f 4329cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4330/* confdefs.h. */
4331_ACEOF
4332cat confdefs.h >>conftest.$ac_ext
4333cat >>conftest.$ac_ext <<_ACEOF
4334/* end confdefs.h. */
f5818d2f 4335
fc6ffb29
AJ
4336/* Override any GCC internal prototype to avoid an error.
4337 Use char because int might match the return type of a GCC
4338 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4339#ifdef __cplusplus
4340extern "C"
4341#endif
f5818d2f
AJ
4342char gethostbyname ();
4343int
4344main ()
4345{
fc6ffb29 4346return gethostbyname ();
f5818d2f
AJ
4347 ;
4348 return 0;
4349}
4350_ACEOF
4351rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4352if { (ac_try="$ac_link"
4353case "(($ac_try" in
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4356esac
4357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_link") 2>conftest.er1
f5818d2f 4359 ac_status=$?
875927f6
AJ
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
daa2886c 4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4364 (exit $ac_status); } && {
4365 test -z "$ac_c_werror_flag" ||
4366 test ! -s conftest.err
4367 } && test -s conftest$ac_exeext &&
4368 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4369 ac_cv_lib_nsl_gethostbyname=yes
4370else
4371 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4372sed 's/^/| /' conftest.$ac_ext >&5
4373
fc6ffb29 4374 ac_cv_lib_nsl_gethostbyname=no
f5818d2f 4375fi
fc6ffb29 4376
f0ca586f 4377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4378 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4379LIBS=$ac_check_lib_save_LIBS
4380fi
fc6ffb29
AJ
4381{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4382echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
f5818d2f
AJ
4383if test $ac_cv_lib_nsl_gethostbyname = yes; then
4384 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4385fi
ff8331ea 4386
f5818d2f 4387 if test $ac_cv_lib_nsl_gethostbyname = no; then
fc6ffb29
AJ
4388 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4389echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
f5818d2f
AJ
4390if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 4392else
f5818d2f
AJ
4393 ac_check_lib_save_LIBS=$LIBS
4394LIBS="-lbsd $LIBS"
4395cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4396/* confdefs.h. */
4397_ACEOF
4398cat confdefs.h >>conftest.$ac_ext
4399cat >>conftest.$ac_ext <<_ACEOF
4400/* end confdefs.h. */
ff8331ea 4401
fc6ffb29
AJ
4402/* Override any GCC internal prototype to avoid an error.
4403 Use char because int might match the return type of a GCC
4404 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4405#ifdef __cplusplus
4406extern "C"
4407#endif
f5818d2f
AJ
4408char gethostbyname ();
4409int
4410main ()
4411{
fc6ffb29 4412return gethostbyname ();
f5818d2f
AJ
4413 ;
4414 return 0;
4415}
4416_ACEOF
4417rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4418if { (ac_try="$ac_link"
4419case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422esac
4423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_link") 2>conftest.er1
f5818d2f 4425 ac_status=$?
875927f6
AJ
4426 grep -v '^ *+' conftest.er1 >conftest.err
4427 rm -f conftest.er1
4428 cat conftest.err >&5
daa2886c 4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4430 (exit $ac_status); } && {
4431 test -z "$ac_c_werror_flag" ||
4432 test ! -s conftest.err
4433 } && test -s conftest$ac_exeext &&
4434 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4435 ac_cv_lib_bsd_gethostbyname=yes
4436else
4437 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4438sed 's/^/| /' conftest.$ac_ext >&5
4439
fc6ffb29 4440 ac_cv_lib_bsd_gethostbyname=no
f5818d2f 4441fi
fc6ffb29 4442
f0ca586f 4443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4444 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4445LIBS=$ac_check_lib_save_LIBS
4446fi
fc6ffb29
AJ
4447{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4448echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
f5818d2f
AJ
4449if test $ac_cv_lib_bsd_gethostbyname = yes; then
4450 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
ff8331ea
AJ
4451fi
4452
f5818d2f 4453 fi
da0cfb36 4454 fi
ff8331ea
AJ
4455
4456 # lieder@skyler.mavd.honeywell.com says without -lsocket,
da0cfb36
AJ
4457 # socket/setsockopt and other routines are undefined under SCO ODT
4458 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
f5818d2f 4459 # on later versions), says Simon Leinen: it contains gethostby*
11af04e3 4460 # variants that don't use the name server (or something). -lsocket
f5818d2f
AJ
4461 # must be given before -lnsl if both are needed. We assume that
4462 # if connect needs -lnsl, so does gethostbyname.
fc6ffb29
AJ
4463 { echo "$as_me:$LINENO: checking for connect" >&5
4464echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
f5818d2f
AJ
4465if test "${ac_cv_func_connect+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467else
4468 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4469/* confdefs.h. */
4470_ACEOF
4471cat confdefs.h >>conftest.$ac_ext
4472cat >>conftest.$ac_ext <<_ACEOF
4473/* end confdefs.h. */
875927f6
AJ
4474/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4476#define connect innocuous_connect
4477
da0cfb36 4478/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
4479 which can conflict with char connect (); below.
4480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4481 <limits.h> exists even on freestanding compilers. */
875927f6 4482
e24bcc77
AJ
4483#ifdef __STDC__
4484# include <limits.h>
4485#else
4486# include <assert.h>
4487#endif
875927f6
AJ
4488
4489#undef connect
4490
fc6ffb29
AJ
4491/* Override any GCC internal prototype to avoid an error.
4492 Use char because int might match the return type of a GCC
4493 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4494#ifdef __cplusplus
4495extern "C"
4496#endif
f5818d2f 4497char connect ();
da0cfb36
AJ
4498/* The GNU C library defines this for functions which it implements
4499 to always fail with ENOSYS. Some functions are actually named
4500 something starting with __ and the normal name is an alias. */
fc6ffb29 4501#if defined __stub_connect || defined __stub___connect
da0cfb36 4502choke me
da0cfb36
AJ
4503#endif
4504
e24bcc77
AJ
4505int
4506main ()
4507{
fc6ffb29 4508return connect ();
f5818d2f
AJ
4509 ;
4510 return 0;
4511}
4512_ACEOF
4513rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4514if { (ac_try="$ac_link"
4515case "(($ac_try" in
4516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517 *) ac_try_echo=$ac_try;;
4518esac
4519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520 (eval "$ac_link") 2>conftest.er1
f5818d2f 4521 ac_status=$?
875927f6
AJ
4522 grep -v '^ *+' conftest.er1 >conftest.err
4523 rm -f conftest.er1
4524 cat conftest.err >&5
daa2886c 4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4526 (exit $ac_status); } && {
4527 test -z "$ac_c_werror_flag" ||
4528 test ! -s conftest.err
4529 } && test -s conftest$ac_exeext &&
4530 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4531 ac_cv_func_connect=yes
4532else
4533 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4534sed 's/^/| /' conftest.$ac_ext >&5
4535
fc6ffb29 4536 ac_cv_func_connect=no
f5818d2f 4537fi
fc6ffb29 4538
f0ca586f 4539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4540 conftest$ac_exeext conftest.$ac_ext
f5818d2f 4541fi
fc6ffb29
AJ
4542{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4543echo "${ECHO_T}$ac_cv_func_connect" >&6; }
da0cfb36
AJ
4544
4545 if test $ac_cv_func_connect = no; then
fc6ffb29
AJ
4546 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4547echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
f5818d2f
AJ
4548if test "${ac_cv_lib_socket_connect+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 4550else
f5818d2f 4551 ac_check_lib_save_LIBS=$LIBS
da0cfb36 4552LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
f5818d2f 4553cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4554/* confdefs.h. */
4555_ACEOF
4556cat confdefs.h >>conftest.$ac_ext
4557cat >>conftest.$ac_ext <<_ACEOF
4558/* end confdefs.h. */
f5818d2f 4559
fc6ffb29
AJ
4560/* Override any GCC internal prototype to avoid an error.
4561 Use char because int might match the return type of a GCC
4562 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4563#ifdef __cplusplus
4564extern "C"
4565#endif
f5818d2f
AJ
4566char connect ();
4567int
4568main ()
4569{
fc6ffb29 4570return connect ();
f5818d2f
AJ
4571 ;
4572 return 0;
4573}
4574_ACEOF
4575rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4576if { (ac_try="$ac_link"
4577case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580esac
4581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582 (eval "$ac_link") 2>conftest.er1
f5818d2f 4583 ac_status=$?
875927f6
AJ
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
daa2886c 4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4588 (exit $ac_status); } && {
4589 test -z "$ac_c_werror_flag" ||
4590 test ! -s conftest.err
4591 } && test -s conftest$ac_exeext &&
4592 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4593 ac_cv_lib_socket_connect=yes
4594else
4595 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
fc6ffb29 4598 ac_cv_lib_socket_connect=no
f5818d2f 4599fi
fc6ffb29 4600
f0ca586f 4601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4602 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4603LIBS=$ac_check_lib_save_LIBS
4604fi
fc6ffb29
AJ
4605{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4606echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
f5818d2f 4607if test $ac_cv_lib_socket_connect = yes; then
da0cfb36 4608 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
ff8331ea
AJ
4609fi
4610
da0cfb36
AJ
4611 fi
4612
f5818d2f 4613 # Guillermo Gomez says -lposix is necessary on A/UX.
fc6ffb29
AJ
4614 { echo "$as_me:$LINENO: checking for remove" >&5
4615echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
f5818d2f
AJ
4616if test "${ac_cv_func_remove+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 4618else
f5818d2f 4619 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4620/* confdefs.h. */
4621_ACEOF
4622cat confdefs.h >>conftest.$ac_ext
4623cat >>conftest.$ac_ext <<_ACEOF
4624/* end confdefs.h. */
875927f6
AJ
4625/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4627#define remove innocuous_remove
4628
da0cfb36 4629/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
4630 which can conflict with char remove (); below.
4631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4632 <limits.h> exists even on freestanding compilers. */
875927f6 4633
e24bcc77
AJ
4634#ifdef __STDC__
4635# include <limits.h>
4636#else
4637# include <assert.h>
4638#endif
875927f6
AJ
4639
4640#undef remove
4641
fc6ffb29
AJ
4642/* Override any GCC internal prototype to avoid an error.
4643 Use char because int might match the return type of a GCC
4644 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4645#ifdef __cplusplus
4646extern "C"
4647#endif
f5818d2f 4648char remove ();
da0cfb36
AJ
4649/* The GNU C library defines this for functions which it implements
4650 to always fail with ENOSYS. Some functions are actually named
4651 something starting with __ and the normal name is an alias. */
fc6ffb29 4652#if defined __stub_remove || defined __stub___remove
da0cfb36 4653choke me
da0cfb36
AJ
4654#endif
4655
e24bcc77
AJ
4656int
4657main ()
4658{
fc6ffb29 4659return remove ();
f5818d2f
AJ
4660 ;
4661 return 0;
4662}
4663_ACEOF
4664rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4665if { (ac_try="$ac_link"
4666case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669esac
4670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_link") 2>conftest.er1
f5818d2f 4672 ac_status=$?
875927f6
AJ
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
daa2886c 4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4677 (exit $ac_status); } && {
4678 test -z "$ac_c_werror_flag" ||
4679 test ! -s conftest.err
4680 } && test -s conftest$ac_exeext &&
4681 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4682 ac_cv_func_remove=yes
4683else
4684 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4685sed 's/^/| /' conftest.$ac_ext >&5
4686
fc6ffb29 4687 ac_cv_func_remove=no
f5818d2f 4688fi
fc6ffb29 4689
f0ca586f 4690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4691 conftest$ac_exeext conftest.$ac_ext
f5818d2f 4692fi
fc6ffb29
AJ
4693{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4694echo "${ECHO_T}$ac_cv_func_remove" >&6; }
da0cfb36
AJ
4695
4696 if test $ac_cv_func_remove = no; then
fc6ffb29
AJ
4697 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4698echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
f5818d2f
AJ
4699if test "${ac_cv_lib_posix_remove+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
e2bfa4c7 4701else
f5818d2f 4702 ac_check_lib_save_LIBS=$LIBS
da0cfb36 4703LIBS="-lposix $LIBS"
f5818d2f 4704cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4705/* confdefs.h. */
4706_ACEOF
4707cat confdefs.h >>conftest.$ac_ext
4708cat >>conftest.$ac_ext <<_ACEOF
4709/* end confdefs.h. */
f5818d2f 4710
fc6ffb29
AJ
4711/* Override any GCC internal prototype to avoid an error.
4712 Use char because int might match the return type of a GCC
4713 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4714#ifdef __cplusplus
4715extern "C"
4716#endif
f5818d2f
AJ
4717char remove ();
4718int
4719main ()
4720{
fc6ffb29 4721return remove ();
f5818d2f
AJ
4722 ;
4723 return 0;
4724}
4725_ACEOF
4726rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4727if { (ac_try="$ac_link"
4728case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731esac
4732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733 (eval "$ac_link") 2>conftest.er1
f5818d2f 4734 ac_status=$?
875927f6
AJ
4735 grep -v '^ *+' conftest.er1 >conftest.err
4736 rm -f conftest.er1
4737 cat conftest.err >&5
daa2886c 4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4739 (exit $ac_status); } && {
4740 test -z "$ac_c_werror_flag" ||
4741 test ! -s conftest.err
4742 } && test -s conftest$ac_exeext &&
4743 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4744 ac_cv_lib_posix_remove=yes
4745else
4746 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
fc6ffb29 4749 ac_cv_lib_posix_remove=no
f5818d2f 4750fi
fc6ffb29 4751
f0ca586f 4752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4753 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4754LIBS=$ac_check_lib_save_LIBS
4755fi
fc6ffb29
AJ
4756{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4757echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
f5818d2f 4758if test $ac_cv_lib_posix_remove = yes; then
da0cfb36 4759 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
da0cfb36
AJ
4760fi
4761
4762 fi
4763
4764 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
fc6ffb29
AJ
4765 { echo "$as_me:$LINENO: checking for shmat" >&5
4766echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
f5818d2f
AJ
4767if test "${ac_cv_func_shmat+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 4769else
f5818d2f 4770 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4771/* confdefs.h. */
4772_ACEOF
4773cat confdefs.h >>conftest.$ac_ext
4774cat >>conftest.$ac_ext <<_ACEOF
4775/* end confdefs.h. */
875927f6
AJ
4776/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4778#define shmat innocuous_shmat
4779
da0cfb36 4780/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
4781 which can conflict with char shmat (); below.
4782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4783 <limits.h> exists even on freestanding compilers. */
875927f6 4784
e24bcc77
AJ
4785#ifdef __STDC__
4786# include <limits.h>
4787#else
4788# include <assert.h>
4789#endif
875927f6
AJ
4790
4791#undef shmat
4792
fc6ffb29
AJ
4793/* Override any GCC internal prototype to avoid an error.
4794 Use char because int might match the return type of a GCC
4795 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4796#ifdef __cplusplus
4797extern "C"
4798#endif
f5818d2f 4799char shmat ();
da0cfb36
AJ
4800/* The GNU C library defines this for functions which it implements
4801 to always fail with ENOSYS. Some functions are actually named
4802 something starting with __ and the normal name is an alias. */
fc6ffb29 4803#if defined __stub_shmat || defined __stub___shmat
da0cfb36 4804choke me
da0cfb36
AJ
4805#endif
4806
e24bcc77
AJ
4807int
4808main ()
4809{
fc6ffb29 4810return shmat ();
f5818d2f
AJ
4811 ;
4812 return 0;
4813}
4814_ACEOF
4815rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4816if { (ac_try="$ac_link"
4817case "(($ac_try" in
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4820esac
4821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4822 (eval "$ac_link") 2>conftest.er1
f5818d2f 4823 ac_status=$?
875927f6
AJ
4824 grep -v '^ *+' conftest.er1 >conftest.err
4825 rm -f conftest.er1
4826 cat conftest.err >&5
daa2886c 4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4828 (exit $ac_status); } && {
4829 test -z "$ac_c_werror_flag" ||
4830 test ! -s conftest.err
4831 } && test -s conftest$ac_exeext &&
4832 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4833 ac_cv_func_shmat=yes
4834else
4835 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4836sed 's/^/| /' conftest.$ac_ext >&5
4837
fc6ffb29 4838 ac_cv_func_shmat=no
f5818d2f 4839fi
fc6ffb29 4840
f0ca586f 4841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4842 conftest$ac_exeext conftest.$ac_ext
f5818d2f 4843fi
fc6ffb29
AJ
4844{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4845echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
da0cfb36
AJ
4846
4847 if test $ac_cv_func_shmat = no; then
fc6ffb29
AJ
4848 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4849echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
f5818d2f
AJ
4850if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 4852else
f5818d2f 4853 ac_check_lib_save_LIBS=$LIBS
da0cfb36 4854LIBS="-lipc $LIBS"
f5818d2f 4855cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4856/* confdefs.h. */
4857_ACEOF
4858cat confdefs.h >>conftest.$ac_ext
4859cat >>conftest.$ac_ext <<_ACEOF
4860/* end confdefs.h. */
f5818d2f 4861
fc6ffb29
AJ
4862/* Override any GCC internal prototype to avoid an error.
4863 Use char because int might match the return type of a GCC
4864 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4865#ifdef __cplusplus
4866extern "C"
4867#endif
f5818d2f
AJ
4868char shmat ();
4869int
4870main ()
4871{
fc6ffb29 4872return shmat ();
f5818d2f
AJ
4873 ;
4874 return 0;
4875}
4876_ACEOF
4877rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4878if { (ac_try="$ac_link"
4879case "(($ac_try" in
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4882esac
4883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_link") 2>conftest.er1
f5818d2f 4885 ac_status=$?
875927f6
AJ
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
daa2886c 4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4890 (exit $ac_status); } && {
4891 test -z "$ac_c_werror_flag" ||
4892 test ! -s conftest.err
4893 } && test -s conftest$ac_exeext &&
4894 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4895 ac_cv_lib_ipc_shmat=yes
4896else
4897 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4898sed 's/^/| /' conftest.$ac_ext >&5
4899
fc6ffb29 4900 ac_cv_lib_ipc_shmat=no
f5818d2f 4901fi
fc6ffb29 4902
f0ca586f 4903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4904 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4905LIBS=$ac_check_lib_save_LIBS
4906fi
fc6ffb29
AJ
4907{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4908echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
f5818d2f 4909if test $ac_cv_lib_ipc_shmat = yes; then
da0cfb36 4910 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
e2bfa4c7
AJ
4911fi
4912
ff8331ea
AJ
4913 fi
4914 fi
da0cfb36
AJ
4915
4916 # Check for libraries that X11R6 Xt/Xaw programs need.
f5818d2f 4917 ac_save_LDFLAGS=$LDFLAGS
da0cfb36
AJ
4918 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4919 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4920 # check for ICE first), but we must link in the order -lSM -lICE or
4921 # we get undefined symbols. So assume we have SM if we have ICE.
4922 # These have to be linked with before -lX11, unlike the other
4923 # libraries we check for below, so use a different variable.
f5818d2f 4924 # John Interrante, Karl Berry
fc6ffb29
AJ
4925 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4926echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
f5818d2f
AJ
4927if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4929else
4930 ac_check_lib_save_LIBS=$LIBS
18ad24a7 4931LIBS="-lICE $X_EXTRA_LIBS $LIBS"
f5818d2f 4932cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4933/* confdefs.h. */
4934_ACEOF
4935cat confdefs.h >>conftest.$ac_ext
4936cat >>conftest.$ac_ext <<_ACEOF
4937/* end confdefs.h. */
f5818d2f 4938
fc6ffb29
AJ
4939/* Override any GCC internal prototype to avoid an error.
4940 Use char because int might match the return type of a GCC
4941 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4942#ifdef __cplusplus
4943extern "C"
4944#endif
f5818d2f
AJ
4945char IceConnectionNumber ();
4946int
4947main ()
4948{
fc6ffb29 4949return IceConnectionNumber ();
f5818d2f
AJ
4950 ;
4951 return 0;
4952}
4953_ACEOF
4954rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4955if { (ac_try="$ac_link"
4956case "(($ac_try" in
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4959esac
4960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_link") 2>conftest.er1
f5818d2f 4962 ac_status=$?
875927f6
AJ
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
daa2886c 4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4967 (exit $ac_status); } && {
4968 test -z "$ac_c_werror_flag" ||
4969 test ! -s conftest.err
4970 } && test -s conftest$ac_exeext &&
4971 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4972 ac_cv_lib_ICE_IceConnectionNumber=yes
4973else
4974 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4975sed 's/^/| /' conftest.$ac_ext >&5
4976
fc6ffb29 4977 ac_cv_lib_ICE_IceConnectionNumber=no
f5818d2f 4978fi
fc6ffb29 4979
f0ca586f 4980rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4981 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4982LIBS=$ac_check_lib_save_LIBS
4983fi
fc6ffb29
AJ
4984{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4985echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
f5818d2f 4986if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
da0cfb36 4987 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
da0cfb36
AJ
4988fi
4989
f5818d2f 4990 LDFLAGS=$ac_save_LDFLAGS
da0cfb36 4991
ff8331ea
AJ
4992fi
4993
e2991ea7 4994
4091627c 4995for ac_prog in flex
5c5a6217 4996do
f5818d2f 4997 # Extract the first word of "$ac_prog", so it can be a program name with args.
5c5a6217 4998set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
4999{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4091627c 5001if test "${ac_cv_prog_FLEX+set}" = set; then
f5818d2f 5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5c5a6217 5003else
4091627c
AJ
5004 if test -n "$FLEX"; then
5005 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5c5a6217 5006else
daa2886c
AJ
5007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008for as_dir in $PATH
5009do
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4091627c 5014 ac_cv_prog_FLEX="$ac_prog"
daa2886c
AJ
5015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5017 fi
5018done
f5818d2f 5019done
fc6ffb29 5020IFS=$as_save_IFS
f5818d2f 5021
5c5a6217
MM
5022fi
5023fi
4091627c
AJ
5024FLEX=$ac_cv_prog_FLEX
5025if test -n "$FLEX"; then
5026 { echo "$as_me:$LINENO: result: $FLEX" >&5
5027echo "${ECHO_T}$FLEX" >&6; }
5c5a6217 5028else
fc6ffb29
AJ
5029 { echo "$as_me:$LINENO: result: no" >&5
5030echo "${ECHO_T}no" >&6; }
5c5a6217
MM
5031fi
5032
fc6ffb29 5033
4091627c 5034 test -n "$FLEX" && break
5c5a6217 5035done
4091627c 5036test -n "$FLEX" || FLEX="none"
5c5a6217 5037
4091627c 5038if test "$FLEX" = "none"
5c5a6217 5039then
4091627c
AJ
5040 { { echo "$as_me:$LINENO: error: no suitable flex found. Please install the 'flex' package." >&5
5041echo "$as_me: error: no suitable flex found. Please install the 'flex' package." >&2;}
f5818d2f 5042 { (exit 1); exit 1; }; }
5c5a6217 5043fi
c068f670
MM
5044
5045for ac_prog in bison
b53bb419 5046do
f5818d2f 5047 # Extract the first word of "$ac_prog", so it can be a program name with args.
b53bb419 5048set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
5049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
c068f670 5051if test "${ac_cv_prog_BISON+set}" = set; then
f5818d2f 5052 echo $ECHO_N "(cached) $ECHO_C" >&6
b53bb419 5053else
c068f670
MM
5054 if test -n "$BISON"; then
5055 ac_cv_prog_BISON="$BISON" # Let the user override the test.
b53bb419 5056else
daa2886c
AJ
5057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058for as_dir in $PATH
5059do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c068f670 5064 ac_cv_prog_BISON="$ac_prog"
daa2886c
AJ
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068done
f5818d2f 5069done
fc6ffb29 5070IFS=$as_save_IFS
f5818d2f 5071
b53bb419
MM
5072fi
5073fi
c068f670
MM
5074BISON=$ac_cv_prog_BISON
5075if test -n "$BISON"; then
fc6ffb29
AJ
5076 { echo "$as_me:$LINENO: result: $BISON" >&5
5077echo "${ECHO_T}$BISON" >&6; }
b53bb419 5078else
fc6ffb29
AJ
5079 { echo "$as_me:$LINENO: result: no" >&5
5080echo "${ECHO_T}no" >&6; }
b53bb419
MM
5081fi
5082
fc6ffb29 5083
c068f670 5084 test -n "$BISON" && break
b53bb419 5085done
c068f670 5086test -n "$BISON" || BISON="none"
b53bb419 5087
c068f670 5088if test "$BISON" = "none"
b53bb419 5089then
c068f670
MM
5090 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5091echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
f5818d2f
AJ
5092 { (exit 1); exit 1; }; }
5093fi
fc01b729 5094
1d4db787 5095if test -n "$ac_tool_prefix"; then
c80c290e
AJ
5096 for ac_prog in gas as
5097 do
5098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5099set dummy $ac_tool_prefix$ac_prog; ac_word=$2
fc6ffb29
AJ
5100{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1d4db787
MM
5102if test "${ac_cv_prog_AS+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105 if test -n "$AS"; then
5106 ac_cv_prog_AS="$AS" # Let the user override the test.
5107else
5108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c80c290e 5115 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
1d4db787
MM
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119done
5120done
fc6ffb29 5121IFS=$as_save_IFS
1d4db787
MM
5122
5123fi
5124fi
5125AS=$ac_cv_prog_AS
5126if test -n "$AS"; then
fc6ffb29
AJ
5127 { echo "$as_me:$LINENO: result: $AS" >&5
5128echo "${ECHO_T}$AS" >&6; }
1d4db787 5129else
fc6ffb29
AJ
5130 { echo "$as_me:$LINENO: result: no" >&5
5131echo "${ECHO_T}no" >&6; }
1d4db787
MM
5132fi
5133
fc6ffb29 5134
c80c290e
AJ
5135 test -n "$AS" && break
5136 done
1d4db787 5137fi
c80c290e 5138if test -z "$AS"; then
1d4db787 5139 ac_ct_AS=$AS
c80c290e
AJ
5140 for ac_prog in gas as
5141do
5142 # Extract the first word of "$ac_prog", so it can be a program name with args.
5143set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
5144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1d4db787
MM
5146if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148else
5149 if test -n "$ac_ct_AS"; then
5150 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5151else
5152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153for as_dir in $PATH
5154do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c80c290e 5159 ac_cv_prog_ac_ct_AS="$ac_prog"
1d4db787
MM
5160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163done
5164done
fc6ffb29 5165IFS=$as_save_IFS
1d4db787 5166
1d4db787
MM
5167fi
5168fi
5169ac_ct_AS=$ac_cv_prog_ac_ct_AS
5170if test -n "$ac_ct_AS"; then
fc6ffb29
AJ
5171 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5172echo "${ECHO_T}$ac_ct_AS" >&6; }
1d4db787 5173else
fc6ffb29
AJ
5174 { echo "$as_me:$LINENO: result: no" >&5
5175echo "${ECHO_T}no" >&6; }
1d4db787
MM
5176fi
5177
fc6ffb29 5178
c80c290e
AJ
5179 test -n "$ac_ct_AS" && break
5180done
c80c290e 5181
fc6ffb29
AJ
5182 if test "x$ac_ct_AS" = x; then
5183 AS="as"
5184 else
5185 case $cross_compiling:$ac_tool_warned in
5186yes:)
5187{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5188whose name does not start with the host triplet. If you think this
5189configuration is useful to you, please write to autoconf@gnu.org." >&5
5190echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5191whose name does not start with the host triplet. If you think this
5192configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5193ac_tool_warned=yes ;;
5194esac
5195 AS=$ac_ct_AS
5196 fi
1d4db787
MM
5197fi
5198
eb5f89c5
AJ
5199if test -n "$ac_tool_prefix"; then
5200 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5201set dummy ${ac_tool_prefix}ld; ac_word=$2
fc6ffb29
AJ
5202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
eb5f89c5
AJ
5204if test "${ac_cv_prog_LD+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206else
5207 if test -n "$LD"; then
5208 ac_cv_prog_LD="$LD" # Let the user override the test.
5209else
5210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211for as_dir in $PATH
5212do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
eb5f89c5
AJ
5217 ac_cv_prog_LD="${ac_tool_prefix}ld"
5218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221done
5222done
fc6ffb29 5223IFS=$as_save_IFS
eb5f89c5
AJ
5224
5225fi
5226fi
5227LD=$ac_cv_prog_LD
5228if test -n "$LD"; then
fc6ffb29
AJ
5229 { echo "$as_me:$LINENO: result: $LD" >&5
5230echo "${ECHO_T}$LD" >&6; }
eb5f89c5 5231else
fc6ffb29
AJ
5232 { echo "$as_me:$LINENO: result: no" >&5
5233echo "${ECHO_T}no" >&6; }
eb5f89c5
AJ
5234fi
5235
fc6ffb29 5236
eb5f89c5
AJ
5237fi
5238if test -z "$ac_cv_prog_LD"; then
5239 ac_ct_LD=$LD
5240 # Extract the first word of "ld", so it can be a program name with args.
5241set dummy ld; ac_word=$2
fc6ffb29
AJ
5242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
eb5f89c5
AJ
5244if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5246else
5247 if test -n "$ac_ct_LD"; then
5248 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5249else
5250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH
5252do
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
eb5f89c5
AJ
5257 ac_cv_prog_ac_ct_LD="ld"
5258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5260 fi
5261done
5262done
fc6ffb29 5263IFS=$as_save_IFS
eb5f89c5 5264
eb5f89c5
AJ
5265fi
5266fi
5267ac_ct_LD=$ac_cv_prog_ac_ct_LD
5268if test -n "$ac_ct_LD"; then
fc6ffb29
AJ
5269 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5270echo "${ECHO_T}$ac_ct_LD" >&6; }
eb5f89c5 5271else
fc6ffb29
AJ
5272 { echo "$as_me:$LINENO: result: no" >&5
5273echo "${ECHO_T}no" >&6; }
eb5f89c5
AJ
5274fi
5275
fc6ffb29
AJ
5276 if test "x$ac_ct_LD" = x; then
5277 LD="ld"
5278 else
5279 case $cross_compiling:$ac_tool_warned in
5280yes:)
5281{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5282whose name does not start with the host triplet. If you think this
5283configuration is useful to you, please write to autoconf@gnu.org." >&5
5284echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5285whose name does not start with the host triplet. If you think this
5286configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5287ac_tool_warned=yes ;;
5288esac
5289 LD=$ac_ct_LD
5290 fi
eb5f89c5
AJ
5291else
5292 LD="$ac_cv_prog_LD"
5293fi
5294
fc01b729
AJ
5295if test -n "$ac_tool_prefix"; then
5296 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5297set dummy ${ac_tool_prefix}ar; ac_word=$2
fc6ffb29
AJ
5298{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
5300if test "${ac_cv_prog_AR+set}" = set; then
5301 echo $ECHO_N "(cached) $ECHO_C" >&6
5302else
5303 if test -n "$AR"; then
5304 ac_cv_prog_AR="$AR" # Let the user override the test.
5305else
5306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307for as_dir in $PATH
5308do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
5313 ac_cv_prog_AR="${ac_tool_prefix}ar"
5314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317done
5318done
fc6ffb29 5319IFS=$as_save_IFS
fc01b729
AJ
5320
5321fi
5322fi
5323AR=$ac_cv_prog_AR
5324if test -n "$AR"; then
fc6ffb29
AJ
5325 { echo "$as_me:$LINENO: result: $AR" >&5
5326echo "${ECHO_T}$AR" >&6; }
fc01b729 5327else
fc6ffb29
AJ
5328 { echo "$as_me:$LINENO: result: no" >&5
5329echo "${ECHO_T}no" >&6; }
fc01b729
AJ
5330fi
5331
fc6ffb29 5332
fc01b729
AJ
5333fi
5334if test -z "$ac_cv_prog_AR"; then
5335 ac_ct_AR=$AR
5336 # Extract the first word of "ar", so it can be a program name with args.
5337set dummy ar; ac_word=$2
fc6ffb29
AJ
5338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
5340if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342else
5343 if test -n "$ac_ct_AR"; then
5344 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5345else
5346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH
5348do
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
5353 ac_cv_prog_ac_ct_AR="ar"
5354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2
5356 fi
5357done
5358done
fc6ffb29 5359IFS=$as_save_IFS
fc01b729 5360
fc01b729
AJ
5361fi
5362fi
5363ac_ct_AR=$ac_cv_prog_ac_ct_AR
5364if test -n "$ac_ct_AR"; then
fc6ffb29
AJ
5365 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5366echo "${ECHO_T}$ac_ct_AR" >&6; }
fc01b729 5367else
fc6ffb29
AJ
5368 { echo "$as_me:$LINENO: result: no" >&5
5369echo "${ECHO_T}no" >&6; }
fc01b729
AJ
5370fi
5371
fc6ffb29
AJ
5372 if test "x$ac_ct_AR" = x; then
5373 AR="ar"
5374 else
5375 case $cross_compiling:$ac_tool_warned in
5376yes:)
5377{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5378whose name does not start with the host triplet. If you think this
5379configuration is useful to you, please write to autoconf@gnu.org." >&5
5380echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5381whose name does not start with the host triplet. If you think this
5382configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5383ac_tool_warned=yes ;;
5384esac
5385 AR=$ac_ct_AR
5386 fi
fc01b729
AJ
5387else
5388 AR="$ac_cv_prog_AR"
5389fi
5390
f5818d2f
AJ
5391if test -n "$ac_tool_prefix"; then
5392 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5393set dummy ${ac_tool_prefix}ranlib; ac_word=$2
fc6ffb29
AJ
5394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
5396if test "${ac_cv_prog_RANLIB+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea
AJ
5398else
5399 if test -n "$RANLIB"; then
5400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5401else
daa2886c
AJ
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
5409 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413done
f5818d2f 5414done
fc6ffb29 5415IFS=$as_save_IFS
f5818d2f 5416
e2991ea7 5417fi
e2991ea7 5418fi
f5818d2f 5419RANLIB=$ac_cv_prog_RANLIB
ff8331ea 5420if test -n "$RANLIB"; then
fc6ffb29
AJ
5421 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5422echo "${ECHO_T}$RANLIB" >&6; }
f5818d2f 5423else
fc6ffb29
AJ
5424 { echo "$as_me:$LINENO: result: no" >&5
5425echo "${ECHO_T}no" >&6; }
f5818d2f
AJ
5426fi
5427
fc6ffb29 5428
f5818d2f
AJ
5429fi
5430if test -z "$ac_cv_prog_RANLIB"; then
5431 ac_ct_RANLIB=$RANLIB
5432 # Extract the first word of "ranlib", so it can be a program name with args.
5433set dummy ranlib; ac_word=$2
fc6ffb29
AJ
5434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
5436if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439 if test -n "$ac_ct_RANLIB"; then
5440 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5441else
daa2886c
AJ
5442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443for as_dir in $PATH
5444do
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
5449 ac_cv_prog_ac_ct_RANLIB="ranlib"
5450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 break 2
5452 fi
5453done
f5818d2f 5454done
fc6ffb29 5455IFS=$as_save_IFS
f5818d2f 5456
f5818d2f
AJ
5457fi
5458fi
5459ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5460if test -n "$ac_ct_RANLIB"; then
fc6ffb29
AJ
5461 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5462echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
f5818d2f 5463else
fc6ffb29
AJ
5464 { echo "$as_me:$LINENO: result: no" >&5
5465echo "${ECHO_T}no" >&6; }
f5818d2f
AJ
5466fi
5467
fc6ffb29
AJ
5468 if test "x$ac_ct_RANLIB" = x; then
5469 RANLIB=":"
5470 else
5471 case $cross_compiling:$ac_tool_warned in
5472yes:)
5473{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5474whose name does not start with the host triplet. If you think this
5475configuration is useful to you, please write to autoconf@gnu.org." >&5
5476echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5477whose name does not start with the host triplet. If you think this
5478configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5479ac_tool_warned=yes ;;
5480esac
5481 RANLIB=$ac_ct_RANLIB
5482 fi
ff8331ea 5483else
f5818d2f 5484 RANLIB="$ac_cv_prog_RANLIB"
ff8331ea 5485fi
e2991ea7 5486
fc01b729
AJ
5487if test -n "$ac_tool_prefix"; then
5488 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5489set dummy ${ac_tool_prefix}strip; ac_word=$2
fc6ffb29
AJ
5490{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
5492if test "${ac_cv_prog_STRIP+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494else
5495 if test -n "$STRIP"; then
5496 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5497else
5498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499for as_dir in $PATH
5500do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
5505 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 break 2
5508 fi
5509done
5510done
fc6ffb29 5511IFS=$as_save_IFS
fc01b729
AJ
5512
5513fi
5514fi
5515STRIP=$ac_cv_prog_STRIP
5516if test -n "$STRIP"; then
fc6ffb29
AJ
5517 { echo "$as_me:$LINENO: result: $STRIP" >&5
5518echo "${ECHO_T}$STRIP" >&6; }
fc01b729 5519else
fc6ffb29
AJ
5520 { echo "$as_me:$LINENO: result: no" >&5
5521echo "${ECHO_T}no" >&6; }
fc01b729
AJ
5522fi
5523
fc6ffb29 5524
fc01b729
AJ
5525fi
5526if test -z "$ac_cv_prog_STRIP"; then
5527 ac_ct_STRIP=$STRIP
5528 # Extract the first word of "strip", so it can be a program name with args.
5529set dummy strip; ac_word=$2
fc6ffb29
AJ
5530{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
5532if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5534else
5535 if test -n "$ac_ct_STRIP"; then
5536 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5537else
5538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539for as_dir in $PATH
5540do
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
5545 ac_cv_prog_ac_ct_STRIP="strip"
5546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5548 fi
5549done
5550done
fc6ffb29 5551IFS=$as_save_IFS
fc01b729 5552
fc01b729
AJ
5553fi
5554fi
5555ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5556if test -n "$ac_ct_STRIP"; then
fc6ffb29
AJ
5557 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5558echo "${ECHO_T}$ac_ct_STRIP" >&6; }
fc01b729 5559else
fc6ffb29
AJ
5560 { echo "$as_me:$LINENO: result: no" >&5
5561echo "${ECHO_T}no" >&6; }
fc01b729
AJ
5562fi
5563
fc6ffb29
AJ
5564 if test "x$ac_ct_STRIP" = x; then
5565 STRIP="strip"
5566 else
5567 case $cross_compiling:$ac_tool_warned in
5568yes:)
5569{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5570whose name does not start with the host triplet. If you think this
5571configuration is useful to you, please write to autoconf@gnu.org." >&5
5572echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5573whose name does not start with the host triplet. If you think this
5574configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5575ac_tool_warned=yes ;;
5576esac
5577 STRIP=$ac_ct_STRIP
5578 fi
fc01b729
AJ
5579else
5580 STRIP="$ac_cv_prog_STRIP"
5581fi
5582
5583if test -n "$ac_tool_prefix"; then
5584 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5585set dummy ${ac_tool_prefix}windres; ac_word=$2
fc6ffb29
AJ
5586{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
5588if test "${ac_cv_prog_WINDRES+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590else
5591 if test -n "$WINDRES"; then
5592 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5593else
5594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595for as_dir in $PATH
5596do
5597 IFS=$as_save_IFS
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
5601 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 break 2
5604 fi
5605done
5606done
fc6ffb29 5607IFS=$as_save_IFS
fc01b729
AJ
5608
5609fi
5610fi
5611WINDRES=$ac_cv_prog_WINDRES
5612if test -n "$WINDRES"; then
fc6ffb29
AJ
5613 { echo "$as_me:$LINENO: result: $WINDRES" >&5
5614echo "${ECHO_T}$WINDRES" >&6; }
fc01b729 5615else
fc6ffb29
AJ
5616 { echo "$as_me:$LINENO: result: no" >&5
5617echo "${ECHO_T}no" >&6; }
fc01b729
AJ
5618fi
5619
fc6ffb29 5620
fc01b729
AJ
5621fi
5622if test -z "$ac_cv_prog_WINDRES"; then
5623 ac_ct_WINDRES=$WINDRES
5624 # Extract the first word of "windres", so it can be a program name with args.
5625set dummy windres; ac_word=$2
fc6ffb29
AJ
5626{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
5628if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631 if test -n "$ac_ct_WINDRES"; then
5632 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5633else
5634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635for as_dir in $PATH
5636do
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
5641 ac_cv_prog_ac_ct_WINDRES="windres"
5642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 break 2
5644 fi
5645done
5646done
fc6ffb29 5647IFS=$as_save_IFS
fc01b729 5648
fc01b729
AJ
5649fi
5650fi
5651ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5652if test -n "$ac_ct_WINDRES"; then
fc6ffb29
AJ
5653 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5654echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
fc01b729 5655else
fc6ffb29
AJ
5656 { echo "$as_me:$LINENO: result: no" >&5
5657echo "${ECHO_T}no" >&6; }
fc01b729
AJ
5658fi
5659
fc6ffb29
AJ
5660 if test "x$ac_ct_WINDRES" = x; then
5661 WINDRES="false"
5662 else
5663 case $cross_compiling:$ac_tool_warned in
5664yes:)
5665{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5666whose name does not start with the host triplet. If you think this
5667configuration is useful to you, please write to autoconf@gnu.org." >&5
5668echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5669whose name does not start with the host triplet. If you think this
5670configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5671ac_tool_warned=yes ;;
5672esac
5673 WINDRES=$ac_ct_WINDRES
5674 fi
fc01b729
AJ
5675else
5676 WINDRES="$ac_cv_prog_WINDRES"
5677fi
5678
fc6ffb29
AJ
5679{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5680echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
f5818d2f
AJ
5681LN_S=$as_ln_s
5682if test "$LN_S" = "ln -s"; then
fc6ffb29
AJ
5683 { echo "$as_me:$LINENO: result: yes" >&5
5684echo "${ECHO_T}yes" >&6; }
641ee76a 5685else
fc6ffb29
AJ
5686 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5687echo "${ECHO_T}no, using $LN_S" >&6; }
641ee76a
AJ
5688fi
5689
fc6ffb29
AJ
5690{ echo "$as_me:$LINENO: checking whether ln works" >&5
5691echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
df234a9f
AJ
5692rm -f conf$$ conf$$.file
5693echo >conf$$.file
5694if ln conf$$.file conf$$ 2>/dev/null; then
5695 LN=ln
5696
fc6ffb29
AJ
5697 { echo "$as_me:$LINENO: result: yes" >&5
5698echo "${ECHO_T}yes" >&6; }
df234a9f
AJ
5699else
5700 LN="cp -p"
5701
fc6ffb29
AJ
5702 { echo "$as_me:$LINENO: result: no, using $LN" >&5
5703echo "${ECHO_T}no, using $LN" >&6; }
df234a9f
AJ
5704fi
5705rm -f conf$$ conf$$.file
fc6ffb29
AJ
5706{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5707echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5708if test "${ac_cv_path_GREP+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710else
5711 # Extract the first word of "grep ggrep" to use in msg output
5712if test -z "$GREP"; then
5713set dummy grep ggrep; ac_prog_name=$2
5714if test "${ac_cv_path_GREP+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717 ac_path_GREP_found=false
5718# Loop through the user's path and test for each of PROGNAME-LIST
5719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5721do
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_prog in grep ggrep; do
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
dc9f3843 5727 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
fc6ffb29
AJ
5728 # Check for GNU ac_path_GREP and select it if it is found.
5729 # Check for GNU $ac_path_GREP
5730case `"$ac_path_GREP" --version 2>&1` in
5731*GNU*)
5732 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5733*)
5734 ac_count=0
5735 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5736 while :
5737 do
5738 cat "conftest.in" "conftest.in" >"conftest.tmp"
5739 mv "conftest.tmp" "conftest.in"
5740 cp "conftest.in" "conftest.nl"
5741 echo 'GREP' >> "conftest.nl"
5742 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5744 ac_count=`expr $ac_count + 1`
5745 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5746 # Best one so far, save it but keep looking for a better one
5747 ac_cv_path_GREP="$ac_path_GREP"
5748 ac_path_GREP_max=$ac_count
5749 fi
5750 # 10*(2^10) chars as input seems more than enough
5751 test $ac_count -gt 10 && break
5752 done
0ebeb530 5753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
fc6ffb29
AJ
5754esac
5755
5756
5757 $ac_path_GREP_found && break 3
5758 done
5759done
5760
5761done
5762IFS=$as_save_IFS
5763
5764
5765fi
5766
5767GREP="$ac_cv_path_GREP"
5768if test -z "$GREP"; then
5769 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5770echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5771 { (exit 1); exit 1; }; }
5772fi
5773
5774else
5775 ac_cv_path_GREP=$GREP
5776fi
5777
5778
5779fi
5780{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5781echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5782 GREP="$ac_cv_path_GREP"
5783
5784
5785{ echo "$as_me:$LINENO: checking for egrep" >&5
5786echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5787if test "${ac_cv_path_EGREP+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789else
5790 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5791 then ac_cv_path_EGREP="$GREP -E"
5792 else
5793 # Extract the first word of "egrep" to use in msg output
5794if test -z "$EGREP"; then
5795set dummy egrep; ac_prog_name=$2
5796if test "${ac_cv_path_EGREP+set}" = set; then
c626491b
AJ
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798else
fc6ffb29
AJ
5799 ac_path_EGREP_found=false
5800# Loop through the user's path and test for each of PROGNAME-LIST
5801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5803do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_prog in egrep; do
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
dc9f3843 5809 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
fc6ffb29
AJ
5810 # Check for GNU ac_path_EGREP and select it if it is found.
5811 # Check for GNU $ac_path_EGREP
5812case `"$ac_path_EGREP" --version 2>&1` in
5813*GNU*)
5814 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5815*)
5816 ac_count=0
5817 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5818 while :
5819 do
5820 cat "conftest.in" "conftest.in" >"conftest.tmp"
5821 mv "conftest.tmp" "conftest.in"
5822 cp "conftest.in" "conftest.nl"
5823 echo 'EGREP' >> "conftest.nl"
5824 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5825 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5826 ac_count=`expr $ac_count + 1`
5827 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5828 # Best one so far, save it but keep looking for a better one
5829 ac_cv_path_EGREP="$ac_path_EGREP"
5830 ac_path_EGREP_max=$ac_count
c626491b 5831 fi
fc6ffb29
AJ
5832 # 10*(2^10) chars as input seems more than enough
5833 test $ac_count -gt 10 && break
5834 done
0ebeb530 5835 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
fc6ffb29
AJ
5836esac
5837
5838
5839 $ac_path_EGREP_found && break 3
5840 done
5841done
5842
5843done
5844IFS=$as_save_IFS
5845
5846
5847fi
5848
5849EGREP="$ac_cv_path_EGREP"
5850if test -z "$EGREP"; then
5851 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5852echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5853 { (exit 1); exit 1; }; }
5854fi
5855
5856else
5857 ac_cv_path_EGREP=$EGREP
5858fi
5859
5860
5861 fi
c626491b 5862fi
fc6ffb29
AJ
5863{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5864echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5865 EGREP="$ac_cv_path_EGREP"
c626491b
AJ
5866
5867
ffe6b767
JJ
5868# Extract the first word of "ldconfig", so it can be a program name with args.
5869set dummy ldconfig; ac_word=$2
fc6ffb29
AJ
5870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
5872if test "${ac_cv_path_LDCONFIG+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
ffe6b767 5874else
f5818d2f
AJ
5875 case $LDCONFIG in
5876 [\\/]* | ?:[\\/]*)
ffe6b767
JJ
5877 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5878 ;;
5879 *)
daa2886c 5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91372b39 5881for as_dir in /sbin /usr/sbin $PATH
daa2886c
AJ
5882do
5883 IFS=$as_save_IFS
5884 test -z "$as_dir" && as_dir=.
5885 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
5887 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5889 break 2
5890 fi
5891done
f5818d2f 5892done
fc6ffb29 5893IFS=$as_save_IFS
f5818d2f 5894
318f4cef 5895 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
ffe6b767
JJ
5896 ;;
5897esac
5898fi
f5818d2f 5899LDCONFIG=$ac_cv_path_LDCONFIG
f5818d2f 5900if test -n "$LDCONFIG"; then
fc6ffb29
AJ
5901 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5902echo "${ECHO_T}$LDCONFIG" >&6; }
d48ca948 5903else
fc6ffb29
AJ
5904 { echo "$as_me:$LINENO: result: no" >&5
5905echo "${ECHO_T}no" >&6; }
d48ca948
HT
5906fi
5907
fc6ffb29 5908
e24bcc77
AJ
5909# Find a good install program. We prefer a C program (faster),
5910# so one script is as good as another. But avoid the broken or
5911# incompatible versions:
5912# SysV /etc/install, /usr/sbin/install
5913# SunOS /usr/etc/install
5914# IRIX /sbin/install
5915# AIX /bin/install
5916# AmigaOS /C/install, which installs bootblocks on floppy discs
5917# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5918# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5919# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
875927f6 5920# OS/2's system install, which has a completely different semantic
e24bcc77 5921# ./install, which can be erroneously created by make from ./install.sh.
fc6ffb29
AJ
5922{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5923echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
e24bcc77
AJ
5924if test -z "$INSTALL"; then
5925if test "${ac_cv_path_install+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5927else
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929for as_dir in $PATH
5930do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 # Account for people who put trailing slashes in PATH elements.
5934case $as_dir/ in
5935 ./ | .// | /cC/* | \
5936 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
875927f6 5937 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e24bcc77
AJ
5938 /usr/ucb/* ) ;;
5939 *)
5940 # OSF1 and SCO ODT 3.0 have their own names for install.
5941 # Don't use installbsd from OSF since it installs stuff as root
5942 # by default.
5943 for ac_prog in ginstall scoinst install; do
5944 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5945 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
875927f6
AJ
5946 if test $ac_prog = install &&
5947 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5948 # AIX install. It has an incompatible calling convention.
5949 :
5950 elif test $ac_prog = install &&
5951 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5952 # program-specific install script used by HP pwplus--don't use.
5953 :
5954 else
5955 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5956 break 3
5957 fi
5958 fi
e24bcc77
AJ
5959 done
5960 done
5961 ;;
5962esac
5963done
fc6ffb29 5964IFS=$as_save_IFS
e24bcc77
AJ
5965
5966
5967fi
5968 if test "${ac_cv_path_install+set}" = set; then
5969 INSTALL=$ac_cv_path_install
5970 else
fc6ffb29
AJ
5971 # As a last resort, use the slow shell script. Don't cache a
5972 # value for INSTALL within a source directory, because that will
e24bcc77 5973 # break other packages using the cache if that directory is
fc6ffb29 5974 # removed, or if the value is a relative name.
e24bcc77
AJ
5975 INSTALL=$ac_install_sh
5976 fi
5977fi
fc6ffb29
AJ
5978{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5979echo "${ECHO_T}$INSTALL" >&6; }
e24bcc77
AJ
5980
5981# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5982# It thinks the first close brace ends the variable substitution.
5983test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5984
5985test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5986
5987test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5988
5989case "$INSTALL" in
8418d8f3 5990 [\\/$]* | ?:[\\/]* ) ;;
e24bcc77
AJ
5991 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5992esac
daa2886c 5993
a9be64e2
PS
5994for ac_prog in lclint lint
5995do
f5818d2f 5996 # Extract the first word of "$ac_prog", so it can be a program name with args.
a9be64e2 5997set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
5998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
6000if test "${ac_cv_prog_LINT+set}" = set; then
6001 echo $ECHO_N "(cached) $ECHO_C" >&6
a9be64e2
PS
6002else
6003 if test -n "$LINT"; then
6004 ac_cv_prog_LINT="$LINT" # Let the user override the test.
6005else
daa2886c
AJ
6006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007for as_dir in $PATH
6008do
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 6012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
6013 ac_cv_prog_LINT="$ac_prog"
6014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015 break 2
6016 fi
6017done
f5818d2f 6018done
fc6ffb29 6019IFS=$as_save_IFS
f5818d2f 6020
a9be64e2
PS
6021fi
6022fi
f5818d2f 6023LINT=$ac_cv_prog_LINT
a9be64e2 6024if test -n "$LINT"; then
fc6ffb29
AJ
6025 { echo "$as_me:$LINENO: result: $LINT" >&5
6026echo "${ECHO_T}$LINT" >&6; }
a9be64e2 6027else
fc6ffb29
AJ
6028 { echo "$as_me:$LINENO: result: no" >&5
6029echo "${ECHO_T}no" >&6; }
a9be64e2
PS
6030fi
6031
fc6ffb29 6032
f5818d2f 6033 test -n "$LINT" && break
a9be64e2
PS
6034done
6035
6036if test "$LINT" = "lint"
6037then
6038 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6039 fi
6040
daa2886c
AJ
6041
6042
00acb5f7
HD
6043for ac_prog in fontforge
6044do
6045 # Extract the first word of "$ac_prog", so it can be a program name with args.
6046set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
6047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
00acb5f7
HD
6049if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051else
6052 if test -n "$FONTFORGE"; then
6053 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6054else
6055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056for as_dir in $PATH
6057do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
00acb5f7
HD
6062 ac_cv_prog_FONTFORGE="$ac_prog"
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 break 2
6065 fi
6066done
6067done
fc6ffb29 6068IFS=$as_save_IFS
00acb5f7
HD
6069
6070fi
6071fi
6072FONTFORGE=$ac_cv_prog_FONTFORGE
6073if test -n "$FONTFORGE"; then
fc6ffb29
AJ
6074 { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6075echo "${ECHO_T}$FONTFORGE" >&6; }
00acb5f7 6076else
fc6ffb29
AJ
6077 { echo "$as_me:$LINENO: result: no" >&5
6078echo "${ECHO_T}no" >&6; }
00acb5f7
HD
6079fi
6080
fc6ffb29 6081
00acb5f7
HD
6082 test -n "$FONTFORGE" && break
6083done
6084test -n "$FONTFORGE" || FONTFORGE="false"
b817a3c5 6085
90c75bdd
MM
6086for ac_prog in pkg-config
6087do
6088 # Extract the first word of "$ac_prog", so it can be a program name with args.
6089set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
6090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
90c75bdd
MM
6092if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094else
6095 if test -n "$PKG_CONFIG"; then
6096 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6097else
6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099for as_dir in $PATH
6100do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 6104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
90c75bdd
MM
6105 ac_cv_prog_PKG_CONFIG="$ac_prog"
6106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 break 2
6108 fi
6109done
6110done
fc6ffb29 6111IFS=$as_save_IFS
90c75bdd
MM
6112
6113fi
6114fi
6115PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6116if test -n "$PKG_CONFIG"; then
fc6ffb29
AJ
6117 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6118echo "${ECHO_T}$PKG_CONFIG" >&6; }
90c75bdd 6119else
fc6ffb29
AJ
6120 { echo "$as_me:$LINENO: result: no" >&5
6121echo "${ECHO_T}no" >&6; }
90c75bdd
MM
6122fi
6123
fc6ffb29 6124
90c75bdd
MM
6125 test -n "$PKG_CONFIG" && break
6126done
6127test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6128
b817a3c5 6129
adbb0988
AJ
6130case $host_cpu in
6131 *i[3456789]86*)
3d08f5d9
AJ
6132 # Extract the first word of "prelink", so it can be a program name with args.
6133set dummy prelink; ac_word=$2
fc6ffb29
AJ
6134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3d08f5d9 6136if test "${ac_cv_path_PRELINK+set}" = set; then
adbb0988
AJ
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6138else
3d08f5d9
AJ
6139 case $PRELINK in
6140 [\\/]* | ?:[\\/]*)
6141 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6142 ;;
6143 *)
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adbb0988
AJ
6145for as_dir in /sbin /usr/sbin $PATH
6146do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 6150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3d08f5d9 6151 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
adbb0988
AJ
6152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6153 break 2
6154 fi
6155done
6156done
fc6ffb29 6157IFS=$as_save_IFS
adbb0988 6158
3d08f5d9
AJ
6159 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6160 ;;
6161esac
adbb0988 6162fi
3d08f5d9 6163PRELINK=$ac_cv_path_PRELINK
adbb0988 6164if test -n "$PRELINK"; then
fc6ffb29
AJ
6165 { echo "$as_me:$LINENO: result: $PRELINK" >&5
6166echo "${ECHO_T}$PRELINK" >&6; }
adbb0988 6167else
fc6ffb29
AJ
6168 { echo "$as_me:$LINENO: result: no" >&5
6169echo "${ECHO_T}no" >&6; }
adbb0988
AJ
6170fi
6171
fc6ffb29 6172
adbb0988
AJ
6173 ;;
6174esac
6175
daa2886c
AJ
6176
6177
fc6ffb29
AJ
6178{ echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6179echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
f5818d2f
AJ
6180if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
902da699 6182else
f5818d2f 6183 ac_check_lib_save_LIBS=$LIBS
902da699 6184LIBS="-li386 $LIBS"
f5818d2f 6185cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6186/* confdefs.h. */
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h. */
f5818d2f 6191
fc6ffb29
AJ
6192/* Override any GCC internal prototype to avoid an error.
6193 Use char because int might match the return type of a GCC
6194 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
6195#ifdef __cplusplus
6196extern "C"
6197#endif
f5818d2f
AJ
6198char i386_set_ldt ();
6199int
6200main ()
6201{
fc6ffb29 6202return i386_set_ldt ();
f5818d2f
AJ
6203 ;
6204 return 0;
6205}
6206_ACEOF
6207rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
6208if { (ac_try="$ac_link"
6209case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212esac
6213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_link") 2>conftest.er1
f5818d2f 6215 ac_status=$?
875927f6
AJ
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
daa2886c 6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
6220 (exit $ac_status); } && {
6221 test -z "$ac_c_werror_flag" ||
6222 test ! -s conftest.err
6223 } && test -s conftest$ac_exeext &&
6224 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
6225 ac_cv_lib_i386_i386_set_ldt=yes
6226else
6227 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6228sed 's/^/| /' conftest.$ac_ext >&5
6229
fc6ffb29 6230 ac_cv_lib_i386_i386_set_ldt=no
f5818d2f 6231fi
fc6ffb29 6232
f0ca586f 6233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 6234 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
6235LIBS=$ac_check_lib_save_LIBS
6236fi
fc6ffb29
AJ
6237{ echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6238echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
f5818d2f 6239if test $ac_cv_lib_i386_i386_set_ldt = yes; then
daa2886c 6240 cat >>confdefs.h <<_ACEOF
f5818d2f 6241#define HAVE_LIBI386 1
daa2886c 6242_ACEOF
02e90087
AJ
6243
6244 LIBS="-li386 $LIBS"
6245
02e90087
AJ
6246fi
6247
daa2886c 6248
fc6ffb29
AJ
6249{ echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6250echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
f5818d2f
AJ
6251if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
ecc7669d 6253else
f5818d2f 6254 ac_check_lib_save_LIBS=$LIBS
ecc7669d 6255LIBS="-lossaudio $LIBS"
f5818d2f 6256cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6257/* confdefs.h. */
6258_ACEOF
6259cat confdefs.h >>conftest.$ac_ext
6260cat >>conftest.$ac_ext <<_ACEOF
6261/* end confdefs.h. */
f5818d2f 6262
fc6ffb29
AJ
6263/* Override any GCC internal prototype to avoid an error.
6264 Use char because int might match the return type of a GCC
6265 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
6266#ifdef __cplusplus
6267extern "C"
6268#endif
f5818d2f
AJ
6269char _oss_ioctl ();
6270int
6271main ()
6272{
fc6ffb29 6273return _oss_ioctl ();
f5818d2f
AJ
6274 ;
6275 return 0;
6276}
6277_ACEOF
6278rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
6279if { (ac_try="$ac_link"
6280case "(($ac_try" in
6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282 *) ac_try_echo=$ac_try;;
6283esac
6284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285 (eval "$ac_link") 2>conftest.er1
f5818d2f 6286 ac_status=$?
875927f6
AJ
6287 grep -v '^ *+' conftest.er1 >conftest.err
6288 rm -f conftest.er1
6289 cat conftest.err >&5
daa2886c 6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
6291 (exit $ac_status); } && {
6292 test -z "$ac_c_werror_flag" ||
6293 test ! -s conftest.err
6294 } && test -s conftest$ac_exeext &&
6295 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
6296 ac_cv_lib_ossaudio__oss_ioctl=yes
6297else
6298 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6299sed 's/^/| /' conftest.$ac_ext >&5
6300
fc6ffb29 6301 ac_cv_lib_ossaudio__oss_ioctl=no
f5818d2f 6302fi
fc6ffb29 6303
f0ca586f 6304rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 6305 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
6306LIBS=$ac_check_lib_save_LIBS
6307fi
fc6ffb29
AJ
6308{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6309echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
f5818d2f 6310if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
daa2886c 6311 cat >>confdefs.h <<_ACEOF
f5818d2f 6312#define HAVE_LIBOSSAUDIO 1
daa2886c 6313_ACEOF
ecc7669d
TV
6314
6315 LIBS="-lossaudio $LIBS"
6316
ecc7669d
TV
6317fi
6318
e533e972
AJ
6319{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6320echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
6321if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
f5818d2f
AJ
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324 ac_check_lib_save_LIBS=$LIBS
e533e972 6325LIBS="-lpthread $LIBS"
f5818d2f 6326cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6327/* confdefs.h. */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h. */
f5818d2f 6332
fc6ffb29
AJ
6333/* Override any GCC internal prototype to avoid an error.
6334 Use char because int might match the return type of a GCC
6335 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
6336#ifdef __cplusplus
6337extern "C"
6338#endif
e533e972 6339char pthread_create ();
f5818d2f
AJ
6340int
6341main ()
6342{
e533e972 6343return pthread_create ();
f5818d2f
AJ
6344 ;
6345 return 0;
6346}
6347_ACEOF
6348rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
6349if { (ac_try="$ac_link"
6350case "(($ac_try" in
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6353esac
6354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_link") 2>conftest.er1
f5818d2f 6356 ac_status=$?
875927f6
AJ
6357 grep -v '^ *+' conftest.er1 >conftest.err
6358 rm -f conftest.er1
6359 cat conftest.err >&5
daa2886c 6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
6361 (exit $ac_status); } && {
6362 test -z "$ac_c_werror_flag" ||
6363 test ! -s conftest.err
6364 } && test -s conftest$ac_exeext &&
6365 $as_test_x conftest$ac_exeext; then
e533e972 6366 ac_cv_lib_pthread_pthread_create=yes
f5818d2f
AJ
6367else
6368 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6369sed 's/^/| /' conftest.$ac_ext >&5
6370
e533e972 6371 ac_cv_lib_pthread_pthread_create=no
f5818d2f 6372fi
fc6ffb29 6373
f0ca586f 6374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 6375 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
6376LIBS=$ac_check_lib_save_LIBS
6377fi
e533e972
AJ
6378{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6379echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
6380if test $ac_cv_lib_pthread_pthread_create = yes; then
6381 LIBPTHREAD="-lpthread"
2e8e2334 6382
ea584724
PS
6383fi
6384
f070fda2 6385
e533e972
AJ
6386XLIB=""
6387
6388XFILES=""
daa2886c 6389
e533e972
AJ
6390OPENGLFILES=""
6391
6392GLU32FILES=""
6393
6394OPENGL_LIBS=""
6395
08884514
PH
6396QUARTZFILES=""
6397
e533e972
AJ
6398
6399
6400{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6401echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6402if test "${ac_cv_header_stdc+set}" = set; then
f5818d2f
AJ
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6404else
6405 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6406/* confdefs.h. */
6407_ACEOF
6408cat confdefs.h >>conftest.$ac_ext
6409cat >>conftest.$ac_ext <<_ACEOF
6410/* end confdefs.h. */
e533e972
AJ
6411#include <stdlib.h>
6412#include <stdarg.h>
6413#include <string.h>
6414#include <float.h>
715a55e7 6415
e24bcc77
AJ
6416int
6417main ()
6418{
e533e972 6419
f5818d2f
AJ
6420 ;
6421 return 0;
6422}
6423_ACEOF
e533e972
AJ
6424rm -f conftest.$ac_objext
6425if { (ac_try="$ac_compile"
0ebeb530
JW
6426case "(($ac_try" in
6427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6428 *) ac_try_echo=$ac_try;;
6429esac
6430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
e533e972 6431 (eval "$ac_compile") 2>conftest.er1
f5818d2f 6432 ac_status=$?
875927f6
AJ
6433 grep -v '^ *+' conftest.er1 >conftest.err
6434 rm -f conftest.er1
6435 cat conftest.err >&5
daa2886c 6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
6437 (exit $ac_status); } && {
6438 test -z "$ac_c_werror_flag" ||
6439 test ! -s conftest.err
6440 } && test -s conftest.$ac_objext; then
e533e972 6441 ac_cv_header_stdc=yes
f5818d2f
AJ
6442else
6443 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6444sed 's/^/| /' conftest.$ac_ext >&5
6445
e533e972 6446 ac_cv_header_stdc=no
f5818d2f 6447fi
fc6ffb29 6448
e533e972
AJ
6449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450
6451if test $ac_cv_header_stdc = yes; then
6452 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6453 cat >conftest.$ac_ext <<_ACEOF
6454/* confdefs.h. */
6455_ACEOF
6456cat confdefs.h >>conftest.$ac_ext
6457cat >>conftest.$ac_ext <<_ACEOF
6458/* end confdefs.h. */
6459#include <string.h>
6460
6461_ACEOF
6462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6463 $EGREP "memchr" >/dev/null 2>&1; then
6464 :
6465else
6466 ac_cv_header_stdc=no
f5818d2f 6467fi
e533e972
AJ
6468rm -f conftest*
6469
6470fi
6471
6472if test $ac_cv_header_stdc = yes; then
6473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6474 cat >conftest.$ac_ext <<_ACEOF
6475/* confdefs.h. */
daa2886c 6476_ACEOF
e533e972
AJ
6477cat confdefs.h >>conftest.$ac_ext
6478cat >>conftest.$ac_ext <<_ACEOF
6479/* end confdefs.h. */
6480#include <stdlib.h>
f5818d2f 6481
e533e972
AJ
6482_ACEOF
6483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484 $EGREP "free" >/dev/null 2>&1; then
6485 :
f5818d2f 6486else
e533e972
AJ
6487 ac_cv_header_stdc=no
6488fi
6489rm -f conftest*
f5818d2f 6490
e533e972
AJ
6491fi
6492
6493if test $ac_cv_header_stdc = yes; then
6494 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6495 if test "$cross_compiling" = yes; then
6496 :
f5818d2f 6497else
e533e972 6498 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6499/* confdefs.h. */
6500_ACEOF
6501cat confdefs.h >>conftest.$ac_ext
6502cat >>conftest.$ac_ext <<_ACEOF
6503/* end confdefs.h. */
e533e972
AJ
6504#include <ctype.h>
6505#include <stdlib.h>
6506#if ((' ' & 0x0FF) == 0x020)
6507# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6508# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6509#else
6510# define ISLOWER(c) \
6511 (('a' <= (c) && (c) <= 'i') \
6512 || ('j' <= (c) && (c) <= 'r') \
6513 || ('s' <= (c) && (c) <= 'z'))
6514# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
f5818d2f 6515#endif
e533e972
AJ
6516
6517#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
f5818d2f
AJ
6518int
6519main ()
6520{
e533e972
AJ
6521 int i;
6522 for (i = 0; i < 256; i++)
6523 if (XOR (islower (i), ISLOWER (i))
6524 || toupper (i) != TOUPPER (i))
6525 return 2;
f5818d2f
AJ
6526 return 0;
6527}
6528_ACEOF
e533e972 6529rm -f conftest$ac_exeext
0ebeb530
JW
6530if { (ac_try="$ac_link"
6531case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534esac
6535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
e533e972 6536 (eval "$ac_link") 2>&5
f5818d2f 6537 ac_status=$?
daa2886c 6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
e533e972 6539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
0ebeb530
JW
6540 { (case "(($ac_try" in
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6543esac
6544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6545 (eval "$ac_try") 2>&5
f5818d2f 6546 ac_status=$?
daa2886c 6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 6548 (exit $ac_status); }; }; then
e533e972 6549 :
f5818d2f 6550else
e533e972
AJ
6551 echo "$as_me: program exited with status $ac_status" >&5
6552echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6553sed 's/^/| /' conftest.$ac_ext >&5
6554
e533e972
AJ
6555( exit $ac_status )
6556ac_cv_header_stdc=no
f5818d2f 6557fi
e533e972 6558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f5818d2f 6559fi
715a55e7 6560
715a55e7 6561
715a55e7 6562fi
ea584724 6563fi
e533e972
AJ
6564{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6565echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6566if test $ac_cv_header_stdc = yes; then
daa2886c 6567
e533e972
AJ
6568cat >>confdefs.h <<\_ACEOF
6569#define STDC_HEADERS 1
e24bcc77 6570_ACEOF
875927f6 6571
e533e972 6572fi
875927f6 6573
e533e972 6574# On IRIX 5.3, sys/types and inttypes.h are conflicting.
875927f6 6575
875927f6 6576
c555274d 6577
e24bcc77 6578
fc6ffb29 6579
c555274d 6580
c555274d 6581
e533e972
AJ
6582
6583
6584for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6585 inttypes.h stdint.h unistd.h
6586do
6587as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6588{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 6591 echo $ECHO_N "(cached) $ECHO_C" >&6
d30dfd24 6592else
e533e972 6593 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6594/* confdefs.h. */
6595_ACEOF
6596cat confdefs.h >>conftest.$ac_ext
6597cat >>conftest.$ac_ext <<_ACEOF
6598/* end confdefs.h. */
e533e972 6599$ac_includes_default
f5818d2f 6600
e533e972 6601#include <$ac_header>
f5818d2f 6602_ACEOF
e533e972
AJ
6603rm -f conftest.$ac_objext
6604if { (ac_try="$ac_compile"
0ebeb530
JW
6605case "(($ac_try" in
6606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607 *) ac_try_echo=$ac_try;;
6608esac
6609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
e533e972 6610 (eval "$ac_compile") 2>conftest.er1
f5818d2f 6611 ac_status=$?
875927f6
AJ
6612 grep -v '^ *+' conftest.er1 >conftest.err
6613 rm -f conftest.er1
6614 cat conftest.err >&5
daa2886c 6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
6616 (exit $ac_status); } && {
6617 test -z "$ac_c_werror_flag" ||
6618 test ! -s conftest.err
6619 } && test -s conftest.$ac_objext; then
e533e972 6620 eval "$as_ac_Header=yes"
3b943bca
FG
6621else
6622 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6623sed 's/^/| /' conftest.$ac_ext >&5
6624
e533e972 6625 eval "$as_ac_Header=no"
3b943bca 6626fi
fc6ffb29 6627
e533e972 6628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3b943bca 6629fi
e533e972
AJ
6630ac_res=`eval echo '${'$as_ac_Header'}'`
6631 { echo "$as_me:$LINENO: result: $ac_res" >&5
6632echo "${ECHO_T}$ac_res" >&6; }
6633if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6634 cat >>confdefs.h <<_ACEOF
e533e972 6635#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
728bedcf
MM
6636_ACEOF
6637
728bedcf
MM
6638fi
6639
6640done
6641
6642
daa2886c 6643
7ff12568
RK
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
7ff12568
RK
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
73482144
AJ
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
7ff12568 6732
a2bbacb0 6733
57279184 6734
64c07786
EM
6735
6736
888eaae7 6737
ea524def
HL
6738
6739
0f6c0394 6740
ebe0484d 6741
1e5153cf 6742
0cd0626d 6743
144a5353
EM
6744
6745
9603ee07 6746
08884514 6747
66f45a5b 6748
150b5dca 6749
00302152 6750
2569635c 6751
7ff12568
RK
6752
6753
6754for ac_header in \
144a5353 6755 AudioUnit/AudioUnit.h \
08884514 6756 Carbon/Carbon.h \
144a5353 6757 CoreAudio/CoreAudio.h \
66f45a5b 6758 DiskArbitration/DiskArbitration.h \
0f6c0394 6759 IOKit/IOKitLib.h \
73482144 6760 alsa/asoundlib.h \
7ff12568
RK
6761 arpa/inet.h \
6762 arpa/nameser.h \
888eaae7 6763 asm/types.h \
73482144 6764 capi20.h \
7ff12568 6765 cups/cups.h \
73482144 6766 curses.h \
7ff12568 6767 direct.h \
73482144 6768 dlfcn.h \
7ff12568
RK
6769 elf.h \
6770 float.h \
6771 fontconfig/fontconfig.h \
6772 getopt.h \
7ff12568
RK
6773 ieeefp.h \
6774 io.h \
6775 jack/jack.h \
6776 jpeglib.h \
ea524def 6777 lber.h \
7ff12568 6778 lcms.h \
73482144 6779 lcms/lcms.h \
ea524def 6780 ldap.h \
73482144 6781 libaudioio.h \
7ff12568
RK
6782 link.h \
6783 linux/cdrom.h \
6784 linux/compiler.h \
6785 linux/hdreg.h \
6786 linux/input.h \
6787 linux/ioctl.h \
6788 linux/joystick.h \
6789 linux/major.h \
6790 linux/param.h \
6791 linux/serial.h \
6792 linux/ucdrom.h \
150b5dca 6793 mach/mach.h \
64c07786 6794 mach/machine.h \
7ff12568 6795 machine/cpu.h \
64c07786 6796 machine/limits.h \
73482144 6797 machine/soundcard.h \
7ff12568 6798 mntent.h \
73482144 6799 ncurses.h \
7ff12568
RK
6800 netdb.h \
6801 netinet/in.h \
6802 netinet/in_systm.h \
6803 netinet/tcp.h \
6804 netinet/tcp_fsm.h \
1e5153cf 6805 openssl/err.h \
7ff12568 6806 openssl/ssl.h \
00302152 6807 png.h \
57279184 6808 poll.h \
7ff12568
RK
6809 process.h \
6810 pthread.h \
7ff12568
RK
6811 pwd.h \
6812 regex.h \
6813 sched.h \
7ff12568
RK
6814 scsi/scsi.h \
6815 scsi/scsi_ioctl.h \
73482144
AJ
6816 scsi/sg.h \
6817 soundcard.h \
7ff12568
RK
6818 stdint.h \
6819 strings.h \
73482144 6820 sys/asoundlib.h \
7ff12568
RK
6821 sys/cdio.h \
6822 sys/elf32.h \
7ff12568 6823 sys/epoll.h \
73482144 6824 sys/errno.h \
c8278926 6825 sys/event.h \
7ff12568 6826 sys/exec_elf.h \
7ff12568 6827 sys/filio.h \
7ff12568
RK
6828 sys/ioctl.h \
6829 sys/ipc.h \
ebe0484d 6830 sys/limits.h \
7ff12568
RK
6831 sys/link.h \
6832 sys/lwp.h \
6833 sys/mman.h \
6834 sys/modem.h \
6835 sys/msg.h \
0844b702 6836 sys/mtio.h \
7ff12568
RK
6837 sys/param.h \
6838 sys/poll.h \
9603ee07 6839 sys/prctl.h \
7ff12568
RK
6840 sys/ptrace.h \
6841 sys/reg.h \
0cd0626d 6842 sys/resource.h \
7ff12568
RK
6843 sys/scsiio.h \
6844 sys/shm.h \
6845 sys/signal.h \
6846 sys/socket.h \
2569635c 6847 sys/socketvar.h \
7ff12568 6848 sys/sockio.h \
73482144 6849 sys/soundcard.h \
7ff12568
RK
6850 sys/statvfs.h \
6851 sys/strtio.h \
6852 sys/syscall.h \
6853 sys/sysctl.h \
6854 sys/time.h \
6855 sys/times.h \
6856 sys/uio.h \
6857 sys/un.h \
7ff12568
RK
6858 sys/vm86.h \
6859 sys/wait.h \
6860 syscall.h \
6861 termios.h \
73482144 6862 unicode/ubidi.h \
7ff12568
RK
6863 unistd.h \
6864 utime.h \
6865 valgrind/memcheck.h
6866
24110288 6867do
f5818d2f 6868as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
6869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6871echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 6873 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c 6874fi
fc6ffb29
AJ
6875ac_res=`eval echo '${'$as_ac_Header'}'`
6876 { echo "$as_me:$LINENO: result: $ac_res" >&5
6877echo "${ECHO_T}$ac_res" >&6; }
f5818d2f 6878else
daa2886c 6879 # Is the header compilable?
fc6ffb29
AJ
6880{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6881echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
daa2886c 6882cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6883/* confdefs.h. */
6884_ACEOF
6885cat confdefs.h >>conftest.$ac_ext
6886cat >>conftest.$ac_ext <<_ACEOF
6887/* end confdefs.h. */
daa2886c 6888$ac_includes_default
f5818d2f
AJ
6889#include <$ac_header>
6890_ACEOF
daa2886c 6891rm -f conftest.$ac_objext
0ebeb530
JW
6892if { (ac_try="$ac_compile"
6893case "(($ac_try" in
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6896esac
6897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6898 (eval "$ac_compile") 2>conftest.er1
daa2886c 6899 ac_status=$?
875927f6
AJ
6900 grep -v '^ *+' conftest.er1 >conftest.err
6901 rm -f conftest.er1
6902 cat conftest.err >&5
daa2886c 6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
6904 (exit $ac_status); } && {
6905 test -z "$ac_c_werror_flag" ||
6906 test ! -s conftest.err
6907 } && test -s conftest.$ac_objext; then
daa2886c
AJ
6908 ac_header_compiler=yes
6909else
6910 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6911sed 's/^/| /' conftest.$ac_ext >&5
6912
fc6ffb29 6913 ac_header_compiler=no
daa2886c 6914fi
fc6ffb29 6915
0ebeb530 6916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
6917{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6918echo "${ECHO_T}$ac_header_compiler" >&6; }
daa2886c
AJ
6919
6920# Is the header present?
fc6ffb29
AJ
6921{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6922echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
daa2886c 6923cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6924/* confdefs.h. */
6925_ACEOF
6926cat confdefs.h >>conftest.$ac_ext
6927cat >>conftest.$ac_ext <<_ACEOF
6928/* end confdefs.h. */
daa2886c
AJ
6929#include <$ac_header>
6930_ACEOF
0ebeb530
JW
6931if { (ac_try="$ac_cpp conftest.$ac_ext"
6932case "(($ac_try" in
6933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6934 *) ac_try_echo=$ac_try;;
6935esac
6936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 6938 ac_status=$?
11af04e3 6939 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
6940 rm -f conftest.er1
6941 cat conftest.err >&5
daa2886c 6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
6943 (exit $ac_status); } >/dev/null && {
6944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6945 test ! -s conftest.err
6946 }; then
daa2886c 6947 ac_header_preproc=yes
f5818d2f
AJ
6948else
6949 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6950sed 's/^/| /' conftest.$ac_ext >&5
6951
daa2886c 6952 ac_header_preproc=no
24110288 6953fi
fc6ffb29 6954
f5818d2f 6955rm -f conftest.err conftest.$ac_ext
fc6ffb29
AJ
6956{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6957echo "${ECHO_T}$ac_header_preproc" >&6; }
daa2886c
AJ
6958
6959# So? What about this header?
875927f6
AJ
6960case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6961 yes:no: )
daa2886c
AJ
6962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6963echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
875927f6
AJ
6964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6965echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6966 ac_header_preproc=yes
e24bcc77 6967 ;;
875927f6 6968 no:yes:* )
daa2886c
AJ
6969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6970echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
875927f6
AJ
6971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6972echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6974echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6976echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
daa2886c 6977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77 6978echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
875927f6
AJ
6979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6980echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
fc6ffb29 6981 ( cat <<\_ASBOX
e24bcc77 6982## ------------------------------------ ##
875927f6 6983## Report this to wine-devel@winehq.org ##
e24bcc77
AJ
6984## ------------------------------------ ##
6985_ASBOX
fc6ffb29 6986 ) | sed "s/^/$as_me: WARNING: /" >&2
e24bcc77 6987 ;;
daa2886c 6988esac
fc6ffb29
AJ
6989{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
daa2886c
AJ
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993else
875927f6 6994 eval "$as_ac_Header=\$ac_header_preproc"
24110288 6995fi
fc6ffb29
AJ
6996ac_res=`eval echo '${'$as_ac_Header'}'`
6997 { echo "$as_me:$LINENO: result: $ac_res" >&5
6998echo "${ECHO_T}$ac_res" >&6; }
daa2886c
AJ
6999
7000fi
f5818d2f 7001if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 7002 cat >>confdefs.h <<_ACEOF
f5818d2f 7003#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
7004_ACEOF
7005
7ff12568 7006fi
f5818d2f 7007
7ff12568 7008done
255b486c 7009
fc6ffb29
AJ
7010{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7011echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7ff12568 7012if test "${ac_cv_header_stat_broken+set}" = set; then
f5818d2f
AJ
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014else
044b5c41 7015 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7016/* confdefs.h. */
7017_ACEOF
7018cat confdefs.h >>conftest.$ac_ext
7019cat >>conftest.$ac_ext <<_ACEOF
7020/* end confdefs.h. */
7ff12568
RK
7021#include <sys/types.h>
7022#include <sys/stat.h>
044b5c41 7023
fc6ffb29 7024#if defined S_ISBLK && defined S_IFDIR
f0ca586f 7025extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7ff12568 7026#endif
255b486c 7027
fc6ffb29 7028#if defined S_ISBLK && defined S_IFCHR
f0ca586f 7029extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7ff12568 7030#endif
255b486c 7031
fc6ffb29 7032#if defined S_ISLNK && defined S_IFREG
f0ca586f 7033extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7ff12568 7034#endif
f5818d2f 7035
fc6ffb29 7036#if defined S_ISSOCK && defined S_IFREG
f0ca586f 7037extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
f5818d2f 7038#endif
7ff12568 7039
f5818d2f 7040_ACEOF
f0ca586f
PK
7041rm -f conftest.$ac_objext
7042if { (ac_try="$ac_compile"
7043case "(($ac_try" in
7044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7045 *) ac_try_echo=$ac_try;;
7046esac
7047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7048 (eval "$ac_compile") 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7054 (exit $ac_status); } && {
7055 test -z "$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7057 } && test -s conftest.$ac_objext; then
7ff12568 7058 ac_cv_header_stat_broken=no
f0ca586f
PK
7059else
7060 echo "$as_me: failed program was:" >&5
7061sed 's/^/| /' conftest.$ac_ext >&5
7062
7063 ac_cv_header_stat_broken=yes
f5818d2f 7064fi
7ff12568 7065
f0ca586f 7066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 7067fi
fc6ffb29
AJ
7068{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7069echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7ff12568 7070if test $ac_cv_header_stat_broken = yes; then
f5818d2f 7071
daa2886c 7072cat >>confdefs.h <<\_ACEOF
7ff12568 7073#define STAT_MACROS_BROKEN 1
daa2886c 7074_ACEOF
c90fb25c 7075
c90fb25c
OK
7076fi
7077
daa2886c 7078
7ff12568 7079
2d6d4e96
HL
7080
7081
7082
7083
7084for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
b079add3
AJ
7085do
7086as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
7087{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7089if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b079add3
AJ
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091else
7092 cat >conftest.$ac_ext <<_ACEOF
7093/* confdefs.h. */
7094_ACEOF
7095cat confdefs.h >>conftest.$ac_ext
7096cat >>conftest.$ac_ext <<_ACEOF
7097/* end confdefs.h. */
2d6d4e96
HL
7098#include <sys/types.h>
7099 #if HAVE_SYS_PARAM_H
7100 # include <sys/param.h>
7101 #endif
b079add3
AJ
7102
7103#include <$ac_header>
7104_ACEOF
7105rm -f conftest.$ac_objext
0ebeb530
JW
7106if { (ac_try="$ac_compile"
7107case "(($ac_try" in
7108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7109 *) ac_try_echo=$ac_try;;
7110esac
7111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7112 (eval "$ac_compile") 2>conftest.er1
b079add3
AJ
7113 ac_status=$?
7114 grep -v '^ *+' conftest.er1 >conftest.err
7115 rm -f conftest.er1
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7118 (exit $ac_status); } && {
7119 test -z "$ac_c_werror_flag" ||
7120 test ! -s conftest.err
7121 } && test -s conftest.$ac_objext; then
b079add3
AJ
7122 eval "$as_ac_Header=yes"
7123else
7124 echo "$as_me: failed program was:" >&5
7125sed 's/^/| /' conftest.$ac_ext >&5
7126
fc6ffb29 7127 eval "$as_ac_Header=no"
b079add3 7128fi
fc6ffb29 7129
0ebeb530 7130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b079add3 7131fi
fc6ffb29
AJ
7132ac_res=`eval echo '${'$as_ac_Header'}'`
7133 { echo "$as_me:$LINENO: result: $ac_res" >&5
7134echo "${ECHO_T}$ac_res" >&6; }
b079add3
AJ
7135if test `eval echo '${'$as_ac_Header'}'` = yes; then
7136 cat >>confdefs.h <<_ACEOF
7137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7138_ACEOF
7139
7140fi
7141
7142done
7143
7144
7145
7ff12568
RK
7146
7147
7148
7149
7150
2569635c
MA
7151
7152
7153for ac_header in netinet/in_pcb.h netinet/ip_var.h net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
7154do
7155as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7156{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7158if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160else
7161 cat >conftest.$ac_ext <<_ACEOF
7162/* confdefs.h. */
7163_ACEOF
7164cat confdefs.h >>conftest.$ac_ext
7165cat >>conftest.$ac_ext <<_ACEOF
7166/* end confdefs.h. */
7167#include <sys/types.h>
7168 #if HAVE_SYS_SOCKET_H
7169 # include <sys/socket.h>
7170 #endif
7171
7172#include <$ac_header>
7173_ACEOF
7174rm -f conftest.$ac_objext
7175if { (ac_try="$ac_compile"
7176case "(($ac_try" in
7177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7178 *) ac_try_echo=$ac_try;;
7179esac
7180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7181 (eval "$ac_compile") 2>conftest.er1
7182 ac_status=$?
7183 grep -v '^ *+' conftest.er1 >conftest.err
7184 rm -f conftest.er1
7185 cat conftest.err >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } && {
7188 test -z "$ac_c_werror_flag" ||
7189 test ! -s conftest.err
7190 } && test -s conftest.$ac_objext; then
7191 eval "$as_ac_Header=yes"
7192else
7193 echo "$as_me: failed program was:" >&5
7194sed 's/^/| /' conftest.$ac_ext >&5
7195
7196 eval "$as_ac_Header=no"
7197fi
7198
7199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200fi
7201ac_res=`eval echo '${'$as_ac_Header'}'`
7202 { echo "$as_me:$LINENO: result: $ac_res" >&5
7203echo "${ECHO_T}$ac_res" >&6; }
7204if test `eval echo '${'$as_ac_Header'}'` = yes; then
7205 cat >>confdefs.h <<_ACEOF
7206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7207_ACEOF
7208
7209fi
7210
7211done
7212
7213 #if HAVE_SYS_SOCKETVAR_H
7214 # include <sys/socketvar.h>
7215 #endif
7216
7217
7218for ac_header in netinet/tcp_var.h
7ff12568
RK
7219do
7220as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
7221{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7ff12568
RK
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225else
7226 cat >conftest.$ac_ext <<_ACEOF
7227/* confdefs.h. */
7228_ACEOF
7229cat confdefs.h >>conftest.$ac_ext
7230cat >>conftest.$ac_ext <<_ACEOF
7231/* end confdefs.h. */
2d6d4e96
HL
7232#include <sys/types.h>
7233 #if HAVE_SYS_SOCKET_H
7234 # include <sys/socket.h>
7235 #endif
2569635c
MA
7236 #if HAVE_SYS_SOCKETVAR_H
7237 # include <sys/socketvar.h>
7238 #endif
7239 #if HAVE_NETINET_IN_H
7240 # include <netinet/in.h>
7241 #endif
7242 #ifdef HAVE_NETINET_TCP_H
7243 # include <netinet/tcp.h>
7244 #endif
7ff12568
RK
7245
7246#include <$ac_header>
7247_ACEOF
7248rm -f conftest.$ac_objext
0ebeb530
JW
7249if { (ac_try="$ac_compile"
7250case "(($ac_try" in
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7253esac
7254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255 (eval "$ac_compile") 2>conftest.er1
7ff12568
RK
7256 ac_status=$?
7257 grep -v '^ *+' conftest.er1 >conftest.err
7258 rm -f conftest.er1
7259 cat conftest.err >&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest.$ac_objext; then
7ff12568
RK
7265 eval "$as_ac_Header=yes"
7266else
7267 echo "$as_me: failed program was:" >&5
7268sed 's/^/| /' conftest.$ac_ext >&5
7269
fc6ffb29 7270 eval "$as_ac_Header=no"
7ff12568 7271fi
fc6ffb29 7272
0ebeb530 7273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7ff12568 7274fi
fc6ffb29
AJ
7275ac_res=`eval echo '${'$as_ac_Header'}'`
7276 { echo "$as_me:$LINENO: result: $ac_res" >&5
7277echo "${ECHO_T}$ac_res" >&6; }
7ff12568
RK
7278if test `eval echo '${'$as_ac_Header'}'` = yes; then
7279 cat >>confdefs.h <<_ACEOF
7280#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 7281_ACEOF
5b6879c5 7282
5b6879c5
FJ
7283fi
7284
7ff12568 7285done
daa2886c 7286
7ff12568 7287
2d6d4e96 7288
faf05dfd
FG
7289for ac_header in linux/ipx.h
7290do
7291as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7292{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7294if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296else
7297 cat >conftest.$ac_ext <<_ACEOF
7298/* confdefs.h. */
7299_ACEOF
7300cat confdefs.h >>conftest.$ac_ext
7301cat >>conftest.$ac_ext <<_ACEOF
7302/* end confdefs.h. */
7303#include <sys/types.h>
7304 #ifdef HAVE_ASM_TYPES_H
7305 # include <asm/types.h>
7306 #endif
7307 #if HAVE_SYS_SOCKET_H
7308 # include <sys/socket.h>
7309 #endif
7310
7311#include <$ac_header>
7312_ACEOF
7313rm -f conftest.$ac_objext
7314if { (ac_try="$ac_compile"
7315case "(($ac_try" in
7316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7317 *) ac_try_echo=$ac_try;;
7318esac
7319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7320 (eval "$ac_compile") 2>conftest.er1
7321 ac_status=$?
7322 grep -v '^ *+' conftest.er1 >conftest.err
7323 rm -f conftest.er1
7324 cat conftest.err >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7326 (exit $ac_status); } && {
7327 test -z "$ac_c_werror_flag" ||
7328 test ! -s conftest.err
7329 } && test -s conftest.$ac_objext; then
faf05dfd
FG
7330 eval "$as_ac_Header=yes"
7331else
7332 echo "$as_me: failed program was:" >&5
7333sed 's/^/| /' conftest.$ac_ext >&5
7334
7335 eval "$as_ac_Header=no"
7336fi
7337
7338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339fi
7340ac_res=`eval echo '${'$as_ac_Header'}'`
7341 { echo "$as_me:$LINENO: result: $ac_res" >&5
7342echo "${ECHO_T}$ac_res" >&6; }
7343if test `eval echo '${'$as_ac_Header'}'` = yes; then
7344 cat >>confdefs.h <<_ACEOF
7345#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7346_ACEOF
7347
7348fi
7349
7350done
7351
7352
7353
2d6d4e96
HL
7354for ac_header in resolv.h
7355do
7356as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
7357{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 7360 echo $ECHO_N "(cached) $ECHO_C" >&6
d94475bd 7361else
2d6d4e96 7362 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7363/* confdefs.h. */
7364_ACEOF
7365cat confdefs.h >>conftest.$ac_ext
7366cat >>conftest.$ac_ext <<_ACEOF
7367/* end confdefs.h. */
2d6d4e96
HL
7368#include <sys/types.h>
7369 #if HAVE_SYS_SOCKET_H
7370 # include <sys/socket.h>
7371 #endif
7372 #if HAVE_NETINET_IN_H
7373 # include <netinet/in.h>
7374 #endif
7375 #if HAVE_ARPA_NAMESER_H
7376 # include <arpa/nameser.h>
7377 #endif
f5818d2f 7378
2d6d4e96 7379#include <$ac_header>
f5818d2f 7380_ACEOF
2d6d4e96 7381rm -f conftest.$ac_objext
0ebeb530
JW
7382if { (ac_try="$ac_compile"
7383case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386esac
7387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_compile") 2>conftest.er1
f5818d2f 7389 ac_status=$?
875927f6
AJ
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
daa2886c 7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
2d6d4e96 7398 eval "$as_ac_Header=yes"
f5818d2f
AJ
7399else
7400 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7401sed 's/^/| /' conftest.$ac_ext >&5
7402
fc6ffb29 7403 eval "$as_ac_Header=no"
f5818d2f 7404fi
fc6ffb29 7405
0ebeb530 7406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 7407fi
fc6ffb29
AJ
7408ac_res=`eval echo '${'$as_ac_Header'}'`
7409 { echo "$as_me:$LINENO: result: $ac_res" >&5
7410echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
7411if test `eval echo '${'$as_ac_Header'}'` = yes; then
7412 cat >>confdefs.h <<_ACEOF
7413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 7414_ACEOF
10ad97c8 7415
7ff12568 7416fi
f5818d2f 7417
2d6d4e96 7418done
7ff12568 7419
2d6d4e96
HL
7420
7421
7422for ac_header in ucontext.h
7423do
7424as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
7425{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7427if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 7428 echo $ECHO_N "(cached) $ECHO_C" >&6
02e90087 7429else
2d6d4e96 7430 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7431/* confdefs.h. */
7432_ACEOF
7433cat confdefs.h >>conftest.$ac_ext
7434cat >>conftest.$ac_ext <<_ACEOF
7435/* end confdefs.h. */
2d6d4e96 7436#include <signal.h>
f5818d2f 7437
60833da9
TC
7438#include <$ac_header>
7439_ACEOF
7440rm -f conftest.$ac_objext
7441if { (ac_try="$ac_compile"
7442case "(($ac_try" in
7443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7445esac
7446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7447 (eval "$ac_compile") 2>conftest.er1
7448 ac_status=$?
7449 grep -v '^ *+' conftest.er1 >conftest.err
7450 rm -f conftest.er1
7451 cat conftest.err >&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } && {
7454 test -z "$ac_c_werror_flag" ||
7455 test ! -s conftest.err
7456 } && test -s conftest.$ac_objext; then
7457 eval "$as_ac_Header=yes"
7458else
7459 echo "$as_me: failed program was:" >&5
7460sed 's/^/| /' conftest.$ac_ext >&5
7461
7462 eval "$as_ac_Header=no"
7463fi
7464
7465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7466fi
7467ac_res=`eval echo '${'$as_ac_Header'}'`
7468 { echo "$as_me:$LINENO: result: $ac_res" >&5
7469echo "${ECHO_T}$ac_res" >&6; }
7470if test `eval echo '${'$as_ac_Header'}'` = yes; then
7471 cat >>confdefs.h <<_ACEOF
7472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7473_ACEOF
7474
7475fi
7476
7477done
7478
7479
7480
7481for ac_header in sys/thr.h
7482do
7483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7484{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7488else
7489 cat >conftest.$ac_ext <<_ACEOF
7490/* confdefs.h. */
7491_ACEOF
7492cat confdefs.h >>conftest.$ac_ext
7493cat >>conftest.$ac_ext <<_ACEOF
7494/* end confdefs.h. */
7495#include <sys/types.h>
7496#if HAVE_UCONTEXT_H
7497#include <ucontext.h>
7498#endif
7499
4ff90b47
GP
7500#include <$ac_header>
7501_ACEOF
7502rm -f conftest.$ac_objext
7503if { (ac_try="$ac_compile"
7504case "(($ac_try" in
7505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7507esac
7508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.$ac_objext; then
4ff90b47
GP
7519 eval "$as_ac_Header=yes"
7520else
7521 echo "$as_me: failed program was:" >&5
7522sed 's/^/| /' conftest.$ac_ext >&5
7523
7524 eval "$as_ac_Header=no"
7525fi
7526
7527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528fi
7529ac_res=`eval echo '${'$as_ac_Header'}'`
7530 { echo "$as_me:$LINENO: result: $ac_res" >&5
7531echo "${ECHO_T}$ac_res" >&6; }
7532if test `eval echo '${'$as_ac_Header'}'` = yes; then
7533 cat >>confdefs.h <<_ACEOF
7534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7535_ACEOF
7536
7537fi
7538
7539done
7540
7541
7542
7543for ac_header in pthread_np.h
7544do
7545as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7546{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551 cat >conftest.$ac_ext <<_ACEOF
7552/* confdefs.h. */
7553_ACEOF
7554cat confdefs.h >>conftest.$ac_ext
7555cat >>conftest.$ac_ext <<_ACEOF
7556/* end confdefs.h. */
7557#ifdef HAVE_PTHREAD_H
7558#include <pthread.h>
7559#endif
7560
2d6d4e96 7561#include <$ac_header>
f5818d2f 7562_ACEOF
2d6d4e96 7563rm -f conftest.$ac_objext
0ebeb530
JW
7564if { (ac_try="$ac_compile"
7565case "(($ac_try" in
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7568esac
7569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570 (eval "$ac_compile") 2>conftest.er1
f5818d2f 7571 ac_status=$?
875927f6
AJ
7572 grep -v '^ *+' conftest.er1 >conftest.err
7573 rm -f conftest.er1
7574 cat conftest.err >&5
daa2886c 7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7576 (exit $ac_status); } && {
7577 test -z "$ac_c_werror_flag" ||
7578 test ! -s conftest.err
7579 } && test -s conftest.$ac_objext; then
2d6d4e96 7580 eval "$as_ac_Header=yes"
f5818d2f
AJ
7581else
7582 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7583sed 's/^/| /' conftest.$ac_ext >&5
7584
fc6ffb29 7585 eval "$as_ac_Header=no"
f5818d2f 7586fi
fc6ffb29 7587
0ebeb530 7588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 7589fi
fc6ffb29
AJ
7590ac_res=`eval echo '${'$as_ac_Header'}'`
7591 { echo "$as_me:$LINENO: result: $ac_res" >&5
7592echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
7593if test `eval echo '${'$as_ac_Header'}'` = yes; then
7594 cat >>confdefs.h <<_ACEOF
7595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 7596_ACEOF
10ad97c8 7597
f2b77ccb
JS
7598fi
7599
2d6d4e96 7600done
daa2886c 7601
2d6d4e96
HL
7602
7603
faf05dfd 7604for ac_header in linux/videodev.h
2d6d4e96
HL
7605do
7606as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
7607{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 7610 echo $ECHO_N "(cached) $ECHO_C" >&6
399931a2 7611else
2d6d4e96 7612 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7613/* confdefs.h. */
7614_ACEOF
7615cat confdefs.h >>conftest.$ac_ext
7616cat >>conftest.$ac_ext <<_ACEOF
7617/* end confdefs.h. */
2d6d4e96
HL
7618#ifdef HAVE_SYS_TIME_H
7619#include <sys/time.h>
f5818d2f 7620#endif
2d6d4e96
HL
7621#include <sys/types.h>
7622#ifdef HAVE_ASM_TYPES_H
7623#include <asm/types.h>
7624#endif
7625
7626#include <$ac_header>
f5818d2f 7627_ACEOF
2d6d4e96 7628rm -f conftest.$ac_objext
0ebeb530
JW
7629if { (ac_try="$ac_compile"
7630case "(($ac_try" in
7631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632 *) ac_try_echo=$ac_try;;
7633esac
7634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7635 (eval "$ac_compile") 2>conftest.er1
f5818d2f 7636 ac_status=$?
875927f6
AJ
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
daa2886c 7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7641 (exit $ac_status); } && {
7642 test -z "$ac_c_werror_flag" ||
7643 test ! -s conftest.err
7644 } && test -s conftest.$ac_objext; then
2d6d4e96 7645 eval "$as_ac_Header=yes"
f5818d2f
AJ
7646else
7647 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7648sed 's/^/| /' conftest.$ac_ext >&5
7649
fc6ffb29 7650 eval "$as_ac_Header=no"
f5818d2f 7651fi
fc6ffb29 7652
0ebeb530 7653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 7654fi
fc6ffb29
AJ
7655ac_res=`eval echo '${'$as_ac_Header'}'`
7656 { echo "$as_me:$LINENO: result: $ac_res" >&5
7657echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
7658if test `eval echo '${'$as_ac_Header'}'` = yes; then
7659 cat >>confdefs.h <<_ACEOF
7660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 7661_ACEOF
f2b77ccb 7662
399931a2
SC
7663fi
7664
2d6d4e96 7665done
daa2886c 7666
2d6d4e96
HL
7667
7668
7669for ac_header in linux/capi.h
7670do
7671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
7672{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2d6d4e96
HL
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677 cat >conftest.$ac_ext <<_ACEOF
7678/* confdefs.h. */
7679_ACEOF
8f174bc6
AP
7680cat confdefs.h >>conftest.$ac_ext
7681cat >>conftest.$ac_ext <<_ACEOF
7682/* end confdefs.h. */
2d6d4e96 7683#define __user
7ff12568 7684
2d6d4e96 7685#include <$ac_header>
8f174bc6 7686_ACEOF
2d6d4e96 7687rm -f conftest.$ac_objext
0ebeb530
JW
7688if { (ac_try="$ac_compile"
7689case "(($ac_try" in
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7692esac
7693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7694 (eval "$ac_compile") 2>conftest.er1
8f174bc6 7695 ac_status=$?
875927f6
AJ
7696 grep -v '^ *+' conftest.er1 >conftest.err
7697 rm -f conftest.er1
7698 cat conftest.err >&5
8f174bc6 7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7700 (exit $ac_status); } && {
7701 test -z "$ac_c_werror_flag" ||
7702 test ! -s conftest.err
7703 } && test -s conftest.$ac_objext; then
2d6d4e96 7704 eval "$as_ac_Header=yes"
7ff12568
RK
7705else
7706 echo "$as_me: failed program was:" >&5
7707sed 's/^/| /' conftest.$ac_ext >&5
7708
fc6ffb29 7709 eval "$as_ac_Header=no"
7ff12568 7710fi
fc6ffb29 7711
0ebeb530 7712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7ff12568 7713fi
fc6ffb29
AJ
7714ac_res=`eval echo '${'$as_ac_Header'}'`
7715 { echo "$as_me:$LINENO: result: $ac_res" >&5
7716echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
7717if test `eval echo '${'$as_ac_Header'}'` = yes; then
7718 cat >>confdefs.h <<_ACEOF
7719#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7720_ACEOF
7ff12568 7721
2d6d4e96
HL
7722fi
7723
7724done
7725
7726
7727
a3097628 7728DLLEXT=""
2d6d4e96 7729
a3097628 7730DLLFLAGS="-D_REENTRANT"
2d6d4e96 7731
a3097628 7732LDSHARED=""
2d6d4e96 7733
a3097628 7734LDDLLFLAGS=""
2d6d4e96 7735
a3097628 7736LIBEXT="so"
2d6d4e96 7737
a3097628 7738IMPLIBEXT="def"
2d6d4e96 7739
a3097628 7740LDRPATH_INSTALL=""
7d00b050 7741
a3097628 7742LDRPATH_LOCAL=""
23e2cb1f 7743
a3097628
AJ
7744# Extract the first word of "ldd", so it can be a program name with args.
7745set dummy ldd; ac_word=$2
7746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7748if test "${ac_cv_path_LDD+set}" = set; then
2d6d4e96
HL
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7750else
a3097628
AJ
7751 case $LDD in
7752 [\\/]* | ?:[\\/]*)
7753 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
7754 ;;
7755 *)
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757as_dummy="/sbin:/usr/sbin:$PATH"
7758for as_dir in $as_dummy
7759do
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7764 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
7765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7766 break 2
7767 fi
7768done
7769done
7770IFS=$as_save_IFS
7ff12568 7771
a3097628
AJ
7772 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
7773 ;;
0ebeb530 7774esac
7ff12568 7775fi
a3097628
AJ
7776LDD=$ac_cv_path_LDD
7777if test -n "$LDD"; then
7778 { echo "$as_me:$LINENO: result: $LDD" >&5
7779echo "${ECHO_T}$LDD" >&6; }
7780else
7781 { echo "$as_me:$LINENO: result: no" >&5
7782echo "${ECHO_T}no" >&6; }
2d6d4e96 7783fi
7ff12568 7784
2d6d4e96
HL
7785
7786
a3097628
AJ
7787case $host_os in
7788 cygwin*|mingw32*)
7789 if test -n "$ac_tool_prefix"; then
7790 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7791set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7794if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7ff12568
RK
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796else
a3097628
AJ
7797 if test -n "$DLLTOOL"; then
7798 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7ff12568 7799else
a3097628
AJ
7800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801for as_dir in $PATH
7802do
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7810 fi
7811done
7812done
7813IFS=$as_save_IFS
7ff12568 7814
7ff12568 7815fi
7ff12568 7816fi
a3097628
AJ
7817DLLTOOL=$ac_cv_prog_DLLTOOL
7818if test -n "$DLLTOOL"; then
7819 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7820echo "${ECHO_T}$DLLTOOL" >&6; }
7821else
7822 { echo "$as_me:$LINENO: result: no" >&5
7823echo "${ECHO_T}no" >&6; }
7ff12568
RK
7824fi
7825
7ff12568 7826
a3097628
AJ
7827fi
7828if test -z "$ac_cv_prog_DLLTOOL"; then
7829 ac_ct_DLLTOOL=$DLLTOOL
7830 # Extract the first word of "dlltool", so it can be a program name with args.
7831set dummy dlltool; ac_word=$2
7832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7834if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
2d6d4e96
HL
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836else
a3097628
AJ
7837 if test -n "$ac_ct_DLLTOOL"; then
7838 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
c7c9f939 7839else
a3097628
AJ
7840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841for as_dir in $PATH
7842do
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7847 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 break 2
7850 fi
7851done
7852done
7853IFS=$as_save_IFS
8f174bc6 7854
a3097628
AJ
7855fi
7856fi
7857ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7858if test -n "$ac_ct_DLLTOOL"; then
7859 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7860echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
7861else
7862 { echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6; }
8f174bc6 7864fi
fc6ffb29 7865
a3097628
AJ
7866 if test "x$ac_ct_DLLTOOL" = x; then
7867 DLLTOOL="false"
7868 else
7869 case $cross_compiling:$ac_tool_warned in
7870yes:)
7871{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7872whose name does not start with the host triplet. If you think this
7873configuration is useful to you, please write to autoconf@gnu.org." >&5
7874echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7875whose name does not start with the host triplet. If you think this
7876configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7877ac_tool_warned=yes ;;
7878esac
7879 DLLTOOL=$ac_ct_DLLTOOL
7880 fi
7881else
7882 DLLTOOL="$ac_cv_prog_DLLTOOL"
2d6d4e96 7883fi
2d6d4e96 7884
a3097628
AJ
7885 if test -n "$ac_tool_prefix"; then
7886 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
7887set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
7888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7890if test "${ac_cv_prog_DLLWRAP+set}" = set; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
7893 if test -n "$DLLWRAP"; then
7894 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
7895else
7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
7904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7906 fi
7907done
7908done
7909IFS=$as_save_IFS
2d6d4e96
HL
7910
7911fi
a3097628
AJ
7912fi
7913DLLWRAP=$ac_cv_prog_DLLWRAP
7914if test -n "$DLLWRAP"; then
7915 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
7916echo "${ECHO_T}$DLLWRAP" >&6; }
7917else
7918 { echo "$as_me:$LINENO: result: no" >&5
7919echo "${ECHO_T}no" >&6; }
7920fi
2d6d4e96 7921
92ec21bd 7922
a3097628
AJ
7923fi
7924if test -z "$ac_cv_prog_DLLWRAP"; then
7925 ac_ct_DLLWRAP=$DLLWRAP
7926 # Extract the first word of "dllwrap", so it can be a program name with args.
7927set dummy dllwrap; ac_word=$2
7928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7930if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
92ec21bd
KK
7931 echo $ECHO_N "(cached) $ECHO_C" >&6
7932else
a3097628
AJ
7933 if test -n "$ac_ct_DLLWRAP"; then
7934 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
92ec21bd 7935else
a3097628
AJ
7936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937for as_dir in $PATH
7938do
7939 IFS=$as_save_IFS
7940 test -z "$as_dir" && as_dir=.
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7943 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
7944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7945 break 2
7946 fi
7947done
7948done
7949IFS=$as_save_IFS
92ec21bd 7950
92ec21bd 7951fi
92ec21bd 7952fi
a3097628
AJ
7953ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
7954if test -n "$ac_ct_DLLWRAP"; then
7955 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
7956echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
7957else
7958 { echo "$as_me:$LINENO: result: no" >&5
7959echo "${ECHO_T}no" >&6; }
f5818d2f 7960fi
5c085704 7961
a3097628
AJ
7962 if test "x$ac_ct_DLLWRAP" = x; then
7963 DLLWRAP="false"
7964 else
7965 case $cross_compiling:$ac_tool_warned in
7966yes:)
7967{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7968whose name does not start with the host triplet. If you think this
7969configuration is useful to you, please write to autoconf@gnu.org." >&5
7970echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7971whose name does not start with the host triplet. If you think this
7972configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7973ac_tool_warned=yes ;;
7974esac
7975 DLLWRAP=$ac_ct_DLLWRAP
7976 fi
7977else
7978 DLLWRAP="$ac_cv_prog_DLLWRAP"
7979fi
2d6d4e96 7980
a3097628
AJ
7981 if test -n "$ac_tool_prefix"; then
7982 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7983set dummy ${ac_tool_prefix}ar; ac_word=$2
7984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7986if test "${ac_cv_prog_MINGWAR+set}" = set; then
f5818d2f 7987 echo $ECHO_N "(cached) $ECHO_C" >&6
5ff00774 7988else
a3097628
AJ
7989 if test -n "$MINGWAR"; then
7990 ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
f5818d2f 7991else
a3097628
AJ
7992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993for as_dir in $PATH
7994do
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_prog_MINGWAR="${ac_tool_prefix}ar"
8000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8002 fi
8003done
8004done
8005IFS=$as_save_IFS
e24bcc77 8006
f5818d2f 8007fi
f5818d2f 8008fi
a3097628
AJ
8009MINGWAR=$ac_cv_prog_MINGWAR
8010if test -n "$MINGWAR"; then
8011 { echo "$as_me:$LINENO: result: $MINGWAR" >&5
8012echo "${ECHO_T}$MINGWAR" >&6; }
8013else
8014 { echo "$as_me:$LINENO: result: no" >&5
8015echo "${ECHO_T}no" >&6; }
8016fi
6bb6d4c2 8017
5a2da4ee 8018
2d6d4e96 8019fi
a3097628
AJ
8020if test -z "$ac_cv_prog_MINGWAR"; then
8021 ac_ct_MINGWAR=$MINGWAR
8022 # Extract the first word of "ar", so it can be a program name with args.
8023set dummy ar; ac_word=$2
8024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8026if test "${ac_cv_prog_ac_ct_MINGWAR+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8028else
8029 if test -n "$ac_ct_MINGWAR"; then
8030 ac_cv_prog_ac_ct_MINGWAR="$ac_ct_MINGWAR" # Let the user override the test.
8031else
8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033for as_dir in $PATH
8034do
8035 IFS=$as_save_IFS
8036 test -z "$as_dir" && as_dir=.
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039 ac_cv_prog_ac_ct_MINGWAR="ar"
8040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 break 2
8042 fi
8043done
8044done
8045IFS=$as_save_IFS
2d6d4e96 8046
a3097628
AJ
8047fi
8048fi
8049ac_ct_MINGWAR=$ac_cv_prog_ac_ct_MINGWAR
8050if test -n "$ac_ct_MINGWAR"; then
8051 { echo "$as_me:$LINENO: result: $ac_ct_MINGWAR" >&5
8052echo "${ECHO_T}$ac_ct_MINGWAR" >&6; }
8053else
8054 { echo "$as_me:$LINENO: result: no" >&5
8055echo "${ECHO_T}no" >&6; }
8056fi
2d6d4e96 8057
a3097628
AJ
8058 if test "x$ac_ct_MINGWAR" = x; then
8059 MINGWAR="false"
8060 else
8061 case $cross_compiling:$ac_tool_warned in
8062yes:)
8063{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8064whose name does not start with the host triplet. If you think this
8065configuration is useful to you, please write to autoconf@gnu.org." >&5
8066echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8067whose name does not start with the host triplet. If you think this
8068configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8069ac_tool_warned=yes ;;
0ebeb530 8070esac
a3097628
AJ
8071 MINGWAR=$ac_ct_MINGWAR
8072 fi
8073else
8074 MINGWAR="$ac_cv_prog_MINGWAR"
8075fi
2d6d4e96 8076
a3097628
AJ
8077 if test "$DLLWRAP" = "false"; then
8078 LIBEXT="a"
8079 else
8080 LIBEXT="dll"
8081 fi
8082 IMPLIBEXT="a"
8083 WIN16_FILES=""
8084 WIN16_INSTALL=""
8085 ;;
8086 darwin*|macosx*)
8087 DLLEXT=".so"
8088 LIBEXT="dylib"
8089 DLLFLAGS="$DLLFLAGS -fPIC"
8090 LDDLLFLAGS="-bundle -multiply_defined suppress"
8091 LIBWINE_LDFLAGS="-multiply_defined suppress"
8092 LDSHARED="\$(CC) -dynamiclib"
8093 STRIP="$STRIP -x"
8094 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
8095 COREFOUNDATIONLIB="-framework CoreFoundation"
2d6d4e96 8096
a3097628 8097 IOKITLIB="-framework IOKit -framework CoreFoundation"
e24bcc77 8098
a3097628 8099 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
fc6ffb29 8100
a3097628
AJ
8101 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
8102 then
8103 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
fc6ffb29 8104
a3097628
AJ
8105 fi
8106 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
8107 then
8108 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
b63ab445 8109
a3097628
AJ
8110 fi
8111 case $host_cpu in
8112 *powerpc*)
8113 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
8114 esac
8115 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
8116 then
8117 CARBONLIB="-framework Carbon"
8118
8119 QUARTZFILES='$(QUARTZFILES)'
8120 fi
8121 ;;
8122 *)
8123 DLLFLAGS="$DLLFLAGS -fPIC"
8124 DLLEXT=".so"
8125 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
8126echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
8127if test "${ac_cv_c_dll_gnuelf+set}" = set; then
ef799c46
JC
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8129else
a3097628
AJ
8130 ac_wine_try_cflags_saved=$CFLAGS
8131CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
ef799c46 8132cat >conftest.$ac_ext <<_ACEOF
a3097628 8133void myfunc() {}
ef799c46
JC
8134_ACEOF
8135rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
8136if { (ac_try="$ac_link"
8137case "(($ac_try" in
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8140esac
8141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_link") 2>conftest.er1
ef799c46 8143 ac_status=$?
875927f6
AJ
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
ef799c46 8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest$ac_exeext &&
8152 $as_test_x conftest$ac_exeext; then
a3097628 8153 ac_cv_c_dll_gnuelf="yes"
ef799c46
JC
8154else
8155 echo "$as_me: failed program was:" >&5
8156sed 's/^/| /' conftest.$ac_ext >&5
8157
a3097628 8158 ac_cv_c_dll_gnuelf="no"
ef799c46 8159fi
fc6ffb29 8160
f0ca586f 8161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 8162 conftest$ac_exeext conftest.$ac_ext
a3097628 8163CFLAGS=$ac_wine_try_cflags_saved
ef799c46 8164fi
a3097628
AJ
8165{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
8166echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
8167 if test "$ac_cv_c_dll_gnuelf" = "yes"
8168 then
8169 LDSHARED="\$(CC) -shared"
8170 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
8171 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8172echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
8173if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175else
8176 ac_wine_try_cflags_saved=$CFLAGS
8177CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8178cat >conftest.$ac_ext <<_ACEOF
7d00b050
AJ
8179/* confdefs.h. */
8180_ACEOF
8181cat confdefs.h >>conftest.$ac_ext
8182cat >>conftest.$ac_ext <<_ACEOF
8183/* end confdefs.h. */
a3097628 8184
7d00b050
AJ
8185int
8186main ()
8187{
a3097628 8188
7d00b050
AJ
8189 ;
8190 return 0;
8191}
8192_ACEOF
a3097628
AJ
8193rm -f conftest.$ac_objext conftest$ac_exeext
8194if { (ac_try="$ac_link"
7d00b050
AJ
8195case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198esac
8199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 8200 (eval "$ac_link") 2>conftest.er1
7d00b050
AJ
8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
a3097628
AJ
8209 } && test -s conftest$ac_exeext &&
8210 $as_test_x conftest$ac_exeext; then
8211 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
7d00b050
AJ
8212else
8213 echo "$as_me: failed program was:" >&5
8214sed 's/^/| /' conftest.$ac_ext >&5
8215
a3097628 8216 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
7d00b050
AJ
8217fi
8218
a3097628
AJ
8219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8220 conftest$ac_exeext conftest.$ac_ext
8221CFLAGS=$ac_wine_try_cflags_saved
8222fi
8223{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8224echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8225if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
8226 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
8227else
8228 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8229echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
8230if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
6f670b13 8231 echo $ECHO_N "(cached) $ECHO_C" >&6
6f670b13 8232else
a3097628
AJ
8233 ac_wine_try_cflags_saved=$CFLAGS
8234CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8235cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
8236/* confdefs.h. */
8237_ACEOF
8238cat confdefs.h >>conftest.$ac_ext
8239cat >>conftest.$ac_ext <<_ACEOF
8240/* end confdefs.h. */
2d6d4e96 8241
a3097628
AJ
8242int
8243main ()
8244{
8245
8246 ;
8247 return 0;
8248}
6f670b13 8249_ACEOF
a3097628
AJ
8250rm -f conftest.$ac_objext conftest$ac_exeext
8251if { (ac_try="$ac_link"
0ebeb530
JW
8252case "(($ac_try" in
8253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254 *) ac_try_echo=$ac_try;;
8255esac
8256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 8257 (eval "$ac_link") 2>conftest.er1
6f670b13 8258 ac_status=$?
875927f6
AJ
8259 grep -v '^ *+' conftest.er1 >conftest.err
8260 rm -f conftest.er1
8261 cat conftest.err >&5
6f670b13 8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8263 (exit $ac_status); } && {
8264 test -z "$ac_c_werror_flag" ||
8265 test ! -s conftest.err
a3097628
AJ
8266 } && test -s conftest$ac_exeext &&
8267 $as_test_x conftest$ac_exeext; then
8268 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6f670b13
FG
8269else
8270 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8271sed 's/^/| /' conftest.$ac_ext >&5
8272
a3097628 8273 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6f670b13 8274fi
fc6ffb29 8275
a3097628
AJ
8276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8277 conftest$ac_exeext conftest.$ac_ext
8278CFLAGS=$ac_wine_try_cflags_saved
8279fi
8280{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8281echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8282if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
8283 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6f670b13 8284fi
6f670b13 8285
2d6d4e96
HL
8286fi
8287
2d6d4e96 8288
a3097628
AJ
8289 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
8290echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
8291if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
6f670b13
FG
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8293else
a3097628
AJ
8294 ac_wine_try_cflags_saved=$CFLAGS
8295CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
8296cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
8297/* confdefs.h. */
8298_ACEOF
8299cat confdefs.h >>conftest.$ac_ext
8300cat >>conftest.$ac_ext <<_ACEOF
8301/* end confdefs.h. */
a3097628 8302
2d6d4e96
HL
8303int
8304main ()
8305{
a3097628 8306
2d6d4e96
HL
8307 ;
8308 return 0;
8309}
6f670b13 8310_ACEOF
a3097628
AJ
8311rm -f conftest.$ac_objext conftest$ac_exeext
8312if { (ac_try="$ac_link"
0ebeb530
JW
8313case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8316esac
8317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 8318 (eval "$ac_link") 2>conftest.er1
6f670b13 8319 ac_status=$?
875927f6
AJ
8320 grep -v '^ *+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
6f670b13 8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8324 (exit $ac_status); } && {
8325 test -z "$ac_c_werror_flag" ||
8326 test ! -s conftest.err
a3097628
AJ
8327 } && test -s conftest$ac_exeext &&
8328 $as_test_x conftest$ac_exeext; then
8329 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6f670b13
FG
8330else
8331 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8332sed 's/^/| /' conftest.$ac_ext >&5
8333
a3097628 8334 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6f670b13 8335fi
fc6ffb29 8336
a3097628
AJ
8337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8338 conftest$ac_exeext conftest.$ac_ext
8339CFLAGS=$ac_wine_try_cflags_saved
8340fi
8341{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
8342echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
8343if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
8344 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6f670b13
FG
8345fi
8346
a3097628
AJ
8347
8348 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
8349echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
8350if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
6f670b13
FG
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352else
a3097628
AJ
8353 ac_wine_try_cflags_saved=$CFLAGS
8354CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6f670b13 8355cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
8356/* confdefs.h. */
8357_ACEOF
8358cat confdefs.h >>conftest.$ac_ext
8359cat >>conftest.$ac_ext <<_ACEOF
8360/* end confdefs.h. */
6f670b13 8361
6f670b13
FG
8362int
8363main ()
8364{
a3097628 8365
6f670b13
FG
8366 ;
8367 return 0;
8368}
8369_ACEOF
8370rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
8371if { (ac_try="$ac_link"
8372case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375esac
8376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_link") 2>conftest.er1
6f670b13 8378 ac_status=$?
875927f6
AJ
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
6f670b13 8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8383 (exit $ac_status); } && {
8384 test -z "$ac_c_werror_flag" ||
8385 test ! -s conftest.err
8386 } && test -s conftest$ac_exeext &&
8387 $as_test_x conftest$ac_exeext; then
a3097628 8388 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6f670b13
FG
8389else
8390 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
a3097628 8393 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6f670b13 8394fi
fc6ffb29 8395
f0ca586f 8396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 8397 conftest$ac_exeext conftest.$ac_ext
a3097628 8398CFLAGS=$ac_wine_try_cflags_saved
6f670b13 8399fi
a3097628
AJ
8400{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
8401echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
8402if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
8403 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
c84c4784
AJ
8404fi
8405
dcc2d6c2 8406
a3097628
AJ
8407 echo '{ global: *; };' >conftest.map
8408 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8409echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
8410if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
dcc2d6c2 8411 echo $ECHO_N "(cached) $ECHO_C" >&6
dcc2d6c2 8412else
a3097628
AJ
8413 ac_wine_try_cflags_saved=$CFLAGS
8414CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
dcc2d6c2
MM
8415cat >conftest.$ac_ext <<_ACEOF
8416/* confdefs.h. */
8417_ACEOF
8418cat confdefs.h >>conftest.$ac_ext
8419cat >>conftest.$ac_ext <<_ACEOF
8420/* end confdefs.h. */
2d6d4e96 8421
2d6d4e96
HL
8422int
8423main ()
8424{
a3097628 8425
2d6d4e96
HL
8426 ;
8427 return 0;
8428}
8429_ACEOF
8430rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
8431if { (ac_try="$ac_link"
8432case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8435esac
8436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
8438 ac_status=$?
8439 grep -v '^ *+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8443 (exit $ac_status); } && {
8444 test -z "$ac_c_werror_flag" ||
8445 test ! -s conftest.err
8446 } && test -s conftest$ac_exeext &&
8447 $as_test_x conftest$ac_exeext; then
a3097628 8448 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
2d6d4e96
HL
8449else
8450 echo "$as_me: failed program was:" >&5
8451sed 's/^/| /' conftest.$ac_ext >&5
8452
a3097628 8453 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
2d6d4e96 8454fi
fc6ffb29 8455
f0ca586f 8456rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2d6d4e96 8457 conftest$ac_exeext conftest.$ac_ext
a3097628 8458CFLAGS=$ac_wine_try_cflags_saved
2d6d4e96 8459fi
a3097628
AJ
8460{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8461echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8462if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
8463 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
2d6d4e96
HL
8464fi
8465
a3097628 8466 rm -f conftest.map
2d6d4e96 8467
a3097628
AJ
8468 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8469echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
8470if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
2d6d4e96 8471 echo $ECHO_N "(cached) $ECHO_C" >&6
2d6d4e96 8472else
a3097628
AJ
8473 ac_wine_try_cflags_saved=$CFLAGS
8474CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
2d6d4e96
HL
8475cat >conftest.$ac_ext <<_ACEOF
8476/* confdefs.h. */
8477_ACEOF
8478cat confdefs.h >>conftest.$ac_ext
8479cat >>conftest.$ac_ext <<_ACEOF
8480/* end confdefs.h. */
a3097628
AJ
8481
8482int
8483main ()
8484{
8485
8486 ;
8487 return 0;
8488}
2d6d4e96 8489_ACEOF
a3097628
AJ
8490rm -f conftest.$ac_objext conftest$ac_exeext
8491if { (ac_try="$ac_link"
0ebeb530
JW
8492case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495esac
8496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 8497 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8503 (exit $ac_status); } && {
8504 test -z "$ac_c_werror_flag" ||
8505 test ! -s conftest.err
a3097628
AJ
8506 } && test -s conftest$ac_exeext &&
8507 $as_test_x conftest$ac_exeext; then
8508 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
dcc2d6c2
MM
8509else
8510 echo "$as_me: failed program was:" >&5
8511sed 's/^/| /' conftest.$ac_ext >&5
8512
a3097628
AJ
8513 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8514fi
8515
8516rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8517 conftest$ac_exeext conftest.$ac_ext
8518CFLAGS=$ac_wine_try_cflags_saved
8519fi
8520{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8521echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8522if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
8523 LDEXECFLAGS="-Wl,--export-dynamic"
8524
dcc2d6c2 8525fi
fc6ffb29 8526
dcc2d6c2 8527
a3097628
AJ
8528 as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
8529{ echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8530echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
8531if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533else
8534 ac_wine_try_cflags_saved=$CFLAGS
8535CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
dcc2d6c2
MM
8536cat >conftest.$ac_ext <<_ACEOF
8537/* confdefs.h. */
8538_ACEOF
8539cat confdefs.h >>conftest.$ac_ext
8540cat >>conftest.$ac_ext <<_ACEOF
8541/* end confdefs.h. */
a3097628
AJ
8542
8543int
8544main ()
8545{
8546
8547 ;
8548 return 0;
8549}
dcc2d6c2 8550_ACEOF
a3097628
AJ
8551rm -f conftest.$ac_objext conftest$ac_exeext
8552if { (ac_try="$ac_link"
0ebeb530
JW
8553case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8556esac
8557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 8558 (eval "$ac_link") 2>conftest.er1
dcc2d6c2
MM
8559 ac_status=$?
8560 grep -v '^ *+' conftest.er1 >conftest.err
8561 rm -f conftest.er1
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
8564 (exit $ac_status); } && {
8565 test -z "$ac_c_werror_flag" ||
dc9f3843 8566 test ! -s conftest.err
a3097628
AJ
8567 } && test -s conftest$ac_exeext &&
8568 $as_test_x conftest$ac_exeext; then
8569 eval "$as_ac_var=yes"
dcc2d6c2
MM
8570else
8571 echo "$as_me: failed program was:" >&5
8572sed 's/^/| /' conftest.$ac_ext >&5
8573
a3097628 8574 eval "$as_ac_var=no"
dcc2d6c2 8575fi
fc6ffb29 8576
a3097628
AJ
8577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8578 conftest$ac_exeext conftest.$ac_ext
8579CFLAGS=$ac_wine_try_cflags_saved
dcc2d6c2 8580fi
a3097628 8581ac_res=`eval echo '${'$as_ac_var'}'`
fc6ffb29
AJ
8582 { echo "$as_me:$LINENO: result: $ac_res" >&5
8583echo "${ECHO_T}$ac_res" >&6; }
a3097628
AJ
8584if test `eval echo '${'$as_ac_var'}'` = yes; then
8585 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
8586 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
8587else
8588 as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,-R,\$ORIGIN/../lib" | $as_tr_sh`
8589{ echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8590echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... $ECHO_C" >&6; }
8591if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
dcc2d6c2
MM
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8593else
a3097628
AJ
8594 ac_wine_try_cflags_saved=$CFLAGS
8595CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8596cat >conftest.$ac_ext <<_ACEOF
dcc2d6c2
MM
8597/* confdefs.h. */
8598_ACEOF
8599cat confdefs.h >>conftest.$ac_ext
8600cat >>conftest.$ac_ext <<_ACEOF
8601/* end confdefs.h. */
8602
a3097628
AJ
8603int
8604main ()
8605{
8606
8607 ;
8608 return 0;
8609}
dcc2d6c2 8610_ACEOF
a3097628
AJ
8611rm -f conftest.$ac_objext conftest$ac_exeext
8612if { (ac_try="$ac_link"
0ebeb530
JW
8613case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616esac
8617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 8618 (eval "$ac_link") 2>conftest.er1
dcc2d6c2
MM
8619 ac_status=$?
8620 grep -v '^ *+' conftest.er1 >conftest.err
8621 rm -f conftest.er1
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8624 (exit $ac_status); } && {
8625 test -z "$ac_c_werror_flag" ||
8626 test ! -s conftest.err
a3097628
AJ
8627 } && test -s conftest$ac_exeext &&
8628 $as_test_x conftest$ac_exeext; then
8629 eval "$as_ac_var=yes"
dcc2d6c2
MM
8630else
8631 echo "$as_me: failed program was:" >&5
8632sed 's/^/| /' conftest.$ac_ext >&5
8633
a3097628 8634 eval "$as_ac_var=no"
dcc2d6c2 8635fi
fc6ffb29 8636
a3097628
AJ
8637rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8638 conftest$ac_exeext conftest.$ac_ext
8639CFLAGS=$ac_wine_try_cflags_saved
dcc2d6c2 8640fi
a3097628 8641ac_res=`eval echo '${'$as_ac_var'}'`
fc6ffb29
AJ
8642 { echo "$as_me:$LINENO: result: $ac_res" >&5
8643echo "${ECHO_T}$ac_res" >&6; }
a3097628
AJ
8644if test `eval echo '${'$as_ac_var'}'` = yes; then
8645 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
8646 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
8647fi
dcc2d6c2 8648
dcc2d6c2
MM
8649fi
8650
2d6d4e96 8651
f4077ae5
TC
8652 { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8653echo $ECHO_N "checking whether the compiler supports -Wl,--enable-new-dtags... $ECHO_C" >&6; }
8654if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
8656else
8657 ac_wine_try_cflags_saved=$CFLAGS
8658CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8659cat >conftest.$ac_ext <<_ACEOF
8660/* confdefs.h. */
8661_ACEOF
8662cat confdefs.h >>conftest.$ac_ext
8663cat >>conftest.$ac_ext <<_ACEOF
8664/* end confdefs.h. */
8665
8666int
8667main ()
8668{
8669
8670 ;
8671 return 0;
8672}
8673_ACEOF
8674rm -f conftest.$ac_objext conftest$ac_exeext
8675if { (ac_try="$ac_link"
8676case "(($ac_try" in
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8679esac
8680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681 (eval "$ac_link") 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } && {
8688 test -z "$ac_c_werror_flag" ||
8689 test ! -s conftest.err
8690 } && test -s conftest$ac_exeext &&
8691 $as_test_x conftest$ac_exeext; then
8692 ac_cv_cflags__Wl___enable_new_dtags=yes
8693else
8694 echo "$as_me: failed program was:" >&5
8695sed 's/^/| /' conftest.$ac_ext >&5
8696
8697 ac_cv_cflags__Wl___enable_new_dtags=no
8698fi
8699
8700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8701 conftest$ac_exeext conftest.$ac_ext
8702CFLAGS=$ac_wine_try_cflags_saved
8703fi
8704{ echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8705echo "${ECHO_T}$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8706if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then
8707 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8708fi
8709
8710
a3097628
AJ
8711 case $host_cpu in
8712 *i[3456789]86* | x86_64)
8713 { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8714echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
8715if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
70adb8f5
MM
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8717else
a3097628
AJ
8718 ac_wine_try_cflags_saved=$CFLAGS
8719CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
70adb8f5
MM
8720cat >conftest.$ac_ext <<_ACEOF
8721/* confdefs.h. */
8722_ACEOF
8723cat confdefs.h >>conftest.$ac_ext
8724cat >>conftest.$ac_ext <<_ACEOF
8725/* end confdefs.h. */
8726
70adb8f5
MM
8727int
8728main ()
8729{
a3097628 8730
70adb8f5
MM
8731 ;
8732 return 0;
8733}
8734_ACEOF
8735rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
8736if { (ac_try="$ac_link"
8737case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740esac
8741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_link") 2>conftest.er1
70adb8f5
MM
8743 ac_status=$?
8744 grep -v '^ *+' conftest.er1 >conftest.err
8745 rm -f conftest.er1
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8748 (exit $ac_status); } && {
8749 test -z "$ac_c_werror_flag" ||
8750 test ! -s conftest.err
8751 } && test -s conftest$ac_exeext &&
8752 $as_test_x conftest$ac_exeext; then
a3097628 8753 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
70adb8f5
MM
8754else
8755 echo "$as_me: failed program was:" >&5
8756sed 's/^/| /' conftest.$ac_ext >&5
8757
a3097628 8758 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
70adb8f5 8759fi
fc6ffb29 8760
f0ca586f 8761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70adb8f5 8762 conftest$ac_exeext conftest.$ac_ext
a3097628
AJ
8763CFLAGS=$ac_wine_try_cflags_saved
8764fi
8765{ echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8766echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8767if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
8768 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
70adb8f5 8769fi
70adb8f5 8770
a3097628
AJ
8771 ;;
8772 esac
70adb8f5 8773
a3097628
AJ
8774 else
8775 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
8776echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
8777if test "${ac_cv_c_dll_unixware+set}" = set; then
575d8944
GP
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8779else
a3097628
AJ
8780 ac_wine_try_cflags_saved=$CFLAGS
8781CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
575d8944 8782cat >conftest.$ac_ext <<_ACEOF
a3097628 8783void myfunc() {}
575d8944 8784_ACEOF
a3097628
AJ
8785rm -f conftest.$ac_objext conftest$ac_exeext
8786if { (ac_try="$ac_link"
8787case "(($ac_try" in
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8790esac
8791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_link") 2>conftest.er1
8793 ac_status=$?
8794 grep -v '^ *+' conftest.er1 >conftest.err
8795 rm -f conftest.er1
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } && {
8799 test -z "$ac_c_werror_flag" ||
8800 test ! -s conftest.err
8801 } && test -s conftest$ac_exeext &&
8802 $as_test_x conftest$ac_exeext; then
8803 ac_cv_c_dll_unixware="yes"
8804else
8805 echo "$as_me: failed program was:" >&5
8806sed 's/^/| /' conftest.$ac_ext >&5
575d8944 8807
a3097628
AJ
8808 ac_cv_c_dll_unixware="no"
8809fi
8810
8811rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8812 conftest$ac_exeext conftest.$ac_ext
8813CFLAGS=$ac_wine_try_cflags_saved
8814fi
8815{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
8816echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
8817 if test "$ac_cv_c_dll_unixware" = "yes"
8818 then
8819 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
8820 LDDLLFLAGS="-Wl,-G,-B,symbolic"
8821
8822 else
8823 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
8824echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
8825if test "${ac_cv_c_dll_hpux+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8827else
8828 ac_wine_try_cflags_saved=$CFLAGS
8829CFLAGS="$CFLAGS -shared"
8830cat >conftest.$ac_ext <<_ACEOF
8831void myfunc() {}
575d8944
GP
8832_ACEOF
8833rm -f conftest.$ac_objext conftest$ac_exeext
8834if { (ac_try="$ac_link"
8835case "(($ac_try" in
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8838esac
8839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840 (eval "$ac_link") 2>conftest.er1
8841 ac_status=$?
8842 grep -v '^ *+' conftest.er1 >conftest.err
8843 rm -f conftest.er1
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } && {
8847 test -z "$ac_c_werror_flag" ||
8848 test ! -s conftest.err
8849 } && test -s conftest$ac_exeext &&
8850 $as_test_x conftest$ac_exeext; then
a3097628 8851 ac_cv_c_dll_hpux="yes"
575d8944
GP
8852else
8853 echo "$as_me: failed program was:" >&5
8854sed 's/^/| /' conftest.$ac_ext >&5
8855
a3097628 8856 ac_cv_c_dll_hpux="no"
575d8944
GP
8857fi
8858
8859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8860 conftest$ac_exeext conftest.$ac_ext
a3097628 8861CFLAGS=$ac_wine_try_cflags_saved
575d8944 8862fi
a3097628
AJ
8863{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
8864echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
8865 if test "$ac_cv_c_dll_hpux" = "yes"
8866 then
8867 LIBEXT="sl"
8868 DLLEXT=".sl"
8869 LDDLLFLAGS="-shared -fPIC"
8870 LDSHARED="\$(CC) -shared"
8871 fi
8872 fi
8873 fi
8874
8875 CROSSTEST=""
8876
8877 if test "$cross_compiling" = "no"
8878 then
8879 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc
8880do
8881 # Extract the first word of "$ac_prog", so it can be a program name with args.
8882set dummy $ac_prog; ac_word=$2
8883{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8885if test "${ac_cv_prog_CROSSCC+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
575d8944 8887else
a3097628
AJ
8888 if test -n "$CROSSCC"; then
8889 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8890else
8891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892for as_dir in $PATH
8893do
8894 IFS=$as_save_IFS
8895 test -z "$as_dir" && as_dir=.
8896 for ac_exec_ext in '' $ac_executable_extensions; do
8897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8898 ac_cv_prog_CROSSCC="$ac_prog"
8899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8900 break 2
8901 fi
8902done
8903done
8904IFS=$as_save_IFS
8905
8906fi
8907fi
8908CROSSCC=$ac_cv_prog_CROSSCC
8909if test -n "$CROSSCC"; then
8910 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
8911echo "${ECHO_T}$CROSSCC" >&6; }
8912else
8913 { echo "$as_me:$LINENO: result: no" >&5
8914echo "${ECHO_T}no" >&6; }
575d8944
GP
8915fi
8916
8917
a3097628
AJ
8918 test -n "$CROSSCC" && break
8919done
8920test -n "$CROSSCC" || CROSSCC="false"
8921
8922 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool
8923do
8924 # Extract the first word of "$ac_prog", so it can be a program name with args.
8925set dummy $ac_prog; ac_word=$2
8926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8928if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8930else
8931 if test -n "$DLLTOOL"; then
8932 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8933else
8934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935for as_dir in $PATH
8936do
8937 IFS=$as_save_IFS
8938 test -z "$as_dir" && as_dir=.
8939 for ac_exec_ext in '' $ac_executable_extensions; do
8940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8941 ac_cv_prog_DLLTOOL="$ac_prog"
8942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8943 break 2
8944 fi
8945done
8946done
8947IFS=$as_save_IFS
8948
8949fi
8950fi
8951DLLTOOL=$ac_cv_prog_DLLTOOL
8952if test -n "$DLLTOOL"; then
8953 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8954echo "${ECHO_T}$DLLTOOL" >&6; }
8955else
8956 { echo "$as_me:$LINENO: result: no" >&5
8957echo "${ECHO_T}no" >&6; }
70adb8f5
MM
8958fi
8959
a3097628
AJ
8960
8961 test -n "$DLLTOOL" && break
8962done
8963test -n "$DLLTOOL" || DLLTOOL="false"
8964
8965 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw32-windres mingw-windres
8966do
8967 # Extract the first word of "$ac_prog", so it can be a program name with args.
8968set dummy $ac_prog; ac_word=$2
8969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8971if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8973else
8974 if test -n "$CROSSWINDRES"; then
8975 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
8976else
8977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978for as_dir in $PATH
8979do
8980 IFS=$as_save_IFS
8981 test -z "$as_dir" && as_dir=.
8982 for ac_exec_ext in '' $ac_executable_extensions; do
8983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8984 ac_cv_prog_CROSSWINDRES="$ac_prog"
8985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8986 break 2
8987 fi
8988done
8989done
8990IFS=$as_save_IFS
8991
8992fi
8993fi
8994CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
8995if test -n "$CROSSWINDRES"; then
8996 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
8997echo "${ECHO_T}$CROSSWINDRES" >&6; }
8998else
8999 { echo "$as_me:$LINENO: result: no" >&5
9000echo "${ECHO_T}no" >&6; }
f3719a88
MM
9001fi
9002
a3097628
AJ
9003
9004 test -n "$CROSSWINDRES" && break
f3719a88 9005done
a3097628 9006test -n "$CROSSWINDRES" || CROSSWINDRES="false"
f3719a88 9007
a3097628
AJ
9008 for ac_prog in i586-mingw32msvc-ar i386-mingw32msvc-ar i386-mingw32-ar mingw32-ar mingw-ar
9009do
9010 # Extract the first word of "$ac_prog", so it can be a program name with args.
9011set dummy $ac_prog; ac_word=$2
9012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9014if test "${ac_cv_prog_MINGWAR+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9016else
9017 if test -n "$MINGWAR"; then
9018 ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
9019else
9020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021for as_dir in $PATH
9022do
9023 IFS=$as_save_IFS
9024 test -z "$as_dir" && as_dir=.
9025 for ac_exec_ext in '' $ac_executable_extensions; do
9026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9027 ac_cv_prog_MINGWAR="$ac_prog"
9028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9029 break 2
9030 fi
9031done
9032done
9033IFS=$as_save_IFS
2d6d4e96 9034
a3097628
AJ
9035fi
9036fi
9037MINGWAR=$ac_cv_prog_MINGWAR
9038if test -n "$MINGWAR"; then
9039 { echo "$as_me:$LINENO: result: $MINGWAR" >&5
9040echo "${ECHO_T}$MINGWAR" >&6; }
2d6d4e96 9041else
a3097628
AJ
9042 { echo "$as_me:$LINENO: result: no" >&5
9043echo "${ECHO_T}no" >&6; }
2d6d4e96 9044fi
f3719a88
MM
9045
9046
a3097628
AJ
9047 test -n "$MINGWAR" && break
9048done
9049test -n "$MINGWAR" || MINGWAR="false"
2d6d4e96 9050
a3097628
AJ
9051 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
9052 fi
9053 ;;
9054esac
2d6d4e96 9055
a3097628
AJ
9056if test "$LIBEXT" = "a"; then
9057 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
9058It is currently not possible to build Wine without shared library
9059(.so) support to allow transparent switch between .so and .dll files.
9060If you are using Linux, you will need a newer binutils.
9061" >&5
9062echo "$as_me: error: could not find a way to build shared libraries.
9063It is currently not possible to build Wine without shared library
9064(.so) support to allow transparent switch between .so and .dll files.
9065If you are using Linux, you will need a newer binutils.
9066" >&2;}
9067 { (exit 1); exit 1; }; }
9068fi
2d6d4e96 9069
2d6d4e96 9070
a3097628 9071if test "$have_x" = "yes"
2d6d4e96 9072then
a3097628
AJ
9073 XLIB="-lXext -lX11"
9074 ac_save_CPPFLAGS="$CPPFLAGS"
9075 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2d6d4e96 9076
a851854a
AJ
9077 { echo "$as_me:$LINENO: checking for -lX11" >&5
9078echo $ECHO_N "checking for -lX11... $ECHO_C" >&6; }
9079if test "${ac_cv_lib_soname_X11+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9081else
9082 ac_check_soname_save_LIBS=$LIBS
9083LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9084 cat >conftest.$ac_ext <<_ACEOF
9085/* confdefs.h. */
9086_ACEOF
9087cat confdefs.h >>conftest.$ac_ext
9088cat >>conftest.$ac_ext <<_ACEOF
9089/* end confdefs.h. */
9090
9091/* Override any GCC internal prototype to avoid an error.
9092 Use char because int might match the return type of a GCC
9093 builtin and then its argument prototype would still apply. */
9094#ifdef __cplusplus
9095extern "C"
9096#endif
9097char XCreateWindow ();
9098int
9099main ()
9100{
9101return XCreateWindow ();
9102 ;
9103 return 0;
9104}
9105_ACEOF
9106rm -f conftest.$ac_objext conftest$ac_exeext
9107if { (ac_try="$ac_link"
9108case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111esac
9112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_link") 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } && {
9120 test -z "$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 } && test -s conftest$ac_exeext &&
9123 $as_test_x conftest$ac_exeext; then
9124 case "$LIBEXT" in
9125 dll) ;;
9126 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'` ;;
9127 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9128 esac
9129else
9130 echo "$as_me: failed program was:" >&5
9131sed 's/^/| /' conftest.$ac_ext >&5
9132
9133
9134fi
9135
9136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9137 conftest$ac_exeext conftest.$ac_ext
9138 LIBS=$ac_check_soname_save_LIBS
9139fi
9140if test "x$ac_cv_lib_soname_X11" = "x"; then
9141 { echo "$as_me:$LINENO: result: not found" >&5
9142echo "${ECHO_T}not found" >&6; }
9143
9144else
9145 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
9146echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
9147
9148cat >>confdefs.h <<_ACEOF
9149#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9150_ACEOF
9151
9152
9153fi
9154
9155 { echo "$as_me:$LINENO: checking for -lXext" >&5
9156echo $ECHO_N "checking for -lXext... $ECHO_C" >&6; }
9157if test "${ac_cv_lib_soname_Xext+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9159else
9160 ac_check_soname_save_LIBS=$LIBS
9161LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9162 cat >conftest.$ac_ext <<_ACEOF
9163/* confdefs.h. */
9164_ACEOF
9165cat confdefs.h >>conftest.$ac_ext
9166cat >>conftest.$ac_ext <<_ACEOF
9167/* end confdefs.h. */
9168
9169/* Override any GCC internal prototype to avoid an error.
9170 Use char because int might match the return type of a GCC
9171 builtin and then its argument prototype would still apply. */
9172#ifdef __cplusplus
9173extern "C"
9174#endif
9175char XextCreateExtension ();
9176int
9177main ()
9178{
9179return XextCreateExtension ();
9180 ;
9181 return 0;
9182}
9183_ACEOF
9184rm -f conftest.$ac_objext conftest$ac_exeext
9185if { (ac_try="$ac_link"
9186case "(($ac_try" in
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9189esac
9190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_link") 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } && {
9198 test -z "$ac_c_werror_flag" ||
9199 test ! -s conftest.err
9200 } && test -s conftest$ac_exeext &&
9201 $as_test_x conftest$ac_exeext; then
9202 case "$LIBEXT" in
9203 dll) ;;
9204 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'` ;;
9205 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9206 esac
9207else
9208 echo "$as_me: failed program was:" >&5
9209sed 's/^/| /' conftest.$ac_ext >&5
9210
9211
9212fi
9213
9214rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9215 conftest$ac_exeext conftest.$ac_ext
9216 LIBS=$ac_check_soname_save_LIBS
9217fi
9218if test "x$ac_cv_lib_soname_Xext" = "x"; then
9219 { echo "$as_me:$LINENO: result: not found" >&5
9220echo "${ECHO_T}not found" >&6; }
9221
9222else
9223 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
9224echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
9225
9226cat >>confdefs.h <<_ACEOF
9227#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9228_ACEOF
9229
9230
9231fi
9232
9233
a3097628
AJ
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245for ac_header in X11/Xlib.h \
9246 X11/XKBlib.h \
9247 X11/Xutil.h \
9248 X11/Xcursor/Xcursor.h \
9249 X11/extensions/shape.h \
9250 X11/extensions/XInput.h \
9251 X11/extensions/XShm.h \
9252 X11/extensions/Xinerama.h \
9253 X11/extensions/Xrandr.h \
9254 X11/extensions/Xrender.h \
9255 X11/extensions/xf86vmode.h
f3719a88 9256do
a3097628
AJ
9257as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9258{ echo "$as_me:$LINENO: checking for $ac_header" >&5
fc6ffb29
AJ
9259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f3719a88 9261 echo $ECHO_N "(cached) $ECHO_C" >&6
f3719a88 9262else
a3097628 9263 cat >conftest.$ac_ext <<_ACEOF
f3719a88
MM
9264/* confdefs.h. */
9265_ACEOF
9266cat confdefs.h >>conftest.$ac_ext
9267cat >>conftest.$ac_ext <<_ACEOF
9268/* end confdefs.h. */
a3097628
AJ
9269#ifdef HAVE_X11_XLIB_H
9270# include <X11/Xlib.h>
9271#endif
9272#ifdef HAVE_X11_XUTIL_H
9273# include <X11/Xutil.h>
9274#endif
9275
f3719a88
MM
9276#include <$ac_header>
9277_ACEOF
9278rm -f conftest.$ac_objext
0ebeb530
JW
9279if { (ac_try="$ac_compile"
9280case "(($ac_try" in
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9283esac
9284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_compile") 2>conftest.er1
f3719a88
MM
9286 ac_status=$?
9287 grep -v '^ *+' conftest.er1 >conftest.err
9288 rm -f conftest.er1
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
9291 (exit $ac_status); } && {
9292 test -z "$ac_c_werror_flag" ||
9293 test ! -s conftest.err
9294 } && test -s conftest.$ac_objext; then
a3097628 9295 eval "$as_ac_Header=yes"
f3719a88
MM
9296else
9297 echo "$as_me: failed program was:" >&5
9298sed 's/^/| /' conftest.$ac_ext >&5
9299
a3097628 9300 eval "$as_ac_Header=no"
f3719a88 9301fi
fc6ffb29 9302
0ebeb530 9303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f3719a88 9304fi
fc6ffb29
AJ
9305ac_res=`eval echo '${'$as_ac_Header'}'`
9306 { echo "$as_me:$LINENO: result: $ac_res" >&5
9307echo "${ECHO_T}$ac_res" >&6; }
f3719a88
MM
9308if test `eval echo '${'$as_ac_Header'}'` = yes; then
9309 cat >>confdefs.h <<_ACEOF
9310#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9311_ACEOF
a3097628
AJ
9312
9313fi
9314
9315done
9316
9317
9318 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9319 then
9320 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
9321echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
9322if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
f3719a88
MM
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324else
9325 ac_check_lib_save_LIBS=$LIBS
a3097628 9326LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
f3719a88
MM
9327cat >conftest.$ac_ext <<_ACEOF
9328/* confdefs.h. */
9329_ACEOF
9330cat confdefs.h >>conftest.$ac_ext
9331cat >>conftest.$ac_ext <<_ACEOF
9332/* end confdefs.h. */
9333
fc6ffb29
AJ
9334/* Override any GCC internal prototype to avoid an error.
9335 Use char because int might match the return type of a GCC
9336 builtin and then its argument prototype would still apply. */
f3719a88
MM
9337#ifdef __cplusplus
9338extern "C"
9339#endif
a3097628 9340char XkbQueryExtension ();
f3719a88
MM
9341int
9342main ()
9343{
a3097628 9344return XkbQueryExtension ();
f3719a88
MM
9345 ;
9346 return 0;
9347}
9348_ACEOF
9349rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
9350if { (ac_try="$ac_link"
9351case "(($ac_try" in
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9354esac
9355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_link") 2>conftest.er1
f3719a88
MM
9357 ac_status=$?
9358 grep -v '^ *+' conftest.er1 >conftest.err
9359 rm -f conftest.er1
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
9362 (exit $ac_status); } && {
9363 test -z "$ac_c_werror_flag" ||
9364 test ! -s conftest.err
9365 } && test -s conftest$ac_exeext &&
9366 $as_test_x conftest$ac_exeext; then
a3097628 9367 ac_cv_lib_X11_XkbQueryExtension=yes
f3719a88
MM
9368else
9369 echo "$as_me: failed program was:" >&5
9370sed 's/^/| /' conftest.$ac_ext >&5
9371
a3097628 9372 ac_cv_lib_X11_XkbQueryExtension=no
f3719a88 9373fi
fc6ffb29 9374
f0ca586f 9375rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
f3719a88
MM
9376 conftest$ac_exeext conftest.$ac_ext
9377LIBS=$ac_check_lib_save_LIBS
9378fi
a3097628
AJ
9379{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9380echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9381if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
f3719a88
MM
9382
9383cat >>confdefs.h <<\_ACEOF
a3097628 9384#define HAVE_XKB 1
f3719a88
MM
9385_ACEOF
9386
19a988a2
AJ
9387fi
9388
9389 fi
9390
9391 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9392 then
9393 { echo "$as_me:$LINENO: checking for -lXcursor" >&5
9394echo $ECHO_N "checking for -lXcursor... $ECHO_C" >&6; }
9395if test "${ac_cv_lib_soname_Xcursor+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9397else
9398 ac_check_soname_save_LIBS=$LIBS
9399LIBS="-lXcursor $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9400 cat >conftest.$ac_ext <<_ACEOF
9401/* confdefs.h. */
9402_ACEOF
9403cat confdefs.h >>conftest.$ac_ext
9404cat >>conftest.$ac_ext <<_ACEOF
9405/* end confdefs.h. */
9406
9407/* Override any GCC internal prototype to avoid an error.
9408 Use char because int might match the return type of a GCC
9409 builtin and then its argument prototype would still apply. */
9410#ifdef __cplusplus
9411extern "C"
9412#endif
9413char XcursorImageLoadCursor ();
9414int
9415main ()
9416{
9417return XcursorImageLoadCursor ();
9418 ;
9419 return 0;
9420}
9421_ACEOF
9422rm -f conftest.$ac_objext conftest$ac_exeext
9423if { (ac_try="$ac_link"
9424case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427esac
9428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_link") 2>conftest.er1
9430 ac_status=$?
9431 grep -v '^ *+' conftest.er1 >conftest.err
9432 rm -f conftest.er1
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest$ac_exeext &&
9439 $as_test_x conftest$ac_exeext; then
9440 case "$LIBEXT" in
9441 dll) ;;
9442 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'` ;;
9443 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9444 esac
9445else
9446 echo "$as_me: failed program was:" >&5
9447sed 's/^/| /' conftest.$ac_ext >&5
9448
9449
9450fi
9451
9452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9453 conftest$ac_exeext conftest.$ac_ext
9454 LIBS=$ac_check_soname_save_LIBS
9455fi
9456if test "x$ac_cv_lib_soname_Xcursor" = "x"; then
9457 { echo "$as_me:$LINENO: result: not found" >&5
9458echo "${ECHO_T}not found" >&6; }
9459
9460else
9461 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xcursor" >&5
9462echo "${ECHO_T}$ac_cv_lib_soname_Xcursor" >&6; }
9463
9464cat >>confdefs.h <<_ACEOF
9465#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9466_ACEOF
9467
9468
d68d4335
AJ
9469fi
9470
9471 fi
9472
9473 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9474 then
9475 { echo "$as_me:$LINENO: checking for -lXi" >&5
9476echo $ECHO_N "checking for -lXi... $ECHO_C" >&6; }
9477if test "${ac_cv_lib_soname_Xi+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9479else
9480 ac_check_soname_save_LIBS=$LIBS
9481LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9482 cat >conftest.$ac_ext <<_ACEOF
9483/* confdefs.h. */
9484_ACEOF
9485cat confdefs.h >>conftest.$ac_ext
9486cat >>conftest.$ac_ext <<_ACEOF
9487/* end confdefs.h. */
9488
9489/* Override any GCC internal prototype to avoid an error.
9490 Use char because int might match the return type of a GCC
9491 builtin and then its argument prototype would still apply. */
9492#ifdef __cplusplus
9493extern "C"
9494#endif
9495char XOpenDevice ();
9496int
9497main ()
9498{
9499return XOpenDevice ();
9500 ;
9501 return 0;
9502}
9503_ACEOF
9504rm -f conftest.$ac_objext conftest$ac_exeext
9505if { (ac_try="$ac_link"
9506case "(($ac_try" in
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9509esac
9510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_link") 2>conftest.er1
9512 ac_status=$?
9513 grep -v '^ *+' conftest.er1 >conftest.err
9514 rm -f conftest.er1
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && {
9518 test -z "$ac_c_werror_flag" ||
9519 test ! -s conftest.err
9520 } && test -s conftest$ac_exeext &&
9521 $as_test_x conftest$ac_exeext; then
9522 case "$LIBEXT" in
9523 dll) ;;
9524 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'` ;;
9525 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9526 esac
9527else
9528 echo "$as_me: failed program was:" >&5
9529sed 's/^/| /' conftest.$ac_ext >&5
9530
9531
9532fi
9533
9534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9535 conftest$ac_exeext conftest.$ac_ext
9536 LIBS=$ac_check_soname_save_LIBS
9537fi
9538if test "x$ac_cv_lib_soname_Xi" = "x"; then
9539 { echo "$as_me:$LINENO: result: not found" >&5
9540echo "${ECHO_T}not found" >&6; }
9541
9542else
9543 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
9544echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
9545
9546cat >>confdefs.h <<_ACEOF
9547#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9548_ACEOF
9549
9550
90c75bdd 9551fi
dcc2d6c2 9552
a3097628
AJ
9553 fi
9554
9555 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9556 then
9557 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
9558echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
9559if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
daa2886c 9560 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c 9561else
73482144 9562 ac_check_lib_save_LIBS=$LIBS
a3097628 9563LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
daa2886c 9564cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
9565/* confdefs.h. */
9566_ACEOF
9567cat confdefs.h >>conftest.$ac_ext
9568cat >>conftest.$ac_ext <<_ACEOF
9569/* end confdefs.h. */
73482144 9570
fc6ffb29
AJ
9571/* Override any GCC internal prototype to avoid an error.
9572 Use char because int might match the return type of a GCC
9573 builtin and then its argument prototype would still apply. */
73482144
AJ
9574#ifdef __cplusplus
9575extern "C"
9576#endif
a3097628 9577char XShmQueryExtension ();
73482144
AJ
9578int
9579main ()
9580{
a3097628 9581return XShmQueryExtension ();
73482144
AJ
9582 ;
9583 return 0;
9584}
daa2886c 9585_ACEOF
73482144 9586rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
9587if { (ac_try="$ac_link"
9588case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9591esac
9592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_link") 2>conftest.er1
daa2886c 9594 ac_status=$?
875927f6
AJ
9595 grep -v '^ *+' conftest.er1 >conftest.err
9596 rm -f conftest.er1
9597 cat conftest.err >&5
daa2886c 9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
9599 (exit $ac_status); } && {
9600 test -z "$ac_c_werror_flag" ||
9601 test ! -s conftest.err
9602 } && test -s conftest$ac_exeext &&
9603 $as_test_x conftest$ac_exeext; then
a3097628 9604 ac_cv_lib_Xext_XShmQueryExtension=yes
daa2886c
AJ
9605else
9606 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9607sed 's/^/| /' conftest.$ac_ext >&5
9608
a3097628 9609 ac_cv_lib_Xext_XShmQueryExtension=no
24110288 9610fi
fc6ffb29 9611
f0ca586f 9612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73482144
AJ
9613 conftest$ac_exeext conftest.$ac_ext
9614LIBS=$ac_check_lib_save_LIBS
9615fi
a3097628
AJ
9616{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9617echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9618if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
24110288 9619
73482144 9620cat >>confdefs.h <<\_ACEOF
a3097628 9621#define HAVE_LIBXXSHM 1
73482144
AJ
9622_ACEOF
9623
6a530aba
LZ
9624fi
9625
a3097628 9626 fi
f9dec94f
AJ
9627 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then
9628 wine_notices="$wine_notices|XShm development files not found.
9629Wine will be built without XShm support. (winex11.drv)"
9630fi
9631
a3097628
AJ
9632
9633 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9634 then
9635 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9636echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9637if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6a530aba
LZ
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9639else
9640 ac_check_lib_save_LIBS=$LIBS
a3097628 9641LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6a530aba
LZ
9642cat >conftest.$ac_ext <<_ACEOF
9643/* confdefs.h. */
9644_ACEOF
9645cat confdefs.h >>conftest.$ac_ext
9646cat >>conftest.$ac_ext <<_ACEOF
9647/* end confdefs.h. */
9648
9649/* Override any GCC internal prototype to avoid an error.
9650 Use char because int might match the return type of a GCC
9651 builtin and then its argument prototype would still apply. */
9652#ifdef __cplusplus
9653extern "C"
9654#endif
a3097628 9655char XShapeQueryExtension ();
6a530aba
LZ
9656int
9657main ()
9658{
a3097628 9659return XShapeQueryExtension ();
6a530aba
LZ
9660 ;
9661 return 0;
9662}
9663_ACEOF
9664rm -f conftest.$ac_objext conftest$ac_exeext
9665if { (ac_try="$ac_link"
9666case "(($ac_try" in
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9669esac
9670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9671 (eval "$ac_link") 2>conftest.er1
9672 ac_status=$?
9673 grep -v '^ *+' conftest.er1 >conftest.err
9674 rm -f conftest.er1
9675 cat conftest.err >&5
9676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
9677 (exit $ac_status); } && {
9678 test -z "$ac_c_werror_flag" ||
9679 test ! -s conftest.err
9680 } && test -s conftest$ac_exeext &&
9681 $as_test_x conftest$ac_exeext; then
a3097628 9682 ac_cv_lib_Xext_XShapeQueryExtension=yes
6a530aba
LZ
9683else
9684 echo "$as_me: failed program was:" >&5
9685sed 's/^/| /' conftest.$ac_ext >&5
9686
a3097628 9687 ac_cv_lib_Xext_XShapeQueryExtension=no
6a530aba
LZ
9688fi
9689
9690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9691 conftest$ac_exeext conftest.$ac_ext
9692LIBS=$ac_check_lib_save_LIBS
9693fi
a3097628
AJ
9694{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9695echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9696if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
fc6ffb29 9697
a3097628
AJ
9698cat >>confdefs.h <<\_ACEOF
9699#define HAVE_LIBXSHAPE 1
2d6d4e96 9700_ACEOF
a3097628
AJ
9701
9702fi
9703
9704 fi
f9dec94f
AJ
9705 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then
9706 wine_notices="$wine_notices|XShape development files not found.
9707Wine will be built without XShape support. (winex11.drv)"
9708fi
9709
a3097628
AJ
9710
9711 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9712 then
9713 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9714echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9715if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
2d6d4e96
HL
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9717else
9718 ac_check_lib_save_LIBS=$LIBS
a3097628 9719LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
2d6d4e96
HL
9720cat >conftest.$ac_ext <<_ACEOF
9721/* confdefs.h. */
9722_ACEOF
9723cat confdefs.h >>conftest.$ac_ext
9724cat >>conftest.$ac_ext <<_ACEOF
9725/* end confdefs.h. */
9726
fc6ffb29
AJ
9727/* Override any GCC internal prototype to avoid an error.
9728 Use char because int might match the return type of a GCC
9729 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
9730#ifdef __cplusplus
9731extern "C"
9732#endif
a3097628 9733char XF86VidModeQueryExtension ();
2d6d4e96
HL
9734int
9735main ()
9736{
a3097628 9737return XF86VidModeQueryExtension ();
2d6d4e96
HL
9738 ;
9739 return 0;
9740}
9741_ACEOF
9742rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
9743if { (ac_try="$ac_link"
9744case "(($ac_try" in
9745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9747esac
9748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
9755 (exit $ac_status); } && {
9756 test -z "$ac_c_werror_flag" ||
9757 test ! -s conftest.err
9758 } && test -s conftest$ac_exeext &&
9759 $as_test_x conftest$ac_exeext; then
a3097628 9760 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
2d6d4e96
HL
9761else
9762 echo "$as_me: failed program was:" >&5
9763sed 's/^/| /' conftest.$ac_ext >&5
9764
a3097628 9765 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
2d6d4e96 9766fi
fc6ffb29 9767
f0ca586f 9768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2d6d4e96
HL
9769 conftest$ac_exeext conftest.$ac_ext
9770LIBS=$ac_check_lib_save_LIBS
9771fi
a3097628
AJ
9772{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9773echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9774if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
2d6d4e96
HL
9775
9776cat >>confdefs.h <<\_ACEOF
a3097628 9777#define HAVE_LIBXXF86VM 1
2d6d4e96
HL
9778_ACEOF
9779
a3097628 9780 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
2d6d4e96 9781
00068989
AJ
9782fi
9783
a3097628 9784 fi
f9dec94f
AJ
9785 if test "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" != "yes"; then
9786 wine_notices="$wine_notices|Xxf86vm development files not found.
9787Wine will be built without XF86 Vidmode support. (winex11.drv)"
9788fi
9789
00068989 9790
a851854a 9791 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"
a3097628 9792 then
629639ee
AJ
9793 { echo "$as_me:$LINENO: checking for -lXrender" >&5
9794echo $ECHO_N "checking for -lXrender... $ECHO_C" >&6; }
9795if test "${ac_cv_lib_soname_Xrender+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797else
9798 ac_check_soname_save_LIBS=$LIBS
9799LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9800 cat >conftest.$ac_ext <<_ACEOF
00068989
AJ
9801/* confdefs.h. */
9802_ACEOF
9803cat confdefs.h >>conftest.$ac_ext
9804cat >>conftest.$ac_ext <<_ACEOF
9805/* end confdefs.h. */
629639ee
AJ
9806
9807/* Override any GCC internal prototype to avoid an error.
9808 Use char because int might match the return type of a GCC
9809 builtin and then its argument prototype would still apply. */
9810#ifdef __cplusplus
9811extern "C"
9812#endif
9813char XRenderQueryExtension ();
a3097628
AJ
9814int
9815main ()
9816{
629639ee 9817return XRenderQueryExtension ();
a3097628
AJ
9818 ;
9819 return 0;
9820}
00068989 9821_ACEOF
629639ee
AJ
9822rm -f conftest.$ac_objext conftest$ac_exeext
9823if { (ac_try="$ac_link"
0ebeb530
JW
9824case "(($ac_try" in
9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9827esac
9828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
629639ee 9829 (eval "$ac_link") 2>conftest.er1
00068989
AJ
9830 ac_status=$?
9831 grep -v '^ *+' conftest.er1 >conftest.err
9832 rm -f conftest.er1
9833 cat conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
9835 (exit $ac_status); } && {
9836 test -z "$ac_c_werror_flag" ||
9837 test ! -s conftest.err
629639ee
AJ
9838 } && test -s conftest$ac_exeext &&
9839 $as_test_x conftest$ac_exeext; then
9840 case "$LIBEXT" in
9841 dll) ;;
9842 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'` ;;
9843 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9844 esac
9845else
9846 echo "$as_me: failed program was:" >&5
9847sed 's/^/| /' conftest.$ac_ext >&5
9848
9849
9850fi
9851
9852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9853 conftest$ac_exeext conftest.$ac_ext
9854 LIBS=$ac_check_soname_save_LIBS
9855fi
9856if test "x$ac_cv_lib_soname_Xrender" = "x"; then
9857 { echo "$as_me:$LINENO: result: not found" >&5
9858echo "${ECHO_T}not found" >&6; }
9859
9860else
9861 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
9862echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
9863
9864cat >>confdefs.h <<_ACEOF
9865#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
9866_ACEOF
9867
9868 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9869echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
9870if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
af928ecb
AJ
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9872else
629639ee
AJ
9873 ac_check_lib_save_LIBS=$LIBS
9874LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9875cat >conftest.$ac_ext <<_ACEOF
af928ecb
AJ
9876/* confdefs.h. */
9877_ACEOF
9878cat confdefs.h >>conftest.$ac_ext
9879cat >>conftest.$ac_ext <<_ACEOF
9880/* end confdefs.h. */
a3097628 9881
af928ecb
AJ
9882/* Override any GCC internal prototype to avoid an error.
9883 Use char because int might match the return type of a GCC
9884 builtin and then its argument prototype would still apply. */
9885#ifdef __cplusplus
9886extern "C"
9887#endif
629639ee 9888char XRenderSetPictureTransform ();
af928ecb
AJ
9889int
9890main ()
9891{
629639ee 9892return XRenderSetPictureTransform ();
af928ecb
AJ
9893 ;
9894 return 0;
9895}
9896_ACEOF
9897rm -f conftest.$ac_objext conftest$ac_exeext
9898if { (ac_try="$ac_link"
9899case "(($ac_try" in
9900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9901 *) ac_try_echo=$ac_try;;
9902esac
9903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9904 (eval "$ac_link") 2>conftest.er1
9905 ac_status=$?
9906 grep -v '^ *+' conftest.er1 >conftest.err
9907 rm -f conftest.er1
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } && {
9911 test -z "$ac_c_werror_flag" ||
9912 test ! -s conftest.err
9913 } && test -s conftest$ac_exeext &&
9914 $as_test_x conftest$ac_exeext; then
629639ee 9915 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
af928ecb
AJ
9916else
9917 echo "$as_me: failed program was:" >&5
9918sed 's/^/| /' conftest.$ac_ext >&5
9919
629639ee 9920 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
af928ecb
AJ
9921fi
9922
9923rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9924 conftest$ac_exeext conftest.$ac_ext
629639ee 9925LIBS=$ac_check_lib_save_LIBS
af928ecb 9926fi
629639ee
AJ
9927{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9928echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9929if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
af928ecb 9930
629639ee
AJ
9931cat >>confdefs.h <<\_ACEOF
9932#define HAVE_XRENDERSETPICTURETRANSFORM 1
a3097628
AJ
9933_ACEOF
9934
af928ecb
AJ
9935fi
9936
00068989 9937fi
fc6ffb29 9938
629639ee 9939
a3097628 9940 fi
f9dec94f
AJ
9941 if test "x$ac_cv_lib_soname_Xrender" = "x"; then
9942 wine_notices="$wine_notices|XRender development files not found.
9943Wine will be built without XRender support. (winex11.drv)"
9944fi
9945
00068989 9946
629639ee 9947 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
a3097628 9948 then
629639ee
AJ
9949 cat >conftest.$ac_ext <<_ACEOF
9950/* confdefs.h. */
9951_ACEOF
9952cat confdefs.h >>conftest.$ac_ext
9953cat >>conftest.$ac_ext <<_ACEOF
9954/* end confdefs.h. */
9955#include <X11/Xlib.h>
9956#include <X11/extensions/Xrandr.h>
9957int
9958main ()
9959{
9960static typeof(XRRSetScreenConfigAndRate) * func;
9961 ;
9962 return 0;
9963}
9964_ACEOF
9965rm -f conftest.$ac_objext
9966if { (ac_try="$ac_compile"
9967case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9970esac
9971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_compile") 2>conftest.er1
9973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest.$ac_objext; then
9982 { echo "$as_me:$LINENO: checking for -lXrandr" >&5
9983echo $ECHO_N "checking for -lXrandr... $ECHO_C" >&6; }
9984if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
a3097628
AJ
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986else
629639ee
AJ
9987 ac_check_soname_save_LIBS=$LIBS
9988LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9989 cat >conftest.$ac_ext <<_ACEOF
00068989
AJ
9990/* confdefs.h. */
9991_ACEOF
9992cat confdefs.h >>conftest.$ac_ext
9993cat >>conftest.$ac_ext <<_ACEOF
9994/* end confdefs.h. */
a3097628
AJ
9995
9996/* Override any GCC internal prototype to avoid an error.
9997 Use char because int might match the return type of a GCC
9998 builtin and then its argument prototype would still apply. */
9999#ifdef __cplusplus
10000extern "C"
10001#endif
629639ee 10002char XRRQueryExtension ();
a3097628
AJ
10003int
10004main ()
10005{
629639ee 10006return XRRQueryExtension ();
a3097628
AJ
10007 ;
10008 return 0;
10009}
00068989 10010_ACEOF
a3097628
AJ
10011rm -f conftest.$ac_objext conftest$ac_exeext
10012if { (ac_try="$ac_link"
0ebeb530
JW
10013case "(($ac_try" in
10014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015 *) ac_try_echo=$ac_try;;
10016esac
10017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 10018 (eval "$ac_link") 2>conftest.er1
00068989
AJ
10019 ac_status=$?
10020 grep -v '^ *+' conftest.er1 >conftest.err
10021 rm -f conftest.er1
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
10024 (exit $ac_status); } && {
10025 test -z "$ac_c_werror_flag" ||
dc9f3843 10026 test ! -s conftest.err
a3097628
AJ
10027 } && test -s conftest$ac_exeext &&
10028 $as_test_x conftest$ac_exeext; then
629639ee
AJ
10029 case "$LIBEXT" in
10030 dll) ;;
10031 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'` ;;
10032 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10033 esac
00068989
AJ
10034else
10035 echo "$as_me: failed program was:" >&5
10036sed 's/^/| /' conftest.$ac_ext >&5
10037
629639ee 10038
00068989 10039fi
fc6ffb29 10040
a3097628
AJ
10041rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10042 conftest$ac_exeext conftest.$ac_ext
629639ee 10043 LIBS=$ac_check_soname_save_LIBS
00068989 10044fi
629639ee
AJ
10045if test "x$ac_cv_lib_soname_Xrandr" = "x"; then
10046 { echo "$as_me:$LINENO: result: not found" >&5
10047echo "${ECHO_T}not found" >&6; }
00068989 10048
629639ee
AJ
10049else
10050 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
10051echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
10052
10053cat >>confdefs.h <<_ACEOF
10054#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
00068989 10055_ACEOF
b18b9f37 10056
629639ee 10057
b18b9f37
AJ
10058fi
10059
629639ee
AJ
10060else
10061 echo "$as_me: failed program was:" >&5
10062sed 's/^/| /' conftest.$ac_ext >&5
10063
10064
10065fi
10066
10067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a3097628 10068 fi
f9dec94f
AJ
10069 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then
10070 wine_notices="$wine_notices|XRandr development files not found.
10071Wine will be built without XRandr support. (winex11.drv)"
10072fi
10073
b18b9f37 10074
a3097628
AJ
10075 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
10076 then
10077 cat >conftest.$ac_ext <<_ACEOF
00068989
AJ
10078/* confdefs.h. */
10079_ACEOF
10080cat confdefs.h >>conftest.$ac_ext
10081cat >>conftest.$ac_ext <<_ACEOF
10082/* end confdefs.h. */
a3097628
AJ
10083#include <X11/Xlib.h>
10084#include <X11/extensions/Xinerama.h>
00068989
AJ
10085int
10086main ()
10087{
a3097628 10088static typeof(XineramaQueryScreens) * func;
00068989
AJ
10089 ;
10090 return 0;
10091}
10092_ACEOF
a3097628
AJ
10093rm -f conftest.$ac_objext
10094if { (ac_try="$ac_compile"
0ebeb530
JW
10095case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10098esac
10099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 10100 (eval "$ac_compile") 2>conftest.er1
00068989
AJ
10101 ac_status=$?
10102 grep -v '^ *+' conftest.er1 >conftest.err
10103 rm -f conftest.er1
10104 cat conftest.err >&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10106 (exit $ac_status); } && {
10107 test -z "$ac_c_werror_flag" ||
10108 test ! -s conftest.err
a3097628 10109 } && test -s conftest.$ac_objext; then
35d2fd7a
AJ
10110 { echo "$as_me:$LINENO: checking for -lXinerama" >&5
10111echo $ECHO_N "checking for -lXinerama... $ECHO_C" >&6; }
10112if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10114else
10115 ac_check_soname_save_LIBS=$LIBS
10116LIBS="-lXinerama $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10117 cat >conftest.$ac_ext <<_ACEOF
10118/* confdefs.h. */
10119_ACEOF
10120cat confdefs.h >>conftest.$ac_ext
10121cat >>conftest.$ac_ext <<_ACEOF
10122/* end confdefs.h. */
a3097628 10123
35d2fd7a
AJ
10124/* Override any GCC internal prototype to avoid an error.
10125 Use char because int might match the return type of a GCC
10126 builtin and then its argument prototype would still apply. */
10127#ifdef __cplusplus
10128extern "C"
10129#endif
10130char XineramaQueryScreens ();
10131int
10132main ()
10133{
10134return XineramaQueryScreens ();
10135 ;
10136 return 0;
10137}
10138_ACEOF
10139rm -f conftest.$ac_objext conftest$ac_exeext
10140if { (ac_try="$ac_link"
10141case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10144esac
10145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_link") 2>conftest.er1
10147 ac_status=$?
10148 grep -v '^ *+' conftest.er1 >conftest.err
10149 rm -f conftest.er1
10150 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } && {
10153 test -z "$ac_c_werror_flag" ||
10154 test ! -s conftest.err
10155 } && test -s conftest$ac_exeext &&
10156 $as_test_x conftest$ac_exeext; then
10157 case "$LIBEXT" in
10158 dll) ;;
10159 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'` ;;
10160 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10161 esac
10162else
10163 echo "$as_me: failed program was:" >&5
10164sed 's/^/| /' conftest.$ac_ext >&5
10165
10166
10167fi
10168
10169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LIBS=$ac_check_soname_save_LIBS
10172fi
10173if test "x$ac_cv_lib_soname_Xinerama" = "x"; then
10174 { echo "$as_me:$LINENO: result: not found" >&5
10175echo "${ECHO_T}not found" >&6; }
10176
10177else
10178 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xinerama" >&5
10179echo "${ECHO_T}$ac_cv_lib_soname_Xinerama" >&6; }
10180
10181cat >>confdefs.h <<_ACEOF
10182#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
a3097628
AJ
10183_ACEOF
10184
35d2fd7a
AJ
10185
10186fi
10187
00068989
AJ
10188else
10189 echo "$as_me: failed program was:" >&5
10190sed 's/^/| /' conftest.$ac_ext >&5
10191
fc6ffb29 10192
a3097628
AJ
10193fi
10194
10195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196 fi
f9dec94f
AJ
10197 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then
10198 wine_notices="$wine_notices|Xinerama development files not found.
10199Wine will be built without Xinerama support. (winex11.drv)"
10200fi
10201
a3097628
AJ
10202
10203
10204 if test "x$with_opengl" != "xno"
10205 then
10206
10207
10208
10209
10210for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
10211do
10212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10213{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b18b9f37
AJ
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10217else
a3097628 10218 cat >conftest.$ac_ext <<_ACEOF
b18b9f37
AJ
10219/* confdefs.h. */
10220_ACEOF
10221cat confdefs.h >>conftest.$ac_ext
10222cat >>conftest.$ac_ext <<_ACEOF
10223/* end confdefs.h. */
a3097628
AJ
10224#ifdef HAVE_GL_GLX_H
10225# include <GL/glx.h>
b18b9f37 10226#endif
a3097628
AJ
10227
10228#include <$ac_header>
b18b9f37 10229_ACEOF
a3097628
AJ
10230rm -f conftest.$ac_objext
10231if { (ac_try="$ac_compile"
0ebeb530
JW
10232case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10235esac
10236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 10237 (eval "$ac_compile") 2>conftest.er1
b18b9f37
AJ
10238 ac_status=$?
10239 grep -v '^ *+' conftest.er1 >conftest.err
10240 rm -f conftest.er1
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10243 (exit $ac_status); } && {
10244 test -z "$ac_c_werror_flag" ||
10245 test ! -s conftest.err
a3097628
AJ
10246 } && test -s conftest.$ac_objext; then
10247 eval "$as_ac_Header=yes"
b18b9f37
AJ
10248else
10249 echo "$as_me: failed program was:" >&5
10250sed 's/^/| /' conftest.$ac_ext >&5
10251
a3097628 10252 eval "$as_ac_Header=no"
b18b9f37 10253fi
fc6ffb29 10254
a3097628 10255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b18b9f37 10256fi
a3097628
AJ
10257ac_res=`eval echo '${'$as_ac_Header'}'`
10258 { echo "$as_me:$LINENO: result: $ac_res" >&5
10259echo "${ECHO_T}$ac_res" >&6; }
10260if test `eval echo '${'$as_ac_Header'}'` = yes; then
10261 cat >>confdefs.h <<_ACEOF
10262#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
00068989
AJ
10263_ACEOF
10264
2d6d4e96
HL
10265fi
10266
a3097628 10267done
2d6d4e96 10268
a3097628
AJ
10269 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
10270 then
10271 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
10272echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
10273if test "${wine_cv_opengl_header_version_OK+set}" = set; then
2d6d4e96
HL
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275else
a3097628 10276 cat >conftest.$ac_ext <<_ACEOF
2d6d4e96
HL
10277/* confdefs.h. */
10278_ACEOF
10279cat confdefs.h >>conftest.$ac_ext
10280cat >>conftest.$ac_ext <<_ACEOF
10281/* end confdefs.h. */
a3097628 10282#include <GL/gl.h>
2d6d4e96
HL
10283int
10284main ()
10285{
a3097628 10286GLenum test = GL_UNSIGNED_SHORT_5_6_5;
2d6d4e96
HL
10287 ;
10288 return 0;
10289}
10290_ACEOF
a3097628
AJ
10291rm -f conftest.$ac_objext
10292if { (ac_try="$ac_compile"
0ebeb530
JW
10293case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296esac
10297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 10298 (eval "$ac_compile") 2>conftest.er1
2d6d4e96
HL
10299 ac_status=$?
10300 grep -v '^ *+' conftest.er1 >conftest.err
10301 rm -f conftest.er1
10302 cat conftest.err >&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10304 (exit $ac_status); } && {
10305 test -z "$ac_c_werror_flag" ||
10306 test ! -s conftest.err
a3097628
AJ
10307 } && test -s conftest.$ac_objext; then
10308 wine_cv_opengl_header_version_OK="yes"
2d6d4e96
HL
10309else
10310 echo "$as_me: failed program was:" >&5
10311sed 's/^/| /' conftest.$ac_ext >&5
10312
a3097628 10313 wine_cv_opengl_header_version_OK="no"
2d6d4e96 10314fi
fc6ffb29 10315
a3097628 10316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2d6d4e96 10317fi
a3097628
AJ
10318{ echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
10319echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
2d6d4e96 10320
a3097628
AJ
10321 if test "$wine_cv_opengl_header_version_OK" = "yes"
10322 then
31353e1e
AJ
10323 { echo "$as_me:$LINENO: checking for -lGL" >&5
10324echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
10325if test "${ac_cv_lib_soname_GL+set}" = set; then
2d6d4e96
HL
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10327else
31353e1e 10328 ac_check_soname_save_LIBS=$LIBS
a3097628 10329LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
31353e1e 10330 cat >conftest.$ac_ext <<_ACEOF
2d6d4e96
HL
10331/* confdefs.h. */
10332_ACEOF
10333cat confdefs.h >>conftest.$ac_ext
10334cat >>conftest.$ac_ext <<_ACEOF
10335/* end confdefs.h. */
10336
fc6ffb29
AJ
10337/* Override any GCC internal prototype to avoid an error.
10338 Use char because int might match the return type of a GCC
10339 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
10340#ifdef __cplusplus
10341extern "C"
10342#endif
a3097628 10343char glXCreateContext ();
2d6d4e96
HL
10344int
10345main ()
10346{
a3097628 10347return glXCreateContext ();
2d6d4e96
HL
10348 ;
10349 return 0;
10350}
10351_ACEOF
10352rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
10353if { (ac_try="$ac_link"
10354case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10357esac
10358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10365 (exit $ac_status); } && {
10366 test -z "$ac_c_werror_flag" ||
10367 test ! -s conftest.err
10368 } && test -s conftest$ac_exeext &&
10369 $as_test_x conftest$ac_exeext; then
31353e1e
AJ
10370 case "$LIBEXT" in
10371 dll) ;;
10372 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'` ;;
10373 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10374 esac
2d6d4e96
HL
10375else
10376 echo "$as_me: failed program was:" >&5
10377sed 's/^/| /' conftest.$ac_ext >&5
10378
31353e1e 10379
2d6d4e96 10380fi
fc6ffb29 10381
f0ca586f 10382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2d6d4e96 10383 conftest$ac_exeext conftest.$ac_ext
31353e1e 10384 LIBS=$ac_check_soname_save_LIBS
2d6d4e96 10385fi
31353e1e
AJ
10386if test "x$ac_cv_lib_soname_GL" = "x"; then
10387 { echo "$as_me:$LINENO: result: not found" >&5
10388echo "${ECHO_T}not found" >&6; }
f9dec94f
AJ
10389 if test -f /usr/X11R6/lib/libGL.a
10390 then
10391 wine_warnings="$wine_warnings|/usr/X11R6/lib/libGL.a is present on your system.
10392This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10393 else
10394 wine_warnings="$wine_warnings|No OpenGL library found on this system.
10395Wine will be build without OpenGL or Direct3D support."
10396 fi
31353e1e
AJ
10397else
10398 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
10399echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
10400
10401cat >>confdefs.h <<_ACEOF
10402#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10403_ACEOF
10404
10405 OPENGL_LIBS="-lGL"
a3097628
AJ
10406 OPENGLFILES='$(OPENGLFILES)'
10407
10408cat >>confdefs.h <<\_ACEOF
10409#define HAVE_OPENGL 1
10410_ACEOF
10411
8f1d42eb 10412fi
f5f37a85 10413
a3097628
AJ
10414
10415 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
10416echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
10417if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
f5f37a85
AJ
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419else
a3097628 10420 ac_check_lib_save_LIBS=$LIBS
f9dec94f 10421LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
a3097628 10422cat >conftest.$ac_ext <<_ACEOF
f5f37a85
AJ
10423/* confdefs.h. */
10424_ACEOF
10425cat confdefs.h >>conftest.$ac_ext
10426cat >>conftest.$ac_ext <<_ACEOF
10427/* end confdefs.h. */
f5f37a85
AJ
10428
10429/* Override any GCC internal prototype to avoid an error.
10430 Use char because int might match the return type of a GCC
10431 builtin and then its argument prototype would still apply. */
10432#ifdef __cplusplus
10433extern "C"
10434#endif
a3097628 10435char gluLookAt ();
f5f37a85
AJ
10436int
10437main ()
10438{
a3097628 10439return gluLookAt ();
f5f37a85
AJ
10440 ;
10441 return 0;
10442}
10443_ACEOF
10444rm -f conftest.$ac_objext conftest$ac_exeext
10445if { (ac_try="$ac_link"
10446case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10449esac
10450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_link") 2>conftest.er1
10452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10457 (exit $ac_status); } && {
10458 test -z "$ac_c_werror_flag" ||
10459 test ! -s conftest.err
10460 } && test -s conftest$ac_exeext &&
10461 $as_test_x conftest$ac_exeext; then
a3097628
AJ
10462 ac_cv_lib_GLU_gluLookAt=yes
10463else
10464 echo "$as_me: failed program was:" >&5
10465sed 's/^/| /' conftest.$ac_ext >&5
73482144 10466
a3097628 10467 ac_cv_lib_GLU_gluLookAt=no
73482144 10468fi
a3097628
AJ
10469
10470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10471 conftest$ac_exeext conftest.$ac_ext
10472LIBS=$ac_check_lib_save_LIBS
73482144 10473fi
a3097628
AJ
10474{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
10475echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
10476if test $ac_cv_lib_GLU_gluLookAt = yes; then
10477 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
10478 GLU32FILES='$(GLU32FILES)'
10479
73482144
AJ
10480fi
10481
f9dec94f
AJ
10482 else
10483 wine_warnings="$wine_warnings|Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/).
10484Wine will be build without OpenGL or Direct3D support."
a3097628
AJ
10485 fi
10486 else
f9dec94f
AJ
10487 wine_warnings="$wine_warnings|OpenGL development headers not found.
10488Wine will be build without OpenGL or Direct3D support."
a3097628
AJ
10489 fi
10490 fi
f9dec94f 10491
a3097628 10492 NASLIBS=""
fc6ffb29 10493
82776020 10494
a3097628
AJ
10495for ac_header in audio/audiolib.h
10496do
10497as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 10502 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c 10503fi
a3097628
AJ
10504ac_res=`eval echo '${'$as_ac_Header'}'`
10505 { echo "$as_me:$LINENO: result: $ac_res" >&5
10506echo "${ECHO_T}$ac_res" >&6; }
f5818d2f 10507else
daa2886c 10508 # Is the header compilable?
a3097628
AJ
10509{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10510echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
daa2886c 10511cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
10512/* confdefs.h. */
10513_ACEOF
10514cat confdefs.h >>conftest.$ac_ext
10515cat >>conftest.$ac_ext <<_ACEOF
10516/* end confdefs.h. */
daa2886c 10517$ac_includes_default
a3097628 10518#include <$ac_header>
daa2886c
AJ
10519_ACEOF
10520rm -f conftest.$ac_objext
0ebeb530
JW
10521if { (ac_try="$ac_compile"
10522case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525esac
10526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_compile") 2>conftest.er1
daa2886c 10528 ac_status=$?
875927f6
AJ
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
daa2886c 10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10533 (exit $ac_status); } && {
10534 test -z "$ac_c_werror_flag" ||
10535 test ! -s conftest.err
10536 } && test -s conftest.$ac_objext; then
daa2886c
AJ
10537 ac_header_compiler=yes
10538else
10539 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10540sed 's/^/| /' conftest.$ac_ext >&5
10541
fc6ffb29 10542 ac_header_compiler=no
daa2886c 10543fi
fc6ffb29 10544
0ebeb530 10545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
10546{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10547echo "${ECHO_T}$ac_header_compiler" >&6; }
daa2886c
AJ
10548
10549# Is the header present?
a3097628
AJ
10550{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10551echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
daa2886c 10552cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
10553/* confdefs.h. */
10554_ACEOF
10555cat confdefs.h >>conftest.$ac_ext
10556cat >>conftest.$ac_ext <<_ACEOF
10557/* end confdefs.h. */
a3097628 10558#include <$ac_header>
f5818d2f 10559_ACEOF
0ebeb530
JW
10560if { (ac_try="$ac_cpp conftest.$ac_ext"
10561case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10564esac
10565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 10567 ac_status=$?
11af04e3 10568 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
10569 rm -f conftest.er1
10570 cat conftest.err >&5
daa2886c 10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10572 (exit $ac_status); } >/dev/null && {
10573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10574 test ! -s conftest.err
10575 }; then
daa2886c 10576 ac_header_preproc=yes
f5818d2f
AJ
10577else
10578 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10579sed 's/^/| /' conftest.$ac_ext >&5
10580
daa2886c 10581 ac_header_preproc=no
24110288 10582fi
fc6ffb29 10583
f5818d2f 10584rm -f conftest.err conftest.$ac_ext
fc6ffb29
AJ
10585{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10586echo "${ECHO_T}$ac_header_preproc" >&6; }
daa2886c
AJ
10587
10588# So? What about this header?
875927f6
AJ
10589case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10590 yes:no: )
a3097628
AJ
10591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10592echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10594echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
875927f6 10595 ac_header_preproc=yes
e24bcc77 10596 ;;
875927f6 10597 no:yes:* )
a3097628
AJ
10598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10599echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10601echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10603echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10605echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10607echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10609echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
fc6ffb29 10610 ( cat <<\_ASBOX
e24bcc77 10611## ------------------------------------ ##
875927f6 10612## Report this to wine-devel@winehq.org ##
e24bcc77
AJ
10613## ------------------------------------ ##
10614_ASBOX
fc6ffb29 10615 ) | sed "s/^/$as_me: WARNING: /" >&2
e24bcc77 10616 ;;
daa2886c 10617esac
a3097628
AJ
10618{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10620if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
daa2886c
AJ
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10622else
a3097628 10623 eval "$as_ac_Header=\$ac_header_preproc"
24110288 10624fi
a3097628
AJ
10625ac_res=`eval echo '${'$as_ac_Header'}'`
10626 { echo "$as_me:$LINENO: result: $ac_res" >&5
10627echo "${ECHO_T}$ac_res" >&6; }
daa2886c
AJ
10628
10629fi
a3097628
AJ
10630if test `eval echo '${'$as_ac_Header'}'` = yes; then
10631 cat >>confdefs.h <<_ACEOF
10632#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 10633_ACEOF
e884f9ca 10634
a3097628 10635for ac_header in audio/soundlib.h
40e7ef3a 10636do
a3097628
AJ
10637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10638{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40e7ef3a 10641 echo $ECHO_N "(cached) $ECHO_C" >&6
40e7ef3a 10642else
a3097628 10643 cat >conftest.$ac_ext <<_ACEOF
40e7ef3a
MM
10644/* confdefs.h. */
10645_ACEOF
10646cat confdefs.h >>conftest.$ac_ext
10647cat >>conftest.$ac_ext <<_ACEOF
10648/* end confdefs.h. */
a3097628
AJ
10649#include <audio/audiolib.h>
10650
10651#include <$ac_header>
40e7ef3a
MM
10652_ACEOF
10653rm -f conftest.$ac_objext
0ebeb530
JW
10654if { (ac_try="$ac_compile"
10655case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658esac
10659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_compile") 2>conftest.er1
40e7ef3a
MM
10661 ac_status=$?
10662 grep -v '^ *+' conftest.er1 >conftest.err
10663 rm -f conftest.er1
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10666 (exit $ac_status); } && {
10667 test -z "$ac_c_werror_flag" ||
10668 test ! -s conftest.err
10669 } && test -s conftest.$ac_objext; then
a3097628 10670 eval "$as_ac_Header=yes"
40e7ef3a
MM
10671else
10672 echo "$as_me: failed program was:" >&5
10673sed 's/^/| /' conftest.$ac_ext >&5
10674
a3097628 10675 eval "$as_ac_Header=no"
40e7ef3a 10676fi
fc6ffb29 10677
0ebeb530 10678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a3097628
AJ
10679fi
10680ac_res=`eval echo '${'$as_ac_Header'}'`
10681 { echo "$as_me:$LINENO: result: $ac_res" >&5
10682echo "${ECHO_T}$ac_res" >&6; }
10683if test `eval echo '${'$as_ac_Header'}'` = yes; then
10684 cat >>confdefs.h <<_ACEOF
10685#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10686_ACEOF
10687
10688fi
10689
10690done
40e7ef3a 10691
a3097628
AJ
10692 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
10693echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
10694if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696else
10697 ac_check_lib_save_LIBS=$LIBS
10698LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
40e7ef3a
MM
10699cat >conftest.$ac_ext <<_ACEOF
10700/* confdefs.h. */
10701_ACEOF
10702cat confdefs.h >>conftest.$ac_ext
10703cat >>conftest.$ac_ext <<_ACEOF
10704/* end confdefs.h. */
a3097628
AJ
10705
10706/* Override any GCC internal prototype to avoid an error.
10707 Use char because int might match the return type of a GCC
10708 builtin and then its argument prototype would still apply. */
10709#ifdef __cplusplus
10710extern "C"
10711#endif
10712char AuCreateFlow ();
10713int
10714main ()
10715{
10716return AuCreateFlow ();
10717 ;
10718 return 0;
10719}
40e7ef3a 10720_ACEOF
a3097628
AJ
10721rm -f conftest.$ac_objext conftest$ac_exeext
10722if { (ac_try="$ac_link"
0ebeb530
JW
10723case "(($ac_try" in
10724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725 *) ac_try_echo=$ac_try;;
10726esac
10727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 10728 (eval "$ac_link") 2>conftest.er1
40e7ef3a
MM
10729 ac_status=$?
10730 grep -v '^ *+' conftest.er1 >conftest.err
10731 rm -f conftest.er1
10732 cat conftest.err >&5
10733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
10734 (exit $ac_status); } && {
10735 test -z "$ac_c_werror_flag" ||
dc9f3843 10736 test ! -s conftest.err
a3097628
AJ
10737 } && test -s conftest$ac_exeext &&
10738 $as_test_x conftest$ac_exeext; then
10739 ac_cv_lib_audio_AuCreateFlow=yes
40e7ef3a
MM
10740else
10741 echo "$as_me: failed program was:" >&5
10742sed 's/^/| /' conftest.$ac_ext >&5
10743
a3097628 10744 ac_cv_lib_audio_AuCreateFlow=no
40e7ef3a 10745fi
fc6ffb29 10746
a3097628
AJ
10747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10748 conftest$ac_exeext conftest.$ac_ext
10749LIBS=$ac_check_lib_save_LIBS
40e7ef3a 10750fi
a3097628
AJ
10751{ echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10752echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
10753if test $ac_cv_lib_audio_AuCreateFlow = yes; then
40e7ef3a 10754
a3097628
AJ
10755cat >>confdefs.h <<\_ACEOF
10756#define HAVE_NAS 1
10757_ACEOF
10758
10759 { echo "$as_me:$LINENO: checking for XauGetBestAuthByAddr in -lXau" >&5
10760echo $ECHO_N "checking for XauGetBestAuthByAddr in -lXau... $ECHO_C" >&6; }
10761if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then
40e7ef3a
MM
10762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763else
10764 ac_check_lib_save_LIBS=$LIBS
a3097628 10765LIBS="-lXau $X_LIBS $LIBS"
40e7ef3a
MM
10766cat >conftest.$ac_ext <<_ACEOF
10767/* confdefs.h. */
10768_ACEOF
10769cat confdefs.h >>conftest.$ac_ext
10770cat >>conftest.$ac_ext <<_ACEOF
10771/* end confdefs.h. */
10772
fc6ffb29
AJ
10773/* Override any GCC internal prototype to avoid an error.
10774 Use char because int might match the return type of a GCC
10775 builtin and then its argument prototype would still apply. */
40e7ef3a
MM
10776#ifdef __cplusplus
10777extern "C"
10778#endif
a3097628 10779char XauGetBestAuthByAddr ();
40e7ef3a
MM
10780int
10781main ()
10782{
a3097628 10783return XauGetBestAuthByAddr ();
40e7ef3a
MM
10784 ;
10785 return 0;
10786}
10787_ACEOF
10788rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
10789if { (ac_try="$ac_link"
10790case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10793esac
10794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_link") 2>conftest.er1
40e7ef3a
MM
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest$ac_exeext &&
10805 $as_test_x conftest$ac_exeext; then
a3097628 10806 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
40e7ef3a
MM
10807else
10808 echo "$as_me: failed program was:" >&5
10809sed 's/^/| /' conftest.$ac_ext >&5
10810
a3097628 10811 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
40e7ef3a 10812fi
fc6ffb29 10813
f0ca586f 10814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40e7ef3a
MM
10815 conftest$ac_exeext conftest.$ac_ext
10816LIBS=$ac_check_lib_save_LIBS
10817fi
a3097628
AJ
10818{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
10819echo "${ECHO_T}$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
10820if test $ac_cv_lib_Xau_XauGetBestAuthByAddr = yes; then
10821 NASLIBS="-lXau -laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10822else
10823 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10824fi
40e7ef3a 10825
40e7ef3a 10826
40e7ef3a
MM
10827fi
10828
40e7ef3a
MM
10829fi
10830
a3097628
AJ
10831done
10832
40e7ef3a 10833
40e7ef3a 10834 CPPFLAGS="$ac_save_CPPFLAGS"
a3097628
AJ
10835 XFILES='$(XFILES)'
10836else
10837 XLIB=""
10838 X_CFLAGS=""
10839 X_LIBS=""
f9dec94f
AJ
10840 wine_warnings="$wine_warnings|X development files not found. Wine will be built
10841without X support, which probably isn't what you want. You will need to install
10842development packages of Xlib/Xfree86 at the very least."
40e7ef3a
MM
10843fi
10844
a3097628
AJ
10845
10846XML2LIBS=""
10847
10848XML2INCL=""
10849
10850XSLTLIBS=""
10851
10852XSLTINCL=""
10853
10854ac_save_CPPFLAGS="$CPPFLAGS"
10855if test "$PKG_CONFIG" != "false"
6b0720f5 10856then
a3097628
AJ
10857 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10858 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
bb168aab 10859else
a3097628
AJ
10860 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
10861 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
10862fi
10863CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
10864
10865for ac_header in libxml/parser.h
10866do
10867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10868if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873fi
10874ac_res=`eval echo '${'$as_ac_Header'}'`
10875 { echo "$as_me:$LINENO: result: $ac_res" >&5
10876echo "${ECHO_T}$ac_res" >&6; }
10877else
10878 # Is the header compilable?
10879{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10880echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10881cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
10882/* confdefs.h. */
10883_ACEOF
10884cat confdefs.h >>conftest.$ac_ext
10885cat >>conftest.$ac_ext <<_ACEOF
10886/* end confdefs.h. */
a3097628
AJ
10887$ac_includes_default
10888#include <$ac_header>
daa2886c 10889_ACEOF
a3097628
AJ
10890rm -f conftest.$ac_objext
10891if { (ac_try="$ac_compile"
0ebeb530
JW
10892case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895esac
10896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 10897 (eval "$ac_compile") 2>conftest.er1
daa2886c 10898 ac_status=$?
a3097628
AJ
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
daa2886c 10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest.$ac_objext; then
10907 ac_header_compiler=yes
10908else
10909 echo "$as_me: failed program was:" >&5
10910sed 's/^/| /' conftest.$ac_ext >&5
10911
10912 ac_header_compiler=no
10913fi
10914
10915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10916{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10917echo "${ECHO_T}$ac_header_compiler" >&6; }
10918
10919# Is the header present?
10920{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10921echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10922cat >conftest.$ac_ext <<_ACEOF
10923/* confdefs.h. */
10924_ACEOF
10925cat confdefs.h >>conftest.$ac_ext
10926cat >>conftest.$ac_ext <<_ACEOF
10927/* end confdefs.h. */
10928#include <$ac_header>
10929_ACEOF
10930if { (ac_try="$ac_cpp conftest.$ac_ext"
10931case "(($ac_try" in
bb168aab
AJ
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10934esac
10935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 10936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
bb168aab 10937 ac_status=$?
a3097628
AJ
10938 grep -v '^ *+' conftest.er1 >conftest.err
10939 rm -f conftest.er1
10940 cat conftest.err >&5
bb168aab 10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
10942 (exit $ac_status); } >/dev/null && {
10943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10944 test ! -s conftest.err
10945 }; then
10946 ac_header_preproc=yes
6b0720f5 10947else
a3097628 10948 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10949sed 's/^/| /' conftest.$ac_ext >&5
10950
a3097628 10951 ac_header_preproc=no
6b0720f5 10952fi
fc6ffb29 10953
a3097628
AJ
10954rm -f conftest.err conftest.$ac_ext
10955{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10956echo "${ECHO_T}$ac_header_preproc" >&6; }
bb168aab 10957
a3097628
AJ
10958# So? What about this header?
10959case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10960 yes:no: )
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10962echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10964echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10965 ac_header_preproc=yes
10966 ;;
10967 no:yes:* )
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10969echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10971echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10973echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10975echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10977echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10979echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10980 ( cat <<\_ASBOX
10981## ------------------------------------ ##
10982## Report this to wine-devel@winehq.org ##
10983## ------------------------------------ ##
10984_ASBOX
10985 ) | sed "s/^/$as_me: WARNING: /" >&2
10986 ;;
10987esac
10988{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
10992else
10993 eval "$as_ac_Header=\$ac_header_preproc"
6b0720f5 10994fi
a3097628
AJ
10995ac_res=`eval echo '${'$as_ac_Header'}'`
10996 { echo "$as_me:$LINENO: result: $ac_res" >&5
10997echo "${ECHO_T}$ac_res" >&6; }
daa2886c 10998
a3097628
AJ
10999fi
11000if test `eval echo '${'$as_ac_Header'}'` = yes; then
11001 cat >>confdefs.h <<_ACEOF
11002#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11003_ACEOF
11004 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
11005echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
11006if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
6b0720f5
SQH
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008else
11009 ac_check_lib_save_LIBS=$LIBS
a3097628 11010LIBS="-lxml2 $ac_xml_libs $LIBS"
6b0720f5 11011cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
11012/* confdefs.h. */
11013_ACEOF
11014cat confdefs.h >>conftest.$ac_ext
11015cat >>conftest.$ac_ext <<_ACEOF
11016/* end confdefs.h. */
6b0720f5 11017
fc6ffb29
AJ
11018/* Override any GCC internal prototype to avoid an error.
11019 Use char because int might match the return type of a GCC
11020 builtin and then its argument prototype would still apply. */
6b0720f5
SQH
11021#ifdef __cplusplus
11022extern "C"
11023#endif
a3097628 11024char xmlParseMemory ();
6b0720f5
SQH
11025int
11026main ()
11027{
a3097628 11028return xmlParseMemory ();
6b0720f5
SQH
11029 ;
11030 return 0;
11031}
11032_ACEOF
11033rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11034if { (ac_try="$ac_link"
11035case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11038esac
11039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_link") 2>conftest.er1
6b0720f5 11041 ac_status=$?
875927f6
AJ
11042 grep -v '^ *+' conftest.er1 >conftest.err
11043 rm -f conftest.er1
11044 cat conftest.err >&5
daa2886c 11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11046 (exit $ac_status); } && {
11047 test -z "$ac_c_werror_flag" ||
11048 test ! -s conftest.err
11049 } && test -s conftest$ac_exeext &&
11050 $as_test_x conftest$ac_exeext; then
a3097628 11051 ac_cv_lib_xml2_xmlParseMemory=yes
6b0720f5
SQH
11052else
11053 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11054sed 's/^/| /' conftest.$ac_ext >&5
11055
a3097628 11056 ac_cv_lib_xml2_xmlParseMemory=no
6b0720f5 11057fi
fc6ffb29 11058
f0ca586f 11059rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 11060 conftest$ac_exeext conftest.$ac_ext
6b0720f5
SQH
11061LIBS=$ac_check_lib_save_LIBS
11062fi
a3097628
AJ
11063{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
11064echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
11065if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
6b0720f5 11066
daa2886c 11067cat >>confdefs.h <<\_ACEOF
a3097628 11068#define HAVE_LIBXML2 1
daa2886c 11069_ACEOF
6b0720f5 11070
a3097628
AJ
11071 XML2LIBS="$ac_xml_libs"
11072 XML2INCL="$ac_xml_cflags"
6b0720f5
SQH
11073fi
11074
a3097628
AJ
11075 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
11076echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
11077if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
73482144 11078 echo $ECHO_N "(cached) $ECHO_C" >&6
4ee8290b 11079else
73482144 11080 ac_check_lib_save_LIBS=$LIBS
a3097628 11081LIBS="-lxml2 $ac_xml_libs $LIBS"
2d6d4e96
HL
11082cat >conftest.$ac_ext <<_ACEOF
11083/* confdefs.h. */
11084_ACEOF
11085cat confdefs.h >>conftest.$ac_ext
11086cat >>conftest.$ac_ext <<_ACEOF
11087/* end confdefs.h. */
11088
fc6ffb29
AJ
11089/* Override any GCC internal prototype to avoid an error.
11090 Use char because int might match the return type of a GCC
11091 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
11092#ifdef __cplusplus
11093extern "C"
11094#endif
a3097628 11095char xmlReadMemory ();
2d6d4e96
HL
11096int
11097main ()
11098{
a3097628 11099return xmlReadMemory ();
2d6d4e96
HL
11100 ;
11101 return 0;
11102}
11103_ACEOF
11104rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11105if { (ac_try="$ac_link"
11106case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11109esac
11110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
11112 ac_status=$?
11113 grep -v '^ *+' conftest.er1 >conftest.err
11114 rm -f conftest.er1
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11117 (exit $ac_status); } && {
11118 test -z "$ac_c_werror_flag" ||
11119 test ! -s conftest.err
11120 } && test -s conftest$ac_exeext &&
11121 $as_test_x conftest$ac_exeext; then
a3097628 11122 ac_cv_lib_xml2_xmlReadMemory=yes
2d6d4e96
HL
11123else
11124 echo "$as_me: failed program was:" >&5
11125sed 's/^/| /' conftest.$ac_ext >&5
11126
a3097628 11127 ac_cv_lib_xml2_xmlReadMemory=no
2d6d4e96 11128fi
fc6ffb29 11129
f0ca586f 11130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2d6d4e96
HL
11131 conftest$ac_exeext conftest.$ac_ext
11132LIBS=$ac_check_lib_save_LIBS
11133fi
a3097628
AJ
11134{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
11135echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
11136if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
2d6d4e96
HL
11137
11138cat >>confdefs.h <<\_ACEOF
a3097628 11139#define HAVE_XMLREADMEMORY 1
2d6d4e96
HL
11140_ACEOF
11141
2d6d4e96
HL
11142fi
11143
a3097628
AJ
11144 { echo "$as_me:$LINENO: checking for xmlNewDocPI in -lxml2" >&5
11145echo $ECHO_N "checking for xmlNewDocPI in -lxml2... $ECHO_C" >&6; }
11146if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then
2d6d4e96
HL
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11148else
11149 ac_check_lib_save_LIBS=$LIBS
a3097628 11150LIBS="-lxml2 $ac_xml_libs $LIBS"
4ee8290b 11151cat >conftest.$ac_ext <<_ACEOF
4ee8290b
AJ
11152/* confdefs.h. */
11153_ACEOF
11154cat confdefs.h >>conftest.$ac_ext
11155cat >>conftest.$ac_ext <<_ACEOF
11156/* end confdefs.h. */
4ee8290b 11157
fc6ffb29
AJ
11158/* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
73482144
AJ
11161#ifdef __cplusplus
11162extern "C"
11163#endif
a3097628 11164char xmlNewDocPI ();
4ee8290b
AJ
11165int
11166main ()
11167{
a3097628 11168return xmlNewDocPI ();
4ee8290b
AJ
11169 ;
11170 return 0;
11171}
11172_ACEOF
11173rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11174if { (ac_try="$ac_link"
11175case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11178esac
11179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_link") 2>conftest.er1
4ee8290b 11181 ac_status=$?
875927f6
AJ
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
4ee8290b 11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11186 (exit $ac_status); } && {
11187 test -z "$ac_c_werror_flag" ||
11188 test ! -s conftest.err
11189 } && test -s conftest$ac_exeext &&
11190 $as_test_x conftest$ac_exeext; then
a3097628 11191 ac_cv_lib_xml2_xmlNewDocPI=yes
4ee8290b
AJ
11192else
11193 echo "$as_me: failed program was:" >&5
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
a3097628 11196 ac_cv_lib_xml2_xmlNewDocPI=no
4ee8290b 11197fi
fc6ffb29 11198
f0ca586f 11199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 11200 conftest$ac_exeext conftest.$ac_ext
73482144 11201LIBS=$ac_check_lib_save_LIBS
4ee8290b 11202fi
a3097628
AJ
11203{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
11204echo "${ECHO_T}$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
11205if test $ac_cv_lib_xml2_xmlNewDocPI = yes; then
11206
11207cat >>confdefs.h <<\_ACEOF
11208#define HAVE_XMLNEWDOCPI 1
11209_ACEOF
11210
11211fi
11212
11213
11214fi
11215
11216done
11217
11218CPPFLAGS="$ac_save_CPPFLAGS"
f9dec94f
AJ
11219if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then
11220 wine_notices="$wine_notices|libxml2 development files not found.
11221Wine will be built without XML support. (msxml.dll)"
11222fi
11223
11224
a3097628
AJ
11225if test "$PKG_CONFIG" != "false"
11226then
11227 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
11228 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
11229else
11230 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
11231 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
11232fi
11233CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
11234
11235
11236for ac_header in libxslt/pattern.h libxslt/transform.h
11237do
11238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11239{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d3447022
HL
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243else
a3097628 11244 cat >conftest.$ac_ext <<_ACEOF
d3447022
HL
11245/* confdefs.h. */
11246_ACEOF
11247cat confdefs.h >>conftest.$ac_ext
11248cat >>conftest.$ac_ext <<_ACEOF
11249/* end confdefs.h. */
a3097628
AJ
11250#ifdef HAVE_LIBXSLT_PATTERN_H
11251# include <libxslt/pattern.h>
d3447022 11252#endif
a3097628
AJ
11253
11254#include <$ac_header>
d3447022 11255_ACEOF
a3097628
AJ
11256rm -f conftest.$ac_objext
11257if { (ac_try="$ac_compile"
0ebeb530
JW
11258case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11261esac
11262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 11263 (eval "$ac_compile") 2>conftest.er1
d3447022
HL
11264 ac_status=$?
11265 grep -v '^ *+' conftest.er1 >conftest.err
11266 rm -f conftest.er1
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11269 (exit $ac_status); } && {
11270 test -z "$ac_c_werror_flag" ||
11271 test ! -s conftest.err
a3097628
AJ
11272 } && test -s conftest.$ac_objext; then
11273 eval "$as_ac_Header=yes"
d3447022
HL
11274else
11275 echo "$as_me: failed program was:" >&5
11276sed 's/^/| /' conftest.$ac_ext >&5
11277
a3097628 11278 eval "$as_ac_Header=no"
d3447022
HL
11279fi
11280
a3097628 11281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d3447022 11282fi
a3097628
AJ
11283ac_res=`eval echo '${'$as_ac_Header'}'`
11284 { echo "$as_me:$LINENO: result: $ac_res" >&5
11285echo "${ECHO_T}$ac_res" >&6; }
11286if test `eval echo '${'$as_ac_Header'}'` = yes; then
11287 cat >>confdefs.h <<_ACEOF
11288#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11289_ACEOF
11290 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
11291echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
11292if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
b2c62c94
HL
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11294else
a3097628
AJ
11295 ac_check_lib_save_LIBS=$LIBS
11296LIBS="-lxslt $ac_xslt_libs $LIBS"
11297cat >conftest.$ac_ext <<_ACEOF
b2c62c94
HL
11298/* confdefs.h. */
11299_ACEOF
11300cat confdefs.h >>conftest.$ac_ext
11301cat >>conftest.$ac_ext <<_ACEOF
11302/* end confdefs.h. */
b2c62c94 11303
fc6ffb29
AJ
11304/* Override any GCC internal prototype to avoid an error.
11305 Use char because int might match the return type of a GCC
11306 builtin and then its argument prototype would still apply. */
b2c62c94
HL
11307#ifdef __cplusplus
11308extern "C"
b2c62c94 11309#endif
a3097628 11310char xsltCompilePattern ();
b2c62c94
HL
11311int
11312main ()
11313{
a3097628 11314return xsltCompilePattern ();
b2c62c94
HL
11315 ;
11316 return 0;
11317}
11318_ACEOF
11319rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11320if { (ac_try="$ac_link"
11321case "(($ac_try" in
11322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323 *) ac_try_echo=$ac_try;;
11324esac
11325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11326 (eval "$ac_link") 2>conftest.er1
b2c62c94
HL
11327 ac_status=$?
11328 grep -v '^ *+' conftest.er1 >conftest.err
11329 rm -f conftest.er1
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11332 (exit $ac_status); } && {
11333 test -z "$ac_c_werror_flag" ||
11334 test ! -s conftest.err
11335 } && test -s conftest$ac_exeext &&
11336 $as_test_x conftest$ac_exeext; then
a3097628 11337 ac_cv_lib_xslt_xsltCompilePattern=yes
b2c62c94
HL
11338else
11339 echo "$as_me: failed program was:" >&5
11340sed 's/^/| /' conftest.$ac_ext >&5
11341
a3097628 11342 ac_cv_lib_xslt_xsltCompilePattern=no
b2c62c94 11343fi
fc6ffb29 11344
f0ca586f 11345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b2c62c94 11346 conftest$ac_exeext conftest.$ac_ext
a3097628 11347LIBS=$ac_check_lib_save_LIBS
b2c62c94 11348fi
a3097628
AJ
11349{ echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
11350echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
11351if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
11352
11353cat >>confdefs.h <<\_ACEOF
11354#define HAVE_LIBXSLT 1
b2c62c94
HL
11355_ACEOF
11356
a3097628
AJ
11357 XSLTLIBS="$ac_xslt_libs"
11358 XSLTINCL="$ac_xslt_cflags"
b2c62c94 11359fi
b2c62c94 11360
a3097628 11361
73482144 11362fi
ea524def 11363
a3097628 11364done
82776020 11365
a3097628 11366CPPFLAGS="$ac_save_CPPFLAGS"
f9dec94f
AJ
11367if test "$ac_cv_lib_xslt_xsltCompilePattern" != "yes"; then
11368 wine_notices="$wine_notices|libxslt development files not found.
11369Wine will be built without xslt support. (msxml.dll)"
11370fi
11371
82776020 11372
a3097628
AJ
11373HALINCL=""
11374
11375if test "$PKG_CONFIG" != "false"
11376then
11377 ac_save_CPPFLAGS="$CPPFLAGS"
11378 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
11379 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
11380 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
11381
11382
11383for ac_header in dbus/dbus.h hal/libhal.h
11384do
11385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11386if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9ef88cd 11390 echo $ECHO_N "(cached) $ECHO_C" >&6
a3097628
AJ
11391fi
11392ac_res=`eval echo '${'$as_ac_Header'}'`
11393 { echo "$as_me:$LINENO: result: $ac_res" >&5
11394echo "${ECHO_T}$ac_res" >&6; }
d9ef88cd 11395else
a3097628
AJ
11396 # Is the header compilable?
11397{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11398echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11399cat >conftest.$ac_ext <<_ACEOF
11400/* confdefs.h. */
11401_ACEOF
11402cat confdefs.h >>conftest.$ac_ext
11403cat >>conftest.$ac_ext <<_ACEOF
11404/* end confdefs.h. */
11405$ac_includes_default
11406#include <$ac_header>
11407_ACEOF
11408rm -f conftest.$ac_objext
11409if { (ac_try="$ac_compile"
11410case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11413esac
11414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415 (eval "$ac_compile") 2>conftest.er1
11416 ac_status=$?
11417 grep -v '^ *+' conftest.er1 >conftest.err
11418 rm -f conftest.er1
11419 cat conftest.err >&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } && {
11422 test -z "$ac_c_werror_flag" ||
11423 test ! -s conftest.err
11424 } && test -s conftest.$ac_objext; then
11425 ac_header_compiler=yes
d9ef88cd 11426else
a3097628
AJ
11427 echo "$as_me: failed program was:" >&5
11428sed 's/^/| /' conftest.$ac_ext >&5
d9ef88cd 11429
a3097628 11430 ac_header_compiler=no
d9ef88cd
MM
11431fi
11432
a3097628
AJ
11433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11434{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11435echo "${ECHO_T}$ac_header_compiler" >&6; }
d9ef88cd 11436
a3097628
AJ
11437# Is the header present?
11438{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11439echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11440cat >conftest.$ac_ext <<_ACEOF
11441/* confdefs.h. */
11442_ACEOF
11443cat confdefs.h >>conftest.$ac_ext
11444cat >>conftest.$ac_ext <<_ACEOF
11445/* end confdefs.h. */
11446#include <$ac_header>
11447_ACEOF
11448if { (ac_try="$ac_cpp conftest.$ac_ext"
11449case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11452esac
11453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11455 ac_status=$?
11456 grep -v '^ *+' conftest.er1 >conftest.err
11457 rm -f conftest.er1
11458 cat conftest.err >&5
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); } >/dev/null && {
11461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11462 test ! -s conftest.err
11463 }; then
11464 ac_header_preproc=yes
d9ef88cd 11465else
a3097628
AJ
11466 echo "$as_me: failed program was:" >&5
11467sed 's/^/| /' conftest.$ac_ext >&5
d9ef88cd 11468
a3097628 11469 ac_header_preproc=no
d9ef88cd 11470fi
a3097628
AJ
11471
11472rm -f conftest.err conftest.$ac_ext
11473{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11474echo "${ECHO_T}$ac_header_preproc" >&6; }
11475
11476# So? What about this header?
11477case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11478 yes:no: )
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11480echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11482echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11483 ac_header_preproc=yes
11484 ;;
11485 no:yes:* )
11486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11487echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11489echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11491echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11493echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11497echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11498 ( cat <<\_ASBOX
11499## ------------------------------------ ##
11500## Report this to wine-devel@winehq.org ##
11501## ------------------------------------ ##
11502_ASBOX
11503 ) | sed "s/^/$as_me: WARNING: /" >&2
11504 ;;
11505esac
11506{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
d9ef88cd 11510else
a3097628 11511 eval "$as_ac_Header=\$ac_header_preproc"
d9ef88cd 11512fi
a3097628
AJ
11513ac_res=`eval echo '${'$as_ac_Header'}'`
11514 { echo "$as_me:$LINENO: result: $ac_res" >&5
11515echo "${ECHO_T}$ac_res" >&6; }
d9ef88cd 11516
a3097628
AJ
11517fi
11518if test `eval echo '${'$as_ac_Header'}'` = yes; then
11519 cat >>confdefs.h <<_ACEOF
11520#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11521_ACEOF
d9ef88cd 11522
d9ef88cd
MM
11523fi
11524
a3097628
AJ
11525done
11526
11527 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
11528 then
c1099bb7
AJ
11529 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
11530echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
11531if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
ea524def
HL
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11533else
11534 ac_check_lib_save_LIBS=$LIBS
c1099bb7 11535LIBS="-ldbus-1 $ac_hal_libs $LIBS"
ea524def
HL
11536cat >conftest.$ac_ext <<_ACEOF
11537/* confdefs.h. */
11538_ACEOF
11539cat confdefs.h >>conftest.$ac_ext
11540cat >>conftest.$ac_ext <<_ACEOF
11541/* end confdefs.h. */
11542
fc6ffb29
AJ
11543/* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
ea524def
HL
11546#ifdef __cplusplus
11547extern "C"
11548#endif
c1099bb7 11549char dbus_connection_close ();
ea524def
HL
11550int
11551main ()
11552{
c1099bb7 11553return dbus_connection_close ();
ea524def
HL
11554 ;
11555 return 0;
11556}
11557_ACEOF
11558rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11559if { (ac_try="$ac_link"
11560case "(($ac_try" in
11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562 *) ac_try_echo=$ac_try;;
11563esac
11564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11565 (eval "$ac_link") 2>conftest.er1
ea524def
HL
11566 ac_status=$?
11567 grep -v '^ *+' conftest.er1 >conftest.err
11568 rm -f conftest.er1
11569 cat conftest.err >&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11571 (exit $ac_status); } && {
11572 test -z "$ac_c_werror_flag" ||
11573 test ! -s conftest.err
11574 } && test -s conftest$ac_exeext &&
11575 $as_test_x conftest$ac_exeext; then
c1099bb7 11576 ac_cv_lib_dbus_1_dbus_connection_close=yes
ea524def
HL
11577else
11578 echo "$as_me: failed program was:" >&5
11579sed 's/^/| /' conftest.$ac_ext >&5
11580
c1099bb7 11581 ac_cv_lib_dbus_1_dbus_connection_close=no
ea524def 11582fi
fc6ffb29 11583
f0ca586f 11584rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ea524def
HL
11585 conftest$ac_exeext conftest.$ac_ext
11586LIBS=$ac_check_lib_save_LIBS
11587fi
c1099bb7
AJ
11588{ echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
11589echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
11590if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
11591 { echo "$as_me:$LINENO: checking for -lhal" >&5
11592echo $ECHO_N "checking for -lhal... $ECHO_C" >&6; }
11593if test "${ac_cv_lib_soname_hal+set}" = set; then
f5818d2f
AJ
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11595else
c1099bb7
AJ
11596 ac_check_soname_save_LIBS=$LIBS
11597LIBS="-lhal $ac_hal_libs $LIBS"
11598 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
11599/* confdefs.h. */
11600_ACEOF
11601cat confdefs.h >>conftest.$ac_ext
11602cat >>conftest.$ac_ext <<_ACEOF
11603/* end confdefs.h. */
9c269172 11604
a3097628
AJ
11605/* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
11608#ifdef __cplusplus
11609extern "C"
11610#endif
c1099bb7 11611char libhal_ctx_new ();
a3097628
AJ
11612int
11613main ()
11614{
c1099bb7 11615return libhal_ctx_new ();
a3097628
AJ
11616 ;
11617 return 0;
11618}
daa2886c 11619_ACEOF
a3097628
AJ
11620rm -f conftest.$ac_objext conftest$ac_exeext
11621if { (ac_try="$ac_link"
0ebeb530
JW
11622case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625esac
11626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 11627 (eval "$ac_link") 2>conftest.er1
daa2886c 11628 ac_status=$?
875927f6
AJ
11629 grep -v '^ *+' conftest.er1 >conftest.err
11630 rm -f conftest.er1
11631 cat conftest.err >&5
daa2886c 11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11633 (exit $ac_status); } && {
11634 test -z "$ac_c_werror_flag" ||
11635 test ! -s conftest.err
a3097628
AJ
11636 } && test -s conftest$ac_exeext &&
11637 $as_test_x conftest$ac_exeext; then
c1099bb7
AJ
11638 case "$LIBEXT" in
11639 dll) ;;
11640 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'` ;;
11641 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11642 esac
daa2886c
AJ
11643else
11644 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11645sed 's/^/| /' conftest.$ac_ext >&5
11646
c1099bb7 11647
daa2886c 11648fi
fc6ffb29 11649
a3097628
AJ
11650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11651 conftest$ac_exeext conftest.$ac_ext
c1099bb7 11652 LIBS=$ac_check_soname_save_LIBS
40432fef 11653fi
c1099bb7
AJ
11654if test "x$ac_cv_lib_soname_hal" = "x"; then
11655 { echo "$as_me:$LINENO: result: not found" >&5
11656echo "${ECHO_T}not found" >&6; }
a3097628 11657
c1099bb7
AJ
11658else
11659 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
11660echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
11661
11662cat >>confdefs.h <<_ACEOF
11663#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
daa2886c 11664_ACEOF
f5818d2f 11665
c1099bb7 11666 HALINCL="$ac_hal_cflags"
a3097628
AJ
11667fi
11668
40432fef 11669fi
daa2886c 11670
a3097628
AJ
11671 fi
11672 CPPFLAGS="$ac_save_CPPFLAGS"
11673fi
f9dec94f
AJ
11674if test "x$ac_cv_lib_soname_hal" = "x"; then
11675 wine_notices="$wine_notices|libhal development files not found.
11676Wine will be built without dynamic device support. (explorer.exe)"
11677fi
11678
40432fef 11679
a3097628
AJ
11680CURSESLIBS=""
11681if test "$ac_cv_header_ncurses_h" = "yes"
11682then
d0783774
AJ
11683 { echo "$as_me:$LINENO: checking for -lncurses" >&5
11684echo $ECHO_N "checking for -lncurses... $ECHO_C" >&6; }
11685if test "${ac_cv_lib_soname_ncurses+set}" = set; then
a3097628
AJ
11686 echo $ECHO_N "(cached) $ECHO_C" >&6
11687else
d0783774 11688 ac_check_soname_save_LIBS=$LIBS
a3097628 11689LIBS="-lncurses $LIBS"
d0783774 11690 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
11691/* confdefs.h. */
11692_ACEOF
11693cat confdefs.h >>conftest.$ac_ext
11694cat >>conftest.$ac_ext <<_ACEOF
11695/* end confdefs.h. */
a3097628
AJ
11696
11697/* Override any GCC internal prototype to avoid an error.
11698 Use char because int might match the return type of a GCC
11699 builtin and then its argument prototype would still apply. */
11700#ifdef __cplusplus
11701extern "C"
11702#endif
11703char waddch ();
11704int
11705main ()
11706{
11707return waddch ();
11708 ;
11709 return 0;
11710}
f5818d2f 11711_ACEOF
a3097628
AJ
11712rm -f conftest.$ac_objext conftest$ac_exeext
11713if { (ac_try="$ac_link"
0ebeb530
JW
11714case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717esac
11718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 11719 (eval "$ac_link") 2>conftest.er1
f5818d2f 11720 ac_status=$?
11af04e3 11721 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
11722 rm -f conftest.er1
11723 cat conftest.err >&5
daa2886c 11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
11725 (exit $ac_status); } && {
11726 test -z "$ac_c_werror_flag" ||
dc9f3843 11727 test ! -s conftest.err
a3097628
AJ
11728 } && test -s conftest$ac_exeext &&
11729 $as_test_x conftest$ac_exeext; then
d0783774
AJ
11730 case "$LIBEXT" in
11731 dll) ;;
11732 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'` ;;
11733 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11734 esac
18d7573c 11735else
f5818d2f 11736 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11737sed 's/^/| /' conftest.$ac_ext >&5
11738
d0783774 11739
18d7573c 11740fi
fc6ffb29 11741
a3097628
AJ
11742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11743 conftest$ac_exeext conftest.$ac_ext
d0783774 11744 LIBS=$ac_check_soname_save_LIBS
a3097628 11745fi
d0783774
AJ
11746if test "x$ac_cv_lib_soname_ncurses" = "x"; then
11747 { echo "$as_me:$LINENO: result: not found" >&5
11748echo "${ECHO_T}not found" >&6; }
11749
11750else
11751 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
11752echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
11753
11754cat >>confdefs.h <<_ACEOF
11755#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11756_ACEOF
11757
11758 CURSESLIBS="-lncurses"
a3097628
AJ
11759fi
11760
11761elif test "$ac_cv_header_curses_h" = "yes"
11762then
d0783774
AJ
11763 { echo "$as_me:$LINENO: checking for -lcurses" >&5
11764echo $ECHO_N "checking for -lcurses... $ECHO_C" >&6; }
11765if test "${ac_cv_lib_soname_curses+set}" = set; then
d8a6c278
HD
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11767else
d0783774 11768 ac_check_soname_save_LIBS=$LIBS
a3097628 11769LIBS="-lcurses $LIBS"
d0783774 11770 cat >conftest.$ac_ext <<_ACEOF
d8a6c278
HD
11771/* confdefs.h. */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h. */
d8a6c278 11776
a3097628
AJ
11777/* Override any GCC internal prototype to avoid an error.
11778 Use char because int might match the return type of a GCC
11779 builtin and then its argument prototype would still apply. */
11780#ifdef __cplusplus
11781extern "C"
11782#endif
11783char waddch ();
d8a6c278
HD
11784int
11785main ()
11786{
a3097628 11787return waddch ();
d8a6c278
HD
11788 ;
11789 return 0;
11790}
11791_ACEOF
a3097628
AJ
11792rm -f conftest.$ac_objext conftest$ac_exeext
11793if { (ac_try="$ac_link"
0ebeb530
JW
11794case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11797esac
11798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 11799 (eval "$ac_link") 2>conftest.er1
d8a6c278
HD
11800 ac_status=$?
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11805 (exit $ac_status); } && {
11806 test -z "$ac_c_werror_flag" ||
11807 test ! -s conftest.err
a3097628
AJ
11808 } && test -s conftest$ac_exeext &&
11809 $as_test_x conftest$ac_exeext; then
d0783774
AJ
11810 case "$LIBEXT" in
11811 dll) ;;
11812 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'` ;;
11813 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11814 esac
d8a6c278
HD
11815else
11816 echo "$as_me: failed program was:" >&5
11817sed 's/^/| /' conftest.$ac_ext >&5
11818
d0783774 11819
d8a6c278 11820fi
d8a6c278 11821
a3097628
AJ
11822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11823 conftest$ac_exeext conftest.$ac_ext
d0783774 11824 LIBS=$ac_check_soname_save_LIBS
a3097628 11825fi
d0783774
AJ
11826if test "x$ac_cv_lib_soname_curses" = "x"; then
11827 { echo "$as_me:$LINENO: result: not found" >&5
11828echo "${ECHO_T}not found" >&6; }
11829
11830else
11831 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
11832echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
11833
11834cat >>confdefs.h <<_ACEOF
11835#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11836_ACEOF
11837
11838 CURSESLIBS="-lcurses"
d8a6c278
HD
11839fi
11840
a3097628
AJ
11841fi
11842ac_save_LIBS="$LIBS"
11843LIBS="$LIBS $CURSESLIBS"
35bca77f 11844
a3097628 11845for ac_func in mousemask
35bca77f
HD
11846do
11847as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
fc6ffb29
AJ
11848{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11849echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11850if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35bca77f
HD
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11852else
11853 cat >conftest.$ac_ext <<_ACEOF
11854/* confdefs.h. */
11855_ACEOF
11856cat confdefs.h >>conftest.$ac_ext
11857cat >>conftest.$ac_ext <<_ACEOF
11858/* end confdefs.h. */
11859/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11861#define $ac_func innocuous_$ac_func
11862
11863/* System header to define __stub macros and hopefully few prototypes,
11864 which can conflict with char $ac_func (); below.
11865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11866 <limits.h> exists even on freestanding compilers. */
11867
11868#ifdef __STDC__
11869# include <limits.h>
11870#else
11871# include <assert.h>
11872#endif
11873
11874#undef $ac_func
11875
fc6ffb29
AJ
11876/* Override any GCC internal prototype to avoid an error.
11877 Use char because int might match the return type of a GCC
11878 builtin and then its argument prototype would still apply. */
35bca77f
HD
11879#ifdef __cplusplus
11880extern "C"
35bca77f 11881#endif
35bca77f
HD
11882char $ac_func ();
11883/* The GNU C library defines this for functions which it implements
11884 to always fail with ENOSYS. Some functions are actually named
11885 something starting with __ and the normal name is an alias. */
fc6ffb29 11886#if defined __stub_$ac_func || defined __stub___$ac_func
35bca77f 11887choke me
35bca77f
HD
11888#endif
11889
11890int
11891main ()
11892{
fc6ffb29 11893return $ac_func ();
35bca77f
HD
11894 ;
11895 return 0;
11896}
11897_ACEOF
11898rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11899if { (ac_try="$ac_link"
11900case "(($ac_try" in
11901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902 *) ac_try_echo=$ac_try;;
11903esac
11904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905 (eval "$ac_link") 2>conftest.er1
35bca77f
HD
11906 ac_status=$?
11907 grep -v '^ *+' conftest.er1 >conftest.err
11908 rm -f conftest.er1
11909 cat conftest.err >&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11911 (exit $ac_status); } && {
11912 test -z "$ac_c_werror_flag" ||
11913 test ! -s conftest.err
11914 } && test -s conftest$ac_exeext &&
11915 $as_test_x conftest$ac_exeext; then
35bca77f
HD
11916 eval "$as_ac_var=yes"
11917else
11918 echo "$as_me: failed program was:" >&5
11919sed 's/^/| /' conftest.$ac_ext >&5
11920
fc6ffb29 11921 eval "$as_ac_var=no"
35bca77f 11922fi
fc6ffb29 11923
f0ca586f 11924rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35bca77f
HD
11925 conftest$ac_exeext conftest.$ac_ext
11926fi
fc6ffb29
AJ
11927ac_res=`eval echo '${'$as_ac_var'}'`
11928 { echo "$as_me:$LINENO: result: $ac_res" >&5
11929echo "${ECHO_T}$ac_res" >&6; }
35bca77f
HD
11930if test `eval echo '${'$as_ac_var'}'` = yes; then
11931 cat >>confdefs.h <<_ACEOF
11932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11933_ACEOF
11934
11935fi
11936done
11937
a3097628 11938LIBS="$ac_save_LIBS"
f9dec94f
AJ
11939if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then
11940 wine_notices="$wine_notices|lib(n)curses development files not found.
11941Wine will be built without (n)curses support. (wineconsole.exe)"
11942fi
11943
f5818d2f 11944
a3097628
AJ
11945# Extract the first word of "sane-config", so it can be a program name with args.
11946set dummy sane-config; ac_word=$2
11947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11949if test "${ac_cv_prog_sane_devel+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11951else
11952 if test -n "$sane_devel"; then
11953 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11954else
11955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956for as_dir in $PATH
11957do
11958 IFS=$as_save_IFS
11959 test -z "$as_dir" && as_dir=.
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11962 ac_cv_prog_sane_devel="sane-config"
11963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11964 break 2
11965 fi
11966done
11967done
11968IFS=$as_save_IFS
9b1d3726 11969
a3097628
AJ
11970 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11971fi
11972fi
11973sane_devel=$ac_cv_prog_sane_devel
11974if test -n "$sane_devel"; then
11975 { echo "$as_me:$LINENO: result: $sane_devel" >&5
11976echo "${ECHO_T}$sane_devel" >&6; }
11977else
11978 { echo "$as_me:$LINENO: result: no" >&5
11979echo "${ECHO_T}no" >&6; }
563598d4
IP
11980fi
11981
00acb5f7 11982
a3097628
AJ
11983if test "$sane_devel" != "no"
11984then
418e74b5 11985 ac_sane_incl="`$sane_devel --cflags`"
a3097628 11986 ac_save_CPPFLAGS="$CPPFLAGS"
418e74b5 11987 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
a3097628
AJ
11988 if test "${ac_cv_header_sane_sane_h+set}" = set; then
11989 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11990echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
11991if test "${ac_cv_header_sane_sane_h+set}" = set; then
f5818d2f 11992 echo $ECHO_N "(cached) $ECHO_C" >&6
a3097628
AJ
11993fi
11994{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11995echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
6509fa93 11996else
a3097628
AJ
11997 # Is the header compilable?
11998{ echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11999echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
12000cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
12001/* confdefs.h. */
12002_ACEOF
12003cat confdefs.h >>conftest.$ac_ext
12004cat >>conftest.$ac_ext <<_ACEOF
12005/* end confdefs.h. */
a3097628
AJ
12006$ac_includes_default
12007#include <sane/sane.h>
f5818d2f
AJ
12008_ACEOF
12009rm -f conftest.$ac_objext
0ebeb530
JW
12010if { (ac_try="$ac_compile"
12011case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12014esac
12015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_compile") 2>conftest.er1
f5818d2f 12017 ac_status=$?
875927f6
AJ
12018 grep -v '^ *+' conftest.er1 >conftest.err
12019 rm -f conftest.er1
12020 cat conftest.err >&5
daa2886c 12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12022 (exit $ac_status); } && {
12023 test -z "$ac_c_werror_flag" ||
12024 test ! -s conftest.err
12025 } && test -s conftest.$ac_objext; then
a3097628 12026 ac_header_compiler=yes
6509fa93 12027else
f5818d2f 12028 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12029sed 's/^/| /' conftest.$ac_ext >&5
12030
a3097628 12031 ac_header_compiler=no
6509fa93 12032fi
fc6ffb29 12033
0ebeb530 12034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a3097628
AJ
12035{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12036echo "${ECHO_T}$ac_header_compiler" >&6; }
12037
12038# Is the header present?
12039{ echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
12040echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
12041cat >conftest.$ac_ext <<_ACEOF
12042/* confdefs.h. */
12043_ACEOF
12044cat confdefs.h >>conftest.$ac_ext
12045cat >>conftest.$ac_ext <<_ACEOF
12046/* end confdefs.h. */
12047#include <sane/sane.h>
12048_ACEOF
12049if { (ac_try="$ac_cpp conftest.$ac_ext"
12050case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12053esac
12054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } >/dev/null && {
12062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12064 }; then
12065 ac_header_preproc=yes
12066else
12067 echo "$as_me: failed program was:" >&5
12068sed 's/^/| /' conftest.$ac_ext >&5
12069
12070 ac_header_preproc=no
f5818d2f 12071fi
a3097628
AJ
12072
12073rm -f conftest.err conftest.$ac_ext
12074{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12075echo "${ECHO_T}$ac_header_preproc" >&6; }
12076
12077# So? What about this header?
12078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12079 yes:no: )
12080 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
12081echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12082 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
12083echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
12084 ac_header_preproc=yes
12085 ;;
12086 no:yes:* )
12087 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
12088echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
12089 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
12090echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
12091 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
12092echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
12093 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
12094echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
12095 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
12096echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
12097 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
12098echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
12099 ( cat <<\_ASBOX
12100## ------------------------------------ ##
12101## Report this to wine-devel@winehq.org ##
12102## ------------------------------------ ##
12103_ASBOX
12104 ) | sed "s/^/$as_me: WARNING: /" >&2
12105 ;;
12106esac
12107{ echo "$as_me:$LINENO: checking for sane/sane.h" >&5
12108echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
12109if test "${ac_cv_header_sane_sane_h+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12111else
12112 ac_cv_header_sane_sane_h=$ac_header_preproc
12113fi
12114{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
12115echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
12116
12117fi
12118if test $ac_cv_header_sane_sane_h = yes; then
418e74b5
AJ
12119 { echo "$as_me:$LINENO: checking for -lsane" >&5
12120echo $ECHO_N "checking for -lsane... $ECHO_C" >&6; }
12121if test "${ac_cv_lib_soname_sane+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12123else
12124 ac_check_soname_save_LIBS=$LIBS
12125LIBS="-lsane $LIBS"
12126 cat >conftest.$ac_ext <<_ACEOF
12127/* confdefs.h. */
12128_ACEOF
12129cat confdefs.h >>conftest.$ac_ext
12130cat >>conftest.$ac_ext <<_ACEOF
12131/* end confdefs.h. */
f5818d2f 12132
418e74b5
AJ
12133/* Override any GCC internal prototype to avoid an error.
12134 Use char because int might match the return type of a GCC
12135 builtin and then its argument prototype would still apply. */
12136#ifdef __cplusplus
12137extern "C"
12138#endif
12139char sane_init ();
12140int
12141main ()
12142{
12143return sane_init ();
12144 ;
12145 return 0;
12146}
daa2886c 12147_ACEOF
418e74b5
AJ
12148rm -f conftest.$ac_objext conftest$ac_exeext
12149if { (ac_try="$ac_link"
12150case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12153esac
12154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_link") 2>conftest.er1
12156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } && {
12162 test -z "$ac_c_werror_flag" ||
12163 test ! -s conftest.err
12164 } && test -s conftest$ac_exeext &&
12165 $as_test_x conftest$ac_exeext; then
12166 case "$LIBEXT" in
12167 dll) ;;
12168 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'` ;;
12169 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
12170 esac
12171else
12172 echo "$as_me: failed program was:" >&5
12173sed 's/^/| /' conftest.$ac_ext >&5
12174
12175
12176fi
12177
12178rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12179 conftest$ac_exeext conftest.$ac_ext
12180 LIBS=$ac_check_soname_save_LIBS
12181fi
12182if test "x$ac_cv_lib_soname_sane" = "x"; then
12183 { echo "$as_me:$LINENO: result: not found" >&5
12184echo "${ECHO_T}not found" >&6; }
6509fa93 12185
a3097628 12186else
418e74b5
AJ
12187 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_sane" >&5
12188echo "${ECHO_T}$ac_cv_lib_soname_sane" >&6; }
12189
12190cat >>confdefs.h <<_ACEOF
12191#define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
12192_ACEOF
12193
12194 SANEINCL="$ac_sane_incl"
12195
12196fi
12197
a3097628
AJ
12198fi
12199
12200
12201 CPPFLAGS="$ac_save_CPPFLAGS"
12202fi
f9dec94f
AJ
12203if test "x$ac_cv_lib_soname_sane" = "x"; then
12204 wine_notices="$wine_notices|libsane development files not found.
12205Wine will be built without scanner support. (sane.ds/twain_32.dll)"
12206fi
12207
a3097628
AJ
12208
12209# Extract the first word of "gphoto2-config", so it can be a program name with args.
12210set dummy gphoto2-config; ac_word=$2
12211{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12213if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
12215else
12216 if test -n "$gphoto2_devel"; then
12217 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
12218else
12219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220for as_dir in $PATH
12221do
12222 IFS=$as_save_IFS
12223 test -z "$as_dir" && as_dir=.
12224 for ac_exec_ext in '' $ac_executable_extensions; do
12225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12226 ac_cv_prog_gphoto2_devel="gphoto2-config"
12227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12228 break 2
12229 fi
12230done
12231done
12232IFS=$as_save_IFS
12233
12234 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
12235fi
12236fi
12237gphoto2_devel=$ac_cv_prog_gphoto2_devel
12238if test -n "$gphoto2_devel"; then
12239 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
12240echo "${ECHO_T}$gphoto2_devel" >&6; }
12241else
12242 { echo "$as_me:$LINENO: result: no" >&5
12243echo "${ECHO_T}no" >&6; }
12244fi
12245
12246
12247# Extract the first word of "gphoto2-port-config", so it can be a program name with args.
12248set dummy gphoto2-port-config; ac_word=$2
12249{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12251if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253else
12254 if test -n "$gphoto2port_devel"; then
12255 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
12256else
12257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12258for as_dir in $PATH
12259do
12260 IFS=$as_save_IFS
12261 test -z "$as_dir" && as_dir=.
12262 for ac_exec_ext in '' $ac_executable_extensions; do
12263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12264 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
12265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12266 break 2
12267 fi
12268done
12269done
12270IFS=$as_save_IFS
12271
12272 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
6509fa93 12273fi
a3097628
AJ
12274fi
12275gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
12276if test -n "$gphoto2port_devel"; then
12277 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
12278echo "${ECHO_T}$gphoto2port_devel" >&6; }
5ee517ac 12279else
a3097628
AJ
12280 { echo "$as_me:$LINENO: result: no" >&5
12281echo "${ECHO_T}no" >&6; }
5ee517ac 12282fi
fc6ffb29 12283
5ee517ac 12284
a3097628
AJ
12285if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
12286then
f9dec94f
AJ
12287 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
12288 ac_gphoto2_libs=""
a3097628
AJ
12289 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
12290 do
12291 case "$i" in
12292 -L/usr/lib|-L/usr/lib64) ;;
f9dec94f 12293 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
a3097628
AJ
12294 esac
12295 done
12296 ac_save_CPPFLAGS="$CPPFLAGS"
f9dec94f 12297 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
a3097628
AJ
12298 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12299 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12300echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12301if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
5ee517ac 12302 echo $ECHO_N "(cached) $ECHO_C" >&6
a3097628
AJ
12303fi
12304{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12305echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
5ee517ac 12306else
a3097628
AJ
12307 # Is the header compilable?
12308{ echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
12309echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
12310cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
12311/* confdefs.h. */
12312_ACEOF
12313cat confdefs.h >>conftest.$ac_ext
12314cat >>conftest.$ac_ext <<_ACEOF
12315/* end confdefs.h. */
a3097628
AJ
12316$ac_includes_default
12317#include <gphoto2-camera.h>
5ee517ac 12318_ACEOF
a3097628
AJ
12319rm -f conftest.$ac_objext
12320if { (ac_try="$ac_compile"
0ebeb530
JW
12321case "(($ac_try" in
12322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12323 *) ac_try_echo=$ac_try;;
12324esac
12325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 12326 (eval "$ac_compile") 2>conftest.er1
5ee517ac 12327 ac_status=$?
875927f6
AJ
12328 grep -v '^ *+' conftest.er1 >conftest.err
12329 rm -f conftest.er1
12330 cat conftest.err >&5
5ee517ac 12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12332 (exit $ac_status); } && {
12333 test -z "$ac_c_werror_flag" ||
12334 test ! -s conftest.err
a3097628
AJ
12335 } && test -s conftest.$ac_objext; then
12336 ac_header_compiler=yes
5ee517ac
MM
12337else
12338 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12339sed 's/^/| /' conftest.$ac_ext >&5
12340
a3097628 12341 ac_header_compiler=no
5ee517ac 12342fi
5ee517ac 12343
a3097628
AJ
12344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12346echo "${ECHO_T}$ac_header_compiler" >&6; }
5ee517ac 12347
a3097628
AJ
12348# Is the header present?
12349{ echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
12350echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
12351cat >conftest.$ac_ext <<_ACEOF
b2d937d5
AJ
12352/* confdefs.h. */
12353_ACEOF
12354cat confdefs.h >>conftest.$ac_ext
12355cat >>conftest.$ac_ext <<_ACEOF
12356/* end confdefs.h. */
a3097628 12357#include <gphoto2-camera.h>
b2d937d5 12358_ACEOF
a3097628 12359if { (ac_try="$ac_cpp conftest.$ac_ext"
0ebeb530
JW
12360case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12363esac
12364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 12365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b2d937d5 12366 ac_status=$?
875927f6
AJ
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
b2d937d5 12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
12371 (exit $ac_status); } >/dev/null && {
12372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dc9f3843 12373 test ! -s conftest.err
a3097628
AJ
12374 }; then
12375 ac_header_preproc=yes
b2d937d5
AJ
12376else
12377 echo "$as_me: failed program was:" >&5
12378sed 's/^/| /' conftest.$ac_ext >&5
12379
a3097628 12380 ac_header_preproc=no
b2d937d5 12381fi
fc6ffb29 12382
a3097628
AJ
12383rm -f conftest.err conftest.$ac_ext
12384{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12385echo "${ECHO_T}$ac_header_preproc" >&6; }
b2d937d5 12386
a3097628
AJ
12387# So? What about this header?
12388case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12389 yes:no: )
12390 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
12391echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12392 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
12393echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
12394 ac_header_preproc=yes
12395 ;;
12396 no:yes:* )
12397 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
12398echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
12399 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
12400echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
12401 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
12402echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
12403 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
12404echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
12405 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
12406echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
12407 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
12408echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
12409 ( cat <<\_ASBOX
12410## ------------------------------------ ##
12411## Report this to wine-devel@winehq.org ##
12412## ------------------------------------ ##
12413_ASBOX
12414 ) | sed "s/^/$as_me: WARNING: /" >&2
12415 ;;
12416esac
12417{ echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12418echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12419if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12421else
12422 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
b2d937d5 12423fi
a3097628
AJ
12424{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12425echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
b2d937d5
AJ
12426
12427fi
a3097628
AJ
12428if test $ac_cv_header_gphoto2_camera_h = yes; then
12429 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
12430echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
12431if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
80e34dbb
AJ
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12433else
a3097628 12434 ac_check_lib_save_LIBS=$LIBS
f9dec94f 12435LIBS="-lgphoto2 $GPHOTO2LIBS $LIBS"
a3097628 12436cat >conftest.$ac_ext <<_ACEOF
80e34dbb
AJ
12437/* confdefs.h. */
12438_ACEOF
12439cat confdefs.h >>conftest.$ac_ext
12440cat >>conftest.$ac_ext <<_ACEOF
12441/* end confdefs.h. */
80e34dbb 12442
a3097628
AJ
12443/* Override any GCC internal prototype to avoid an error.
12444 Use char because int might match the return type of a GCC
12445 builtin and then its argument prototype would still apply. */
12446#ifdef __cplusplus
12447extern "C"
12448#endif
12449char gp_camera_new ();
80e34dbb
AJ
12450int
12451main ()
12452{
a3097628 12453return gp_camera_new ();
80e34dbb
AJ
12454 ;
12455 return 0;
12456}
12457_ACEOF
a3097628
AJ
12458rm -f conftest.$ac_objext conftest$ac_exeext
12459if { (ac_try="$ac_link"
0ebeb530
JW
12460case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12463esac
12464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 12465 (eval "$ac_link") 2>conftest.er1
80e34dbb 12466 ac_status=$?
875927f6
AJ
12467 grep -v '^ *+' conftest.er1 >conftest.err
12468 rm -f conftest.er1
12469 cat conftest.err >&5
80e34dbb 12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12471 (exit $ac_status); } && {
12472 test -z "$ac_c_werror_flag" ||
12473 test ! -s conftest.err
a3097628
AJ
12474 } && test -s conftest$ac_exeext &&
12475 $as_test_x conftest$ac_exeext; then
12476 ac_cv_lib_gphoto2_gp_camera_new=yes
80e34dbb
AJ
12477else
12478 echo "$as_me: failed program was:" >&5
12479sed 's/^/| /' conftest.$ac_ext >&5
12480
a3097628 12481 ac_cv_lib_gphoto2_gp_camera_new=no
80e34dbb 12482fi
fc6ffb29 12483
a3097628
AJ
12484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12485 conftest$ac_exeext conftest.$ac_ext
12486LIBS=$ac_check_lib_save_LIBS
80e34dbb 12487fi
a3097628
AJ
12488{ echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
12489echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
12490if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
80e34dbb 12491
a3097628
AJ
12492cat >>confdefs.h <<\_ACEOF
12493#define HAVE_GPHOTO2 1
80e34dbb
AJ
12494_ACEOF
12495
f9dec94f
AJ
12496 GPHOTO2LIBS="$ac_gphoto2_libs"
12497
12498 GPHOTO2INCL="$ac_gphoto2_incl"
12499
a3097628
AJ
12500fi
12501
a3097628
AJ
12502fi
12503
80e34dbb 12504
a3097628 12505 CPPFLAGS="$ac_save_CPPFLAGS"
80e34dbb 12506fi
f9dec94f
AJ
12507if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then
12508 wine_notices="$wine_notices|libgphoto2 development files not found.
12509Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)"
12510fi
12511
12512
a3097628
AJ
12513
12514if test "$ac_cv_header_unicode_ubidi_h" = "yes"
12515then
12516 saved_libs="$LIBS"
12517 icu_libs="-lsicuuc -lsicudata -lstdc++ -lgcc_s"
12518 if test -n "$ICU_LIB_DIR"
12519 then
12520 icu_libs="-L$ICU_LIB_DIR $icu_libs"
12521 fi
12522 { echo "$as_me:$LINENO: checking whether can link with ICU libraries" >&5
12523echo $ECHO_N "checking whether can link with ICU libraries... $ECHO_C" >&6; }
12524 LIBS="$saved_libs $icu_libs"
12525 if test "$cross_compiling" = yes; then
12526 { echo "$as_me:$LINENO: result: no" >&5
12527echo "${ECHO_T}no" >&6; }
80e34dbb
AJ
12528else
12529 cat >conftest.$ac_ext <<_ACEOF
80e34dbb
AJ
12530/* confdefs.h. */
12531_ACEOF
12532cat confdefs.h >>conftest.$ac_ext
12533cat >>conftest.$ac_ext <<_ACEOF
12534/* end confdefs.h. */
a3097628 12535#include <unicode/ubidi.h>
80e34dbb
AJ
12536int
12537main ()
12538{
a3097628 12539ubidi_open()
80e34dbb
AJ
12540 ;
12541 return 0;
12542}
12543_ACEOF
a3097628
AJ
12544rm -f conftest$ac_exeext
12545if { (ac_try="$ac_link"
0ebeb530
JW
12546case "(($ac_try" in
12547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12549esac
12550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 12551 (eval "$ac_link") 2>&5
80e34dbb
AJ
12552 ac_status=$?
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
12554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12555 { (case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12558esac
12559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560 (eval "$ac_try") 2>&5
12561 ac_status=$?
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); }; }; then
12564
12565cat >>confdefs.h <<\_ACEOF
12566#define HAVE_ICU 1
12567_ACEOF
12568
12569 ICULIBS="$icu_libs"
12570
12571 { echo "$as_me:$LINENO: result: yes" >&5
12572echo "${ECHO_T}yes" >&6; }
80e34dbb 12573else
a3097628
AJ
12574 echo "$as_me: program exited with status $ac_status" >&5
12575echo "$as_me: failed program was:" >&5
80e34dbb
AJ
12576sed 's/^/| /' conftest.$ac_ext >&5
12577
a3097628
AJ
12578( exit $ac_status )
12579{ echo "$as_me:$LINENO: result: no" >&5
12580echo "${ECHO_T}no" >&6; }
80e34dbb 12581fi
a3097628 12582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
80e34dbb 12583fi
80e34dbb
AJ
12584
12585
a3097628 12586 LIBS="$saved_libs"
80e34dbb 12587fi
f9dec94f
AJ
12588if test "x$ICULIBS" = "x"; then
12589 wine_notices="$wine_notices|libicu development files not found.
12590Wine will be built without bidi (Right to Left) support. (gdi32.dll)"
12591fi
12592
80e34dbb 12593
a3097628 12594RESOLVLIBS=""
80e34dbb 12595
a3097628
AJ
12596if test "$ac_cv_header_resolv_h" = "yes"
12597then
12598 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
12599echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
12600if test "${ac_cv_lib_resolv_res_query+set}" = set; then
821ab863
AJ
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12602else
a3097628
AJ
12603 ac_check_lib_save_LIBS=$LIBS
12604LIBS="-lresolv $LIBS"
12605cat >conftest.$ac_ext <<_ACEOF
821ab863
AJ
12606/* confdefs.h. */
12607_ACEOF
12608cat confdefs.h >>conftest.$ac_ext
12609cat >>conftest.$ac_ext <<_ACEOF
12610/* end confdefs.h. */
875927f6 12611
fc6ffb29
AJ
12612/* Override any GCC internal prototype to avoid an error.
12613 Use char because int might match the return type of a GCC
12614 builtin and then its argument prototype would still apply. */
821ab863
AJ
12615#ifdef __cplusplus
12616extern "C"
821ab863 12617#endif
a3097628 12618char res_query ();
821ab863
AJ
12619int
12620main ()
12621{
a3097628 12622return res_query ();
821ab863
AJ
12623 ;
12624 return 0;
12625}
12626_ACEOF
12627rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
12628if { (ac_try="$ac_link"
12629case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12632esac
12633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_link") 2>conftest.er1
821ab863 12635 ac_status=$?
875927f6
AJ
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
821ab863 12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12640 (exit $ac_status); } && {
12641 test -z "$ac_c_werror_flag" ||
12642 test ! -s conftest.err
12643 } && test -s conftest$ac_exeext &&
12644 $as_test_x conftest$ac_exeext; then
a3097628 12645 ac_cv_lib_resolv_res_query=yes
821ab863
AJ
12646else
12647 echo "$as_me: failed program was:" >&5
12648sed 's/^/| /' conftest.$ac_ext >&5
12649
a3097628 12650 ac_cv_lib_resolv_res_query=no
821ab863 12651fi
fc6ffb29 12652
f0ca586f 12653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 12654 conftest$ac_exeext conftest.$ac_ext
a3097628 12655LIBS=$ac_check_lib_save_LIBS
821ab863 12656fi
a3097628
AJ
12657{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12658echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
12659if test $ac_cv_lib_resolv_res_query = yes; then
12660
12661cat >>confdefs.h <<\_ACEOF
12662#define HAVE_RESOLV 1
821ab863
AJ
12663_ACEOF
12664
a3097628 12665 RESOLVLIBS="-lresolv"
821ab863 12666fi
daa2886c 12667
73482144 12668fi
2a91e3f9 12669
a3097628 12670LCMSLIBS=""
fc6ffb29 12671
a3097628 12672if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
73482144 12673then
a3097628
AJ
12674 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12675echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
12676if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
2a91e3f9 12677 echo $ECHO_N "(cached) $ECHO_C" >&6
2a91e3f9 12678else
73482144 12679 ac_check_lib_save_LIBS=$LIBS
a3097628 12680LIBS="-llcms $LIBS"
2a91e3f9 12681cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
12682/* confdefs.h. */
12683_ACEOF
12684cat confdefs.h >>conftest.$ac_ext
12685cat >>conftest.$ac_ext <<_ACEOF
12686/* end confdefs.h. */
73482144 12687
fc6ffb29
AJ
12688/* Override any GCC internal prototype to avoid an error.
12689 Use char because int might match the return type of a GCC
12690 builtin and then its argument prototype would still apply. */
73482144
AJ
12691#ifdef __cplusplus
12692extern "C"
12693#endif
a3097628 12694char cmsOpenProfileFromFile ();
73482144
AJ
12695int
12696main ()
12697{
a3097628 12698return cmsOpenProfileFromFile ();
73482144
AJ
12699 ;
12700 return 0;
12701}
2a91e3f9 12702_ACEOF
73482144 12703rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
12704if { (ac_try="$ac_link"
12705case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12708esac
12709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_link") 2>conftest.er1
2a91e3f9 12711 ac_status=$?
875927f6
AJ
12712 grep -v '^ *+' conftest.er1 >conftest.err
12713 rm -f conftest.er1
12714 cat conftest.err >&5
2a91e3f9 12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12716 (exit $ac_status); } && {
12717 test -z "$ac_c_werror_flag" ||
12718 test ! -s conftest.err
12719 } && test -s conftest$ac_exeext &&
12720 $as_test_x conftest$ac_exeext; then
a3097628 12721 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
2a91e3f9
RL
12722else
12723 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12724sed 's/^/| /' conftest.$ac_ext >&5
12725
a3097628 12726 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
2a91e3f9 12727fi
fc6ffb29 12728
f0ca586f 12729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73482144
AJ
12730 conftest$ac_exeext conftest.$ac_ext
12731LIBS=$ac_check_lib_save_LIBS
12732fi
a3097628
AJ
12733{ echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12734echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
12735if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
73482144
AJ
12736
12737cat >>confdefs.h <<\_ACEOF
a3097628 12738#define HAVE_LCMS 1
2a91e3f9 12739_ACEOF
e24bcc77 12740
a3097628 12741 LCMSLIBS="-llcms"
2a91e3f9 12742fi
875927f6 12743
2a91e3f9 12744fi
82e06804 12745if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then
f9dec94f
AJ
12746 wine_notices="$wine_notices|liblcms development files not found.
12747Wine will be built without Color Management support. (mscms.dll)"
12748fi
12749
2a91e3f9 12750
a3097628 12751LDAPLIBS=""
73482144 12752
a3097628 12753if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
73482144 12754then
a3097628
AJ
12755 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12756echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
12757if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
2a91e3f9
RL
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759else
12760 ac_check_lib_save_LIBS=$LIBS
a3097628 12761LIBS="-lldap_r $LIBPTHREAD $LIBS"
2a91e3f9 12762cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
12763/* confdefs.h. */
12764_ACEOF
12765cat confdefs.h >>conftest.$ac_ext
12766cat >>conftest.$ac_ext <<_ACEOF
12767/* end confdefs.h. */
2a91e3f9 12768
fc6ffb29
AJ
12769/* Override any GCC internal prototype to avoid an error.
12770 Use char because int might match the return type of a GCC
12771 builtin and then its argument prototype would still apply. */
2a91e3f9
RL
12772#ifdef __cplusplus
12773extern "C"
12774#endif
a3097628 12775char ldap_initialize ();
2a91e3f9
RL
12776int
12777main ()
12778{
a3097628 12779return ldap_initialize ();
2a91e3f9
RL
12780 ;
12781 return 0;
12782}
12783_ACEOF
12784rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
12785if { (ac_try="$ac_link"
12786case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12789esac
12790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_link") 2>conftest.er1
2a91e3f9 12792 ac_status=$?
875927f6
AJ
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
2a91e3f9 12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12797 (exit $ac_status); } && {
12798 test -z "$ac_c_werror_flag" ||
12799 test ! -s conftest.err
12800 } && test -s conftest$ac_exeext &&
12801 $as_test_x conftest$ac_exeext; then
a3097628 12802 ac_cv_lib_ldap_r_ldap_initialize=yes
2a91e3f9
RL
12803else
12804 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12805sed 's/^/| /' conftest.$ac_ext >&5
12806
a3097628 12807 ac_cv_lib_ldap_r_ldap_initialize=no
2a91e3f9 12808fi
fc6ffb29 12809
f0ca586f 12810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 12811 conftest$ac_exeext conftest.$ac_ext
2a91e3f9
RL
12812LIBS=$ac_check_lib_save_LIBS
12813fi
a3097628
AJ
12814{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12815echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12816if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
12817 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12818echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
12819if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12820 echo $ECHO_N "(cached) $ECHO_C" >&6
12821else
12822 ac_check_lib_save_LIBS=$LIBS
12823LIBS="-llber $LIBPTHREAD $LIBS"
12824cat >conftest.$ac_ext <<_ACEOF
00fdd9fc
AJ
12825/* confdefs.h. */
12826_ACEOF
12827cat confdefs.h >>conftest.$ac_ext
12828cat >>conftest.$ac_ext <<_ACEOF
12829/* end confdefs.h. */
a3097628
AJ
12830
12831/* Override any GCC internal prototype to avoid an error.
12832 Use char because int might match the return type of a GCC
12833 builtin and then its argument prototype would still apply. */
12834#ifdef __cplusplus
12835extern "C"
73482144 12836#endif
a3097628 12837char ber_init ();
73482144
AJ
12838int
12839main ()
12840{
a3097628 12841return ber_init ();
73482144
AJ
12842 ;
12843 return 0;
12844}
00fdd9fc 12845_ACEOF
a3097628
AJ
12846rm -f conftest.$ac_objext conftest$ac_exeext
12847if { (ac_try="$ac_link"
0ebeb530
JW
12848case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12851esac
12852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 12853 (eval "$ac_link") 2>conftest.er1
00fdd9fc 12854 ac_status=$?
875927f6
AJ
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
00fdd9fc 12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12859 (exit $ac_status); } && {
12860 test -z "$ac_c_werror_flag" ||
12861 test ! -s conftest.err
a3097628
AJ
12862 } && test -s conftest$ac_exeext &&
12863 $as_test_x conftest$ac_exeext; then
12864 ac_cv_lib_lber_ber_init=yes
00fdd9fc
AJ
12865else
12866 echo "$as_me: failed program was:" >&5
12867sed 's/^/| /' conftest.$ac_ext >&5
12868
a3097628
AJ
12869 ac_cv_lib_lber_ber_init=no
12870fi
fc6ffb29 12871
a3097628
AJ
12872rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12873 conftest$ac_exeext conftest.$ac_ext
12874LIBS=$ac_check_lib_save_LIBS
00fdd9fc 12875fi
a3097628
AJ
12876{ echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12877echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
12878if test $ac_cv_lib_lber_ber_init = yes; then
fc6ffb29 12879
a3097628
AJ
12880cat >>confdefs.h <<\_ACEOF
12881#define HAVE_LDAP 1
12882_ACEOF
12883
12884 LDAPLIBS="-lldap_r -llber"
00fdd9fc 12885fi
00fdd9fc
AJ
12886
12887fi
00fdd9fc 12888
a3097628
AJ
12889 ac_wine_check_funcs_save_LIBS="$LIBS"
12890LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
00fdd9fc 12891
73482144 12892
a3097628
AJ
12893
12894
12895for ac_func in \
12896 ldap_count_references \
12897 ldap_first_reference \
12898 ldap_next_reference \
12899 ldap_parse_reference
12900do
12901as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12902{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12903echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12904if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
00fdd9fc 12905 echo $ECHO_N "(cached) $ECHO_C" >&6
00fdd9fc 12906else
a3097628 12907 cat >conftest.$ac_ext <<_ACEOF
00fdd9fc
AJ
12908/* confdefs.h. */
12909_ACEOF
12910cat confdefs.h >>conftest.$ac_ext
12911cat >>conftest.$ac_ext <<_ACEOF
12912/* end confdefs.h. */
a3097628
AJ
12913/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12915#define $ac_func innocuous_$ac_func
12916
12917/* System header to define __stub macros and hopefully few prototypes,
12918 which can conflict with char $ac_func (); below.
12919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12920 <limits.h> exists even on freestanding compilers. */
12921
12922#ifdef __STDC__
12923# include <limits.h>
12924#else
12925# include <assert.h>
12926#endif
12927
12928#undef $ac_func
73482144 12929
fc6ffb29
AJ
12930/* Override any GCC internal prototype to avoid an error.
12931 Use char because int might match the return type of a GCC
12932 builtin and then its argument prototype would still apply. */
73482144
AJ
12933#ifdef __cplusplus
12934extern "C"
12935#endif
a3097628
AJ
12936char $ac_func ();
12937/* The GNU C library defines this for functions which it implements
12938 to always fail with ENOSYS. Some functions are actually named
12939 something starting with __ and the normal name is an alias. */
12940#if defined __stub_$ac_func || defined __stub___$ac_func
12941choke me
12942#endif
12943
73482144
AJ
12944int
12945main ()
12946{
a3097628 12947return $ac_func ();
73482144
AJ
12948 ;
12949 return 0;
12950}
00fdd9fc 12951_ACEOF
73482144 12952rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
12953if { (ac_try="$ac_link"
12954case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957esac
12958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_link") 2>conftest.er1
00fdd9fc 12960 ac_status=$?
875927f6
AJ
12961 grep -v '^ *+' conftest.er1 >conftest.err
12962 rm -f conftest.er1
12963 cat conftest.err >&5
00fdd9fc 12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12965 (exit $ac_status); } && {
12966 test -z "$ac_c_werror_flag" ||
12967 test ! -s conftest.err
12968 } && test -s conftest$ac_exeext &&
12969 $as_test_x conftest$ac_exeext; then
a3097628 12970 eval "$as_ac_var=yes"
00fdd9fc
AJ
12971else
12972 echo "$as_me: failed program was:" >&5
12973sed 's/^/| /' conftest.$ac_ext >&5
12974
a3097628 12975 eval "$as_ac_var=no"
00fdd9fc 12976fi
fc6ffb29 12977
f0ca586f 12978rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73482144 12979 conftest$ac_exeext conftest.$ac_ext
73482144 12980fi
a3097628
AJ
12981ac_res=`eval echo '${'$as_ac_var'}'`
12982 { echo "$as_me:$LINENO: result: $ac_res" >&5
12983echo "${ECHO_T}$ac_res" >&6; }
12984if test `eval echo '${'$as_ac_var'}'` = yes; then
12985 cat >>confdefs.h <<_ACEOF
12986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
73482144 12987_ACEOF
00fdd9fc 12988
00fdd9fc 12989fi
a3097628 12990done
00fdd9fc 12991
a3097628 12992LIBS="$ac_wine_check_funcs_save_LIBS"
00fdd9fc 12993fi
f9dec94f
AJ
12994if test "x$LDAPLIBS" = "x"; then
12995 wine_notices="$wine_notices|libldap (OpenLDAP) development files not found.
12996Wine will be built without LDAP support. (wldap32.dll)"
12997fi
12998
00fdd9fc 12999
24a55f38
AJ
13000for ac_prog in freetype-config freetype2-config
13001do
13002 # Extract the first word of "$ac_prog", so it can be a program name with args.
13003set dummy $ac_prog; ac_word=$2
a3097628
AJ
13004{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13006if test "${ac_cv_prog_ft_devel+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13008else
13009 if test -n "$ft_devel"; then
13010 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
13011else
13012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013for as_dir in $PATH
13014do
13015 IFS=$as_save_IFS
13016 test -z "$as_dir" && as_dir=.
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24a55f38 13019 ac_cv_prog_ft_devel="$ac_prog"
a3097628
AJ
13020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13021 break 2
13022 fi
13023done
13024done
13025IFS=$as_save_IFS
13026
a3097628
AJ
13027fi
13028fi
13029ft_devel=$ac_cv_prog_ft_devel
13030if test -n "$ft_devel"; then
13031 { echo "$as_me:$LINENO: result: $ft_devel" >&5
13032echo "${ECHO_T}$ft_devel" >&6; }
13033else
13034 { echo "$as_me:$LINENO: result: no" >&5
13035echo "${ECHO_T}no" >&6; }
13036fi
13037
13038
24a55f38 13039 test -n "$ft_devel" && break
a3097628 13040done
24a55f38 13041test -n "$ft_devel" || ft_devel="false"
a3097628 13042
24a55f38 13043if test "$ft_devel" != "false"
a3097628 13044then
24a55f38
AJ
13045 ac_freetype_libs=`$ft_devel --libs`
13046 ac_freetype_incl=`$ft_devel --cflags`
13047 { echo "$as_me:$LINENO: checking for -lfreetype" >&5
13048echo $ECHO_N "checking for -lfreetype... $ECHO_C" >&6; }
13049if test "${ac_cv_lib_soname_freetype+set}" = set; then
00fdd9fc
AJ
13050 echo $ECHO_N "(cached) $ECHO_C" >&6
13051else
24a55f38
AJ
13052 ac_check_soname_save_LIBS=$LIBS
13053LIBS="-lfreetype $ac_freetype_libs $LIBS"
13054 cat >conftest.$ac_ext <<_ACEOF
00fdd9fc
AJ
13055/* confdefs.h. */
13056_ACEOF
13057cat confdefs.h >>conftest.$ac_ext
13058cat >>conftest.$ac_ext <<_ACEOF
13059/* end confdefs.h. */
13060
fc6ffb29
AJ
13061/* Override any GCC internal prototype to avoid an error.
13062 Use char because int might match the return type of a GCC
13063 builtin and then its argument prototype would still apply. */
00fdd9fc
AJ
13064#ifdef __cplusplus
13065extern "C"
13066#endif
a3097628 13067char FT_Init_FreeType ();
00fdd9fc
AJ
13068int
13069main ()
13070{
a3097628 13071return FT_Init_FreeType ();
00fdd9fc
AJ
13072 ;
13073 return 0;
13074}
13075_ACEOF
13076rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
13077if { (ac_try="$ac_link"
13078case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13081esac
13082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_link") 2>conftest.er1
00fdd9fc 13084 ac_status=$?
875927f6
AJ
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
00fdd9fc 13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest$ac_exeext &&
13093 $as_test_x conftest$ac_exeext; then
24a55f38
AJ
13094 case "$LIBEXT" in
13095 dll) ;;
13096 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'` ;;
13097 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
13098 esac
00fdd9fc
AJ
13099else
13100 echo "$as_me: failed program was:" >&5
13101sed 's/^/| /' conftest.$ac_ext >&5
13102
24a55f38 13103
00fdd9fc 13104fi
fc6ffb29 13105
f0ca586f 13106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 13107 conftest$ac_exeext conftest.$ac_ext
24a55f38 13108 LIBS=$ac_check_soname_save_LIBS
00fdd9fc 13109fi
24a55f38
AJ
13110if test "x$ac_cv_lib_soname_freetype" = "x"; then
13111 { echo "$as_me:$LINENO: result: not found" >&5
13112echo "${ECHO_T}not found" >&6; }
13113 ft_lib=no
a3097628 13114else
24a55f38
AJ
13115 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
13116echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
13117
13118cat >>confdefs.h <<_ACEOF
13119#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
13120_ACEOF
13121
13122 ft_lib=yes
a3097628 13123fi
00fdd9fc 13124
24a55f38 13125 if test "$ft_lib" = "yes"
a3097628 13126 then
a3097628 13127 ac_save_CPPFLAGS="$CPPFLAGS"
24a55f38 13128 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
00fdd9fc 13129
00fdd9fc 13130
00fdd9fc 13131
00fdd9fc 13132
fc09423d 13133
c509bc4d 13134
f41c2b21 13135
fc6ffb29
AJ
13136
13137
f41c2b21 13138
182d150a 13139
a3097628
AJ
13140for ac_header in ft2build.h \
13141 freetype/freetype.h \
13142 freetype/ftglyph.h \
13143 freetype/tttables.h \
13144 freetype/ftnames.h \
13145 freetype/ftsnames.h \
13146 freetype/ttnameid.h \
13147 freetype/ftoutln.h \
13148 freetype/ftwinfnt.h \
13149 freetype/ftmodapi.h \
13150 freetype/internal/sfnt.h
13151do
13152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13153{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f41c2b21
DP
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13157else
a3097628 13158 cat >conftest.$ac_ext <<_ACEOF
f41c2b21
DP
13159/* confdefs.h. */
13160_ACEOF
13161cat confdefs.h >>conftest.$ac_ext
13162cat >>conftest.$ac_ext <<_ACEOF
13163/* end confdefs.h. */
a3097628
AJ
13164#if HAVE_FT2BUILD_H
13165 #include <ft2build.h>
13166 #endif
f41c2b21 13167
a3097628 13168#include <$ac_header>
f5818d2f 13169_ACEOF
a3097628
AJ
13170rm -f conftest.$ac_objext
13171if { (ac_try="$ac_compile"
0ebeb530
JW
13172case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175esac
13176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 13177 (eval "$ac_compile") 2>conftest.er1
f5818d2f 13178 ac_status=$?
f41c2b21
DP
13179 grep -v '^ *+' conftest.er1 >conftest.err
13180 rm -f conftest.er1
13181 cat conftest.err >&5
daa2886c 13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13183 (exit $ac_status); } && {
13184 test -z "$ac_c_werror_flag" ||
13185 test ! -s conftest.err
a3097628
AJ
13186 } && test -s conftest.$ac_objext; then
13187 eval "$as_ac_Header=yes"
4f8c37b4 13188else
f41c2b21 13189 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13190sed 's/^/| /' conftest.$ac_ext >&5
13191
a3097628 13192 eval "$as_ac_Header=no"
4f8c37b4 13193fi
fc6ffb29 13194
a3097628 13195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4f8c37b4 13196fi
a3097628
AJ
13197ac_res=`eval echo '${'$as_ac_Header'}'`
13198 { echo "$as_me:$LINENO: result: $ac_res" >&5
13199echo "${ECHO_T}$ac_res" >&6; }
13200if test `eval echo '${'$as_ac_Header'}'` = yes; then
13201 cat >>confdefs.h <<_ACEOF
13202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
f41c2b21
DP
13203_ACEOF
13204
182d150a 13205fi
f9b94cb9 13206
a3097628
AJ
13207done
13208
13209 cat >conftest.$ac_ext <<_ACEOF
efca0f6a
AJ
13210/* confdefs.h. */
13211_ACEOF
13212cat confdefs.h >>conftest.$ac_ext
13213cat >>conftest.$ac_ext <<_ACEOF
13214/* end confdefs.h. */
a3097628
AJ
13215#include <ft2build.h>
13216 #include <freetype/fttrigon.h>
efca0f6a 13217_ACEOF
a3097628 13218if { (ac_try="$ac_cpp conftest.$ac_ext"
0ebeb530
JW
13219case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222esac
13223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 13224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
efca0f6a 13225 ac_status=$?
875927f6
AJ
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
efca0f6a 13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
13230 (exit $ac_status); } >/dev/null && {
13231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dc9f3843 13232 test ! -s conftest.err
a3097628
AJ
13233 }; then
13234
13235cat >>confdefs.h <<\_ACEOF
13236#define HAVE_FREETYPE_FTTRIGON_H 1
13237_ACEOF
13238
13239 wine_cv_fttrigon=yes
efca0f6a
AJ
13240else
13241 echo "$as_me: failed program was:" >&5
13242sed 's/^/| /' conftest.$ac_ext >&5
13243
a3097628 13244 wine_cv_fttrigon=no
182d150a 13245fi
efca0f6a 13246
a3097628
AJ
13247rm -f conftest.err conftest.$ac_ext
13248 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
13249echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
13250if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
f8cb48b5
AJ
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13252else
a3097628 13253 cat >conftest.$ac_ext <<_ACEOF
f8cb48b5
AJ
13254/* confdefs.h. */
13255_ACEOF
13256cat confdefs.h >>conftest.$ac_ext
13257cat >>conftest.$ac_ext <<_ACEOF
13258/* end confdefs.h. */
a3097628 13259#include <freetype/ftmodapi.h>
f8cb48b5 13260
a3097628 13261typedef FT_TrueTypeEngineType ac__type_new_;
f8cb48b5
AJ
13262int
13263main ()
13264{
a3097628
AJ
13265if ((ac__type_new_ *) 0)
13266 return 0;
13267if (sizeof (ac__type_new_))
13268 return 0;
f8cb48b5
AJ
13269 ;
13270 return 0;
13271}
13272_ACEOF
a3097628
AJ
13273rm -f conftest.$ac_objext
13274if { (ac_try="$ac_compile"
0ebeb530
JW
13275case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13278esac
13279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 13280 (eval "$ac_compile") 2>conftest.er1
f8cb48b5
AJ
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13286 (exit $ac_status); } && {
13287 test -z "$ac_c_werror_flag" ||
13288 test ! -s conftest.err
a3097628
AJ
13289 } && test -s conftest.$ac_objext; then
13290 ac_cv_type_FT_TrueTypeEngineType=yes
f8cb48b5
AJ
13291else
13292 echo "$as_me: failed program was:" >&5
13293sed 's/^/| /' conftest.$ac_ext >&5
13294
a3097628 13295 ac_cv_type_FT_TrueTypeEngineType=no
f8cb48b5 13296fi
fc6ffb29 13297
a3097628 13298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f8cb48b5 13299fi
a3097628
AJ
13300{ echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
13301echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
13302if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
13303
13304cat >>confdefs.h <<_ACEOF
13305#define HAVE_FT_TRUETYPEENGINETYPE 1
13306_ACEOF
13307
13308
182d150a 13309fi
f8cb48b5 13310
a3097628 13311 ac_save_CFLAGS="$CFLAGS"
24a55f38 13312 CFLAGS="$CFLAGS $ac_freetype_libs"
a3097628
AJ
13313
13314for ac_func in FT_Load_Sfnt_Table
13315do
13316as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13317{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13318echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13319if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d75cc5aa
AJ
13320 echo $ECHO_N "(cached) $ECHO_C" >&6
13321else
a3097628 13322 cat >conftest.$ac_ext <<_ACEOF
d75cc5aa
AJ
13323/* confdefs.h. */
13324_ACEOF
13325cat confdefs.h >>conftest.$ac_ext
13326cat >>conftest.$ac_ext <<_ACEOF
13327/* end confdefs.h. */
a3097628
AJ
13328/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13330#define $ac_func innocuous_$ac_func
13331
13332/* System header to define __stub macros and hopefully few prototypes,
13333 which can conflict with char $ac_func (); below.
13334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13335 <limits.h> exists even on freestanding compilers. */
13336
13337#ifdef __STDC__
13338# include <limits.h>
13339#else
13340# include <assert.h>
13341#endif
13342
13343#undef $ac_func
13344
13345/* Override any GCC internal prototype to avoid an error.
13346 Use char because int might match the return type of a GCC
13347 builtin and then its argument prototype would still apply. */
13348#ifdef __cplusplus
13349extern "C"
13350#endif
13351char $ac_func ();
13352/* The GNU C library defines this for functions which it implements
13353 to always fail with ENOSYS. Some functions are actually named
13354 something starting with __ and the normal name is an alias. */
13355#if defined __stub_$ac_func || defined __stub___$ac_func
13356choke me
13357#endif
d75cc5aa
AJ
13358
13359int
13360main ()
13361{
a3097628 13362return $ac_func ();
d75cc5aa
AJ
13363 ;
13364 return 0;
13365}
13366_ACEOF
13367rm -f conftest.$ac_objext conftest$ac_exeext
13368if { (ac_try="$ac_link"
13369case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13372esac
13373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_link") 2>conftest.er1
13375 ac_status=$?
13376 grep -v '^ *+' conftest.er1 >conftest.err
13377 rm -f conftest.er1
13378 cat conftest.err >&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13380 (exit $ac_status); } && {
13381 test -z "$ac_c_werror_flag" ||
13382 test ! -s conftest.err
13383 } && test -s conftest$ac_exeext &&
13384 $as_test_x conftest$ac_exeext; then
a3097628 13385 eval "$as_ac_var=yes"
d75cc5aa
AJ
13386else
13387 echo "$as_me: failed program was:" >&5
13388sed 's/^/| /' conftest.$ac_ext >&5
13389
a3097628 13390 eval "$as_ac_var=no"
d75cc5aa
AJ
13391fi
13392
f0ca586f 13393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d75cc5aa 13394 conftest$ac_exeext conftest.$ac_ext
d75cc5aa 13395fi
a3097628
AJ
13396ac_res=`eval echo '${'$as_ac_var'}'`
13397 { echo "$as_me:$LINENO: result: $ac_res" >&5
13398echo "${ECHO_T}$ac_res" >&6; }
13399if test `eval echo '${'$as_ac_var'}'` = yes; then
13400 cat >>confdefs.h <<_ACEOF
13401#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13402_ACEOF
13403
182d150a 13404fi
a3097628 13405done
182d150a 13406
a3097628
AJ
13407 CFLAGS="$ac_save_CFLAGS"
13408 CPPFLAGS="$ac_save_CPPFLAGS"
13409 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
13410 then
d75cc5aa 13411
a3097628
AJ
13412cat >>confdefs.h <<\_ACEOF
13413#define HAVE_FREETYPE 1
13414_ACEOF
13415
24a55f38
AJ
13416 FREETYPELIBS="$ac_freetype_libs"
13417
13418 FREETYPEINCL="$ac_freetype_incl"
13419
a3097628
AJ
13420 fi
13421 fi
13422fi
13423
f9dec94f
AJ
13424if test "$FONTFORGE" = "false"
13425then
13426 wine_warnings="$wine_warnings|FontForge is missing.
13427Fonts will not be built. Dialog text may be invisible or unaligned."
13428elif test "x$FREETYPELIBS" = "x"
a3097628 13429then
f9dec94f
AJ
13430 wine_warnings="$wine_warnings|FreeType development files not found.
13431Fonts will not be built. Dialog text may be invisible or unaligned."
13432else
a3097628
AJ
13433 FONTSSUBDIRS="fonts"
13434
13435fi
13436
13437{ echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
13438echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
13439if test "${ac_cv_c_ppdev+set}" = set; then
c509bc4d
MM
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
13441else
13442 cat >conftest.$ac_ext <<_ACEOF
c509bc4d
MM
13443/* confdefs.h. */
13444_ACEOF
13445cat confdefs.h >>conftest.$ac_ext
13446cat >>conftest.$ac_ext <<_ACEOF
13447/* end confdefs.h. */
a3097628 13448#include <linux/ppdev.h>
c509bc4d
MM
13449int
13450main ()
13451{
a3097628 13452ioctl (1,PPCLAIM,0)
c509bc4d
MM
13453 ;
13454 return 0;
13455}
13456_ACEOF
13457rm -f conftest.$ac_objext
0ebeb530
JW
13458if { (ac_try="$ac_compile"
13459case "(($ac_try" in
13460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461 *) ac_try_echo=$ac_try;;
13462esac
13463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464 (eval "$ac_compile") 2>conftest.er1
c509bc4d 13465 ac_status=$?
875927f6
AJ
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
c509bc4d 13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13470 (exit $ac_status); } && {
13471 test -z "$ac_c_werror_flag" ||
13472 test ! -s conftest.err
13473 } && test -s conftest.$ac_objext; then
a3097628 13474 ac_cv_c_ppdev="yes"
c509bc4d
MM
13475else
13476 echo "$as_me: failed program was:" >&5
13477sed 's/^/| /' conftest.$ac_ext >&5
13478
a3097628 13479 ac_cv_c_ppdev="no"
c509bc4d 13480fi
fc6ffb29 13481
0ebeb530 13482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c509bc4d 13483fi
a3097628
AJ
13484{ echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13485echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
13486if test "$ac_cv_c_ppdev" = "yes"
13487then
b7443722 13488
a3097628
AJ
13489cat >>confdefs.h <<\_ACEOF
13490#define HAVE_PPDEV 1
13491_ACEOF
b7443722 13492
a3097628
AJ
13493fi
13494
13495{ echo "$as_me:$LINENO: checking for va_copy" >&5
13496echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
13497if test "${ac_cv_c_va_copy+set}" = set; then
b7443722
MM
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13499else
13500 cat >conftest.$ac_ext <<_ACEOF
13501/* confdefs.h. */
13502_ACEOF
13503cat confdefs.h >>conftest.$ac_ext
13504cat >>conftest.$ac_ext <<_ACEOF
13505/* end confdefs.h. */
a3097628 13506#include <stdarg.h>
b7443722
MM
13507int
13508main ()
13509{
a3097628 13510va_list ap1, ap2; va_copy(ap1,ap2);
b7443722
MM
13511 ;
13512 return 0;
13513}
13514_ACEOF
a3097628
AJ
13515rm -f conftest.$ac_objext conftest$ac_exeext
13516if { (ac_try="$ac_link"
0ebeb530
JW
13517case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13520esac
13521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 13522 (eval "$ac_link") 2>conftest.er1
b7443722
MM
13523 ac_status=$?
13524 grep -v '^ *+' conftest.er1 >conftest.err
13525 rm -f conftest.er1
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13528 (exit $ac_status); } && {
13529 test -z "$ac_c_werror_flag" ||
13530 test ! -s conftest.err
a3097628
AJ
13531 } && test -s conftest$ac_exeext &&
13532 $as_test_x conftest$ac_exeext; then
13533 ac_cv_c_va_copy="yes"
b7443722
MM
13534else
13535 echo "$as_me: failed program was:" >&5
13536sed 's/^/| /' conftest.$ac_ext >&5
13537
a3097628 13538 ac_cv_c_va_copy="no"
b7443722 13539fi
fc6ffb29 13540
a3097628
AJ
13541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13542 conftest$ac_exeext conftest.$ac_ext
13543
4f8c37b4 13544fi
a3097628
AJ
13545{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13546echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
13547if test "$ac_cv_c_va_copy" = "yes"
13548then
4f8c37b4 13549
a3097628
AJ
13550cat >>confdefs.h <<\_ACEOF
13551#define HAVE_VA_COPY 1
13552_ACEOF
daa2886c 13553
a3097628
AJ
13554fi
13555{ echo "$as_me:$LINENO: checking for __va_copy" >&5
13556echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
13557if test "${ac_cv_c___va_copy+set}" = set; then
84555cc7
AJ
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13559else
13560 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
13561/* confdefs.h. */
13562_ACEOF
13563cat confdefs.h >>conftest.$ac_ext
13564cat >>conftest.$ac_ext <<_ACEOF
13565/* end confdefs.h. */
a3097628 13566#include <stdarg.h>
f5818d2f
AJ
13567int
13568main ()
13569{
a3097628 13570va_list ap1, ap2; __va_copy(ap1,ap2);
f5818d2f
AJ
13571 ;
13572 return 0;
13573}
13574_ACEOF
13575rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
13576if { (ac_try="$ac_link"
13577case "(($ac_try" in
13578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579 *) ac_try_echo=$ac_try;;
13580esac
13581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582 (eval "$ac_link") 2>conftest.er1
f5818d2f 13583 ac_status=$?
875927f6
AJ
13584 grep -v '^ *+' conftest.er1 >conftest.err
13585 rm -f conftest.er1
13586 cat conftest.err >&5
daa2886c 13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13588 (exit $ac_status); } && {
13589 test -z "$ac_c_werror_flag" ||
13590 test ! -s conftest.err
13591 } && test -s conftest$ac_exeext &&
13592 $as_test_x conftest$ac_exeext; then
a3097628 13593 ac_cv_c___va_copy="yes"
c77cbbcd 13594else
f5818d2f 13595 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13596sed 's/^/| /' conftest.$ac_ext >&5
13597
a3097628
AJ
13598 ac_cv_c___va_copy="no"
13599fi
13600
13601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13602 conftest$ac_exeext conftest.$ac_ext
13603
13604fi
13605{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13606echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
13607if test "$ac_cv_c___va_copy" = "yes"
13608then
13609
13610cat >>confdefs.h <<\_ACEOF
13611#define HAVE___VA_COPY 1
13612_ACEOF
13613
13614fi
13615
13616{ echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13617echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
13618if test "${ac_cv_c_sigsetjmp+set}" = set; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13620else
13621 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
13622/* confdefs.h. */
13623_ACEOF
13624cat confdefs.h >>conftest.$ac_ext
13625cat >>conftest.$ac_ext <<_ACEOF
13626/* end confdefs.h. */
a3097628 13627#include <setjmp.h>
84555cc7
AJ
13628int
13629main ()
13630{
a3097628
AJ
13631sigjmp_buf buf;
13632 sigsetjmp( buf, 1 );
13633 siglongjmp( buf, 1 );
84555cc7
AJ
13634 ;
13635 return 0;
13636}
13637_ACEOF
13638rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
13639if { (ac_try="$ac_link"
13640case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643esac
13644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_link") 2>conftest.er1
84555cc7 13646 ac_status=$?
875927f6
AJ
13647 grep -v '^ *+' conftest.er1 >conftest.err
13648 rm -f conftest.er1
13649 cat conftest.err >&5
84555cc7 13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13651 (exit $ac_status); } && {
13652 test -z "$ac_c_werror_flag" ||
13653 test ! -s conftest.err
13654 } && test -s conftest$ac_exeext &&
13655 $as_test_x conftest$ac_exeext; then
a3097628 13656 ac_cv_c_sigsetjmp="yes"
57807fa1 13657else
84555cc7 13658 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13659sed 's/^/| /' conftest.$ac_ext >&5
13660
a3097628
AJ
13661 ac_cv_c_sigsetjmp="no"
13662fi
13663
13664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13665 conftest$ac_exeext conftest.$ac_ext
13666
13667fi
13668{ echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13669echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
13670if test "$ac_cv_c_sigsetjmp" = "yes"
13671then
13672
13673cat >>confdefs.h <<\_ACEOF
13674#define HAVE_SIGSETJMP 1
13675_ACEOF
13676
13677fi
13678
13679{ echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13680echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
13681if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13683else
13684 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
13685/* confdefs.h. */
13686_ACEOF
13687cat confdefs.h >>conftest.$ac_ext
13688cat >>conftest.$ac_ext <<_ACEOF
13689/* end confdefs.h. */
a3097628
AJ
13690#define _GNU_SOURCE
13691#include <pthread.h>
57807fa1 13692
a3097628 13693typedef pthread_rwlock_t ac__type_new_;
57807fa1
GM
13694int
13695main ()
13696{
a3097628
AJ
13697if ((ac__type_new_ *) 0)
13698 return 0;
13699if (sizeof (ac__type_new_))
13700 return 0;
57807fa1
GM
13701 ;
13702 return 0;
13703}
13704_ACEOF
a3097628
AJ
13705rm -f conftest.$ac_objext
13706if { (ac_try="$ac_compile"
0ebeb530
JW
13707case "(($ac_try" in
13708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13709 *) ac_try_echo=$ac_try;;
13710esac
13711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 13712 (eval "$ac_compile") 2>conftest.er1
57807fa1 13713 ac_status=$?
875927f6
AJ
13714 grep -v '^ *+' conftest.er1 >conftest.err
13715 rm -f conftest.er1
13716 cat conftest.err >&5
57807fa1 13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13718 (exit $ac_status); } && {
13719 test -z "$ac_c_werror_flag" ||
13720 test ! -s conftest.err
a3097628
AJ
13721 } && test -s conftest.$ac_objext; then
13722 ac_cv_type_pthread_rwlock_t=yes
57807fa1
GM
13723else
13724 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13725sed 's/^/| /' conftest.$ac_ext >&5
13726
a3097628 13727 ac_cv_type_pthread_rwlock_t=no
84555cc7 13728fi
fc6ffb29 13729
a3097628 13730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84555cc7 13731fi
a3097628
AJ
13732{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
13733echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
13734if test $ac_cv_type_pthread_rwlock_t = yes; then
84555cc7 13735
a3097628
AJ
13736cat >>confdefs.h <<_ACEOF
13737#define HAVE_PTHREAD_RWLOCK_T 1
84555cc7 13738_ACEOF
57807fa1
GM
13739
13740
a3097628
AJ
13741fi
13742{ echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
13743echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
13744if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
f5818d2f 13745 echo $ECHO_N "(cached) $ECHO_C" >&6
8cc3a5e4 13746else
84555cc7 13747 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
13748/* confdefs.h. */
13749_ACEOF
13750cat confdefs.h >>conftest.$ac_ext
13751cat >>conftest.$ac_ext <<_ACEOF
13752/* end confdefs.h. */
a3097628
AJ
13753#define _GNU_SOURCE
13754#include <pthread.h>
13755
13756typedef pthread_rwlockattr_t ac__type_new_;
f5818d2f
AJ
13757int
13758main ()
13759{
a3097628
AJ
13760if ((ac__type_new_ *) 0)
13761 return 0;
13762if (sizeof (ac__type_new_))
13763 return 0;
f5818d2f
AJ
13764 ;
13765 return 0;
13766}
13767_ACEOF
a3097628
AJ
13768rm -f conftest.$ac_objext
13769if { (ac_try="$ac_compile"
0ebeb530
JW
13770case "(($ac_try" in
13771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13773esac
13774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 13775 (eval "$ac_compile") 2>conftest.er1
fa3a5360 13776 ac_status=$?
875927f6
AJ
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
fa3a5360 13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13781 (exit $ac_status); } && {
13782 test -z "$ac_c_werror_flag" ||
13783 test ! -s conftest.err
a3097628
AJ
13784 } && test -s conftest.$ac_objext; then
13785 ac_cv_type_pthread_rwlockattr_t=yes
fa3a5360
AJ
13786else
13787 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13788sed 's/^/| /' conftest.$ac_ext >&5
13789
a3097628 13790 ac_cv_type_pthread_rwlockattr_t=no
fa3a5360 13791fi
fc6ffb29 13792
a3097628 13793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fa3a5360 13794fi
a3097628
AJ
13795{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
13796echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
13797if test $ac_cv_type_pthread_rwlockattr_t = yes; then
84555cc7 13798
a3097628
AJ
13799cat >>confdefs.h <<_ACEOF
13800#define HAVE_PTHREAD_RWLOCKATTR_T 1
84555cc7 13801_ACEOF
fa3a5360 13802
fa3a5360
AJ
13803
13804fi
13805
13806
a3097628
AJ
13807ac_wine_check_funcs_save_LIBS="$LIBS"
13808LIBS="$LIBS $LIBPTHREAD"
ada5e652 13809
1f11333c 13810
13a93b4a 13811
7bf07d15 13812
a3097628
AJ
13813for ac_func in \
13814 pthread_attr_get_np \
13815 pthread_getattr_np \
13816 pthread_get_stackaddr_np \
13817 pthread_get_stacksize_np
ada5e652 13818do
a3097628
AJ
13819as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13820{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13822if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
ada5e652 13824else
a3097628
AJ
13825 cat >conftest.$ac_ext <<_ACEOF
13826/* confdefs.h. */
13827_ACEOF
13828cat confdefs.h >>conftest.$ac_ext
13829cat >>conftest.$ac_ext <<_ACEOF
13830/* end confdefs.h. */
13831/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13833#define $ac_func innocuous_$ac_func
ada5e652 13834
a3097628
AJ
13835/* System header to define __stub macros and hopefully few prototypes,
13836 which can conflict with char $ac_func (); below.
13837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13838 <limits.h> exists even on freestanding compilers. */
fc6ffb29 13839
a3097628
AJ
13840#ifdef __STDC__
13841# include <limits.h>
13842#else
13843# include <assert.h>
13844#endif
ada5e652 13845
a3097628 13846#undef $ac_func
ada5e652 13847
a3097628
AJ
13848/* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13851#ifdef __cplusplus
13852extern "C"
13853#endif
13854char $ac_func ();
13855/* The GNU C library defines this for functions which it implements
13856 to always fail with ENOSYS. Some functions are actually named
13857 something starting with __ and the normal name is an alias. */
13858#if defined __stub_$ac_func || defined __stub___$ac_func
13859choke me
13860#endif
73482144 13861
a3097628
AJ
13862int
13863main ()
13864{
13865return $ac_func ();
13866 ;
13867 return 0;
13868}
13869_ACEOF
13870rm -f conftest.$ac_objext conftest$ac_exeext
13871if { (ac_try="$ac_link"
13872case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13875esac
13876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877 (eval "$ac_link") 2>conftest.er1
13878 ac_status=$?
13879 grep -v '^ *+' conftest.er1 >conftest.err
13880 rm -f conftest.er1
13881 cat conftest.err >&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } && {
13884 test -z "$ac_c_werror_flag" ||
13885 test ! -s conftest.err
13886 } && test -s conftest$ac_exeext &&
13887 $as_test_x conftest$ac_exeext; then
13888 eval "$as_ac_var=yes"
73482144 13889else
a3097628
AJ
13890 echo "$as_me: failed program was:" >&5
13891sed 's/^/| /' conftest.$ac_ext >&5
e24bcc77 13892
a3097628 13893 eval "$as_ac_var=no"
fa3a5360 13894fi
a3097628
AJ
13895
13896rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13897 conftest$ac_exeext conftest.$ac_ext
73482144 13898fi
a3097628
AJ
13899ac_res=`eval echo '${'$as_ac_var'}'`
13900 { echo "$as_me:$LINENO: result: $ac_res" >&5
13901echo "${ECHO_T}$ac_res" >&6; }
13902if test `eval echo '${'$as_ac_var'}'` = yes; then
13903 cat >>confdefs.h <<_ACEOF
13904#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13905_ACEOF
13906
73482144 13907fi
a3097628 13908done
8cc3a5e4 13909
a3097628 13910LIBS="$ac_wine_check_funcs_save_LIBS"
fc6ffb29 13911
a3097628
AJ
13912# Extract the first word of "esd-config", so it can be a program name with args.
13913set dummy esd-config; ac_word=$2
fc6ffb29
AJ
13914{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a3097628 13916if test "${ac_cv_path_ESDCONFIG+set}" = set; then
fa3a5360
AJ
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13918else
a3097628
AJ
13919 case $ESDCONFIG in
13920 [\\/]* | ?:[\\/]*)
13921 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
13922 ;;
13923 *)
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73482144
AJ
13925for as_dir in $PATH
13926do
13927 IFS=$as_save_IFS
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 13930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a3097628 13931 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
73482144
AJ
13932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13933 break 2
13934 fi
13935done
13936done
fc6ffb29 13937IFS=$as_save_IFS
73482144 13938
a3097628
AJ
13939 ;;
13940esac
73482144 13941fi
a3097628
AJ
13942ESDCONFIG=$ac_cv_path_ESDCONFIG
13943if test -n "$ESDCONFIG"; then
13944 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
13945echo "${ECHO_T}$ESDCONFIG" >&6; }
73482144 13946else
fc6ffb29
AJ
13947 { echo "$as_me:$LINENO: result: no" >&5
13948echo "${ECHO_T}no" >&6; }
8cc3a5e4
AJ
13949fi
13950
e533e972 13951
a3097628
AJ
13952if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
13953then
13954 ESD_CFLAGS=""
13955 for i in `$ESDCONFIG --cflags`
13956 do
13957 case "$i" in
13958 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
13959 esac
13960 done
13961 ESD_LIBS=`$ESDCONFIG --libs`
13962 save_CFLAGS="$CFLAGS"
13963 CFLAGS="$CFLAGS $ESD_CFLAGS"
13964 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
13965echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
13966if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
2ffc7e2c
AJ
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13968else
a3097628
AJ
13969 ac_check_lib_save_LIBS=$LIBS
13970LIBS="-lesd $LIBS"
13971cat >conftest.$ac_ext <<_ACEOF
13972/* confdefs.h. */
13973_ACEOF
13974cat confdefs.h >>conftest.$ac_ext
13975cat >>conftest.$ac_ext <<_ACEOF
13976/* end confdefs.h. */
13977
13978/* Override any GCC internal prototype to avoid an error.
13979 Use char because int might match the return type of a GCC
13980 builtin and then its argument prototype would still apply. */
13981#ifdef __cplusplus
13982extern "C"
13983#endif
13984char esd_open_sound ();
13985int
13986main ()
13987{
13988return esd_open_sound ();
13989 ;
13990 return 0;
13991}
13992_ACEOF
13993rm -f conftest.$ac_objext conftest$ac_exeext
13994if { (ac_try="$ac_link"
13995case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13998esac
13999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_link") 2>conftest.er1
14001 ac_status=$?
14002 grep -v '^ *+' conftest.er1 >conftest.err
14003 rm -f conftest.er1
14004 cat conftest.err >&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } && {
14007 test -z "$ac_c_werror_flag" ||
14008 test ! -s conftest.err
14009 } && test -s conftest$ac_exeext &&
14010 $as_test_x conftest$ac_exeext; then
14011 ac_cv_lib_esd_esd_open_sound=yes
2ffc7e2c 14012else
a3097628
AJ
14013 echo "$as_me: failed program was:" >&5
14014sed 's/^/| /' conftest.$ac_ext >&5
2ffc7e2c 14015
a3097628 14016 ac_cv_lib_esd_esd_open_sound=no
2ffc7e2c 14017fi
a3097628
AJ
14018
14019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14020 conftest$ac_exeext conftest.$ac_ext
14021LIBS=$ac_check_lib_save_LIBS
2ffc7e2c 14022fi
a3097628
AJ
14023{ echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
14024echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
14025if test $ac_cv_lib_esd_esd_open_sound = yes; then
14026 ESDLIBS=$ESD_LIBS
2ffc7e2c 14027
a3097628 14028 ESDINCL=$ESD_CFLAGS
2ffc7e2c 14029
a3097628
AJ
14030
14031cat >>confdefs.h <<\_ACEOF
14032#define HAVE_ESD 1
14033_ACEOF
2ffc7e2c
AJ
14034
14035fi
a3097628
AJ
14036
14037 CFLAGS="$save_CFLAGS"
2ffc7e2c 14038fi
a3097628
AJ
14039
14040ALSALIBS=""
14041
14042if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
14043then
14044 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
14045echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
14046if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
2ffc7e2c 14048else
a3097628
AJ
14049 ac_check_lib_save_LIBS=$LIBS
14050LIBS="-lasound $LIBS"
14051cat >conftest.$ac_ext <<_ACEOF
14052/* confdefs.h. */
14053_ACEOF
14054cat confdefs.h >>conftest.$ac_ext
14055cat >>conftest.$ac_ext <<_ACEOF
14056/* end confdefs.h. */
2ffc7e2c 14057
a3097628
AJ
14058/* Override any GCC internal prototype to avoid an error.
14059 Use char because int might match the return type of a GCC
14060 builtin and then its argument prototype would still apply. */
14061#ifdef __cplusplus
14062extern "C"
14063#endif
14064char snd_pcm_hw_params_get_access ();
14065int
14066main ()
14067{
14068return snd_pcm_hw_params_get_access ();
14069 ;
14070 return 0;
14071}
14072_ACEOF
14073rm -f conftest.$ac_objext conftest$ac_exeext
14074if { (ac_try="$ac_link"
14075case "(($ac_try" in
14076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14077 *) ac_try_echo=$ac_try;;
2ffc7e2c 14078esac
a3097628
AJ
14079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14080 (eval "$ac_link") 2>conftest.er1
14081 ac_status=$?
14082 grep -v '^ *+' conftest.er1 >conftest.err
14083 rm -f conftest.er1
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } && {
14087 test -z "$ac_c_werror_flag" ||
14088 test ! -s conftest.err
14089 } && test -s conftest$ac_exeext &&
14090 $as_test_x conftest$ac_exeext; then
14091 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
2ffc7e2c 14092else
a3097628
AJ
14093 echo "$as_me: failed program was:" >&5
14094sed 's/^/| /' conftest.$ac_ext >&5
14095
14096 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
2ffc7e2c
AJ
14097fi
14098
a3097628
AJ
14099rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14100 conftest$ac_exeext conftest.$ac_ext
14101LIBS=$ac_check_lib_save_LIBS
14102fi
14103{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
14104echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
14105if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
14106 cat >conftest.$ac_ext <<_ACEOF
14107/* confdefs.h. */
14108_ACEOF
14109cat confdefs.h >>conftest.$ac_ext
14110cat >>conftest.$ac_ext <<_ACEOF
14111/* end confdefs.h. */
14112#ifdef HAVE_ALSA_ASOUNDLIB_H
14113#include <alsa/asoundlib.h>
14114#elif defined(HAVE_SYS_ASOUNDLIB_H)
14115#include <sys/asoundlib.h>
14116#endif
14117int
14118main ()
14119{
14120int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14121 ;
14122 return 0;
14123}
14124_ACEOF
14125rm -f conftest.$ac_objext
14126if { (ac_try="$ac_compile"
14127case "(($ac_try" in
14128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129 *) ac_try_echo=$ac_try;;
14130esac
14131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132 (eval "$ac_compile") 2>conftest.er1
14133 ac_status=$?
14134 grep -v '^ *+' conftest.er1 >conftest.err
14135 rm -f conftest.er1
14136 cat conftest.err >&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } && {
14139 test -z "$ac_c_werror_flag" ||
14140 test ! -s conftest.err
14141 } && test -s conftest.$ac_objext; then
42b81ea0 14142
a3097628
AJ
14143cat >>confdefs.h <<\_ACEOF
14144#define HAVE_ALSA 1
14145_ACEOF
42b81ea0 14146
a3097628
AJ
14147 ALSALIBS="-lasound"
14148else
14149 echo "$as_me: failed program was:" >&5
14150sed 's/^/| /' conftest.$ac_ext >&5
42b81ea0 14151
f0ca586f 14152
a3097628 14153fi
42b81ea0 14154
a3097628
AJ
14155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14156fi
4e686043 14157
a3097628
AJ
14158fi
14159
a3097628
AJ
14160AUDIOIOLIBS=""
14161
14162if test "$ac_cv_header_libaudioio_h" = "yes"
14163then
14164 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14165echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
14166if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
e533e972
AJ
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168else
a3097628
AJ
14169 ac_check_lib_save_LIBS=$LIBS
14170LIBS="-laudioio $LIBS"
e533e972 14171cat >conftest.$ac_ext <<_ACEOF
a3097628
AJ
14172/* confdefs.h. */
14173_ACEOF
14174cat confdefs.h >>conftest.$ac_ext
14175cat >>conftest.$ac_ext <<_ACEOF
14176/* end confdefs.h. */
14177
14178/* Override any GCC internal prototype to avoid an error.
14179 Use char because int might match the return type of a GCC
14180 builtin and then its argument prototype would still apply. */
14181#ifdef __cplusplus
14182extern "C"
14183#endif
14184char AudioIOGetVersion ();
14185int
14186main ()
14187{
14188return AudioIOGetVersion ();
14189 ;
14190 return 0;
14191}
e533e972
AJ
14192_ACEOF
14193rm -f conftest.$ac_objext conftest$ac_exeext
14194if { (ac_try="$ac_link"
14195case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14198esac
14199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_link") 2>conftest.er1
14201 ac_status=$?
14202 grep -v '^ *+' conftest.er1 >conftest.err
14203 rm -f conftest.er1
14204 cat conftest.err >&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
14206 (exit $ac_status); } && {
14207 test -z "$ac_c_werror_flag" ||
14208 test ! -s conftest.err
14209 } && test -s conftest$ac_exeext &&
14210 $as_test_x conftest$ac_exeext; then
a3097628 14211 ac_cv_lib_audioio_AudioIOGetVersion=yes
73482144 14212else
e533e972
AJ
14213 echo "$as_me: failed program was:" >&5
14214sed 's/^/| /' conftest.$ac_ext >&5
73482144 14215
a3097628 14216 ac_cv_lib_audioio_AudioIOGetVersion=no
e533e972 14217fi
daa2886c 14218
f0ca586f 14219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
e533e972 14220 conftest$ac_exeext conftest.$ac_ext
a3097628 14221LIBS=$ac_check_lib_save_LIBS
e533e972 14222fi
a3097628
AJ
14223{ echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14224echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
14225if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14226 AUDIOIOLIBS="-laudioio"
14227
14228cat >>confdefs.h <<\_ACEOF
14229#define HAVE_LIBAUDIOIO 1
14230_ACEOF
14231
14232fi
14233
14234fi
14235
14236
14237if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14238then
3336e9bf
AJ
14239 { echo "$as_me:$LINENO: checking for -lcapi20" >&5
14240echo $ECHO_N "checking for -lcapi20... $ECHO_C" >&6; }
14241if test "${ac_cv_lib_soname_capi20+set}" = set; then
f5818d2f 14242 echo $ECHO_N "(cached) $ECHO_C" >&6
93a5b868 14243else
3336e9bf 14244 ac_check_soname_save_LIBS=$LIBS
a3097628 14245LIBS="-lcapi20 $LIBS"
3336e9bf 14246 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
14247/* confdefs.h. */
14248_ACEOF
14249cat confdefs.h >>conftest.$ac_ext
14250cat >>conftest.$ac_ext <<_ACEOF
14251/* end confdefs.h. */
fa3a5360 14252
a3097628
AJ
14253/* Override any GCC internal prototype to avoid an error.
14254 Use char because int might match the return type of a GCC
14255 builtin and then its argument prototype would still apply. */
14256#ifdef __cplusplus
14257extern "C"
14258#endif
14259char capi20_register ();
e24bcc77
AJ
14260int
14261main ()
14262{
a3097628 14263return capi20_register ();
f5818d2f
AJ
14264 ;
14265 return 0;
14266}
14267_ACEOF
14268rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
14269if { (ac_try="$ac_link"
14270case "(($ac_try" in
14271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272 *) ac_try_echo=$ac_try;;
14273esac
14274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_link") 2>conftest.er1
f5818d2f 14276 ac_status=$?
875927f6
AJ
14277 grep -v '^ *+' conftest.er1 >conftest.err
14278 rm -f conftest.er1
14279 cat conftest.err >&5
daa2886c 14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
14281 (exit $ac_status); } && {
14282 test -z "$ac_c_werror_flag" ||
14283 test ! -s conftest.err
14284 } && test -s conftest$ac_exeext &&
14285 $as_test_x conftest$ac_exeext; then
3336e9bf
AJ
14286 case "$LIBEXT" in
14287 dll) ;;
14288 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'` ;;
14289 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
14290 esac
93a5b868 14291else
f5818d2f 14292 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14293sed 's/^/| /' conftest.$ac_ext >&5
14294
3336e9bf 14295
93a5b868 14296fi
fc6ffb29 14297
f0ca586f 14298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 14299 conftest$ac_exeext conftest.$ac_ext
3336e9bf 14300 LIBS=$ac_check_soname_save_LIBS
93a5b868 14301fi
3336e9bf
AJ
14302if test "x$ac_cv_lib_soname_capi20" = "x"; then
14303 { echo "$as_me:$LINENO: result: not found" >&5
14304echo "${ECHO_T}not found" >&6; }
a3097628 14305
3336e9bf
AJ
14306else
14307 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
14308echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
14309
14310cat >>confdefs.h <<_ACEOF
14311#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
a3097628
AJ
14312_ACEOF
14313
3336e9bf 14314
702d3556
AJ
14315fi
14316
14317fi
f9dec94f
AJ
14318if test "x$ac_cv_lib_soname_capi20" = "x"; then
14319 wine_notices="$wine_notices|libcapi20 development files not found.
14320Wine will be built without ISDN support. (capi2032.dll)"
14321fi
14322
702d3556
AJ
14323
14324if test "$ac_cv_header_cups_cups_h" = "yes"
14325then
14326 { echo "$as_me:$LINENO: checking for -lcups" >&5
14327echo $ECHO_N "checking for -lcups... $ECHO_C" >&6; }
14328if test "${ac_cv_lib_soname_cups+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14330else
14331 ac_check_soname_save_LIBS=$LIBS
14332LIBS="-lcups $LIBS"
14333 cat >conftest.$ac_ext <<_ACEOF
14334/* confdefs.h. */
14335_ACEOF
14336cat confdefs.h >>conftest.$ac_ext
14337cat >>conftest.$ac_ext <<_ACEOF
14338/* end confdefs.h. */
14339
14340/* Override any GCC internal prototype to avoid an error.
14341 Use char because int might match the return type of a GCC
14342 builtin and then its argument prototype would still apply. */
14343#ifdef __cplusplus
14344extern "C"
14345#endif
14346char cupsGetDefault ();
14347int
14348main ()
14349{
14350return cupsGetDefault ();
14351 ;
14352 return 0;
14353}
14354_ACEOF
14355rm -f conftest.$ac_objext conftest$ac_exeext
14356if { (ac_try="$ac_link"
14357case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14360esac
14361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362 (eval "$ac_link") 2>conftest.er1
14363 ac_status=$?
14364 grep -v '^ *+' conftest.er1 >conftest.err
14365 rm -f conftest.er1
14366 cat conftest.err >&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } && {
14369 test -z "$ac_c_werror_flag" ||
14370 test ! -s conftest.err
14371 } && test -s conftest$ac_exeext &&
14372 $as_test_x conftest$ac_exeext; then
14373 case "$LIBEXT" in
14374 dll) ;;
14375 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'` ;;
14376 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
14377 esac
14378else
14379 echo "$as_me: failed program was:" >&5
14380sed 's/^/| /' conftest.$ac_ext >&5
14381
14382
14383fi
14384
14385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14386 conftest$ac_exeext conftest.$ac_ext
14387 LIBS=$ac_check_soname_save_LIBS
14388fi
14389if test "x$ac_cv_lib_soname_cups" = "x"; then
14390 { echo "$as_me:$LINENO: result: not found" >&5
14391echo "${ECHO_T}not found" >&6; }
14392
14393else
14394 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14395echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
14396
14397cat >>confdefs.h <<_ACEOF
14398#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14399_ACEOF
14400
14401
34200c35
AJ
14402fi
14403
14404fi
f9dec94f
AJ
14405if test "x$ac_cv_lib_soname_cups" = "x"; then
14406 wine_notices="$wine_notices|libcups development files not found.
14407Wine will be built without CUPS support."
14408fi
14409
34200c35
AJ
14410
14411if test "$ac_cv_header_jack_jack_h" = "yes"
14412then
14413 { echo "$as_me:$LINENO: checking for -ljack" >&5
14414echo $ECHO_N "checking for -ljack... $ECHO_C" >&6; }
14415if test "${ac_cv_lib_soname_jack+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14417else
14418 ac_check_soname_save_LIBS=$LIBS
14419LIBS="-ljack $LIBS"
14420 cat >conftest.$ac_ext <<_ACEOF
14421/* confdefs.h. */
14422_ACEOF
14423cat confdefs.h >>conftest.$ac_ext
14424cat >>conftest.$ac_ext <<_ACEOF
14425/* end confdefs.h. */
14426
14427/* Override any GCC internal prototype to avoid an error.
14428 Use char because int might match the return type of a GCC
14429 builtin and then its argument prototype would still apply. */
14430#ifdef __cplusplus
14431extern "C"
14432#endif
14433char jack_client_new ();
14434int
14435main ()
14436{
14437return jack_client_new ();
14438 ;
14439 return 0;
14440}
14441_ACEOF
14442rm -f conftest.$ac_objext conftest$ac_exeext
14443if { (ac_try="$ac_link"
14444case "(($ac_try" in
14445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446 *) ac_try_echo=$ac_try;;
14447esac
14448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_link") 2>conftest.er1
14450 ac_status=$?
14451 grep -v '^ *+' conftest.er1 >conftest.err
14452 rm -f conftest.er1
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } && {
14456 test -z "$ac_c_werror_flag" ||
14457 test ! -s conftest.err
14458 } && test -s conftest$ac_exeext &&
14459 $as_test_x conftest$ac_exeext; then
14460 case "$LIBEXT" in
14461 dll) ;;
14462 dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14463 *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack\\.$LIBEXT" | sed -e "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
14464 esac
14465else
14466 echo "$as_me: failed program was:" >&5
14467sed 's/^/| /' conftest.$ac_ext >&5
14468
14469
14470fi
14471
14472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14473 conftest$ac_exeext conftest.$ac_ext
14474 LIBS=$ac_check_soname_save_LIBS
14475fi
14476if test "x$ac_cv_lib_soname_jack" = "x"; then
14477 { echo "$as_me:$LINENO: result: not found" >&5
14478echo "${ECHO_T}not found" >&6; }
14479
14480else
14481 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
14482echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
14483
14484cat >>confdefs.h <<_ACEOF
14485#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
14486_ACEOF
14487
14488
ccd5f284
AJ
14489fi
14490
14491fi
14492
14493if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
14494then
14495 { echo "$as_me:$LINENO: checking for -lfontconfig" >&5
14496echo $ECHO_N "checking for -lfontconfig... $ECHO_C" >&6; }
14497if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
14498 echo $ECHO_N "(cached) $ECHO_C" >&6
14499else
14500 ac_check_soname_save_LIBS=$LIBS
14501LIBS="-lfontconfig $LIBS"
14502 cat >conftest.$ac_ext <<_ACEOF
14503/* confdefs.h. */
14504_ACEOF
14505cat confdefs.h >>conftest.$ac_ext
14506cat >>conftest.$ac_ext <<_ACEOF
14507/* end confdefs.h. */
14508
14509/* Override any GCC internal prototype to avoid an error.
14510 Use char because int might match the return type of a GCC
14511 builtin and then its argument prototype would still apply. */
14512#ifdef __cplusplus
14513extern "C"
14514#endif
14515char FcInit ();
14516int
14517main ()
14518{
14519return FcInit ();
14520 ;
14521 return 0;
14522}
14523_ACEOF
14524rm -f conftest.$ac_objext conftest$ac_exeext
14525if { (ac_try="$ac_link"
14526case "(($ac_try" in
14527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528 *) ac_try_echo=$ac_try;;
14529esac
14530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14531 (eval "$ac_link") 2>conftest.er1
14532 ac_status=$?
14533 grep -v '^ *+' conftest.er1 >conftest.err
14534 rm -f conftest.er1
14535 cat conftest.err >&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } && {
14538 test -z "$ac_c_werror_flag" ||
14539 test ! -s conftest.err
14540 } && test -s conftest$ac_exeext &&
14541 $as_test_x conftest$ac_exeext; then
14542 case "$LIBEXT" in
14543 dll) ;;
14544 dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep "libfontconfig\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14545 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
14546 esac
14547else
14548 echo "$as_me: failed program was:" >&5
14549sed 's/^/| /' conftest.$ac_ext >&5
14550
14551
14552fi
14553
14554rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14555 conftest$ac_exeext conftest.$ac_ext
14556 LIBS=$ac_check_soname_save_LIBS
14557fi
14558if test "x$ac_cv_lib_soname_fontconfig" = "x"; then
14559 { echo "$as_me:$LINENO: result: not found" >&5
14560echo "${ECHO_T}not found" >&6; }
14561
14562else
14563 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
14564echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
14565
14566cat >>confdefs.h <<_ACEOF
14567#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
14568_ACEOF
14569
14570
f91909b3
AJ
14571fi
14572
14573fi
7f674966
AJ
14574if test "x$ac_cv_lib_soname_fontconfig" = "x"; then
14575 wine_notices="$wine_notices|fontconfig development files not found.
14576Wine will be built without fontconfig support."
14577fi
14578
f91909b3
AJ
14579
14580if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
14581then
14582 { echo "$as_me:$LINENO: checking for -lssl" >&5
14583echo $ECHO_N "checking for -lssl... $ECHO_C" >&6; }
14584if test "${ac_cv_lib_soname_ssl+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14586else
14587 ac_check_soname_save_LIBS=$LIBS
14588LIBS="-lssl $LIBS"
14589 cat >conftest.$ac_ext <<_ACEOF
14590/* confdefs.h. */
14591_ACEOF
14592cat confdefs.h >>conftest.$ac_ext
14593cat >>conftest.$ac_ext <<_ACEOF
14594/* end confdefs.h. */
14595
14596/* Override any GCC internal prototype to avoid an error.
14597 Use char because int might match the return type of a GCC
14598 builtin and then its argument prototype would still apply. */
14599#ifdef __cplusplus
14600extern "C"
14601#endif
14602char SSL_library_init ();
14603int
14604main ()
14605{
14606return SSL_library_init ();
14607 ;
14608 return 0;
14609}
14610_ACEOF
14611rm -f conftest.$ac_objext conftest$ac_exeext
14612if { (ac_try="$ac_link"
14613case "(($ac_try" in
14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14616esac
14617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618 (eval "$ac_link") 2>conftest.er1
14619 ac_status=$?
14620 grep -v '^ *+' conftest.er1 >conftest.err
14621 rm -f conftest.er1
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } && {
14625 test -z "$ac_c_werror_flag" ||
14626 test ! -s conftest.err
14627 } && test -s conftest$ac_exeext &&
14628 $as_test_x conftest$ac_exeext; then
14629 case "$LIBEXT" in
14630 dll) ;;
14631 dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep "libssl\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14632 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
14633 esac
14634else
14635 echo "$as_me: failed program was:" >&5
14636sed 's/^/| /' conftest.$ac_ext >&5
14637
14638
14639fi
14640
14641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14642 conftest$ac_exeext conftest.$ac_ext
14643 LIBS=$ac_check_soname_save_LIBS
14644fi
14645if test "x$ac_cv_lib_soname_ssl" = "x"; then
14646 { echo "$as_me:$LINENO: result: not found" >&5
14647echo "${ECHO_T}not found" >&6; }
14648
14649else
14650 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
14651echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
14652
14653cat >>confdefs.h <<_ACEOF
14654#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
14655_ACEOF
14656
14657
14658fi
14659
14660 { echo "$as_me:$LINENO: checking for -lcrypto" >&5
14661echo $ECHO_N "checking for -lcrypto... $ECHO_C" >&6; }
14662if test "${ac_cv_lib_soname_crypto+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664else
14665 ac_check_soname_save_LIBS=$LIBS
14666LIBS="-lcrypto $LIBS"
14667 cat >conftest.$ac_ext <<_ACEOF
14668/* confdefs.h. */
14669_ACEOF
14670cat confdefs.h >>conftest.$ac_ext
14671cat >>conftest.$ac_ext <<_ACEOF
14672/* end confdefs.h. */
14673
14674/* Override any GCC internal prototype to avoid an error.
14675 Use char because int might match the return type of a GCC
14676 builtin and then its argument prototype would still apply. */
14677#ifdef __cplusplus
14678extern "C"
14679#endif
14680char BIO_new_socket ();
14681int
14682main ()
14683{
14684return BIO_new_socket ();
14685 ;
14686 return 0;
14687}
14688_ACEOF
14689rm -f conftest.$ac_objext conftest$ac_exeext
14690if { (ac_try="$ac_link"
14691case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694esac
14695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_link") 2>conftest.er1
14697 ac_status=$?
14698 grep -v '^ *+' conftest.er1 >conftest.err
14699 rm -f conftest.er1
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } && {
14703 test -z "$ac_c_werror_flag" ||
14704 test ! -s conftest.err
14705 } && test -s conftest$ac_exeext &&
14706 $as_test_x conftest$ac_exeext; then
14707 case "$LIBEXT" in
14708 dll) ;;
14709 dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep "libcrypto\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14710 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
14711 esac
14712else
14713 echo "$as_me: failed program was:" >&5
14714sed 's/^/| /' conftest.$ac_ext >&5
14715
14716
14717fi
14718
14719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14720 conftest$ac_exeext conftest.$ac_ext
14721 LIBS=$ac_check_soname_save_LIBS
14722fi
14723if test "x$ac_cv_lib_soname_crypto" = "x"; then
14724 { echo "$as_me:$LINENO: result: not found" >&5
14725echo "${ECHO_T}not found" >&6; }
14726
14727else
14728 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
14729echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
14730
14731cat >>confdefs.h <<_ACEOF
14732#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
14733_ACEOF
14734
14735
d0fddf4f
AJ
14736fi
14737
14738fi
7f674966
AJ
14739if test "x$ac_cv_lib_soname_ssl" = "x"; then
14740 wine_notices="$wine_notices|OpenSSL development files not found.
14741Wine will be built without SSL support. (wininet.dll)"
14742fi
14743
d0fddf4f
AJ
14744
14745if test "$ac_cv_header_jpeglib_h" = "yes"
14746then
14747 { echo "$as_me:$LINENO: checking for -ljpeg" >&5
14748echo $ECHO_N "checking for -ljpeg... $ECHO_C" >&6; }
14749if test "${ac_cv_lib_soname_jpeg+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14751else
14752 ac_check_soname_save_LIBS=$LIBS
14753LIBS="-ljpeg $LIBS"
14754 cat >conftest.$ac_ext <<_ACEOF
14755/* confdefs.h. */
14756_ACEOF
14757cat confdefs.h >>conftest.$ac_ext
14758cat >>conftest.$ac_ext <<_ACEOF
14759/* end confdefs.h. */
14760
14761/* Override any GCC internal prototype to avoid an error.
14762 Use char because int might match the return type of a GCC
14763 builtin and then its argument prototype would still apply. */
14764#ifdef __cplusplus
14765extern "C"
14766#endif
14767char jpeg_start_decompress ();
14768int
14769main ()
14770{
14771return jpeg_start_decompress ();
14772 ;
14773 return 0;
14774}
14775_ACEOF
14776rm -f conftest.$ac_objext conftest$ac_exeext
14777if { (ac_try="$ac_link"
14778case "(($ac_try" in
14779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780 *) ac_try_echo=$ac_try;;
14781esac
14782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14783 (eval "$ac_link") 2>conftest.er1
14784 ac_status=$?
14785 grep -v '^ *+' conftest.er1 >conftest.err
14786 rm -f conftest.er1
14787 cat conftest.err >&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } && {
14790 test -z "$ac_c_werror_flag" ||
14791 test ! -s conftest.err
14792 } && test -s conftest$ac_exeext &&
14793 $as_test_x conftest$ac_exeext; then
14794 case "$LIBEXT" in
14795 dll) ;;
14796 dylib) ac_cv_lib_soname_jpeg=`otool -L conftest$ac_exeext | grep "libjpeg\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjpeg\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14797 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
14798 esac
14799else
14800 echo "$as_me: failed program was:" >&5
14801sed 's/^/| /' conftest.$ac_ext >&5
14802
14803
14804fi
14805
14806rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14807 conftest$ac_exeext conftest.$ac_ext
14808 LIBS=$ac_check_soname_save_LIBS
14809fi
14810if test "x$ac_cv_lib_soname_jpeg" = "x"; then
14811 { echo "$as_me:$LINENO: result: not found" >&5
14812echo "${ECHO_T}not found" >&6; }
14813
14814else
14815 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
14816echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
14817
14818cat >>confdefs.h <<_ACEOF
14819#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
14820_ACEOF
14821
14822
00302152
AJ
14823fi
14824
14825fi
7f674966
AJ
14826if test "x$ac_cv_lib_soname_jpeg" = "x"; then
14827 wine_notices="$wine_notices|libjpeg development files not found.
14828Wine will be built without JPEG support. (oleaut32.dll)"
14829fi
14830
00302152
AJ
14831
14832if test "$ac_cv_header_png_h" = "yes"
14833then
14834 { echo "$as_me:$LINENO: checking for -lpng" >&5
14835echo $ECHO_N "checking for -lpng... $ECHO_C" >&6; }
14836if test "${ac_cv_lib_soname_png+set}" = set; then
14837 echo $ECHO_N "(cached) $ECHO_C" >&6
14838else
14839 ac_check_soname_save_LIBS=$LIBS
14840LIBS="-lpng $LIBS"
14841 cat >conftest.$ac_ext <<_ACEOF
14842/* confdefs.h. */
14843_ACEOF
14844cat confdefs.h >>conftest.$ac_ext
14845cat >>conftest.$ac_ext <<_ACEOF
14846/* end confdefs.h. */
14847
14848/* Override any GCC internal prototype to avoid an error.
14849 Use char because int might match the return type of a GCC
14850 builtin and then its argument prototype would still apply. */
14851#ifdef __cplusplus
14852extern "C"
14853#endif
14854char png_create_read_struct ();
14855int
14856main ()
14857{
14858return png_create_read_struct ();
14859 ;
14860 return 0;
14861}
14862_ACEOF
14863rm -f conftest.$ac_objext conftest$ac_exeext
14864if { (ac_try="$ac_link"
14865case "(($ac_try" in
14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867 *) ac_try_echo=$ac_try;;
14868esac
14869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870 (eval "$ac_link") 2>conftest.er1
14871 ac_status=$?
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } && {
14877 test -z "$ac_c_werror_flag" ||
14878 test ! -s conftest.err
14879 } && test -s conftest$ac_exeext &&
14880 $as_test_x conftest$ac_exeext; then
14881 case "$LIBEXT" in
14882 dll) ;;
14883 dylib) ac_cv_lib_soname_png=`otool -L conftest$ac_exeext | grep "libpng[0-9]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libpng[0-9]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
14884 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
14885 esac
14886else
14887 echo "$as_me: failed program was:" >&5
14888sed 's/^/| /' conftest.$ac_ext >&5
14889
14890
14891fi
14892
14893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14894 conftest$ac_exeext conftest.$ac_ext
14895 LIBS=$ac_check_soname_save_LIBS
14896fi
14897if test "x$ac_cv_lib_soname_png" = "x"; then
14898 { echo "$as_me:$LINENO: result: not found" >&5
14899echo "${ECHO_T}not found" >&6; }
14900
14901else
14902 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_png" >&5
14903echo "${ECHO_T}$ac_cv_lib_soname_png" >&6; }
14904
14905cat >>confdefs.h <<_ACEOF
14906#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
14907_ACEOF
14908
14909
a3097628
AJ
14910fi
14911
14912fi
7f674966
AJ
14913if test "x$ac_cv_lib_soname_png" = "x"; then
14914 wine_notices="$wine_notices|libpng development files not found.
14915Wine will be built without PNG support. (oleaut32.dll)"
14916fi
14917
a3097628 14918
f9dec94f
AJ
14919if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESD_LIBS$ac_cv_lib_soname_jack" = "x" -a \
14920 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
14921 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
14922 "$ac_cv_header_soundcard_h" != "yes"; then
14923 wine_warnings="$wine_warnings|No sound system was found. Windows applications will be silent."
14924fi
14925
14926
a3097628
AJ
14927
14928EXTRACFLAGS=""
14929
14930if test "x${GCC}" = "xyes"
14931then
14932 EXTRACFLAGS="-Wall -pipe"
14933
14934 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14935echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
14936if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
f5818d2f 14937 echo $ECHO_N "(cached) $ECHO_C" >&6
0623a6f3 14938else
a3097628
AJ
14939 if test "$cross_compiling" = yes; then
14940 ac_cv_c_gcc_strength_bug="yes"
14941else
14942 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
14943/* confdefs.h. */
14944_ACEOF
14945cat confdefs.h >>conftest.$ac_ext
14946cat >>conftest.$ac_ext <<_ACEOF
14947/* end confdefs.h. */
a3097628 14948int L[4] = {0,1,2,3};
f5818d2f
AJ
14949int
14950main ()
14951{
a3097628
AJ
14952static int Array[3];
14953 unsigned int B = 3;
14954 int i;
14955 for(i=0; i<B; i++) Array[i] = i - 3;
14956 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14957 L[i] = 4;
14958 exit( Array[1] != -2 || L[2] != 3)
f5818d2f
AJ
14959 ;
14960 return 0;
14961}
14962_ACEOF
a3097628 14963rm -f conftest$ac_exeext
0ebeb530
JW
14964if { (ac_try="$ac_link"
14965case "(($ac_try" in
14966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967 *) ac_try_echo=$ac_try;;
14968esac
14969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 14970 (eval "$ac_link") 2>&5
f5818d2f 14971 ac_status=$?
daa2886c 14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
14973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14974 { (case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14977esac
14978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_try") 2>&5
14980 ac_status=$?
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }; then
14983 ac_cv_c_gcc_strength_bug="no"
0623a6f3 14984else
a3097628
AJ
14985 echo "$as_me: program exited with status $ac_status" >&5
14986echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14987sed 's/^/| /' conftest.$ac_ext >&5
14988
a3097628
AJ
14989( exit $ac_status )
14990ac_cv_c_gcc_strength_bug="yes"
fa3a5360 14991fi
a3097628 14992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
182d150a
AJ
14993fi
14994
a3097628 14995
182d150a 14996fi
a3097628
AJ
14997{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
14998echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
14999 if test "$ac_cv_c_gcc_strength_bug" = "yes"
15000 then
15001 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
15002 fi
182d150a 15003
266c609d 15004
a3097628
AJ
15005 { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
15006echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
15007if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
266c609d
AJ
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15009else
e533e972 15010 ac_wine_try_cflags_saved=$CFLAGS
a3097628 15011CFLAGS="$CFLAGS -fshort-wchar"
e533e972 15012cat >conftest.$ac_ext <<_ACEOF
266c609d
AJ
15013/* confdefs.h. */
15014_ACEOF
15015cat confdefs.h >>conftest.$ac_ext
15016cat >>conftest.$ac_ext <<_ACEOF
15017/* end confdefs.h. */
266c609d
AJ
15018
15019int
15020main ()
15021{
e533e972 15022
266c609d
AJ
15023 ;
15024 return 0;
15025}
15026_ACEOF
15027rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15028if { (ac_try="$ac_link"
15029case "(($ac_try" in
15030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15031 *) ac_try_echo=$ac_try;;
15032esac
15033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15034 (eval "$ac_link") 2>conftest.er1
266c609d
AJ
15035 ac_status=$?
15036 grep -v '^ *+' conftest.er1 >conftest.err
15037 rm -f conftest.er1
15038 cat conftest.err >&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15040 (exit $ac_status); } && {
15041 test -z "$ac_c_werror_flag" ||
15042 test ! -s conftest.err
15043 } && test -s conftest$ac_exeext &&
15044 $as_test_x conftest$ac_exeext; then
a3097628 15045 ac_cv_cflags__fshort_wchar=yes
266c609d
AJ
15046else
15047 echo "$as_me: failed program was:" >&5
15048sed 's/^/| /' conftest.$ac_ext >&5
15049
a3097628 15050 ac_cv_cflags__fshort_wchar=no
266c609d 15051fi
fc6ffb29 15052
f0ca586f 15053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
266c609d 15054 conftest$ac_exeext conftest.$ac_ext
e533e972 15055CFLAGS=$ac_wine_try_cflags_saved
266c609d 15056fi
a3097628
AJ
15057{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
15058echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
15059if test $ac_cv_cflags__fshort_wchar = yes; then
fa3a5360 15060
a3097628
AJ
15061cat >>confdefs.h <<\_ACEOF
15062#define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
15063_ACEOF
182d150a 15064
a3097628
AJ
15065fi
15066
15067 { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
15068echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
15069if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
f5818d2f 15070 echo $ECHO_N "(cached) $ECHO_C" >&6
7e6ae4ba 15071else
67e8dc68 15072 ac_wine_try_cflags_saved=$CFLAGS
a3097628 15073CFLAGS="$CFLAGS -fno-strict-aliasing"
67e8dc68 15074cat >conftest.$ac_ext <<_ACEOF
e533e972
AJ
15075/* confdefs.h. */
15076_ACEOF
15077cat confdefs.h >>conftest.$ac_ext
15078cat >>conftest.$ac_ext <<_ACEOF
15079/* end confdefs.h. */
15080
15081int
15082main ()
15083{
15084
15085 ;
15086 return 0;
15087}
f5818d2f
AJ
15088_ACEOF
15089rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15090if { (ac_try="$ac_link"
15091case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094esac
15095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_link") 2>conftest.er1
f5818d2f 15097 ac_status=$?
875927f6
AJ
15098 grep -v '^ *+' conftest.er1 >conftest.err
15099 rm -f conftest.er1
15100 cat conftest.err >&5
daa2886c 15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15102 (exit $ac_status); } && {
15103 test -z "$ac_c_werror_flag" ||
15104 test ! -s conftest.err
15105 } && test -s conftest$ac_exeext &&
15106 $as_test_x conftest$ac_exeext; then
a3097628 15107 ac_cv_cflags__fno_strict_aliasing=yes
7e6ae4ba 15108else
f5818d2f 15109 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15110sed 's/^/| /' conftest.$ac_ext >&5
15111
a3097628 15112 ac_cv_cflags__fno_strict_aliasing=no
7e6ae4ba 15113fi
fc6ffb29 15114
f0ca586f 15115rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 15116 conftest$ac_exeext conftest.$ac_ext
67e8dc68 15117CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 15118fi
a3097628
AJ
15119{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
15120echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
15121if test $ac_cv_cflags__fno_strict_aliasing = yes; then
15122 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
182d150a
AJ
15123fi
15124
a3097628
AJ
15125 { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
15126echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
15127if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
0ebeb530
JW
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15129else
182d150a 15130 ac_wine_try_cflags_saved=$CFLAGS
a3097628 15131CFLAGS="$CFLAGS -Wdeclaration-after-statement"
0ebeb530
JW
15132cat >conftest.$ac_ext <<_ACEOF
15133/* confdefs.h. */
15134_ACEOF
15135cat confdefs.h >>conftest.$ac_ext
15136cat >>conftest.$ac_ext <<_ACEOF
15137/* end confdefs.h. */
15138
15139int
15140main ()
15141{
15142
15143 ;
15144 return 0;
15145}
15146_ACEOF
15147rm -f conftest.$ac_objext conftest$ac_exeext
15148if { (ac_try="$ac_link"
15149case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15152esac
15153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_link") 2>conftest.er1
15155 ac_status=$?
15156 grep -v '^ *+' conftest.er1 >conftest.err
15157 rm -f conftest.er1
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15160 (exit $ac_status); } && {
15161 test -z "$ac_c_werror_flag" ||
15162 test ! -s conftest.err
15163 } && test -s conftest$ac_exeext &&
15164 $as_test_x conftest$ac_exeext; then
a3097628 15165 ac_cv_cflags__Wdeclaration_after_statement=yes
0ebeb530
JW
15166else
15167 echo "$as_me: failed program was:" >&5
15168sed 's/^/| /' conftest.$ac_ext >&5
15169
a3097628 15170 ac_cv_cflags__Wdeclaration_after_statement=no
0ebeb530
JW
15171fi
15172
f0ca586f 15173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0ebeb530
JW
15174 conftest$ac_exeext conftest.$ac_ext
15175CFLAGS=$ac_wine_try_cflags_saved
15176fi
a3097628
AJ
15177{ echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
15178echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
15179if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
15180 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
182d150a
AJ
15181fi
15182
a3097628
AJ
15183 { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
15184echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
15185if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
0ebeb530
JW
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15187else
15188 ac_wine_try_cflags_saved=$CFLAGS
a3097628 15189CFLAGS="$CFLAGS -Wwrite-strings"
0ebeb530
JW
15190cat >conftest.$ac_ext <<_ACEOF
15191/* confdefs.h. */
15192_ACEOF
15193cat confdefs.h >>conftest.$ac_ext
15194cat >>conftest.$ac_ext <<_ACEOF
15195/* end confdefs.h. */
15196
15197int
15198main ()
15199{
15200
15201 ;
15202 return 0;
15203}
15204_ACEOF
15205rm -f conftest.$ac_objext conftest$ac_exeext
15206if { (ac_try="$ac_link"
15207case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210esac
15211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_link") 2>conftest.er1
15213 ac_status=$?
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15218 (exit $ac_status); } && {
15219 test -z "$ac_c_werror_flag" ||
15220 test ! -s conftest.err
15221 } && test -s conftest$ac_exeext &&
15222 $as_test_x conftest$ac_exeext; then
a3097628 15223 ac_cv_cflags__Wwrite_strings=yes
0ebeb530
JW
15224else
15225 echo "$as_me: failed program was:" >&5
15226sed 's/^/| /' conftest.$ac_ext >&5
15227
a3097628 15228 ac_cv_cflags__Wwrite_strings=no
0ebeb530
JW
15229fi
15230
f0ca586f 15231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0ebeb530
JW
15232 conftest$ac_exeext conftest.$ac_ext
15233CFLAGS=$ac_wine_try_cflags_saved
15234fi
a3097628
AJ
15235{ echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
15236echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
15237if test $ac_cv_cflags__Wwrite_strings = yes; then
15238 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
182d150a 15239fi
e533e972 15240
0ebeb530 15241
a3097628
AJ
15242 saved_CFLAGS="$CFLAGS"
15243 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
15244 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
15245echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
15246if test "${ac_cv_c_string_h_warnings+set}" = set; then
f2abe47d
AJ
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15248else
a3097628 15249 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
15250/* confdefs.h. */
15251_ACEOF
15252cat confdefs.h >>conftest.$ac_ext
15253cat >>conftest.$ac_ext <<_ACEOF
15254/* end confdefs.h. */
a3097628 15255#include <string.h>
f2abe47d
AJ
15256int
15257main ()
15258{
15259
15260 ;
15261 return 0;
15262}
15263_ACEOF
a3097628
AJ
15264rm -f conftest.$ac_objext
15265if { (ac_try="$ac_compile"
0ebeb530
JW
15266case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15269esac
15270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 15271 (eval "$ac_compile") 2>conftest.er1
f2abe47d 15272 ac_status=$?
875927f6
AJ
15273 grep -v '^ *+' conftest.er1 >conftest.err
15274 rm -f conftest.er1
15275 cat conftest.err >&5
f2abe47d 15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15277 (exit $ac_status); } && {
15278 test -z "$ac_c_werror_flag" ||
15279 test ! -s conftest.err
a3097628
AJ
15280 } && test -s conftest.$ac_objext; then
15281 ac_cv_c_string_h_warnings=no
f2abe47d
AJ
15282else
15283 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
a3097628 15286 ac_cv_c_string_h_warnings=yes
f2abe47d 15287fi
fc6ffb29 15288
a3097628 15289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f2abe47d 15290fi
a3097628
AJ
15291{ echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
15292echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
15293 CFLAGS="$saved_CFLAGS"
15294 if test "$ac_cv_c_string_h_warnings" = "no"
15295 then
15296 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
15297 fi
15298
15299 BUILTINFLAG=""
15300
15301 saved_CFLAGS="$CFLAGS"
15302 CFLAGS="$CFLAGS -Werror"
15303 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
15304echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
15305if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15307else
15308 cat >conftest.$ac_ext <<_ACEOF
46d82c56
AJ
15309/* confdefs.h. */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h. */
15314
15315int
15316main ()
15317{
a3097628 15318int iswlower(unsigned short);
46d82c56
AJ
15319 ;
15320 return 0;
15321}
15322_ACEOF
a3097628
AJ
15323rm -f conftest.$ac_objext
15324if { (ac_try="$ac_compile"
46d82c56
AJ
15325case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15328esac
15329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 15330 (eval "$ac_compile") 2>conftest.er1
46d82c56
AJ
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } && {
15337 test -z "$ac_c_werror_flag" ||
15338 test ! -s conftest.err
a3097628
AJ
15339 } && test -s conftest.$ac_objext; then
15340 ac_cv_c_builtin_wchar_ctype=no
46d82c56
AJ
15341else
15342 echo "$as_me: failed program was:" >&5
15343sed 's/^/| /' conftest.$ac_ext >&5
15344
a3097628 15345 ac_cv_c_builtin_wchar_ctype=yes
46d82c56
AJ
15346fi
15347
a3097628 15348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46d82c56 15349fi
a3097628
AJ
15350{ echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
15351echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
15352 CFLAGS="$saved_CFLAGS"
15353 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
15354 then
15355 BUILTINFLAG="-fno-builtin"
15356 fi
182d150a 15357fi
e533e972 15358
4d52d379 15359
a3097628
AJ
15360{ echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
15361echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
15362if test "${ac_cv_asm_func_def+set}" = set; then
36048242
AJ
15363 echo $ECHO_N "(cached) $ECHO_C" >&6
15364else
a3097628 15365 cat >conftest.$ac_ext <<_ACEOF
36048242
AJ
15366/* confdefs.h. */
15367_ACEOF
15368cat confdefs.h >>conftest.$ac_ext
15369cat >>conftest.$ac_ext <<_ACEOF
15370/* end confdefs.h. */
15371
15372int
15373main ()
15374{
a3097628 15375asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
36048242
AJ
15376 ;
15377 return 0;
15378}
15379_ACEOF
15380rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15381if { (ac_try="$ac_link"
15382case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15385esac
15386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_link") 2>conftest.er1
36048242
AJ
15388 ac_status=$?
15389 grep -v '^ *+' conftest.er1 >conftest.err
15390 rm -f conftest.er1
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15393 (exit $ac_status); } && {
15394 test -z "$ac_c_werror_flag" ||
15395 test ! -s conftest.err
15396 } && test -s conftest$ac_exeext &&
15397 $as_test_x conftest$ac_exeext; then
a3097628 15398 ac_cv_asm_func_def=".def"
36048242
AJ
15399else
15400 echo "$as_me: failed program was:" >&5
15401sed 's/^/| /' conftest.$ac_ext >&5
15402
a3097628
AJ
15403 cat >conftest.$ac_ext <<_ACEOF
15404/* confdefs.h. */
15405_ACEOF
15406cat confdefs.h >>conftest.$ac_ext
15407cat >>conftest.$ac_ext <<_ACEOF
15408/* end confdefs.h. */
36048242 15409
a3097628
AJ
15410int
15411main ()
15412{
15413asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
15414 ;
15415 return 0;
15416}
440ff6db
AJ
15417_ACEOF
15418rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15419if { (ac_try="$ac_link"
15420case "(($ac_try" in
15421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422 *) ac_try_echo=$ac_try;;
15423esac
15424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15425 (eval "$ac_link") 2>conftest.er1
440ff6db
AJ
15426 ac_status=$?
15427 grep -v '^ *+' conftest.er1 >conftest.err
15428 rm -f conftest.er1
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15431 (exit $ac_status); } && {
15432 test -z "$ac_c_werror_flag" ||
15433 test ! -s conftest.err
15434 } && test -s conftest$ac_exeext &&
15435 $as_test_x conftest$ac_exeext; then
a3097628 15436 ac_cv_asm_func_def=".type @function"
440ff6db
AJ
15437else
15438 echo "$as_me: failed program was:" >&5
15439sed 's/^/| /' conftest.$ac_ext >&5
15440
a3097628
AJ
15441 cat >conftest.$ac_ext <<_ACEOF
15442/* confdefs.h. */
15443_ACEOF
15444cat confdefs.h >>conftest.$ac_ext
15445cat >>conftest.$ac_ext <<_ACEOF
15446/* end confdefs.h. */
e533e972 15447
a3097628
AJ
15448int
15449main ()
15450{
15451asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
15452 ;
15453 return 0;
15454}
ef2d04d4
AJ
15455_ACEOF
15456rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15457if { (ac_try="$ac_link"
15458case "(($ac_try" in
15459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15460 *) ac_try_echo=$ac_try;;
15461esac
15462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15463 (eval "$ac_link") 2>conftest.er1
ef2d04d4 15464 ac_status=$?
875927f6
AJ
15465 grep -v '^ *+' conftest.er1 >conftest.err
15466 rm -f conftest.er1
15467 cat conftest.err >&5
ef2d04d4 15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15469 (exit $ac_status); } && {
15470 test -z "$ac_c_werror_flag" ||
15471 test ! -s conftest.err
a3097628
AJ
15472 } && test -s conftest$ac_exeext &&
15473 $as_test_x conftest$ac_exeext; then
15474 ac_cv_asm_func_def=".type 2"
e533e972 15475else
a3097628
AJ
15476 echo "$as_me: failed program was:" >&5
15477sed 's/^/| /' conftest.$ac_ext >&5
e533e972 15478
a3097628 15479 ac_cv_asm_func_def="unknown"
e533e972 15480fi
a3097628
AJ
15481
15482rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15483 conftest$ac_exeext conftest.$ac_ext
e533e972 15484fi
a3097628
AJ
15485
15486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15487 conftest$ac_exeext conftest.$ac_ext
e533e972
AJ
15488fi
15489
a3097628
AJ
15490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15491 conftest$ac_exeext conftest.$ac_ext
15492fi
15493{ echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15494echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
e533e972 15495
e533e972 15496
a3097628
AJ
15497
15498case "$ac_cv_asm_func_def" in
15499 ".def")
15500 cat >>confdefs.h <<\_ACEOF
15501#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
15502_ACEOF
15503 ;;
15504 ".type @function")
15505 cat >>confdefs.h <<\_ACEOF
15506#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15507_ACEOF
15508 ;;
15509 ".type 2")
15510 cat >>confdefs.h <<\_ACEOF
15511#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15512_ACEOF
15513 ;;
15514 *)
15515 cat >>confdefs.h <<\_ACEOF
15516#define __ASM_FUNC(name) ""
15517_ACEOF
15518 ;;
15519esac
15520
15521
15522{ echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15523echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
15524if test "${ac_cv_c_extern_prefix+set}" = set; then
2ffc7e2c
AJ
15525 echo $ECHO_N "(cached) $ECHO_C" >&6
15526else
a3097628
AJ
15527 cat >conftest.$ac_ext <<_ACEOF
15528/* confdefs.h. */
15529_ACEOF
15530cat confdefs.h >>conftest.$ac_ext
15531cat >>conftest.$ac_ext <<_ACEOF
15532/* end confdefs.h. */
15533extern int ac_test;
15534int
15535main ()
15536{
15537asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
15538 ;
15539 return 0;
15540}
15541_ACEOF
15542rm -f conftest.$ac_objext conftest$ac_exeext
15543if { (ac_try="$ac_link"
15544case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15547esac
15548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_link") 2>conftest.er1
15550 ac_status=$?
15551 grep -v '^ *+' conftest.er1 >conftest.err
15552 rm -f conftest.er1
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } && {
15556 test -z "$ac_c_werror_flag" ||
15557 test ! -s conftest.err
15558 } && test -s conftest$ac_exeext &&
15559 $as_test_x conftest$ac_exeext; then
15560 ac_cv_c_extern_prefix="yes"
2ffc7e2c 15561else
a3097628
AJ
15562 echo "$as_me: failed program was:" >&5
15563sed 's/^/| /' conftest.$ac_ext >&5
2ffc7e2c 15564
a3097628 15565 ac_cv_c_extern_prefix="no"
2ffc7e2c 15566fi
a3097628
AJ
15567
15568rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15569 conftest$ac_exeext conftest.$ac_ext
2ffc7e2c 15570fi
a3097628
AJ
15571{ echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15572echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
2ffc7e2c
AJ
15573
15574
2ffc7e2c 15575
a3097628
AJ
15576if test "$ac_cv_c_extern_prefix" = "yes"
15577then
15578 cat >>confdefs.h <<\_ACEOF
15579#define __ASM_NAME(name) "_" name
15580_ACEOF
15581
15582else
15583 cat >>confdefs.h <<\_ACEOF
15584#define __ASM_NAME(name) name
15585_ACEOF
e533e972 15586
e533e972
AJ
15587fi
15588
a3097628 15589
3a0233d6
AJ
15590LDPATH=""
15591
e533e972
AJ
15592case $build_os in
15593 cygwin*|mingw32*)
15594 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
3a0233d6 15595 ;;
e533e972 15596 darwin*|macosx*)
3a0233d6
AJ
15597 ;;
15598 linux*|solaris*) if test -z "$LDRPATH_LOCAL"
15599 then
15600 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
15601 fi
15602 ;;
e533e972
AJ
15603 *)
15604 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
3a0233d6 15605 ;;
e533e972
AJ
15606esac
15607
15608case $host_os in
15609 mingw32*)
15610 CRTLIBS="-lmsvcrt"
15611
15612 SOCKETLIBS="-lws2_32"
15613
15614 ;;
15615esac
15616
15617MAIN_BINARY="wine-pthread"
15618 case $host_cpu in
15619 *i[3456789]86*)
15620 case $host_os in
15621 linux* | k*bsd*-gnu)
15622 MAIN_BINARY="wine-glibc"
15623
15624 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
9f5c69c9
TC
15625 ;;
15626 freebsd*)
15627 MAIN_BINARY="wine-freebsd"
15628
15629 EXTRA_BINARIES="wine-pthread"
e533e972
AJ
15630 ;;
15631 esac
15632 ;;
15633esac
15634
15635
5a95cfbd 15636
e533e972
AJ
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
e533e972
AJ
15690
15691
a9f214cb 15692
6c04a187 15693
fd133237 15694
0c4f152e 15695
e533e972
AJ
15696
15697
15698for ac_func in \
e533e972
AJ
15699 _pclose \
15700 _popen \
15701 _snprintf \
15702 _spawnvp \
15703 _stricmp \
15704 _strnicmp \
15705 _vsnprintf \
15706 asctime_r \
15707 chsize \
15708 clone \
e533e972
AJ
15709 dlopen \
15710 epoll_create \
15711 ffs \
15712 finite \
15713 fork \
15714 fpclass \
15715 fstatfs \
15716 fstatvfs \
15717 ftruncate \
15718 futimes \
15719 futimesat \
a9f214cb 15720 getdirentries \
e533e972
AJ
15721 getopt_long \
15722 getpagesize \
e533e972 15723 getpwuid \
e533e972
AJ
15724 gettid \
15725 gettimeofday \
15726 getuid \
fd133237 15727 inet_pton \
e533e972
AJ
15728 kqueue \
15729 lstat \
15730 memmove \
15731 mmap \
15732 pclose \
15733 poll \
15734 popen \
15735 prctl \
15736 pread \
15737 pwrite \
15738 readlink \
15739 rfork \
15740 sched_yield \
15741 select \
e533e972
AJ
15742 setrlimit \
15743 settimeofday \
15744 sigaltstack \
15745 sigprocmask \
15746 snprintf \
15747 spawnvp \
15748 statfs \
15749 statvfs \
15750 strcasecmp \
15751 strerror \
15752 strncasecmp \
6c04a187 15753 strtold \
e533e972 15754 tcgetattr \
0c4f152e 15755 thr_kill2 \
e533e972
AJ
15756 timegm \
15757 usleep \
15758 vsnprintf \
15759 wait4 \
15760 waitpid \
15761
15762do
15763as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15764{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15765echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15766if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9557d1bf
MM
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15768else
9557d1bf 15769 cat >conftest.$ac_ext <<_ACEOF
9557d1bf
MM
15770/* confdefs.h. */
15771_ACEOF
15772cat confdefs.h >>conftest.$ac_ext
15773cat >>conftest.$ac_ext <<_ACEOF
15774/* end confdefs.h. */
e533e972
AJ
15775/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15777#define $ac_func innocuous_$ac_func
15778
15779/* System header to define __stub macros and hopefully few prototypes,
15780 which can conflict with char $ac_func (); below.
15781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15782 <limits.h> exists even on freestanding compilers. */
15783
15784#ifdef __STDC__
15785# include <limits.h>
15786#else
15787# include <assert.h>
15788#endif
15789
15790#undef $ac_func
9557d1bf 15791
fc6ffb29
AJ
15792/* Override any GCC internal prototype to avoid an error.
15793 Use char because int might match the return type of a GCC
15794 builtin and then its argument prototype would still apply. */
9557d1bf
MM
15795#ifdef __cplusplus
15796extern "C"
15797#endif
e533e972
AJ
15798char $ac_func ();
15799/* The GNU C library defines this for functions which it implements
15800 to always fail with ENOSYS. Some functions are actually named
15801 something starting with __ and the normal name is an alias. */
15802#if defined __stub_$ac_func || defined __stub___$ac_func
15803choke me
15804#endif
15805
9557d1bf
MM
15806int
15807main ()
15808{
e533e972 15809return $ac_func ();
9557d1bf
MM
15810 ;
15811 return 0;
15812}
15813_ACEOF
15814rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15815if { (ac_try="$ac_link"
15816case "(($ac_try" in
15817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818 *) ac_try_echo=$ac_try;;
15819esac
15820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821 (eval "$ac_link") 2>conftest.er1
9557d1bf 15822 ac_status=$?
875927f6
AJ
15823 grep -v '^ *+' conftest.er1 >conftest.err
15824 rm -f conftest.er1
15825 cat conftest.err >&5
9557d1bf 15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15827 (exit $ac_status); } && {
15828 test -z "$ac_c_werror_flag" ||
15829 test ! -s conftest.err
15830 } && test -s conftest$ac_exeext &&
15831 $as_test_x conftest$ac_exeext; then
e533e972 15832 eval "$as_ac_var=yes"
9557d1bf
MM
15833else
15834 echo "$as_me: failed program was:" >&5
15835sed 's/^/| /' conftest.$ac_ext >&5
15836
e533e972 15837 eval "$as_ac_var=no"
9557d1bf 15838fi
fc6ffb29 15839
f0ca586f 15840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 15841 conftest$ac_exeext conftest.$ac_ext
9557d1bf 15842fi
e533e972
AJ
15843ac_res=`eval echo '${'$as_ac_var'}'`
15844 { echo "$as_me:$LINENO: result: $ac_res" >&5
15845echo "${ECHO_T}$ac_res" >&6; }
15846if test `eval echo '${'$as_ac_var'}'` = yes; then
15847 cat >>confdefs.h <<_ACEOF
15848#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9557d1bf 15849_ACEOF
30de3e8e 15850
9557d1bf 15851fi
e533e972 15852done
e82dfab2 15853
e533e972
AJ
15854
15855if test "$ac_cv_func_dlopen" = no
15856then
15857 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15858echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15859if test "${ac_cv_lib_dl_dlopen+set}" = set; then
e82dfab2
HD
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15861else
e533e972
AJ
15862 ac_check_lib_save_LIBS=$LIBS
15863LIBS="-ldl $LIBS"
15864cat >conftest.$ac_ext <<_ACEOF
e82dfab2
HD
15865/* confdefs.h. */
15866_ACEOF
15867cat confdefs.h >>conftest.$ac_ext
15868cat >>conftest.$ac_ext <<_ACEOF
15869/* end confdefs.h. */
15870
fc6ffb29
AJ
15871/* Override any GCC internal prototype to avoid an error.
15872 Use char because int might match the return type of a GCC
15873 builtin and then its argument prototype would still apply. */
e82dfab2
HD
15874#ifdef __cplusplus
15875extern "C"
15876#endif
e533e972 15877char dlopen ();
e82dfab2
HD
15878int
15879main ()
15880{
e533e972 15881return dlopen ();
e82dfab2
HD
15882 ;
15883 return 0;
15884}
15885_ACEOF
15886rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15887if { (ac_try="$ac_link"
15888case "(($ac_try" in
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15891esac
15892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_link") 2>conftest.er1
e82dfab2
HD
15894 ac_status=$?
15895 grep -v '^ *+' conftest.er1 >conftest.err
15896 rm -f conftest.er1
15897 cat conftest.err >&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15899 (exit $ac_status); } && {
15900 test -z "$ac_c_werror_flag" ||
15901 test ! -s conftest.err
15902 } && test -s conftest$ac_exeext &&
15903 $as_test_x conftest$ac_exeext; then
e533e972 15904 ac_cv_lib_dl_dlopen=yes
e82dfab2
HD
15905else
15906 echo "$as_me: failed program was:" >&5
15907sed 's/^/| /' conftest.$ac_ext >&5
15908
e533e972 15909 ac_cv_lib_dl_dlopen=no
e82dfab2 15910fi
fc6ffb29 15911
f0ca586f 15912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
e82dfab2 15913 conftest$ac_exeext conftest.$ac_ext
e533e972 15914LIBS=$ac_check_lib_save_LIBS
e82dfab2 15915fi
e533e972
AJ
15916{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15917echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15918if test $ac_cv_lib_dl_dlopen = yes; then
15919 cat >>confdefs.h <<\_ACEOF
15920#define HAVE_DLOPEN 1
e82dfab2 15921_ACEOF
e533e972 15922 LIBDL="-ldl"
30de3e8e 15923
e82dfab2
HD
15924fi
15925
e533e972
AJ
15926fi
15927ac_wine_check_funcs_save_LIBS="$LIBS"
15928LIBS="$LIBS $LIBDL"
15929
15930for ac_func in dladdr
15931do
15932as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15933{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15934echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15935if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 15936 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039 15937else
f5818d2f 15938 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
15939/* confdefs.h. */
15940_ACEOF
15941cat confdefs.h >>conftest.$ac_ext
15942cat >>conftest.$ac_ext <<_ACEOF
15943/* end confdefs.h. */
e533e972
AJ
15944/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15946#define $ac_func innocuous_$ac_func
15947
15948/* System header to define __stub macros and hopefully few prototypes,
15949 which can conflict with char $ac_func (); below.
15950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15951 <limits.h> exists even on freestanding compilers. */
15952
15953#ifdef __STDC__
15954# include <limits.h>
15955#else
15956# include <assert.h>
15957#endif
15958
15959#undef $ac_func
82776020 15960
fc6ffb29
AJ
15961/* Override any GCC internal prototype to avoid an error.
15962 Use char because int might match the return type of a GCC
15963 builtin and then its argument prototype would still apply. */
82776020
AJ
15964#ifdef __cplusplus
15965extern "C"
15966#endif
e533e972
AJ
15967char $ac_func ();
15968/* The GNU C library defines this for functions which it implements
15969 to always fail with ENOSYS. Some functions are actually named
15970 something starting with __ and the normal name is an alias. */
15971#if defined __stub_$ac_func || defined __stub___$ac_func
15972choke me
15973#endif
15974
f5818d2f
AJ
15975int
15976main ()
15977{
e533e972 15978return $ac_func ();
f5818d2f
AJ
15979 ;
15980 return 0;
15981}
15982_ACEOF
15983rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15984if { (ac_try="$ac_link"
15985case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15988esac
15989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_link") 2>conftest.er1
f5818d2f 15991 ac_status=$?
875927f6
AJ
15992 grep -v '^ *+' conftest.er1 >conftest.err
15993 rm -f conftest.er1
15994 cat conftest.err >&5
daa2886c 15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15996 (exit $ac_status); } && {
15997 test -z "$ac_c_werror_flag" ||
15998 test ! -s conftest.err
15999 } && test -s conftest$ac_exeext &&
16000 $as_test_x conftest$ac_exeext; then
e533e972 16001 eval "$as_ac_var=yes"
f5818d2f
AJ
16002else
16003 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16004sed 's/^/| /' conftest.$ac_ext >&5
16005
e533e972 16006 eval "$as_ac_var=no"
f5818d2f 16007fi
fc6ffb29 16008
f0ca586f 16009rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 16010 conftest$ac_exeext conftest.$ac_ext
f5818d2f 16011fi
e533e972
AJ
16012ac_res=`eval echo '${'$as_ac_var'}'`
16013 { echo "$as_me:$LINENO: result: $ac_res" >&5
16014echo "${ECHO_T}$ac_res" >&6; }
16015if test `eval echo '${'$as_ac_var'}'` = yes; then
16016 cat >>confdefs.h <<_ACEOF
16017#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 16018_ACEOF
30de3e8e 16019
1bb94039 16020fi
e533e972 16021done
1bb94039 16022
e533e972
AJ
16023LIBS="$ac_wine_check_funcs_save_LIBS"
16024
16025if test "$ac_cv_func_poll" = no
16026then
16027 { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
16028echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
16029if test "${ac_cv_lib_poll_poll+set}" = set; then
f5818d2f 16030 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039 16031else
e533e972
AJ
16032 ac_check_lib_save_LIBS=$LIBS
16033LIBS="-lpoll $LIBS"
16034cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16035/* confdefs.h. */
16036_ACEOF
16037cat confdefs.h >>conftest.$ac_ext
16038cat >>conftest.$ac_ext <<_ACEOF
16039/* end confdefs.h. */
1bb94039 16040
fc6ffb29
AJ
16041/* Override any GCC internal prototype to avoid an error.
16042 Use char because int might match the return type of a GCC
16043 builtin and then its argument prototype would still apply. */
82776020
AJ
16044#ifdef __cplusplus
16045extern "C"
16046#endif
e533e972 16047char poll ();
f5818d2f
AJ
16048int
16049main ()
16050{
e533e972 16051return poll ();
f5818d2f
AJ
16052 ;
16053 return 0;
16054}
16055_ACEOF
16056rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
16057if { (ac_try="$ac_link"
16058case "(($ac_try" in
16059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060 *) ac_try_echo=$ac_try;;
16061esac
16062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063 (eval "$ac_link") 2>conftest.er1
f5818d2f 16064 ac_status=$?
875927f6
AJ
16065 grep -v '^ *+' conftest.er1 >conftest.err
16066 rm -f conftest.er1
16067 cat conftest.err >&5
daa2886c 16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16069 (exit $ac_status); } && {
16070 test -z "$ac_c_werror_flag" ||
16071 test ! -s conftest.err
16072 } && test -s conftest$ac_exeext &&
16073 $as_test_x conftest$ac_exeext; then
e533e972 16074 ac_cv_lib_poll_poll=yes
1bb94039 16075else
f5818d2f 16076 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16077sed 's/^/| /' conftest.$ac_ext >&5
16078
e533e972 16079 ac_cv_lib_poll_poll=no
1bb94039 16080fi
fc6ffb29 16081
f0ca586f 16082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 16083 conftest$ac_exeext conftest.$ac_ext
e533e972 16084LIBS=$ac_check_lib_save_LIBS
1bb94039 16085fi
e533e972
AJ
16086{ echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
16087echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
16088if test $ac_cv_lib_poll_poll = yes; then
16089 cat >>confdefs.h <<\_ACEOF
16090#define HAVE_POLL 1
f5818d2f 16091_ACEOF
e533e972 16092 LIBPOLL="-lpoll"
30de3e8e 16093
1bb94039 16094fi
1bb94039 16095
e533e972
AJ
16096fi
16097
28710419
AJ
16098{ echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
16099echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
16100if test "${ac_cv_search_gethostbyname+set}" = set; then
f5818d2f
AJ
16101 echo $ECHO_N "(cached) $ECHO_C" >&6
16102else
28710419 16103 ac_func_search_save_LIBS=$LIBS
e533e972 16104cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16105/* confdefs.h. */
16106_ACEOF
16107cat confdefs.h >>conftest.$ac_ext
16108cat >>conftest.$ac_ext <<_ACEOF
16109/* end confdefs.h. */
875927f6 16110
fc6ffb29
AJ
16111/* Override any GCC internal prototype to avoid an error.
16112 Use char because int might match the return type of a GCC
16113 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
16114#ifdef __cplusplus
16115extern "C"
16116#endif
e533e972 16117char gethostbyname ();
e24bcc77
AJ
16118int
16119main ()
16120{
e533e972 16121return gethostbyname ();
f5818d2f
AJ
16122 ;
16123 return 0;
16124}
16125_ACEOF
28710419
AJ
16126for ac_lib in '' nsl; do
16127 if test -z "$ac_lib"; then
16128 ac_res="none required"
16129 else
16130 ac_res=-l$ac_lib
16131 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16132 fi
16133 rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
16134if { (ac_try="$ac_link"
16135case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16138esac
16139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_link") 2>conftest.er1
f5818d2f 16141 ac_status=$?
875927f6
AJ
16142 grep -v '^ *+' conftest.er1 >conftest.err
16143 rm -f conftest.er1
16144 cat conftest.err >&5
daa2886c 16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16146 (exit $ac_status); } && {
16147 test -z "$ac_c_werror_flag" ||
16148 test ! -s conftest.err
16149 } && test -s conftest$ac_exeext &&
16150 $as_test_x conftest$ac_exeext; then
28710419 16151 ac_cv_search_gethostbyname=$ac_res
f5818d2f
AJ
16152else
16153 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16154sed 's/^/| /' conftest.$ac_ext >&5
16155
28710419 16156
f5818d2f 16157fi
fc6ffb29 16158
f0ca586f 16159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28710419
AJ
16160 conftest$ac_exeext
16161 if test "${ac_cv_search_gethostbyname+set}" = set; then
16162 break
f5818d2f 16163fi
28710419
AJ
16164done
16165if test "${ac_cv_search_gethostbyname+set}" = set; then
16166 :
16167else
16168 ac_cv_search_gethostbyname=no
16169fi
16170rm conftest.$ac_ext
16171LIBS=$ac_func_search_save_LIBS
1bb94039 16172fi
28710419
AJ
16173{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
16174echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
16175ac_res=$ac_cv_search_gethostbyname
16176if test "$ac_res" != no; then
16177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
daa2886c 16178
e533e972 16179fi
1bb94039 16180
1bb94039 16181
28710419
AJ
16182{ echo "$as_me:$LINENO: checking for library containing connect" >&5
16183echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6; }
16184if test "${ac_cv_search_connect+set}" = set; then
f5818d2f
AJ
16185 echo $ECHO_N "(cached) $ECHO_C" >&6
16186else
28710419 16187 ac_func_search_save_LIBS=$LIBS
e533e972 16188cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16189/* confdefs.h. */
16190_ACEOF
16191cat confdefs.h >>conftest.$ac_ext
16192cat >>conftest.$ac_ext <<_ACEOF
16193/* end confdefs.h. */
875927f6 16194
fc6ffb29
AJ
16195/* Override any GCC internal prototype to avoid an error.
16196 Use char because int might match the return type of a GCC
16197 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
16198#ifdef __cplusplus
16199extern "C"
16200#endif
e533e972 16201char connect ();
e24bcc77
AJ
16202int
16203main ()
16204{
e533e972 16205return connect ();
f5818d2f
AJ
16206 ;
16207 return 0;
16208}
16209_ACEOF
28710419
AJ
16210for ac_lib in '' socket; do
16211 if test -z "$ac_lib"; then
16212 ac_res="none required"
16213 else
16214 ac_res=-l$ac_lib
16215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16216 fi
16217 rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
16218if { (ac_try="$ac_link"
16219case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16222esac
16223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_link") 2>conftest.er1
f5818d2f 16225 ac_status=$?
875927f6
AJ
16226 grep -v '^ *+' conftest.er1 >conftest.err
16227 rm -f conftest.er1
16228 cat conftest.err >&5
daa2886c 16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16230 (exit $ac_status); } && {
16231 test -z "$ac_c_werror_flag" ||
16232 test ! -s conftest.err
16233 } && test -s conftest$ac_exeext &&
16234 $as_test_x conftest$ac_exeext; then
28710419 16235 ac_cv_search_connect=$ac_res
f5818d2f
AJ
16236else
16237 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16238sed 's/^/| /' conftest.$ac_ext >&5
16239
28710419 16240
f5818d2f 16241fi
fc6ffb29 16242
f0ca586f 16243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28710419
AJ
16244 conftest$ac_exeext
16245 if test "${ac_cv_search_connect+set}" = set; then
16246 break
f5818d2f 16247fi
28710419
AJ
16248done
16249if test "${ac_cv_search_connect+set}" = set; then
16250 :
16251else
16252 ac_cv_search_connect=no
e2991ea7 16253fi
28710419
AJ
16254rm conftest.$ac_ext
16255LIBS=$ac_func_search_save_LIBS
16256fi
16257{ echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
16258echo "${ECHO_T}$ac_cv_search_connect" >&6; }
16259ac_res=$ac_cv_search_connect
16260if test "$ac_res" != no; then
16261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2991ea7 16262
e533e972 16263fi
daa2886c 16264
e533e972 16265
28710419
AJ
16266{ echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
16267echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; }
16268if test "${ac_cv_search_inet_aton+set}" = set; then
1089260f
AJ
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16270else
28710419 16271 ac_func_search_save_LIBS=$LIBS
1089260f
AJ
16272cat >conftest.$ac_ext <<_ACEOF
16273/* confdefs.h. */
16274_ACEOF
16275cat confdefs.h >>conftest.$ac_ext
16276cat >>conftest.$ac_ext <<_ACEOF
16277/* end confdefs.h. */
16278
16279/* Override any GCC internal prototype to avoid an error.
16280 Use char because int might match the return type of a GCC
16281 builtin and then its argument prototype would still apply. */
16282#ifdef __cplusplus
16283extern "C"
16284#endif
e533e972 16285char inet_aton ();
1089260f
AJ
16286int
16287main ()
16288{
e533e972 16289return inet_aton ();
1089260f
AJ
16290 ;
16291 return 0;
16292}
16293_ACEOF
28710419
AJ
16294for ac_lib in '' resolv; do
16295 if test -z "$ac_lib"; then
16296 ac_res="none required"
16297 else
16298 ac_res=-l$ac_lib
16299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16300 fi
16301 rm -f conftest.$ac_objext conftest$ac_exeext
1089260f
AJ
16302if { (ac_try="$ac_link"
16303case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16306esac
16307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_link") 2>conftest.er1
16309 ac_status=$?
16310 grep -v '^ *+' conftest.er1 >conftest.err
16311 rm -f conftest.er1
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16314 (exit $ac_status); } && {
16315 test -z "$ac_c_werror_flag" ||
16316 test ! -s conftest.err
16317 } && test -s conftest$ac_exeext &&
16318 $as_test_x conftest$ac_exeext; then
28710419 16319 ac_cv_search_inet_aton=$ac_res
1089260f
AJ
16320else
16321 echo "$as_me: failed program was:" >&5
16322sed 's/^/| /' conftest.$ac_ext >&5
16323
28710419 16324
1089260f
AJ
16325fi
16326
f0ca586f 16327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28710419
AJ
16328 conftest$ac_exeext
16329 if test "${ac_cv_search_inet_aton+set}" = set; then
16330 break
1089260f 16331fi
28710419
AJ
16332done
16333if test "${ac_cv_search_inet_aton+set}" = set; then
16334 :
16335else
16336 ac_cv_search_inet_aton=no
1089260f 16337fi
28710419
AJ
16338rm conftest.$ac_ext
16339LIBS=$ac_func_search_save_LIBS
16340fi
16341{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
16342echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; }
16343ac_res=$ac_cv_search_inet_aton
16344if test "$ac_res" != no; then
16345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1089260f
AJ
16346
16347fi
daa2886c
AJ
16348
16349
41c59964
BT
16350
16351
16352
16353
16354
16355
16356
28710419 16357
41c59964
BT
16358for ac_func in \
16359 getaddrinfo \
16360 getnameinfo \
16361 getnetbyname \
16362 getprotobyname \
16363 getprotobynumber \
16364 getservbyport \
16365 inet_network \
16366 sendmsg \
16367
16368do
16369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16370{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16372if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16374else
16375 cat >conftest.$ac_ext <<_ACEOF
16376/* confdefs.h. */
16377_ACEOF
16378cat confdefs.h >>conftest.$ac_ext
16379cat >>conftest.$ac_ext <<_ACEOF
16380/* end confdefs.h. */
16381/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16383#define $ac_func innocuous_$ac_func
16384
16385/* System header to define __stub macros and hopefully few prototypes,
16386 which can conflict with char $ac_func (); below.
16387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16388 <limits.h> exists even on freestanding compilers. */
16389
16390#ifdef __STDC__
16391# include <limits.h>
16392#else
16393# include <assert.h>
16394#endif
16395
16396#undef $ac_func
16397
16398/* Override any GCC internal prototype to avoid an error.
16399 Use char because int might match the return type of a GCC
16400 builtin and then its argument prototype would still apply. */
16401#ifdef __cplusplus
16402extern "C"
16403#endif
16404char $ac_func ();
16405/* The GNU C library defines this for functions which it implements
16406 to always fail with ENOSYS. Some functions are actually named
16407 something starting with __ and the normal name is an alias. */
16408#if defined __stub_$ac_func || defined __stub___$ac_func
16409choke me
16410#endif
16411
16412int
16413main ()
16414{
16415return $ac_func ();
16416 ;
16417 return 0;
16418}
16419_ACEOF
16420rm -f conftest.$ac_objext conftest$ac_exeext
16421if { (ac_try="$ac_link"
16422case "(($ac_try" in
16423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16424 *) ac_try_echo=$ac_try;;
16425esac
16426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16427 (eval "$ac_link") 2>conftest.er1
16428 ac_status=$?
16429 grep -v '^ *+' conftest.er1 >conftest.err
16430 rm -f conftest.er1
16431 cat conftest.err >&5
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } && {
16434 test -z "$ac_c_werror_flag" ||
16435 test ! -s conftest.err
16436 } && test -s conftest$ac_exeext &&
16437 $as_test_x conftest$ac_exeext; then
16438 eval "$as_ac_var=yes"
16439else
16440 echo "$as_me: failed program was:" >&5
16441sed 's/^/| /' conftest.$ac_ext >&5
16442
16443 eval "$as_ac_var=no"
16444fi
16445
16446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16447 conftest$ac_exeext conftest.$ac_ext
16448fi
16449ac_res=`eval echo '${'$as_ac_var'}'`
16450 { echo "$as_me:$LINENO: result: $ac_res" >&5
16451echo "${ECHO_T}$ac_res" >&6; }
16452if test `eval echo '${'$as_ac_var'}'` = yes; then
16453 cat >>confdefs.h <<_ACEOF
16454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16455_ACEOF
16456
16457fi
16458done
16459
16460
16461
fc6ffb29
AJ
16462{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16463echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
f41c2b21 16464if test "${ac_cv_c_const+set}" = set; then
f5818d2f
AJ
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16466else
16467 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16468/* confdefs.h. */
16469_ACEOF
16470cat confdefs.h >>conftest.$ac_ext
16471cat >>conftest.$ac_ext <<_ACEOF
16472/* end confdefs.h. */
f41c2b21 16473
f5818d2f
AJ
16474int
16475main ()
16476{
f41c2b21
DP
16477/* FIXME: Include the comments suggested by Paul. */
16478#ifndef __cplusplus
16479 /* Ultrix mips cc rejects this. */
16480 typedef int charset[2];
f0ca586f 16481 const charset cs;
f41c2b21 16482 /* SunOS 4.1.1 cc rejects this. */
f0ca586f
PK
16483 char const *const *pcpcc;
16484 char **ppc;
f41c2b21
DP
16485 /* NEC SVR4.0.2 mips cc rejects this. */
16486 struct point {int x, y;};
16487 static struct point const zero = {0,0};
16488 /* AIX XL C 1.02.0.0 rejects this.
16489 It does not let you subtract one const X* pointer from another in
16490 an arm of an if-expression whose if-part is not a constant
16491 expression */
16492 const char *g = "string";
f0ca586f 16493 pcpcc = &g + (g ? g-g : 0);
f41c2b21 16494 /* HPUX 7.0 cc rejects these. */
f0ca586f
PK
16495 ++pcpcc;
16496 ppc = (char**) pcpcc;
16497 pcpcc = (char const *const *) ppc;
f41c2b21
DP
16498 { /* SCO 3.2v4 cc rejects this. */
16499 char *t;
16500 char const *s = 0 ? (char *) 0 : (char const *) 0;
16501
16502 *t++ = 0;
fc6ffb29 16503 if (s) return 0;
f41c2b21
DP
16504 }
16505 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16506 int x[] = {25, 17};
16507 const int *foo = &x[0];
16508 ++foo;
16509 }
16510 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16511 typedef const int *iptr;
16512 iptr p = 0;
16513 ++p;
16514 }
16515 { /* AIX XL C 1.02.0.0 rejects this saying
16516 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16517 struct s { int j; const int *ap[3]; };
16518 struct s *b; b->j = 5;
16519 }
16520 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16521 const int foo = 10;
fc6ffb29 16522 if (!foo) return 0;
f41c2b21 16523 }
f0ca586f 16524 return !cs[0] && !zero.x;
f41c2b21
DP
16525#endif
16526
f5818d2f
AJ
16527 ;
16528 return 0;
16529}
16530_ACEOF
16531rm -f conftest.$ac_objext
0ebeb530
JW
16532if { (ac_try="$ac_compile"
16533case "(($ac_try" in
16534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535 *) ac_try_echo=$ac_try;;
16536esac
16537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538 (eval "$ac_compile") 2>conftest.er1
f5818d2f 16539 ac_status=$?
875927f6
AJ
16540 grep -v '^ *+' conftest.er1 >conftest.err
16541 rm -f conftest.er1
16542 cat conftest.err >&5
daa2886c 16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16544 (exit $ac_status); } && {
16545 test -z "$ac_c_werror_flag" ||
16546 test ! -s conftest.err
16547 } && test -s conftest.$ac_objext; then
f41c2b21 16548 ac_cv_c_const=yes
f5818d2f
AJ
16549else
16550 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16551sed 's/^/| /' conftest.$ac_ext >&5
16552
fc6ffb29 16553 ac_cv_c_const=no
c7c217b3 16554fi
fc6ffb29 16555
0ebeb530 16556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 16557fi
fc6ffb29
AJ
16558{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16559echo "${ECHO_T}$ac_cv_c_const" >&6; }
f41c2b21 16560if test $ac_cv_c_const = no; then
5769d1de 16561
f41c2b21
DP
16562cat >>confdefs.h <<\_ACEOF
16563#define const
5769d1de
AJ
16564_ACEOF
16565
5769d1de 16566fi
f41c2b21 16567
fc6ffb29
AJ
16568{ echo "$as_me:$LINENO: checking for inline" >&5
16569echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
f41c2b21 16570if test "${ac_cv_c_inline+set}" = set; then
5769d1de
AJ
16571 echo $ECHO_N "(cached) $ECHO_C" >&6
16572else
f41c2b21
DP
16573 ac_cv_c_inline=no
16574for ac_kw in inline __inline__ __inline; do
5769d1de 16575 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16576/* confdefs.h. */
16577_ACEOF
16578cat confdefs.h >>conftest.$ac_ext
f41c2b21
DP
16579cat >>conftest.$ac_ext <<_ACEOF
16580/* end confdefs.h. */
16581#ifndef __cplusplus
16582typedef int foo_t;
16583static $ac_kw foo_t static_foo () {return 0; }
16584$ac_kw foo_t foo () {return 0; }
16585#endif
16586
5769d1de
AJ
16587_ACEOF
16588rm -f conftest.$ac_objext
0ebeb530
JW
16589if { (ac_try="$ac_compile"
16590case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16593esac
16594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_compile") 2>conftest.er1
5769d1de 16596 ac_status=$?
875927f6
AJ
16597 grep -v '^ *+' conftest.er1 >conftest.err
16598 rm -f conftest.er1
16599 cat conftest.err >&5
5769d1de 16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16601 (exit $ac_status); } && {
16602 test -z "$ac_c_werror_flag" ||
16603 test ! -s conftest.err
16604 } && test -s conftest.$ac_objext; then
fc6ffb29 16605 ac_cv_c_inline=$ac_kw
f5818d2f 16606else
5769d1de 16607 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16608sed 's/^/| /' conftest.$ac_ext >&5
16609
fc6ffb29 16610
5769d1de 16611fi
fc6ffb29 16612
0ebeb530 16613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 16614 test "$ac_cv_c_inline" != no && break
f41c2b21 16615done
f5818d2f 16616
f41c2b21 16617fi
fc6ffb29
AJ
16618{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16619echo "${ECHO_T}$ac_cv_c_inline" >&6; }
c7c217b3 16620
5769d1de 16621
f41c2b21
DP
16622case $ac_cv_c_inline in
16623 inline | yes) ;;
16624 *)
16625 case $ac_cv_c_inline in
16626 no) ac_val=;;
16627 *) ac_val=$ac_cv_c_inline;;
16628 esac
16629 cat >>confdefs.h <<_ACEOF
16630#ifndef __cplusplus
16631#define inline $ac_val
16632#endif
16633_ACEOF
16634 ;;
16635esac
c7c217b3 16636
fc6ffb29
AJ
16637{ echo "$as_me:$LINENO: checking for mode_t" >&5
16638echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
f41c2b21 16639if test "${ac_cv_type_mode_t+set}" = set; then
f5818d2f
AJ
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16641else
16642 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16643/* confdefs.h. */
16644_ACEOF
16645cat confdefs.h >>conftest.$ac_ext
16646cat >>conftest.$ac_ext <<_ACEOF
16647/* end confdefs.h. */
f5818d2f 16648$ac_includes_default
fc6ffb29 16649typedef mode_t ac__type_new_;
f5818d2f
AJ
16650int
16651main ()
16652{
fc6ffb29 16653if ((ac__type_new_ *) 0)
f5818d2f 16654 return 0;
fc6ffb29 16655if (sizeof (ac__type_new_))
f5818d2f
AJ
16656 return 0;
16657 ;
16658 return 0;
16659}
16660_ACEOF
16661rm -f conftest.$ac_objext
0ebeb530
JW
16662if { (ac_try="$ac_compile"
16663case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16666esac
16667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_compile") 2>conftest.er1
f5818d2f 16669 ac_status=$?
875927f6
AJ
16670 grep -v '^ *+' conftest.er1 >conftest.err
16671 rm -f conftest.er1
16672 cat conftest.err >&5
daa2886c 16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16674 (exit $ac_status); } && {
16675 test -z "$ac_c_werror_flag" ||
16676 test ! -s conftest.err
16677 } && test -s conftest.$ac_objext; then
f41c2b21 16678 ac_cv_type_mode_t=yes
f5818d2f
AJ
16679else
16680 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16681sed 's/^/| /' conftest.$ac_ext >&5
16682
fc6ffb29 16683 ac_cv_type_mode_t=no
f5818d2f 16684fi
fc6ffb29 16685
0ebeb530 16686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 16687fi
fc6ffb29
AJ
16688{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16689echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
f41c2b21 16690if test $ac_cv_type_mode_t = yes; then
f5818d2f 16691
f41c2b21
DP
16692cat >>confdefs.h <<_ACEOF
16693#define HAVE_MODE_T 1
16694_ACEOF
16695
16696
16697fi
fc6ffb29
AJ
16698{ echo "$as_me:$LINENO: checking for off_t" >&5
16699echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
f41c2b21 16700if test "${ac_cv_type_off_t+set}" = set; then
f5818d2f
AJ
16701 echo $ECHO_N "(cached) $ECHO_C" >&6
16702else
f41c2b21 16703 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16704/* confdefs.h. */
16705_ACEOF
16706cat confdefs.h >>conftest.$ac_ext
16707cat >>conftest.$ac_ext <<_ACEOF
16708/* end confdefs.h. */
f5818d2f 16709$ac_includes_default
fc6ffb29 16710typedef off_t ac__type_new_;
f5818d2f
AJ
16711int
16712main ()
16713{
fc6ffb29 16714if ((ac__type_new_ *) 0)
f41c2b21 16715 return 0;
fc6ffb29 16716if (sizeof (ac__type_new_))
f41c2b21 16717 return 0;
f5818d2f
AJ
16718 ;
16719 return 0;
16720}
16721_ACEOF
16722rm -f conftest.$ac_objext
0ebeb530
JW
16723if { (ac_try="$ac_compile"
16724case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16727esac
16728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_compile") 2>conftest.er1
f5818d2f 16730 ac_status=$?
875927f6
AJ
16731 grep -v '^ *+' conftest.er1 >conftest.err
16732 rm -f conftest.er1
16733 cat conftest.err >&5
daa2886c 16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16735 (exit $ac_status); } && {
16736 test -z "$ac_c_werror_flag" ||
16737 test ! -s conftest.err
16738 } && test -s conftest.$ac_objext; then
f41c2b21
DP
16739 ac_cv_type_off_t=yes
16740else
16741 echo "$as_me: failed program was:" >&5
16742sed 's/^/| /' conftest.$ac_ext >&5
16743
fc6ffb29 16744 ac_cv_type_off_t=no
f41c2b21 16745fi
fc6ffb29 16746
0ebeb530 16747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21 16748fi
fc6ffb29
AJ
16749{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16750echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
f41c2b21
DP
16751if test $ac_cv_type_off_t = yes; then
16752
16753cat >>confdefs.h <<_ACEOF
16754#define HAVE_OFF_T 1
16755_ACEOF
16756
16757
16758fi
fc6ffb29
AJ
16759{ echo "$as_me:$LINENO: checking for pid_t" >&5
16760echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
f41c2b21
DP
16761if test "${ac_cv_type_pid_t+set}" = set; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16763else
16764 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16765/* confdefs.h. */
16766_ACEOF
16767cat confdefs.h >>conftest.$ac_ext
16768cat >>conftest.$ac_ext <<_ACEOF
16769/* end confdefs.h. */
f5818d2f 16770$ac_includes_default
fc6ffb29 16771typedef pid_t ac__type_new_;
f5818d2f
AJ
16772int
16773main ()
16774{
fc6ffb29 16775if ((ac__type_new_ *) 0)
f41c2b21 16776 return 0;
fc6ffb29 16777if (sizeof (ac__type_new_))
f41c2b21 16778 return 0;
f5818d2f
AJ
16779 ;
16780 return 0;
16781}
16782_ACEOF
16783rm -f conftest.$ac_objext
0ebeb530
JW
16784if { (ac_try="$ac_compile"
16785case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16788esac
16789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_compile") 2>conftest.er1
f5818d2f 16791 ac_status=$?
875927f6
AJ
16792 grep -v '^ *+' conftest.er1 >conftest.err
16793 rm -f conftest.er1
16794 cat conftest.err >&5
daa2886c 16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16796 (exit $ac_status); } && {
16797 test -z "$ac_c_werror_flag" ||
16798 test ! -s conftest.err
16799 } && test -s conftest.$ac_objext; then
f41c2b21 16800 ac_cv_type_pid_t=yes
f5818d2f
AJ
16801else
16802 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16803sed 's/^/| /' conftest.$ac_ext >&5
16804
fc6ffb29 16805 ac_cv_type_pid_t=no
f5818d2f 16806fi
fc6ffb29 16807
0ebeb530 16808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21 16809fi
fc6ffb29
AJ
16810{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16811echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
f41c2b21 16812if test $ac_cv_type_pid_t = yes; then
e24bcc77 16813
f41c2b21
DP
16814cat >>confdefs.h <<_ACEOF
16815#define HAVE_PID_T 1
16816_ACEOF
16817
16818
16819fi
fc6ffb29
AJ
16820{ echo "$as_me:$LINENO: checking for size_t" >&5
16821echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
f41c2b21
DP
16822if test "${ac_cv_type_size_t+set}" = set; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824else
16825 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16826/* confdefs.h. */
16827_ACEOF
16828cat confdefs.h >>conftest.$ac_ext
16829cat >>conftest.$ac_ext <<_ACEOF
16830/* end confdefs.h. */
daa2886c 16831$ac_includes_default
fc6ffb29 16832typedef size_t ac__type_new_;
daa2886c
AJ
16833int
16834main ()
16835{
fc6ffb29 16836if ((ac__type_new_ *) 0)
f41c2b21 16837 return 0;
fc6ffb29 16838if (sizeof (ac__type_new_))
f41c2b21 16839 return 0;
daa2886c
AJ
16840 ;
16841 return 0;
16842}
16843_ACEOF
16844rm -f conftest.$ac_objext
0ebeb530
JW
16845if { (ac_try="$ac_compile"
16846case "(($ac_try" in
16847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16848 *) ac_try_echo=$ac_try;;
16849esac
16850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16851 (eval "$ac_compile") 2>conftest.er1
daa2886c 16852 ac_status=$?
875927f6
AJ
16853 grep -v '^ *+' conftest.er1 >conftest.err
16854 rm -f conftest.er1
16855 cat conftest.err >&5
daa2886c 16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16857 (exit $ac_status); } && {
16858 test -z "$ac_c_werror_flag" ||
16859 test ! -s conftest.err
16860 } && test -s conftest.$ac_objext; then
f41c2b21
DP
16861 ac_cv_type_size_t=yes
16862else
16863 echo "$as_me: failed program was:" >&5
16864sed 's/^/| /' conftest.$ac_ext >&5
16865
fc6ffb29 16866 ac_cv_type_size_t=no
f41c2b21 16867fi
fc6ffb29 16868
0ebeb530 16869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21 16870fi
fc6ffb29
AJ
16871{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16872echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
f41c2b21
DP
16873if test $ac_cv_type_size_t = yes; then
16874
16875cat >>confdefs.h <<_ACEOF
16876#define HAVE_SIZE_T 1
16877_ACEOF
16878
16879
16880fi
fc6ffb29
AJ
16881{ echo "$as_me:$LINENO: checking for ssize_t" >&5
16882echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
f41c2b21
DP
16883if test "${ac_cv_type_ssize_t+set}" = set; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16885else
16886 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16887/* confdefs.h. */
16888_ACEOF
16889cat confdefs.h >>conftest.$ac_ext
16890cat >>conftest.$ac_ext <<_ACEOF
16891/* end confdefs.h. */
f5818d2f 16892$ac_includes_default
fc6ffb29 16893typedef ssize_t ac__type_new_;
f5818d2f
AJ
16894int
16895main ()
16896{
fc6ffb29 16897if ((ac__type_new_ *) 0)
f41c2b21 16898 return 0;
fc6ffb29 16899if (sizeof (ac__type_new_))
f41c2b21 16900 return 0;
f5818d2f
AJ
16901 ;
16902 return 0;
16903}
16904_ACEOF
16905rm -f conftest.$ac_objext
0ebeb530
JW
16906if { (ac_try="$ac_compile"
16907case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16910esac
16911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_compile") 2>conftest.er1
f5818d2f 16913 ac_status=$?
875927f6
AJ
16914 grep -v '^ *+' conftest.er1 >conftest.err
16915 rm -f conftest.er1
16916 cat conftest.err >&5
daa2886c 16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16918 (exit $ac_status); } && {
16919 test -z "$ac_c_werror_flag" ||
16920 test ! -s conftest.err
16921 } && test -s conftest.$ac_objext; then
f41c2b21 16922 ac_cv_type_ssize_t=yes
f5818d2f
AJ
16923else
16924 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16925sed 's/^/| /' conftest.$ac_ext >&5
16926
fc6ffb29 16927 ac_cv_type_ssize_t=no
f5818d2f 16928fi
fc6ffb29 16929
0ebeb530 16930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
daa2886c 16931fi
fc6ffb29
AJ
16932{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16933echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
f41c2b21
DP
16934if test $ac_cv_type_ssize_t = yes; then
16935
16936cat >>confdefs.h <<_ACEOF
16937#define HAVE_SSIZE_T 1
16938_ACEOF
16939
16940
f5818d2f 16941fi
fc6ffb29
AJ
16942{ echo "$as_me:$LINENO: checking for long long" >&5
16943echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
f41c2b21
DP
16944if test "${ac_cv_type_long_long+set}" = set; then
16945 echo $ECHO_N "(cached) $ECHO_C" >&6
16946else
f5818d2f 16947 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16948/* confdefs.h. */
16949_ACEOF
16950cat confdefs.h >>conftest.$ac_ext
16951cat >>conftest.$ac_ext <<_ACEOF
16952/* end confdefs.h. */
f5818d2f 16953$ac_includes_default
fc6ffb29 16954typedef long long ac__type_new_;
f5818d2f
AJ
16955int
16956main ()
16957{
fc6ffb29 16958if ((ac__type_new_ *) 0)
f41c2b21 16959 return 0;
fc6ffb29 16960if (sizeof (ac__type_new_))
f41c2b21 16961 return 0;
f5818d2f
AJ
16962 ;
16963 return 0;
16964}
16965_ACEOF
16966rm -f conftest.$ac_objext
0ebeb530
JW
16967if { (ac_try="$ac_compile"
16968case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16971esac
16972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973 (eval "$ac_compile") 2>conftest.er1
f5818d2f 16974 ac_status=$?
875927f6
AJ
16975 grep -v '^ *+' conftest.er1 >conftest.err
16976 rm -f conftest.er1
16977 cat conftest.err >&5
daa2886c 16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16979 (exit $ac_status); } && {
16980 test -z "$ac_c_werror_flag" ||
16981 test ! -s conftest.err
16982 } && test -s conftest.$ac_objext; then
f41c2b21 16983 ac_cv_type_long_long=yes
f5818d2f
AJ
16984else
16985 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16986sed 's/^/| /' conftest.$ac_ext >&5
16987
fc6ffb29 16988 ac_cv_type_long_long=no
f5818d2f 16989fi
fc6ffb29 16990
0ebeb530 16991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 16992fi
fc6ffb29
AJ
16993{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16994echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
f41c2b21
DP
16995if test $ac_cv_type_long_long = yes; then
16996
daa2886c 16997cat >>confdefs.h <<_ACEOF
f41c2b21 16998#define HAVE_LONG_LONG 1
daa2886c
AJ
16999_ACEOF
17000
17001
13af4891 17002fi
fc6ffb29
AJ
17003{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17004echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
13af4891
AJ
17005if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17007else
17008 cat >conftest.$ac_ext <<_ACEOF
17009/* confdefs.h. */
17010_ACEOF
17011cat confdefs.h >>conftest.$ac_ext
17012cat >>conftest.$ac_ext <<_ACEOF
17013/* end confdefs.h. */
17014$ac_includes_default
fc6ffb29 17015typedef fsblkcnt_t ac__type_new_;
13af4891
AJ
17016int
17017main ()
17018{
fc6ffb29 17019if ((ac__type_new_ *) 0)
13af4891 17020 return 0;
fc6ffb29 17021if (sizeof (ac__type_new_))
13af4891
AJ
17022 return 0;
17023 ;
17024 return 0;
17025}
17026_ACEOF
17027rm -f conftest.$ac_objext
0ebeb530
JW
17028if { (ac_try="$ac_compile"
17029case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17032esac
17033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
17035 ac_status=$?
17036 grep -v '^ *+' conftest.er1 >conftest.err
17037 rm -f conftest.er1
17038 cat conftest.err >&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17040 (exit $ac_status); } && {
17041 test -z "$ac_c_werror_flag" ||
17042 test ! -s conftest.err
17043 } && test -s conftest.$ac_objext; then
13af4891
AJ
17044 ac_cv_type_fsblkcnt_t=yes
17045else
17046 echo "$as_me: failed program was:" >&5
17047sed 's/^/| /' conftest.$ac_ext >&5
17048
fc6ffb29 17049 ac_cv_type_fsblkcnt_t=no
13af4891 17050fi
fc6ffb29 17051
0ebeb530 17052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 17053fi
fc6ffb29
AJ
17054{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17055echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
13af4891
AJ
17056if test $ac_cv_type_fsblkcnt_t = yes; then
17057
17058cat >>confdefs.h <<_ACEOF
17059#define HAVE_FSBLKCNT_T 1
17060_ACEOF
17061
17062
17063fi
fc6ffb29
AJ
17064{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17065echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
13af4891
AJ
17066if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17067 echo $ECHO_N "(cached) $ECHO_C" >&6
17068else
17069 cat >conftest.$ac_ext <<_ACEOF
17070/* confdefs.h. */
17071_ACEOF
17072cat confdefs.h >>conftest.$ac_ext
17073cat >>conftest.$ac_ext <<_ACEOF
17074/* end confdefs.h. */
17075$ac_includes_default
fc6ffb29 17076typedef fsfilcnt_t ac__type_new_;
13af4891
AJ
17077int
17078main ()
17079{
fc6ffb29 17080if ((ac__type_new_ *) 0)
13af4891 17081 return 0;
fc6ffb29 17082if (sizeof (ac__type_new_))
13af4891
AJ
17083 return 0;
17084 ;
17085 return 0;
17086}
17087_ACEOF
17088rm -f conftest.$ac_objext
0ebeb530
JW
17089if { (ac_try="$ac_compile"
17090case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17093esac
17094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
17096 ac_status=$?
17097 grep -v '^ *+' conftest.er1 >conftest.err
17098 rm -f conftest.er1
17099 cat conftest.err >&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17101 (exit $ac_status); } && {
17102 test -z "$ac_c_werror_flag" ||
17103 test ! -s conftest.err
17104 } && test -s conftest.$ac_objext; then
13af4891
AJ
17105 ac_cv_type_fsfilcnt_t=yes
17106else
17107 echo "$as_me: failed program was:" >&5
17108sed 's/^/| /' conftest.$ac_ext >&5
17109
fc6ffb29 17110 ac_cv_type_fsfilcnt_t=no
13af4891 17111fi
fc6ffb29 17112
0ebeb530 17113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 17114fi
fc6ffb29
AJ
17115{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17116echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
13af4891
AJ
17117if test $ac_cv_type_fsfilcnt_t = yes; then
17118
17119cat >>confdefs.h <<_ACEOF
17120#define HAVE_FSFILCNT_T 1
17121_ACEOF
17122
17123
10a6c560
PM
17124fi
17125
fc6ffb29
AJ
17126{ echo "$as_me:$LINENO: checking for sigset_t" >&5
17127echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
10a6c560
PM
17128if test "${ac_cv_type_sigset_t+set}" = set; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17130else
17131 cat >conftest.$ac_ext <<_ACEOF
17132/* confdefs.h. */
17133_ACEOF
17134cat confdefs.h >>conftest.$ac_ext
17135cat >>conftest.$ac_ext <<_ACEOF
17136/* end confdefs.h. */
17137#include <signal.h>
17138
fc6ffb29 17139typedef sigset_t ac__type_new_;
10a6c560
PM
17140int
17141main ()
17142{
fc6ffb29 17143if ((ac__type_new_ *) 0)
10a6c560 17144 return 0;
fc6ffb29 17145if (sizeof (ac__type_new_))
10a6c560
PM
17146 return 0;
17147 ;
17148 return 0;
17149}
17150_ACEOF
17151rm -f conftest.$ac_objext
0ebeb530
JW
17152if { (ac_try="$ac_compile"
17153case "(($ac_try" in
17154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17155 *) ac_try_echo=$ac_try;;
17156esac
17157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17158 (eval "$ac_compile") 2>conftest.er1
10a6c560
PM
17159 ac_status=$?
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17164 (exit $ac_status); } && {
17165 test -z "$ac_c_werror_flag" ||
17166 test ! -s conftest.err
17167 } && test -s conftest.$ac_objext; then
10a6c560
PM
17168 ac_cv_type_sigset_t=yes
17169else
17170 echo "$as_me: failed program was:" >&5
17171sed 's/^/| /' conftest.$ac_ext >&5
17172
fc6ffb29 17173 ac_cv_type_sigset_t=no
10a6c560 17174fi
fc6ffb29 17175
0ebeb530 17176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10a6c560 17177fi
fc6ffb29
AJ
17178{ echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17179echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
10a6c560
PM
17180if test $ac_cv_type_sigset_t = yes; then
17181
17182cat >>confdefs.h <<_ACEOF
17183#define HAVE_SIGSET_T 1
17184_ACEOF
17185
17186
b8b15f3e
GP
17187fi
17188
fc6ffb29
AJ
17189{ echo "$as_me:$LINENO: checking for request_sense" >&5
17190echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
b8b15f3e
GP
17191if test "${ac_cv_type_request_sense+set}" = set; then
17192 echo $ECHO_N "(cached) $ECHO_C" >&6
17193else
17194 cat >conftest.$ac_ext <<_ACEOF
17195/* confdefs.h. */
17196_ACEOF
17197cat confdefs.h >>conftest.$ac_ext
17198cat >>conftest.$ac_ext <<_ACEOF
17199/* end confdefs.h. */
17200#include <linux/cdrom.h>
17201
fc6ffb29 17202typedef request_sense ac__type_new_;
b8b15f3e
GP
17203int
17204main ()
17205{
fc6ffb29 17206if ((ac__type_new_ *) 0)
b8b15f3e 17207 return 0;
fc6ffb29 17208if (sizeof (ac__type_new_))
b8b15f3e
GP
17209 return 0;
17210 ;
17211 return 0;
17212}
17213_ACEOF
17214rm -f conftest.$ac_objext
0ebeb530
JW
17215if { (ac_try="$ac_compile"
17216case "(($ac_try" in
17217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218 *) ac_try_echo=$ac_try;;
17219esac
17220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221 (eval "$ac_compile") 2>conftest.er1
b8b15f3e
GP
17222 ac_status=$?
17223 grep -v '^ *+' conftest.er1 >conftest.err
17224 rm -f conftest.er1
17225 cat conftest.err >&5
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17227 (exit $ac_status); } && {
17228 test -z "$ac_c_werror_flag" ||
17229 test ! -s conftest.err
17230 } && test -s conftest.$ac_objext; then
b8b15f3e
GP
17231 ac_cv_type_request_sense=yes
17232else
17233 echo "$as_me: failed program was:" >&5
17234sed 's/^/| /' conftest.$ac_ext >&5
17235
fc6ffb29 17236 ac_cv_type_request_sense=no
b8b15f3e 17237fi
fc6ffb29 17238
0ebeb530 17239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b8b15f3e 17240fi
fc6ffb29
AJ
17241{ echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
17242echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
b8b15f3e
GP
17243if test $ac_cv_type_request_sense = yes; then
17244
17245cat >>confdefs.h <<_ACEOF
17246#define HAVE_REQUEST_SENSE 1
17247_ACEOF
17248
17249
f41c2b21
DP
17250fi
17251
c7c217b3 17252
fc6ffb29
AJ
17253{ echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
17254echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
e491e8f8
DR
17255if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
17256 echo $ECHO_N "(cached) $ECHO_C" >&6
17257else
17258 cat >conftest.$ac_ext <<_ACEOF
17259/* confdefs.h. */
17260_ACEOF
17261cat confdefs.h >>conftest.$ac_ext
17262cat >>conftest.$ac_ext <<_ACEOF
17263/* end confdefs.h. */
17264#ifdef HAVE_LINUX_INPUT_H
17265#include <linux/input.h>
17266#endif
17267
17268int
17269main ()
17270{
17271static struct ff_effect ac_aggr;
17272if (ac_aggr.direction)
17273return 0;
17274 ;
17275 return 0;
17276}
17277_ACEOF
17278rm -f conftest.$ac_objext
0ebeb530
JW
17279if { (ac_try="$ac_compile"
17280case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17283esac
17284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_compile") 2>conftest.er1
e491e8f8
DR
17286 ac_status=$?
17287 grep -v '^ *+' conftest.er1 >conftest.err
17288 rm -f conftest.er1
17289 cat conftest.err >&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17291 (exit $ac_status); } && {
17292 test -z "$ac_c_werror_flag" ||
17293 test ! -s conftest.err
17294 } && test -s conftest.$ac_objext; then
e491e8f8
DR
17295 ac_cv_member_struct_ff_effect_direction=yes
17296else
17297 echo "$as_me: failed program was:" >&5
17298sed 's/^/| /' conftest.$ac_ext >&5
17299
fc6ffb29 17300 cat >conftest.$ac_ext <<_ACEOF
e491e8f8
DR
17301/* confdefs.h. */
17302_ACEOF
17303cat confdefs.h >>conftest.$ac_ext
17304cat >>conftest.$ac_ext <<_ACEOF
17305/* end confdefs.h. */
17306#ifdef HAVE_LINUX_INPUT_H
17307#include <linux/input.h>
17308#endif
17309
17310int
17311main ()
17312{
17313static struct ff_effect ac_aggr;
17314if (sizeof ac_aggr.direction)
17315return 0;
17316 ;
17317 return 0;
17318}
17319_ACEOF
17320rm -f conftest.$ac_objext
0ebeb530
JW
17321if { (ac_try="$ac_compile"
17322case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17325esac
17326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_compile") 2>conftest.er1
e491e8f8
DR
17328 ac_status=$?
17329 grep -v '^ *+' conftest.er1 >conftest.err
17330 rm -f conftest.er1
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17333 (exit $ac_status); } && {
17334 test -z "$ac_c_werror_flag" ||
17335 test ! -s conftest.err
17336 } && test -s conftest.$ac_objext; then
e491e8f8
DR
17337 ac_cv_member_struct_ff_effect_direction=yes
17338else
17339 echo "$as_me: failed program was:" >&5
17340sed 's/^/| /' conftest.$ac_ext >&5
17341
fc6ffb29 17342 ac_cv_member_struct_ff_effect_direction=no
e491e8f8 17343fi
fc6ffb29 17344
0ebeb530 17345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e491e8f8 17346fi
fc6ffb29 17347
0ebeb530 17348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e491e8f8 17349fi
fc6ffb29
AJ
17350{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
17351echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
e491e8f8
DR
17352if test $ac_cv_member_struct_ff_effect_direction = yes; then
17353
17354cat >>confdefs.h <<_ACEOF
17355#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
17356_ACEOF
17357
17358
17359fi
17360
17361
fc6ffb29
AJ
17362{ echo "$as_me:$LINENO: checking for sigaddset" >&5
17363echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
10a6c560
PM
17364if test "${wine_cv_have_sigaddset+set}" = set; then
17365 echo $ECHO_N "(cached) $ECHO_C" >&6
17366else
17367 cat >conftest.$ac_ext <<_ACEOF
17368/* confdefs.h. */
17369_ACEOF
17370cat confdefs.h >>conftest.$ac_ext
17371cat >>conftest.$ac_ext <<_ACEOF
17372/* end confdefs.h. */
17373#include <signal.h>
17374int
17375main ()
17376{
17377sigset_t set; sigaddset(&set,SIGTERM);
17378 ;
17379 return 0;
17380}
17381_ACEOF
17382rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
17383if { (ac_try="$ac_link"
17384case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17387esac
17388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_link") 2>conftest.er1
10a6c560
PM
17390 ac_status=$?
17391 grep -v '^ *+' conftest.er1 >conftest.err
17392 rm -f conftest.er1
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17395 (exit $ac_status); } && {
17396 test -z "$ac_c_werror_flag" ||
17397 test ! -s conftest.err
17398 } && test -s conftest$ac_exeext &&
17399 $as_test_x conftest$ac_exeext; then
10a6c560
PM
17400 wine_cv_have_sigaddset=yes
17401else
17402 echo "$as_me: failed program was:" >&5
17403sed 's/^/| /' conftest.$ac_ext >&5
17404
fc6ffb29 17405 wine_cv_have_sigaddset=no
10a6c560 17406fi
fc6ffb29 17407
f0ca586f 17408rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10a6c560
PM
17409 conftest$ac_exeext conftest.$ac_ext
17410fi
fc6ffb29
AJ
17411{ echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17412echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
10a6c560
PM
17413if test "$wine_cv_have_sigaddset" = "yes"
17414then
17415
17416cat >>confdefs.h <<\_ACEOF
17417#define HAVE_SIGADDSET 1
17418_ACEOF
17419
17420fi
17421
daa2886c 17422
fc6ffb29
AJ
17423{ echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17424echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
f5818d2f
AJ
17425if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
ff7a61f8 17427else
f5818d2f 17428 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
17429/* confdefs.h. */
17430_ACEOF
17431cat confdefs.h >>conftest.$ac_ext
17432cat >>conftest.$ac_ext <<_ACEOF
17433/* end confdefs.h. */
ff7a61f8 17434#include <netdb.h>
f5818d2f
AJ
17435int
17436main ()
17437{
ff7a61f8
RK
17438
17439 char *name=NULL;
17440 struct hostent he;
17441 struct hostent *result;
17442 char *buf=NULL;
17443 int bufsize=0;
17444 int res,errnr;
17445 char *addr=NULL;
17446 int addrlen=0;
17447 int addrtype=0;
17448 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17449 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
f5818d2f
AJ
17450
17451 ;
17452 return 0;
17453}
17454_ACEOF
dfd315b4 17455rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
17456if { (ac_try="$ac_link"
17457case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17460esac
17461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_link") 2>conftest.er1
f5818d2f 17463 ac_status=$?
875927f6
AJ
17464 grep -v '^ *+' conftest.er1 >conftest.err
17465 rm -f conftest.er1
17466 cat conftest.err >&5
daa2886c 17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17468 (exit $ac_status); } && {
17469 test -z "$ac_c_werror_flag" ||
17470 test ! -s conftest.err
17471 } && test -s conftest$ac_exeext &&
17472 $as_test_x conftest$ac_exeext; then
ff7a61f8
RK
17473 wine_cv_linux_gethostbyname_r_6=yes
17474else
f5818d2f 17475 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
17476sed 's/^/| /' conftest.$ac_ext >&5
17477
fc6ffb29 17478 wine_cv_linux_gethostbyname_r_6=no
f5818d2f 17479
ff7a61f8 17480fi
fc6ffb29 17481
f0ca586f 17482rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
dfd315b4 17483 conftest$ac_exeext conftest.$ac_ext
ff7a61f8 17484
f5818d2f 17485fi
fc6ffb29
AJ
17486{ echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17487echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
ff7a61f8
RK
17488 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17489 then
f5818d2f 17490
daa2886c 17491cat >>confdefs.h <<\_ACEOF
ff7a61f8 17492#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
daa2886c 17493_ACEOF
ff7a61f8
RK
17494
17495 fi
17496
028e9a17
MM
17497if test "$ac_cv_header_linux_joystick_h" = "yes"
17498then
fc6ffb29
AJ
17499 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17500echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
f5818d2f
AJ
17501if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
028e9a17 17503else
f5818d2f 17504 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
17505/* confdefs.h. */
17506_ACEOF
17507cat confdefs.h >>conftest.$ac_ext
17508cat >>conftest.$ac_ext <<_ACEOF
17509/* end confdefs.h. */
028e9a17
MM
17510
17511 #include <sys/ioctl.h>
7c434992 17512 #include <sys/types.h>
028e9a17
MM
17513 #include <linux/joystick.h>
17514
17515 struct js_event blub;
605a9c39
MM
17516 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17517 #error "no 2.2 header"
17518 #endif
f5818d2f
AJ
17519
17520int
17521main ()
17522{
028e9a17 17523/*empty*/
f5818d2f
AJ
17524 ;
17525 return 0;
17526}
17527_ACEOF
17528rm -f conftest.$ac_objext
0ebeb530
JW
17529if { (ac_try="$ac_compile"
17530case "(($ac_try" in
17531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532 *) ac_try_echo=$ac_try;;
17533esac
17534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17535 (eval "$ac_compile") 2>conftest.er1
f5818d2f 17536 ac_status=$?
875927f6
AJ
17537 grep -v '^ *+' conftest.er1 >conftest.err
17538 rm -f conftest.er1
17539 cat conftest.err >&5
daa2886c 17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17541 (exit $ac_status); } && {
17542 test -z "$ac_c_werror_flag" ||
17543 test ! -s conftest.err
17544 } && test -s conftest.$ac_objext; then
028e9a17
MM
17545 wine_cv_linux_joystick_22_api=yes
17546else
f5818d2f 17547 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
17548sed 's/^/| /' conftest.$ac_ext >&5
17549
fc6ffb29 17550 wine_cv_linux_joystick_22_api=no
028e9a17 17551fi
fc6ffb29 17552
0ebeb530 17553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
028e9a17 17554
f5818d2f 17555fi
fc6ffb29
AJ
17556{ echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17557echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
87d224ac 17558 if test "$wine_cv_linux_joystick_22_api" = "yes"
028e9a17 17559 then
f5818d2f 17560
daa2886c 17561cat >>confdefs.h <<\_ACEOF
028e9a17 17562#define HAVE_LINUX_22_JOYSTICK_API 1
daa2886c 17563_ACEOF
028e9a17
MM
17564
17565 fi
17566fi
17567
daa2886c 17568
fc6ffb29
AJ
17569{ echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17570echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
5537dbbf 17571if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
f5818d2f 17572 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3 17573else
f5818d2f 17574 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
17575/* confdefs.h. */
17576_ACEOF
17577cat confdefs.h >>conftest.$ac_ext
17578cat >>conftest.$ac_ext <<_ACEOF
17579/* end confdefs.h. */
f5818d2f
AJ
17580#include <sys/types.h>
17581#ifdef HAVE_SYS_PARAM_H
17582# include <sys/param.h>
17583#endif
55b74483 17584#ifdef HAVE_SYS_MOUNT_H
f5818d2f 17585# include <sys/mount.h>
55b74483
RM
17586#endif
17587#ifdef HAVE_SYS_VFS_H
17588# include <sys/vfs.h>
17589#endif
17590#ifdef HAVE_SYS_STATFS_H
17591# include <sys/statfs.h>
f5818d2f 17592#endif
5537dbbf 17593
f5818d2f
AJ
17594int
17595main ()
17596{
5537dbbf
AJ
17597static struct statfs ac_aggr;
17598if (ac_aggr.f_bfree)
17599return 0;
f5818d2f
AJ
17600 ;
17601 return 0;
17602}
17603_ACEOF
17604rm -f conftest.$ac_objext
0ebeb530
JW
17605if { (ac_try="$ac_compile"
17606case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17609esac
17610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_compile") 2>conftest.er1
f5818d2f 17612 ac_status=$?
875927f6
AJ
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
daa2886c 17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17617 (exit $ac_status); } && {
17618 test -z "$ac_c_werror_flag" ||
17619 test ! -s conftest.err
17620 } && test -s conftest.$ac_objext; then
5537dbbf 17621 ac_cv_member_struct_statfs_f_bfree=yes
f5818d2f
AJ
17622else
17623 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
17624sed 's/^/| /' conftest.$ac_ext >&5
17625
fc6ffb29 17626 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
17627/* confdefs.h. */
17628_ACEOF
17629cat confdefs.h >>conftest.$ac_ext
17630cat >>conftest.$ac_ext <<_ACEOF
17631/* end confdefs.h. */
17632#include <sys/types.h>
17633#ifdef HAVE_SYS_PARAM_H
17634# include <sys/param.h>
17635#endif
55b74483 17636#ifdef HAVE_SYS_MOUNT_H
5537dbbf 17637# include <sys/mount.h>
55b74483
RM
17638#endif
17639#ifdef HAVE_SYS_VFS_H
17640# include <sys/vfs.h>
17641#endif
17642#ifdef HAVE_SYS_STATFS_H
17643# include <sys/statfs.h>
5537dbbf 17644#endif
f5818d2f 17645
5537dbbf
AJ
17646int
17647main ()
17648{
17649static struct statfs ac_aggr;
17650if (sizeof ac_aggr.f_bfree)
17651return 0;
17652 ;
17653 return 0;
17654}
daa2886c 17655_ACEOF
5537dbbf 17656rm -f conftest.$ac_objext
0ebeb530
JW
17657if { (ac_try="$ac_compile"
17658case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17661esac
17662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_compile") 2>conftest.er1
5537dbbf 17664 ac_status=$?
875927f6
AJ
17665 grep -v '^ *+' conftest.er1 >conftest.err
17666 rm -f conftest.er1
17667 cat conftest.err >&5
5537dbbf 17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17669 (exit $ac_status); } && {
17670 test -z "$ac_c_werror_flag" ||
17671 test ! -s conftest.err
17672 } && test -s conftest.$ac_objext; then
5537dbbf
AJ
17673 ac_cv_member_struct_statfs_f_bfree=yes
17674else
17675 echo "$as_me: failed program was:" >&5
17676sed 's/^/| /' conftest.$ac_ext >&5
c7c217b3 17677
fc6ffb29 17678 ac_cv_member_struct_statfs_f_bfree=no
c7c217b3 17679fi
fc6ffb29 17680
0ebeb530 17681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 17682fi
fc6ffb29 17683
0ebeb530 17684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 17685fi
fc6ffb29
AJ
17686{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17687echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
5537dbbf 17688if test $ac_cv_member_struct_statfs_f_bfree = yes; then
c7c217b3 17689
5537dbbf
AJ
17690cat >>confdefs.h <<_ACEOF
17691#define HAVE_STRUCT_STATFS_F_BFREE 1
17692_ACEOF
daa2886c
AJ
17693
17694
5537dbbf 17695fi
fc6ffb29
AJ
17696{ echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17697echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
5537dbbf 17698if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
f5818d2f 17699 echo $ECHO_N "(cached) $ECHO_C" >&6
dadf78ff 17700else
f5818d2f 17701 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
17702/* confdefs.h. */
17703_ACEOF
17704cat confdefs.h >>conftest.$ac_ext
17705cat >>conftest.$ac_ext <<_ACEOF
17706/* end confdefs.h. */
f5818d2f
AJ
17707#include <sys/types.h>
17708#ifdef HAVE_SYS_PARAM_H
17709# include <sys/param.h>
17710#endif
55b74483 17711#ifdef HAVE_SYS_MOUNT_H
f5818d2f 17712# include <sys/mount.h>
55b74483
RM
17713#endif
17714#ifdef HAVE_SYS_VFS_H
17715# include <sys/vfs.h>
17716#endif
17717#ifdef HAVE_SYS_STATFS_H
17718# include <sys/statfs.h>
f5818d2f 17719#endif
5537dbbf 17720
f5818d2f
AJ
17721int
17722main ()
17723{
5537dbbf
AJ
17724static struct statfs ac_aggr;
17725if (ac_aggr.f_bavail)
17726return 0;
f5818d2f
AJ
17727 ;
17728 return 0;
17729}
17730_ACEOF
17731rm -f conftest.$ac_objext
0ebeb530
JW
17732if { (ac_try="$ac_compile"
17733case "(($ac_try" in
17734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17736esac
17737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_compile") 2>conftest.er1
f5818d2f 17739 ac_status=$?
875927f6
AJ
17740 grep -v '^ *+' conftest.er1 >conftest.err
17741 rm -f conftest.er1
17742 cat conftest.err >&5
daa2886c 17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17744 (exit $ac_status); } && {
17745 test -z "$ac_c_werror_flag" ||
17746 test ! -s conftest.err
17747 } && test -s conftest.$ac_objext; then
5537dbbf 17748 ac_cv_member_struct_statfs_f_bavail=yes
f5818d2f
AJ
17749else
17750 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
17751sed 's/^/| /' conftest.$ac_ext >&5
17752
fc6ffb29 17753 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
17754/* confdefs.h. */
17755_ACEOF
17756cat confdefs.h >>conftest.$ac_ext
17757cat >>conftest.$ac_ext <<_ACEOF
17758/* end confdefs.h. */
17759#include <sys/types.h>
17760#ifdef HAVE_SYS_PARAM_H
17761# include <sys/param.h>
17762#endif
55b74483 17763#ifdef HAVE_SYS_MOUNT_H
5537dbbf 17764# include <sys/mount.h>
55b74483
RM
17765#endif
17766#ifdef HAVE_SYS_VFS_H
17767# include <sys/vfs.h>
17768#endif
17769#ifdef HAVE_SYS_STATFS_H
17770# include <sys/statfs.h>
5537dbbf
AJ
17771#endif
17772
17773int
17774main ()
17775{
17776static struct statfs ac_aggr;
17777if (sizeof ac_aggr.f_bavail)
17778return 0;
17779 ;
17780 return 0;
17781}
17782_ACEOF
17783rm -f conftest.$ac_objext
0ebeb530
JW
17784if { (ac_try="$ac_compile"
17785case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17788esac
17789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790 (eval "$ac_compile") 2>conftest.er1
5537dbbf 17791 ac_status=$?
875927f6
AJ
17792 grep -v '^ *+' conftest.er1 >conftest.err
17793 rm -f conftest.er1
17794 cat conftest.err >&5
5537dbbf 17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17796 (exit $ac_status); } && {
17797 test -z "$ac_c_werror_flag" ||
17798 test ! -s conftest.err
17799 } && test -s conftest.$ac_objext; then
5537dbbf
AJ
17800 ac_cv_member_struct_statfs_f_bavail=yes
17801else
17802 echo "$as_me: failed program was:" >&5
17803sed 's/^/| /' conftest.$ac_ext >&5
17804
fc6ffb29 17805 ac_cv_member_struct_statfs_f_bavail=no
5537dbbf 17806fi
fc6ffb29 17807
0ebeb530 17808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 17809fi
fc6ffb29 17810
0ebeb530 17811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 17812fi
fc6ffb29
AJ
17813{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
17814echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
5537dbbf 17815if test $ac_cv_member_struct_statfs_f_bavail = yes; then
f5818d2f 17816
5537dbbf
AJ
17817cat >>confdefs.h <<_ACEOF
17818#define HAVE_STRUCT_STATFS_F_BAVAIL 1
daa2886c 17819_ACEOF
dadf78ff 17820
dadf78ff 17821
13af4891 17822fi
fc6ffb29
AJ
17823{ echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
17824echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
13af4891
AJ
17825if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17827else
17828 cat >conftest.$ac_ext <<_ACEOF
17829/* confdefs.h. */
17830_ACEOF
17831cat confdefs.h >>conftest.$ac_ext
17832cat >>conftest.$ac_ext <<_ACEOF
17833/* end confdefs.h. */
17834#include <sys/types.h>
17835#ifdef HAVE_SYS_PARAM_H
17836# include <sys/param.h>
17837#endif
55b74483 17838#ifdef HAVE_SYS_MOUNT_H
13af4891 17839# include <sys/mount.h>
55b74483
RM
17840#endif
17841#ifdef HAVE_SYS_VFS_H
17842# include <sys/vfs.h>
17843#endif
17844#ifdef HAVE_SYS_STATFS_H
17845# include <sys/statfs.h>
13af4891
AJ
17846#endif
17847
17848int
17849main ()
17850{
17851static struct statfs ac_aggr;
17852if (ac_aggr.f_frsize)
17853return 0;
17854 ;
17855 return 0;
17856}
17857_ACEOF
17858rm -f conftest.$ac_objext
0ebeb530
JW
17859if { (ac_try="$ac_compile"
17860case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863esac
17864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
17866 ac_status=$?
17867 grep -v '^ *+' conftest.er1 >conftest.err
17868 rm -f conftest.er1
17869 cat conftest.err >&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17871 (exit $ac_status); } && {
17872 test -z "$ac_c_werror_flag" ||
17873 test ! -s conftest.err
17874 } && test -s conftest.$ac_objext; then
13af4891
AJ
17875 ac_cv_member_struct_statfs_f_frsize=yes
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
fc6ffb29 17880 cat >conftest.$ac_ext <<_ACEOF
13af4891
AJ
17881/* confdefs.h. */
17882_ACEOF
17883cat confdefs.h >>conftest.$ac_ext
17884cat >>conftest.$ac_ext <<_ACEOF
17885/* end confdefs.h. */
17886#include <sys/types.h>
17887#ifdef HAVE_SYS_PARAM_H
17888# include <sys/param.h>
17889#endif
55b74483 17890#ifdef HAVE_SYS_MOUNT_H
13af4891 17891# include <sys/mount.h>
55b74483
RM
17892#endif
17893#ifdef HAVE_SYS_VFS_H
17894# include <sys/vfs.h>
17895#endif
17896#ifdef HAVE_SYS_STATFS_H
17897# include <sys/statfs.h>
13af4891
AJ
17898#endif
17899
17900int
17901main ()
17902{
17903static struct statfs ac_aggr;
17904if (sizeof ac_aggr.f_frsize)
17905return 0;
17906 ;
17907 return 0;
17908}
17909_ACEOF
17910rm -f conftest.$ac_objext
0ebeb530
JW
17911if { (ac_try="$ac_compile"
17912case "(($ac_try" in
17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914 *) ac_try_echo=$ac_try;;
17915esac
17916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
17918 ac_status=$?
17919 grep -v '^ *+' conftest.er1 >conftest.err
17920 rm -f conftest.er1
17921 cat conftest.err >&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17923 (exit $ac_status); } && {
17924 test -z "$ac_c_werror_flag" ||
17925 test ! -s conftest.err
17926 } && test -s conftest.$ac_objext; then
13af4891
AJ
17927 ac_cv_member_struct_statfs_f_frsize=yes
17928else
17929 echo "$as_me: failed program was:" >&5
17930sed 's/^/| /' conftest.$ac_ext >&5
17931
fc6ffb29 17932 ac_cv_member_struct_statfs_f_frsize=no
13af4891 17933fi
fc6ffb29 17934
0ebeb530 17935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 17936fi
fc6ffb29 17937
0ebeb530 17938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 17939fi
fc6ffb29
AJ
17940{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
17941echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
13af4891
AJ
17942if test $ac_cv_member_struct_statfs_f_frsize = yes; then
17943
17944cat >>confdefs.h <<_ACEOF
17945#define HAVE_STRUCT_STATFS_F_FRSIZE 1
17946_ACEOF
17947
17948
17949fi
fc6ffb29
AJ
17950{ echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
17951echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
13af4891
AJ
17952if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17954else
17955 cat >conftest.$ac_ext <<_ACEOF
17956/* confdefs.h. */
17957_ACEOF
17958cat confdefs.h >>conftest.$ac_ext
17959cat >>conftest.$ac_ext <<_ACEOF
17960/* end confdefs.h. */
17961#include <sys/types.h>
17962#ifdef HAVE_SYS_PARAM_H
17963# include <sys/param.h>
17964#endif
55b74483 17965#ifdef HAVE_SYS_MOUNT_H
13af4891 17966# include <sys/mount.h>
55b74483
RM
17967#endif
17968#ifdef HAVE_SYS_VFS_H
17969# include <sys/vfs.h>
17970#endif
17971#ifdef HAVE_SYS_STATFS_H
17972# include <sys/statfs.h>
13af4891
AJ
17973#endif
17974
17975int
17976main ()
17977{
17978static struct statfs ac_aggr;
17979if (ac_aggr.f_ffree)
17980return 0;
17981 ;
17982 return 0;
17983}
17984_ACEOF
17985rm -f conftest.$ac_objext
0ebeb530
JW
17986if { (ac_try="$ac_compile"
17987case "(($ac_try" in
17988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989 *) ac_try_echo=$ac_try;;
17990esac
17991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
17993 ac_status=$?
17994 grep -v '^ *+' conftest.er1 >conftest.err
17995 rm -f conftest.er1
17996 cat conftest.err >&5
17997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17998 (exit $ac_status); } && {
17999 test -z "$ac_c_werror_flag" ||
18000 test ! -s conftest.err
18001 } && test -s conftest.$ac_objext; then
13af4891
AJ
18002 ac_cv_member_struct_statfs_f_ffree=yes
18003else
18004 echo "$as_me: failed program was:" >&5
18005sed 's/^/| /' conftest.$ac_ext >&5
18006
fc6ffb29 18007 cat >conftest.$ac_ext <<_ACEOF
13af4891
AJ
18008/* confdefs.h. */
18009_ACEOF
18010cat confdefs.h >>conftest.$ac_ext
18011cat >>conftest.$ac_ext <<_ACEOF
18012/* end confdefs.h. */
18013#include <sys/types.h>
18014#ifdef HAVE_SYS_PARAM_H
18015# include <sys/param.h>
18016#endif
55b74483 18017#ifdef HAVE_SYS_MOUNT_H
13af4891 18018# include <sys/mount.h>
55b74483
RM
18019#endif
18020#ifdef HAVE_SYS_VFS_H
18021# include <sys/vfs.h>
18022#endif
18023#ifdef HAVE_SYS_STATFS_H
18024# include <sys/statfs.h>
13af4891
AJ
18025#endif
18026
18027int
18028main ()
18029{
18030static struct statfs ac_aggr;
18031if (sizeof ac_aggr.f_ffree)
18032return 0;
18033 ;
18034 return 0;
18035}
18036_ACEOF
18037rm -f conftest.$ac_objext
0ebeb530
JW
18038if { (ac_try="$ac_compile"
18039case "(($ac_try" in
18040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041 *) ac_try_echo=$ac_try;;
18042esac
18043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
18045 ac_status=$?
18046 grep -v '^ *+' conftest.er1 >conftest.err
18047 rm -f conftest.er1
18048 cat conftest.err >&5
18049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18050 (exit $ac_status); } && {
18051 test -z "$ac_c_werror_flag" ||
18052 test ! -s conftest.err
18053 } && test -s conftest.$ac_objext; then
13af4891
AJ
18054 ac_cv_member_struct_statfs_f_ffree=yes
18055else
18056 echo "$as_me: failed program was:" >&5
18057sed 's/^/| /' conftest.$ac_ext >&5
18058
fc6ffb29 18059 ac_cv_member_struct_statfs_f_ffree=no
13af4891 18060fi
fc6ffb29 18061
0ebeb530 18062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 18063fi
fc6ffb29 18064
0ebeb530 18065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 18066fi
fc6ffb29
AJ
18067{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18068echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
13af4891
AJ
18069if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18070
18071cat >>confdefs.h <<_ACEOF
18072#define HAVE_STRUCT_STATFS_F_FFREE 1
18073_ACEOF
18074
18075
18076fi
fc6ffb29
AJ
18077{ echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18078echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
13af4891
AJ
18079if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18080 echo $ECHO_N "(cached) $ECHO_C" >&6
18081else
18082 cat >conftest.$ac_ext <<_ACEOF
18083/* confdefs.h. */
18084_ACEOF
18085cat confdefs.h >>conftest.$ac_ext
18086cat >>conftest.$ac_ext <<_ACEOF
18087/* end confdefs.h. */
18088#include <sys/types.h>
18089#ifdef HAVE_SYS_PARAM_H
18090# include <sys/param.h>
18091#endif
55b74483 18092#ifdef HAVE_SYS_MOUNT_H
13af4891 18093# include <sys/mount.h>
55b74483
RM
18094#endif
18095#ifdef HAVE_SYS_VFS_H
18096# include <sys/vfs.h>
18097#endif
18098#ifdef HAVE_SYS_STATFS_H
18099# include <sys/statfs.h>
13af4891
AJ
18100#endif
18101
18102int
18103main ()
18104{
18105static struct statfs ac_aggr;
18106if (ac_aggr.f_favail)
18107return 0;
18108 ;
18109 return 0;
18110}
18111_ACEOF
18112rm -f conftest.$ac_objext
0ebeb530
JW
18113if { (ac_try="$ac_compile"
18114case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18117esac
18118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
18120 ac_status=$?
18121 grep -v '^ *+' conftest.er1 >conftest.err
18122 rm -f conftest.er1
18123 cat conftest.err >&5
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18125 (exit $ac_status); } && {
18126 test -z "$ac_c_werror_flag" ||
18127 test ! -s conftest.err
18128 } && test -s conftest.$ac_objext; then
13af4891
AJ
18129 ac_cv_member_struct_statfs_f_favail=yes
18130else
18131 echo "$as_me: failed program was:" >&5
18132sed 's/^/| /' conftest.$ac_ext >&5
18133
fc6ffb29 18134 cat >conftest.$ac_ext <<_ACEOF
13af4891
AJ
18135/* confdefs.h. */
18136_ACEOF
18137cat confdefs.h >>conftest.$ac_ext
18138cat >>conftest.$ac_ext <<_ACEOF
18139/* end confdefs.h. */
18140#include <sys/types.h>
18141#ifdef HAVE_SYS_PARAM_H
18142# include <sys/param.h>
18143#endif
55b74483 18144#ifdef HAVE_SYS_MOUNT_H
13af4891 18145# include <sys/mount.h>
55b74483
RM
18146#endif
18147#ifdef HAVE_SYS_VFS_H
18148# include <sys/vfs.h>
18149#endif
18150#ifdef HAVE_SYS_STATFS_H
18151# include <sys/statfs.h>
13af4891
AJ
18152#endif
18153
18154int
18155main ()
18156{
18157static struct statfs ac_aggr;
18158if (sizeof ac_aggr.f_favail)
18159return 0;
18160 ;
18161 return 0;
18162}
18163_ACEOF
18164rm -f conftest.$ac_objext
0ebeb530
JW
18165if { (ac_try="$ac_compile"
18166case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18169esac
18170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
18172 ac_status=$?
18173 grep -v '^ *+' conftest.er1 >conftest.err
18174 rm -f conftest.er1
18175 cat conftest.err >&5
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18177 (exit $ac_status); } && {
18178 test -z "$ac_c_werror_flag" ||
18179 test ! -s conftest.err
18180 } && test -s conftest.$ac_objext; then
13af4891
AJ
18181 ac_cv_member_struct_statfs_f_favail=yes
18182else
18183 echo "$as_me: failed program was:" >&5
18184sed 's/^/| /' conftest.$ac_ext >&5
18185
fc6ffb29 18186 ac_cv_member_struct_statfs_f_favail=no
13af4891 18187fi
fc6ffb29 18188
0ebeb530 18189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 18190fi
fc6ffb29 18191
0ebeb530 18192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 18193fi
fc6ffb29
AJ
18194{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18195echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
13af4891
AJ
18196if test $ac_cv_member_struct_statfs_f_favail = yes; then
18197
18198cat >>confdefs.h <<_ACEOF
18199#define HAVE_STRUCT_STATFS_F_FAVAIL 1
18200_ACEOF
18201
18202
b859a686 18203fi
fc6ffb29
AJ
18204{ echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18205echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
b859a686
AJ
18206if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18208else
18209 cat >conftest.$ac_ext <<_ACEOF
18210/* confdefs.h. */
18211_ACEOF
18212cat confdefs.h >>conftest.$ac_ext
18213cat >>conftest.$ac_ext <<_ACEOF
18214/* end confdefs.h. */
18215#include <sys/types.h>
18216#ifdef HAVE_SYS_PARAM_H
18217# include <sys/param.h>
18218#endif
55b74483 18219#ifdef HAVE_SYS_MOUNT_H
b859a686 18220# include <sys/mount.h>
55b74483
RM
18221#endif
18222#ifdef HAVE_SYS_VFS_H
18223# include <sys/vfs.h>
18224#endif
18225#ifdef HAVE_SYS_STATFS_H
18226# include <sys/statfs.h>
b859a686
AJ
18227#endif
18228
18229int
18230main ()
18231{
18232static struct statfs ac_aggr;
18233if (ac_aggr.f_namelen)
18234return 0;
18235 ;
18236 return 0;
18237}
18238_ACEOF
18239rm -f conftest.$ac_objext
0ebeb530
JW
18240if { (ac_try="$ac_compile"
18241case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18244esac
18245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_compile") 2>conftest.er1
b859a686
AJ
18247 ac_status=$?
18248 grep -v '^ *+' conftest.er1 >conftest.err
18249 rm -f conftest.er1
18250 cat conftest.err >&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18252 (exit $ac_status); } && {
18253 test -z "$ac_c_werror_flag" ||
18254 test ! -s conftest.err
18255 } && test -s conftest.$ac_objext; then
b859a686
AJ
18256 ac_cv_member_struct_statfs_f_namelen=yes
18257else
18258 echo "$as_me: failed program was:" >&5
18259sed 's/^/| /' conftest.$ac_ext >&5
18260
fc6ffb29 18261 cat >conftest.$ac_ext <<_ACEOF
b859a686
AJ
18262/* confdefs.h. */
18263_ACEOF
18264cat confdefs.h >>conftest.$ac_ext
18265cat >>conftest.$ac_ext <<_ACEOF
18266/* end confdefs.h. */
18267#include <sys/types.h>
18268#ifdef HAVE_SYS_PARAM_H
18269# include <sys/param.h>
18270#endif
55b74483 18271#ifdef HAVE_SYS_MOUNT_H
b859a686 18272# include <sys/mount.h>
55b74483
RM
18273#endif
18274#ifdef HAVE_SYS_VFS_H
18275# include <sys/vfs.h>
18276#endif
18277#ifdef HAVE_SYS_STATFS_H
18278# include <sys/statfs.h>
b859a686
AJ
18279#endif
18280
18281int
18282main ()
18283{
18284static struct statfs ac_aggr;
18285if (sizeof ac_aggr.f_namelen)
18286return 0;
18287 ;
18288 return 0;
18289}
18290_ACEOF
18291rm -f conftest.$ac_objext
0ebeb530
JW
18292if { (ac_try="$ac_compile"
18293case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18296esac
18297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298 (eval "$ac_compile") 2>conftest.er1
b859a686
AJ
18299 ac_status=$?
18300 grep -v '^ *+' conftest.er1 >conftest.err
18301 rm -f conftest.er1
18302 cat conftest.err >&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18304 (exit $ac_status); } && {
18305 test -z "$ac_c_werror_flag" ||
18306 test ! -s conftest.err
18307 } && test -s conftest.$ac_objext; then
b859a686
AJ
18308 ac_cv_member_struct_statfs_f_namelen=yes
18309else
18310 echo "$as_me: failed program was:" >&5
18311sed 's/^/| /' conftest.$ac_ext >&5
18312
fc6ffb29 18313 ac_cv_member_struct_statfs_f_namelen=no
b859a686 18314fi
fc6ffb29 18315
0ebeb530 18316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b859a686 18317fi
fc6ffb29 18318
0ebeb530 18319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b859a686 18320fi
fc6ffb29
AJ
18321{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18322echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
b859a686
AJ
18323if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18324
18325cat >>confdefs.h <<_ACEOF
18326#define HAVE_STRUCT_STATFS_F_NAMELEN 1
18327_ACEOF
18328
18329
13af4891
AJ
18330fi
18331
18332
fc6ffb29
AJ
18333{ echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18334echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
13af4891
AJ
18335if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18336 echo $ECHO_N "(cached) $ECHO_C" >&6
18337else
18338 cat >conftest.$ac_ext <<_ACEOF
18339/* confdefs.h. */
18340_ACEOF
18341cat confdefs.h >>conftest.$ac_ext
18342cat >>conftest.$ac_ext <<_ACEOF
18343/* end confdefs.h. */
18344#ifdef HAVE_SYS_STATVFS_H
18345#include <sys/statvfs.h>
18346#endif
18347
18348int
18349main ()
18350{
18351static struct statvfs ac_aggr;
18352if (ac_aggr.f_blocks)
18353return 0;
18354 ;
18355 return 0;
18356}
18357_ACEOF
18358rm -f conftest.$ac_objext
0ebeb530
JW
18359if { (ac_try="$ac_compile"
18360case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18363esac
18364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
18366 ac_status=$?
18367 grep -v '^ *+' conftest.er1 >conftest.err
18368 rm -f conftest.er1
18369 cat conftest.err >&5
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18371 (exit $ac_status); } && {
18372 test -z "$ac_c_werror_flag" ||
18373 test ! -s conftest.err
18374 } && test -s conftest.$ac_objext; then
13af4891
AJ
18375 ac_cv_member_struct_statvfs_f_blocks=yes
18376else
18377 echo "$as_me: failed program was:" >&5
18378sed 's/^/| /' conftest.$ac_ext >&5
18379
fc6ffb29 18380 cat >conftest.$ac_ext <<_ACEOF
13af4891
AJ
18381/* confdefs.h. */
18382_ACEOF
18383cat confdefs.h >>conftest.$ac_ext
18384cat >>conftest.$ac_ext <<_ACEOF
18385/* end confdefs.h. */
18386#ifdef HAVE_SYS_STATVFS_H
18387#include <sys/statvfs.h>
18388#endif
18389
18390int
18391main ()
18392{
18393static struct statvfs ac_aggr;
18394if (sizeof ac_aggr.f_blocks)
18395return 0;
18396 ;
18397 return 0;
18398}
18399_ACEOF
18400rm -f conftest.$ac_objext
0ebeb530
JW
18401if { (ac_try="$ac_compile"
18402case "(($ac_try" in
18403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404 *) ac_try_echo=$ac_try;;
18405esac
18406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18407 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
18408 ac_status=$?
18409 grep -v '^ *+' conftest.er1 >conftest.err
18410 rm -f conftest.er1
18411 cat conftest.err >&5
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18413 (exit $ac_status); } && {
18414 test -z "$ac_c_werror_flag" ||
18415 test ! -s conftest.err
18416 } && test -s conftest.$ac_objext; then
13af4891
AJ
18417 ac_cv_member_struct_statvfs_f_blocks=yes
18418else
18419 echo "$as_me: failed program was:" >&5
18420sed 's/^/| /' conftest.$ac_ext >&5
18421
fc6ffb29 18422 ac_cv_member_struct_statvfs_f_blocks=no
13af4891 18423fi
fc6ffb29 18424
0ebeb530 18425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 18426fi
fc6ffb29 18427
0ebeb530 18428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 18429fi
fc6ffb29
AJ
18430{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
18431echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
13af4891
AJ
18432if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
18433
18434cat >>confdefs.h <<_ACEOF
18435#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18436_ACEOF
18437
18438
5537dbbf 18439fi
daa2886c
AJ
18440
18441
fc6ffb29
AJ
18442{ echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18443echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
5537dbbf 18444if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
f5818d2f 18445 echo $ECHO_N "(cached) $ECHO_C" >&6
829fe323 18446else
f5818d2f 18447 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
18448/* confdefs.h. */
18449_ACEOF
18450cat confdefs.h >>conftest.$ac_ext
18451cat >>conftest.$ac_ext <<_ACEOF
18452/* end confdefs.h. */
829fe323 18453#include <sys/types.h>
63ae7fee
PS
18454#ifdef HAVE_SYS_SOCKET_H
18455# include <sys/socket.h>
18456#endif
5537dbbf
AJ
18457#ifdef HAVE_SYS_UN_H
18458# include <sys/un.h>
18459#endif
18460
f5818d2f
AJ
18461int
18462main ()
18463{
5537dbbf
AJ
18464static struct msghdr ac_aggr;
18465if (ac_aggr.msg_accrights)
18466return 0;
f5818d2f
AJ
18467 ;
18468 return 0;
18469}
18470_ACEOF
18471rm -f conftest.$ac_objext
0ebeb530
JW
18472if { (ac_try="$ac_compile"
18473case "(($ac_try" in
18474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475 *) ac_try_echo=$ac_try;;
18476esac
18477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18478 (eval "$ac_compile") 2>conftest.er1
f5818d2f 18479 ac_status=$?
875927f6
AJ
18480 grep -v '^ *+' conftest.er1 >conftest.err
18481 rm -f conftest.er1
18482 cat conftest.err >&5
daa2886c 18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18484 (exit $ac_status); } && {
18485 test -z "$ac_c_werror_flag" ||
18486 test ! -s conftest.err
18487 } && test -s conftest.$ac_objext; then
5537dbbf 18488 ac_cv_member_struct_msghdr_msg_accrights=yes
f5818d2f
AJ
18489else
18490 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
18491sed 's/^/| /' conftest.$ac_ext >&5
18492
fc6ffb29 18493 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
18494/* confdefs.h. */
18495_ACEOF
18496cat confdefs.h >>conftest.$ac_ext
18497cat >>conftest.$ac_ext <<_ACEOF
18498/* end confdefs.h. */
18499#include <sys/types.h>
18500#ifdef HAVE_SYS_SOCKET_H
18501# include <sys/socket.h>
18502#endif
18503#ifdef HAVE_SYS_UN_H
18504# include <sys/un.h>
18505#endif
f5818d2f 18506
5537dbbf
AJ
18507int
18508main ()
18509{
18510static struct msghdr ac_aggr;
18511if (sizeof ac_aggr.msg_accrights)
18512return 0;
18513 ;
18514 return 0;
18515}
daa2886c 18516_ACEOF
5537dbbf 18517rm -f conftest.$ac_objext
0ebeb530
JW
18518if { (ac_try="$ac_compile"
18519case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18522esac
18523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_compile") 2>conftest.er1
5537dbbf 18525 ac_status=$?
875927f6
AJ
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
5537dbbf 18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18530 (exit $ac_status); } && {
18531 test -z "$ac_c_werror_flag" ||
18532 test ! -s conftest.err
18533 } && test -s conftest.$ac_objext; then
5537dbbf
AJ
18534 ac_cv_member_struct_msghdr_msg_accrights=yes
18535else
18536 echo "$as_me: failed program was:" >&5
18537sed 's/^/| /' conftest.$ac_ext >&5
829fe323 18538
fc6ffb29 18539 ac_cv_member_struct_msghdr_msg_accrights=no
5537dbbf 18540fi
fc6ffb29 18541
0ebeb530 18542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 18543fi
fc6ffb29 18544
0ebeb530 18545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
829fe323 18546fi
fc6ffb29
AJ
18547{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18548echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
5537dbbf 18549if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
829fe323 18550
5537dbbf
AJ
18551cat >>confdefs.h <<_ACEOF
18552#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18553_ACEOF
daa2886c
AJ
18554
18555
5537dbbf 18556fi
fc6ffb29
AJ
18557{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18558echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
5537dbbf 18559if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
f5818d2f 18560 echo $ECHO_N "(cached) $ECHO_C" >&6
2d33ab91 18561else
f5818d2f 18562 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
18563/* confdefs.h. */
18564_ACEOF
18565cat confdefs.h >>conftest.$ac_ext
18566cat >>conftest.$ac_ext <<_ACEOF
18567/* end confdefs.h. */
2d33ab91 18568#include <sys/types.h>
63ae7fee
PS
18569#ifdef HAVE_SYS_SOCKET_H
18570# include <sys/socket.h>
18571#endif
5537dbbf
AJ
18572#ifdef HAVE_SYS_UN_H
18573# include <sys/un.h>
18574#endif
18575
f5818d2f
AJ
18576int
18577main ()
18578{
5537dbbf
AJ
18579static struct sockaddr ac_aggr;
18580if (ac_aggr.sa_len)
18581return 0;
f5818d2f
AJ
18582 ;
18583 return 0;
18584}
18585_ACEOF
18586rm -f conftest.$ac_objext
0ebeb530
JW
18587if { (ac_try="$ac_compile"
18588case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18591esac
18592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_compile") 2>conftest.er1
f5818d2f 18594 ac_status=$?
875927f6
AJ
18595 grep -v '^ *+' conftest.er1 >conftest.err
18596 rm -f conftest.er1
18597 cat conftest.err >&5
daa2886c 18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18599 (exit $ac_status); } && {
18600 test -z "$ac_c_werror_flag" ||
18601 test ! -s conftest.err
18602 } && test -s conftest.$ac_objext; then
5537dbbf 18603 ac_cv_member_struct_sockaddr_sa_len=yes
09da966c 18604else
f5818d2f 18605 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
18606sed 's/^/| /' conftest.$ac_ext >&5
18607
fc6ffb29 18608 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
18609/* confdefs.h. */
18610_ACEOF
18611cat confdefs.h >>conftest.$ac_ext
18612cat >>conftest.$ac_ext <<_ACEOF
18613/* end confdefs.h. */
18614#include <sys/types.h>
18615#ifdef HAVE_SYS_SOCKET_H
18616# include <sys/socket.h>
18617#endif
18618#ifdef HAVE_SYS_UN_H
18619# include <sys/un.h>
18620#endif
09da966c 18621
5537dbbf
AJ
18622int
18623main ()
18624{
18625static struct sockaddr ac_aggr;
18626if (sizeof ac_aggr.sa_len)
18627return 0;
18628 ;
18629 return 0;
18630}
daa2886c 18631_ACEOF
5537dbbf 18632rm -f conftest.$ac_objext
0ebeb530
JW
18633if { (ac_try="$ac_compile"
18634case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18637esac
18638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_compile") 2>conftest.er1
5537dbbf 18640 ac_status=$?
875927f6
AJ
18641 grep -v '^ *+' conftest.er1 >conftest.err
18642 rm -f conftest.er1
18643 cat conftest.err >&5
5537dbbf 18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18645 (exit $ac_status); } && {
18646 test -z "$ac_c_werror_flag" ||
18647 test ! -s conftest.err
18648 } && test -s conftest.$ac_objext; then
5537dbbf
AJ
18649 ac_cv_member_struct_sockaddr_sa_len=yes
18650else
18651 echo "$as_me: failed program was:" >&5
18652sed 's/^/| /' conftest.$ac_ext >&5
09da966c 18653
fc6ffb29 18654 ac_cv_member_struct_sockaddr_sa_len=no
5537dbbf 18655fi
fc6ffb29 18656
0ebeb530 18657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 18658fi
fc6ffb29 18659
0ebeb530 18660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
09da966c 18661fi
fc6ffb29
AJ
18662{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18663echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
5537dbbf 18664if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
09da966c 18665
5537dbbf
AJ
18666cat >>confdefs.h <<_ACEOF
18667#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18668_ACEOF
daa2886c
AJ
18669
18670
5537dbbf 18671fi
fc6ffb29
AJ
18672{ echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18673echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
5537dbbf 18674if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
f5818d2f 18675 echo $ECHO_N "(cached) $ECHO_C" >&6
09da966c 18676else
f5818d2f 18677 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
18678/* confdefs.h. */
18679_ACEOF
18680cat confdefs.h >>conftest.$ac_ext
18681cat >>conftest.$ac_ext <<_ACEOF
18682/* end confdefs.h. */
09da966c 18683#include <sys/types.h>
63ae7fee
PS
18684#ifdef HAVE_SYS_SOCKET_H
18685# include <sys/socket.h>
18686#endif
18687#ifdef HAVE_SYS_UN_H
18688# include <sys/un.h>
18689#endif
5537dbbf 18690
f5818d2f
AJ
18691int
18692main ()
18693{
5537dbbf
AJ
18694static struct sockaddr_un ac_aggr;
18695if (ac_aggr.sun_len)
18696return 0;
f5818d2f
AJ
18697 ;
18698 return 0;
18699}
18700_ACEOF
18701rm -f conftest.$ac_objext
0ebeb530
JW
18702if { (ac_try="$ac_compile"
18703case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18706esac
18707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708 (eval "$ac_compile") 2>conftest.er1
f5818d2f 18709 ac_status=$?
875927f6
AJ
18710 grep -v '^ *+' conftest.er1 >conftest.err
18711 rm -f conftest.er1
18712 cat conftest.err >&5
daa2886c 18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18714 (exit $ac_status); } && {
18715 test -z "$ac_c_werror_flag" ||
18716 test ! -s conftest.err
18717 } && test -s conftest.$ac_objext; then
5537dbbf 18718 ac_cv_member_struct_sockaddr_un_sun_len=yes
f5818d2f
AJ
18719else
18720 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
18721sed 's/^/| /' conftest.$ac_ext >&5
18722
fc6ffb29 18723 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
18724/* confdefs.h. */
18725_ACEOF
18726cat confdefs.h >>conftest.$ac_ext
18727cat >>conftest.$ac_ext <<_ACEOF
18728/* end confdefs.h. */
18729#include <sys/types.h>
18730#ifdef HAVE_SYS_SOCKET_H
18731# include <sys/socket.h>
18732#endif
18733#ifdef HAVE_SYS_UN_H
18734# include <sys/un.h>
18735#endif
18736
18737int
18738main ()
18739{
18740static struct sockaddr_un ac_aggr;
18741if (sizeof ac_aggr.sun_len)
18742return 0;
18743 ;
18744 return 0;
18745}
18746_ACEOF
18747rm -f conftest.$ac_objext
0ebeb530
JW
18748if { (ac_try="$ac_compile"
18749case "(($ac_try" in
18750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751 *) ac_try_echo=$ac_try;;
18752esac
18753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754 (eval "$ac_compile") 2>conftest.er1
5537dbbf 18755 ac_status=$?
875927f6
AJ
18756 grep -v '^ *+' conftest.er1 >conftest.err
18757 rm -f conftest.er1
18758 cat conftest.err >&5
5537dbbf 18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18760 (exit $ac_status); } && {
18761 test -z "$ac_c_werror_flag" ||
18762 test ! -s conftest.err
18763 } && test -s conftest.$ac_objext; then
5537dbbf
AJ
18764 ac_cv_member_struct_sockaddr_un_sun_len=yes
18765else
18766 echo "$as_me: failed program was:" >&5
18767sed 's/^/| /' conftest.$ac_ext >&5
18768
fc6ffb29 18769 ac_cv_member_struct_sockaddr_un_sun_len=no
f5818d2f 18770fi
fc6ffb29 18771
0ebeb530 18772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 18773fi
fc6ffb29 18774
0ebeb530 18775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 18776fi
fc6ffb29
AJ
18777{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18778echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
5537dbbf 18779if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
f5818d2f 18780
5537dbbf
AJ
18781cat >>confdefs.h <<_ACEOF
18782#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18783_ACEOF
18784
18785
18786fi
18787
18788
fc6ffb29
AJ
18789{ echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
18790echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
ea64a36a
DT
18791if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18793else
18794 cat >conftest.$ac_ext <<_ACEOF
18795/* confdefs.h. */
18796_ACEOF
18797cat confdefs.h >>conftest.$ac_ext
18798cat >>conftest.$ac_ext <<_ACEOF
18799/* end confdefs.h. */
18800#include <sys/types.h>
18801#ifdef HAVE_SCSI_SG_H
18802#include <scsi/sg.h>
18803#endif
18804
18805int
18806main ()
18807{
18808static scsireq_t ac_aggr;
18809if (ac_aggr.cmd)
18810return 0;
18811 ;
18812 return 0;
18813}
18814_ACEOF
18815rm -f conftest.$ac_objext
0ebeb530
JW
18816if { (ac_try="$ac_compile"
18817case "(($ac_try" in
18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18820esac
18821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18822 (eval "$ac_compile") 2>conftest.er1
ea64a36a
DT
18823 ac_status=$?
18824 grep -v '^ *+' conftest.er1 >conftest.err
18825 rm -f conftest.er1
18826 cat conftest.err >&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18828 (exit $ac_status); } && {
18829 test -z "$ac_c_werror_flag" ||
18830 test ! -s conftest.err
18831 } && test -s conftest.$ac_objext; then
ea64a36a
DT
18832 ac_cv_member_scsireq_t_cmd=yes
18833else
18834 echo "$as_me: failed program was:" >&5
18835sed 's/^/| /' conftest.$ac_ext >&5
18836
fc6ffb29 18837 cat >conftest.$ac_ext <<_ACEOF
ea64a36a
DT
18838/* confdefs.h. */
18839_ACEOF
18840cat confdefs.h >>conftest.$ac_ext
18841cat >>conftest.$ac_ext <<_ACEOF
18842/* end confdefs.h. */
18843#include <sys/types.h>
18844#ifdef HAVE_SCSI_SG_H
18845#include <scsi/sg.h>
18846#endif
18847
18848int
18849main ()
18850{
18851static scsireq_t ac_aggr;
18852if (sizeof ac_aggr.cmd)
18853return 0;
18854 ;
18855 return 0;
18856}
18857_ACEOF
18858rm -f conftest.$ac_objext
0ebeb530
JW
18859if { (ac_try="$ac_compile"
18860case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18863esac
18864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18865 (eval "$ac_compile") 2>conftest.er1
ea64a36a
DT
18866 ac_status=$?
18867 grep -v '^ *+' conftest.er1 >conftest.err
18868 rm -f conftest.er1
18869 cat conftest.err >&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18871 (exit $ac_status); } && {
18872 test -z "$ac_c_werror_flag" ||
18873 test ! -s conftest.err
18874 } && test -s conftest.$ac_objext; then
ea64a36a
DT
18875 ac_cv_member_scsireq_t_cmd=yes
18876else
18877 echo "$as_me: failed program was:" >&5
18878sed 's/^/| /' conftest.$ac_ext >&5
18879
fc6ffb29 18880 ac_cv_member_scsireq_t_cmd=no
ea64a36a 18881fi
fc6ffb29 18882
0ebeb530 18883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea64a36a 18884fi
fc6ffb29 18885
0ebeb530 18886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea64a36a 18887fi
fc6ffb29
AJ
18888{ echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
18889echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
ea64a36a
DT
18890if test $ac_cv_member_scsireq_t_cmd = yes; then
18891
18892cat >>confdefs.h <<_ACEOF
18893#define HAVE_SCSIREQ_T_CMD 1
18894_ACEOF
18895
18896
18897fi
fc6ffb29
AJ
18898{ echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
18899echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
ea64a36a
DT
18900if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
18901 echo $ECHO_N "(cached) $ECHO_C" >&6
18902else
18903 cat >conftest.$ac_ext <<_ACEOF
18904/* confdefs.h. */
18905_ACEOF
18906cat confdefs.h >>conftest.$ac_ext
18907cat >>conftest.$ac_ext <<_ACEOF
18908/* end confdefs.h. */
18909#include <sys/types.h>
18910#ifdef HAVE_SCSI_SG_H
18911#include <scsi/sg.h>
18912#endif
18913
18914int
18915main ()
18916{
18917static sg_io_hdr_t ac_aggr;
18918if (ac_aggr.interface_id)
18919return 0;
18920 ;
18921 return 0;
18922}
18923_ACEOF
18924rm -f conftest.$ac_objext
0ebeb530
JW
18925if { (ac_try="$ac_compile"
18926case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18929esac
18930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_compile") 2>conftest.er1
ea64a36a
DT
18932 ac_status=$?
18933 grep -v '^ *+' conftest.er1 >conftest.err
18934 rm -f conftest.er1
18935 cat conftest.err >&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18937 (exit $ac_status); } && {
18938 test -z "$ac_c_werror_flag" ||
18939 test ! -s conftest.err
18940 } && test -s conftest.$ac_objext; then
ea64a36a
DT
18941 ac_cv_member_sg_io_hdr_t_interface_id=yes
18942else
18943 echo "$as_me: failed program was:" >&5
18944sed 's/^/| /' conftest.$ac_ext >&5
18945
fc6ffb29 18946 cat >conftest.$ac_ext <<_ACEOF
ea64a36a
DT
18947/* confdefs.h. */
18948_ACEOF
18949cat confdefs.h >>conftest.$ac_ext
18950cat >>conftest.$ac_ext <<_ACEOF
18951/* end confdefs.h. */
18952#include <sys/types.h>
18953#ifdef HAVE_SCSI_SG_H
18954#include <scsi/sg.h>
18955#endif
18956
18957int
18958main ()
18959{
18960static sg_io_hdr_t ac_aggr;
18961if (sizeof ac_aggr.interface_id)
18962return 0;
18963 ;
18964 return 0;
18965}
18966_ACEOF
18967rm -f conftest.$ac_objext
0ebeb530
JW
18968if { (ac_try="$ac_compile"
18969case "(($ac_try" in
18970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18971 *) ac_try_echo=$ac_try;;
18972esac
18973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18974 (eval "$ac_compile") 2>conftest.er1
ea64a36a
DT
18975 ac_status=$?
18976 grep -v '^ *+' conftest.er1 >conftest.err
18977 rm -f conftest.er1
18978 cat conftest.err >&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18980 (exit $ac_status); } && {
18981 test -z "$ac_c_werror_flag" ||
18982 test ! -s conftest.err
18983 } && test -s conftest.$ac_objext; then
ea64a36a
DT
18984 ac_cv_member_sg_io_hdr_t_interface_id=yes
18985else
18986 echo "$as_me: failed program was:" >&5
18987sed 's/^/| /' conftest.$ac_ext >&5
18988
fc6ffb29 18989 ac_cv_member_sg_io_hdr_t_interface_id=no
ea64a36a 18990fi
fc6ffb29 18991
0ebeb530 18992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea64a36a 18993fi
fc6ffb29 18994
0ebeb530 18995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea64a36a 18996fi
fc6ffb29
AJ
18997{ echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
18998echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
ea64a36a
DT
18999if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
19000
19001cat >>confdefs.h <<_ACEOF
19002#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
19003_ACEOF
19004
19005
19006fi
19007
19008
fc6ffb29
AJ
19009{ echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19010echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
5537dbbf
AJ
19011if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013else
19014 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
19015/* confdefs.h. */
19016_ACEOF
19017cat confdefs.h >>conftest.$ac_ext
19018cat >>conftest.$ac_ext <<_ACEOF
19019/* end confdefs.h. */
19020#include <signal.h>
19021
19022int
19023main ()
19024{
19025static siginfo_t ac_aggr;
19026if (ac_aggr.si_fd)
19027return 0;
19028 ;
19029 return 0;
19030}
19031_ACEOF
19032rm -f conftest.$ac_objext
0ebeb530
JW
19033if { (ac_try="$ac_compile"
19034case "(($ac_try" in
19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036 *) ac_try_echo=$ac_try;;
19037esac
19038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039 (eval "$ac_compile") 2>conftest.er1
5537dbbf 19040 ac_status=$?
875927f6
AJ
19041 grep -v '^ *+' conftest.er1 >conftest.err
19042 rm -f conftest.er1
19043 cat conftest.err >&5
5537dbbf 19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19045 (exit $ac_status); } && {
19046 test -z "$ac_c_werror_flag" ||
19047 test ! -s conftest.err
19048 } && test -s conftest.$ac_objext; then
5537dbbf
AJ
19049 ac_cv_member_siginfo_t_si_fd=yes
19050else
19051 echo "$as_me: failed program was:" >&5
19052sed 's/^/| /' conftest.$ac_ext >&5
19053
fc6ffb29 19054 cat >conftest.$ac_ext <<_ACEOF
5537dbbf 19055/* confdefs.h. */
daa2886c 19056_ACEOF
5537dbbf
AJ
19057cat confdefs.h >>conftest.$ac_ext
19058cat >>conftest.$ac_ext <<_ACEOF
19059/* end confdefs.h. */
19060#include <signal.h>
2d33ab91 19061
5537dbbf
AJ
19062int
19063main ()
19064{
19065static siginfo_t ac_aggr;
19066if (sizeof ac_aggr.si_fd)
19067return 0;
19068 ;
19069 return 0;
19070}
19071_ACEOF
19072rm -f conftest.$ac_objext
0ebeb530
JW
19073if { (ac_try="$ac_compile"
19074case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19077esac
19078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_compile") 2>conftest.er1
5537dbbf 19080 ac_status=$?
875927f6
AJ
19081 grep -v '^ *+' conftest.er1 >conftest.err
19082 rm -f conftest.er1
19083 cat conftest.err >&5
5537dbbf 19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19085 (exit $ac_status); } && {
19086 test -z "$ac_c_werror_flag" ||
19087 test ! -s conftest.err
19088 } && test -s conftest.$ac_objext; then
5537dbbf
AJ
19089 ac_cv_member_siginfo_t_si_fd=yes
19090else
19091 echo "$as_me: failed program was:" >&5
19092sed 's/^/| /' conftest.$ac_ext >&5
19093
fc6ffb29 19094 ac_cv_member_siginfo_t_si_fd=no
5537dbbf 19095fi
fc6ffb29 19096
0ebeb530 19097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 19098fi
fc6ffb29 19099
0ebeb530 19100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2d33ab91 19101fi
fc6ffb29
AJ
19102{ echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19103echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
5537dbbf 19104if test $ac_cv_member_siginfo_t_si_fd = yes; then
2d33ab91 19105
5537dbbf
AJ
19106cat >>confdefs.h <<_ACEOF
19107#define HAVE_SIGINFO_T_SI_FD 1
19108_ACEOF
19109
19110
19111fi
daa2886c
AJ
19112
19113
fc6ffb29
AJ
19114{ echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
19115echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
36bdc64e
GP
19116if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
19117 echo $ECHO_N "(cached) $ECHO_C" >&6
19118else
19119 cat >conftest.$ac_ext <<_ACEOF
19120/* confdefs.h. */
19121_ACEOF
19122cat confdefs.h >>conftest.$ac_ext
19123cat >>conftest.$ac_ext <<_ACEOF
19124/* end confdefs.h. */
368dab37 19125#include <sys/types.h>
36bdc64e
GP
19126#ifdef HAVE_SYS_MTIO_H
19127#include <sys/mtio.h>
19128#endif
19129
19130int
19131main ()
19132{
19133static struct mtget ac_aggr;
19134if (ac_aggr.mt_blksiz)
19135return 0;
19136 ;
19137 return 0;
19138}
19139_ACEOF
19140rm -f conftest.$ac_objext
0ebeb530
JW
19141if { (ac_try="$ac_compile"
19142case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19145esac
19146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_compile") 2>conftest.er1
36bdc64e
GP
19148 ac_status=$?
19149 grep -v '^ *+' conftest.er1 >conftest.err
19150 rm -f conftest.er1
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19153 (exit $ac_status); } && {
19154 test -z "$ac_c_werror_flag" ||
19155 test ! -s conftest.err
19156 } && test -s conftest.$ac_objext; then
36bdc64e
GP
19157 ac_cv_member_struct_mtget_mt_blksiz=yes
19158else
19159 echo "$as_me: failed program was:" >&5
19160sed 's/^/| /' conftest.$ac_ext >&5
19161
fc6ffb29 19162 cat >conftest.$ac_ext <<_ACEOF
36bdc64e
GP
19163/* confdefs.h. */
19164_ACEOF
19165cat confdefs.h >>conftest.$ac_ext
19166cat >>conftest.$ac_ext <<_ACEOF
19167/* end confdefs.h. */
368dab37 19168#include <sys/types.h>
36bdc64e
GP
19169#ifdef HAVE_SYS_MTIO_H
19170#include <sys/mtio.h>
19171#endif
19172
19173int
19174main ()
19175{
19176static struct mtget ac_aggr;
19177if (sizeof ac_aggr.mt_blksiz)
19178return 0;
19179 ;
19180 return 0;
19181}
19182_ACEOF
19183rm -f conftest.$ac_objext
0ebeb530 19184if { (ac_try="$ac_compile"
dc9f3843 19185case "(($ac_try" in
0ebeb530
JW
19186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187 *) ac_try_echo=$ac_try;;
19188esac
19189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
dc9f3843 19190 (eval "$ac_compile") 2>conftest.er1
36bdc64e 19191 ac_status=$?
dc9f3843
AJ
19192 grep -v '^ *+' conftest.er1 >conftest.err
19193 rm -f conftest.er1
19194 cat conftest.err >&5
36bdc64e 19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19196 (exit $ac_status); } && {
19197 test -z "$ac_c_werror_flag" ||
19198 test ! -s conftest.err
19199 } && test -s conftest.$ac_objext; then
36bdc64e
GP
19200 ac_cv_member_struct_mtget_mt_blksiz=yes
19201else
19202 echo "$as_me: failed program was:" >&5
19203sed 's/^/| /' conftest.$ac_ext >&5
19204
fc6ffb29 19205 ac_cv_member_struct_mtget_mt_blksiz=no
36bdc64e 19206fi
fc6ffb29 19207
0ebeb530 19208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36bdc64e 19209fi
fc6ffb29 19210
0ebeb530 19211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36bdc64e 19212fi
fc6ffb29
AJ
19213{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
19214echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
36bdc64e
GP
19215if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
19216
19217cat >>confdefs.h <<_ACEOF
19218#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
19219_ACEOF
19220
19221
19222fi
fc6ffb29
AJ
19223{ echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
19224echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
36bdc64e
GP
19225if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19227else
19228 cat >conftest.$ac_ext <<_ACEOF
19229/* confdefs.h. */
19230_ACEOF
19231cat confdefs.h >>conftest.$ac_ext
19232cat >>conftest.$ac_ext <<_ACEOF
19233/* end confdefs.h. */
368dab37 19234#include <sys/types.h>
36bdc64e
GP
19235#ifdef HAVE_SYS_MTIO_H
19236#include <sys/mtio.h>
19237#endif
19238
19239int
19240main ()
19241{
19242static struct mtget ac_aggr;
19243if (ac_aggr.mt_gstat)
19244return 0;
19245 ;
19246 return 0;
19247}
19248_ACEOF
19249rm -f conftest.$ac_objext
0ebeb530
JW
19250if { (ac_try="$ac_compile"
19251case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19254esac
19255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_compile") 2>conftest.er1
36bdc64e
GP
19257 ac_status=$?
19258 grep -v '^ *+' conftest.er1 >conftest.err
19259 rm -f conftest.er1
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19262 (exit $ac_status); } && {
19263 test -z "$ac_c_werror_flag" ||
19264 test ! -s conftest.err
19265 } && test -s conftest.$ac_objext; then
36bdc64e
GP
19266 ac_cv_member_struct_mtget_mt_gstat=yes
19267else
19268 echo "$as_me: failed program was:" >&5
19269sed 's/^/| /' conftest.$ac_ext >&5
19270
fc6ffb29 19271 cat >conftest.$ac_ext <<_ACEOF
36bdc64e
GP
19272/* confdefs.h. */
19273_ACEOF
19274cat confdefs.h >>conftest.$ac_ext
19275cat >>conftest.$ac_ext <<_ACEOF
19276/* end confdefs.h. */
368dab37 19277#include <sys/types.h>
36bdc64e
GP
19278#ifdef HAVE_SYS_MTIO_H
19279#include <sys/mtio.h>
19280#endif
19281
19282int
19283main ()
19284{
19285static struct mtget ac_aggr;
19286if (sizeof ac_aggr.mt_gstat)
19287return 0;
19288 ;
19289 return 0;
19290}
19291_ACEOF
19292rm -f conftest.$ac_objext
0ebeb530
JW
19293if { (ac_try="$ac_compile"
19294case "(($ac_try" in
19295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19296 *) ac_try_echo=$ac_try;;
19297esac
19298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19299 (eval "$ac_compile") 2>conftest.er1
36bdc64e
GP
19300 ac_status=$?
19301 grep -v '^ *+' conftest.er1 >conftest.err
19302 rm -f conftest.er1
19303 cat conftest.err >&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19305 (exit $ac_status); } && {
19306 test -z "$ac_c_werror_flag" ||
19307 test ! -s conftest.err
19308 } && test -s conftest.$ac_objext; then
36bdc64e
GP
19309 ac_cv_member_struct_mtget_mt_gstat=yes
19310else
19311 echo "$as_me: failed program was:" >&5
19312sed 's/^/| /' conftest.$ac_ext >&5
19313
fc6ffb29 19314 ac_cv_member_struct_mtget_mt_gstat=no
36bdc64e 19315fi
fc6ffb29 19316
0ebeb530 19317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36bdc64e 19318fi
fc6ffb29 19319
0ebeb530 19320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36bdc64e 19321fi
fc6ffb29
AJ
19322{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
19323echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
36bdc64e
GP
19324if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
19325
19326cat >>confdefs.h <<_ACEOF
19327#define HAVE_STRUCT_MTGET_MT_GSTAT 1
19328_ACEOF
19329
19330
571d9fb0 19331fi
fc6ffb29
AJ
19332{ echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
19333echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
571d9fb0
GP
19334if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19336else
19337 cat >conftest.$ac_ext <<_ACEOF
19338/* confdefs.h. */
19339_ACEOF
19340cat confdefs.h >>conftest.$ac_ext
19341cat >>conftest.$ac_ext <<_ACEOF
19342/* end confdefs.h. */
368dab37 19343#include <sys/types.h>
571d9fb0
GP
19344#ifdef HAVE_SYS_MTIO_H
19345#include <sys/mtio.h>
19346#endif
19347
19348int
19349main ()
19350{
19351static struct mtget ac_aggr;
19352if (ac_aggr.mt_blkno)
19353return 0;
19354 ;
19355 return 0;
19356}
19357_ACEOF
19358rm -f conftest.$ac_objext
0ebeb530
JW
19359if { (ac_try="$ac_compile"
19360case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19363esac
19364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_compile") 2>conftest.er1
571d9fb0
GP
19366 ac_status=$?
19367 grep -v '^ *+' conftest.er1 >conftest.err
19368 rm -f conftest.er1
19369 cat conftest.err >&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19371 (exit $ac_status); } && {
19372 test -z "$ac_c_werror_flag" ||
19373 test ! -s conftest.err
19374 } && test -s conftest.$ac_objext; then
571d9fb0
GP
19375 ac_cv_member_struct_mtget_mt_blkno=yes
19376else
19377 echo "$as_me: failed program was:" >&5
19378sed 's/^/| /' conftest.$ac_ext >&5
19379
fc6ffb29 19380 cat >conftest.$ac_ext <<_ACEOF
571d9fb0
GP
19381/* confdefs.h. */
19382_ACEOF
19383cat confdefs.h >>conftest.$ac_ext
19384cat >>conftest.$ac_ext <<_ACEOF
19385/* end confdefs.h. */
368dab37 19386#include <sys/types.h>
571d9fb0
GP
19387#ifdef HAVE_SYS_MTIO_H
19388#include <sys/mtio.h>
19389#endif
19390
19391int
19392main ()
19393{
19394static struct mtget ac_aggr;
19395if (sizeof ac_aggr.mt_blkno)
19396return 0;
19397 ;
19398 return 0;
19399}
19400_ACEOF
19401rm -f conftest.$ac_objext
0ebeb530
JW
19402if { (ac_try="$ac_compile"
19403case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19406esac
19407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408 (eval "$ac_compile") 2>conftest.er1
571d9fb0
GP
19409 ac_status=$?
19410 grep -v '^ *+' conftest.er1 >conftest.err
19411 rm -f conftest.er1
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19414 (exit $ac_status); } && {
19415 test -z "$ac_c_werror_flag" ||
19416 test ! -s conftest.err
19417 } && test -s conftest.$ac_objext; then
571d9fb0
GP
19418 ac_cv_member_struct_mtget_mt_blkno=yes
19419else
19420 echo "$as_me: failed program was:" >&5
19421sed 's/^/| /' conftest.$ac_ext >&5
19422
fc6ffb29 19423 ac_cv_member_struct_mtget_mt_blkno=no
571d9fb0 19424fi
fc6ffb29 19425
0ebeb530 19426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
571d9fb0 19427fi
fc6ffb29 19428
0ebeb530 19429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
571d9fb0 19430fi
fc6ffb29
AJ
19431{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
19432echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
571d9fb0
GP
19433if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
19434
19435cat >>confdefs.h <<_ACEOF
19436#define HAVE_STRUCT_MTGET_MT_BLKNO 1
19437_ACEOF
19438
19439
36bdc64e
GP
19440fi
19441
19442
fc6ffb29
AJ
19443{ echo "$as_me:$LINENO: checking for struct option.name" >&5
19444echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
db89a54b
AJ
19445if test "${ac_cv_member_struct_option_name+set}" = set; then
19446 echo $ECHO_N "(cached) $ECHO_C" >&6
19447else
19448 cat >conftest.$ac_ext <<_ACEOF
db89a54b
AJ
19449/* confdefs.h. */
19450_ACEOF
19451cat confdefs.h >>conftest.$ac_ext
19452cat >>conftest.$ac_ext <<_ACEOF
19453/* end confdefs.h. */
19454#ifdef HAVE_GETOPT_H
19455#include <getopt.h>
19456#endif
19457
19458int
19459main ()
19460{
19461static struct option ac_aggr;
19462if (ac_aggr.name)
19463return 0;
19464 ;
19465 return 0;
19466}
19467_ACEOF
19468rm -f conftest.$ac_objext
0ebeb530
JW
19469if { (ac_try="$ac_compile"
19470case "(($ac_try" in
19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472 *) ac_try_echo=$ac_try;;
19473esac
19474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19475 (eval "$ac_compile") 2>conftest.er1
db89a54b 19476 ac_status=$?
875927f6
AJ
19477 grep -v '^ *+' conftest.er1 >conftest.err
19478 rm -f conftest.er1
19479 cat conftest.err >&5
db89a54b 19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19481 (exit $ac_status); } && {
19482 test -z "$ac_c_werror_flag" ||
19483 test ! -s conftest.err
19484 } && test -s conftest.$ac_objext; then
db89a54b
AJ
19485 ac_cv_member_struct_option_name=yes
19486else
19487 echo "$as_me: failed program was:" >&5
19488sed 's/^/| /' conftest.$ac_ext >&5
19489
fc6ffb29 19490 cat >conftest.$ac_ext <<_ACEOF
db89a54b
AJ
19491/* confdefs.h. */
19492_ACEOF
19493cat confdefs.h >>conftest.$ac_ext
19494cat >>conftest.$ac_ext <<_ACEOF
19495/* end confdefs.h. */
19496#ifdef HAVE_GETOPT_H
19497#include <getopt.h>
19498#endif
19499
19500int
19501main ()
19502{
19503static struct option ac_aggr;
19504if (sizeof ac_aggr.name)
19505return 0;
19506 ;
19507 return 0;
19508}
19509_ACEOF
19510rm -f conftest.$ac_objext
0ebeb530
JW
19511if { (ac_try="$ac_compile"
19512case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19515esac
19516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_compile") 2>conftest.er1
db89a54b 19518 ac_status=$?
875927f6
AJ
19519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
db89a54b 19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19523 (exit $ac_status); } && {
19524 test -z "$ac_c_werror_flag" ||
19525 test ! -s conftest.err
19526 } && test -s conftest.$ac_objext; then
db89a54b
AJ
19527 ac_cv_member_struct_option_name=yes
19528else
19529 echo "$as_me: failed program was:" >&5
19530sed 's/^/| /' conftest.$ac_ext >&5
19531
fc6ffb29 19532 ac_cv_member_struct_option_name=no
db89a54b 19533fi
fc6ffb29 19534
0ebeb530 19535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
db89a54b 19536fi
fc6ffb29 19537
0ebeb530 19538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
db89a54b 19539fi
fc6ffb29
AJ
19540{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19541echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
db89a54b
AJ
19542if test $ac_cv_member_struct_option_name = yes; then
19543
19544cat >>confdefs.h <<_ACEOF
19545#define HAVE_STRUCT_OPTION_NAME 1
19546_ACEOF
19547
19548
19549fi
19550
19551
fc6ffb29
AJ
19552{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19553echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
d6507196
PR
19554if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556else
19557 cat >conftest.$ac_ext <<_ACEOF
d6507196
PR
19558/* confdefs.h. */
19559_ACEOF
19560cat confdefs.h >>conftest.$ac_ext
19561cat >>conftest.$ac_ext <<_ACEOF
19562/* end confdefs.h. */
19563$ac_includes_default
19564int
19565main ()
19566{
19567static struct stat ac_aggr;
19568if (ac_aggr.st_blocks)
19569return 0;
19570 ;
19571 return 0;
19572}
19573_ACEOF
19574rm -f conftest.$ac_objext
0ebeb530
JW
19575if { (ac_try="$ac_compile"
19576case "(($ac_try" in
19577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19578 *) ac_try_echo=$ac_try;;
19579esac
19580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19581 (eval "$ac_compile") 2>conftest.er1
d6507196 19582 ac_status=$?
875927f6
AJ
19583 grep -v '^ *+' conftest.er1 >conftest.err
19584 rm -f conftest.er1
19585 cat conftest.err >&5
d6507196 19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19587 (exit $ac_status); } && {
19588 test -z "$ac_c_werror_flag" ||
19589 test ! -s conftest.err
19590 } && test -s conftest.$ac_objext; then
d6507196
PR
19591 ac_cv_member_struct_stat_st_blocks=yes
19592else
19593 echo "$as_me: failed program was:" >&5
19594sed 's/^/| /' conftest.$ac_ext >&5
19595
fc6ffb29 19596 cat >conftest.$ac_ext <<_ACEOF
d6507196
PR
19597/* confdefs.h. */
19598_ACEOF
19599cat confdefs.h >>conftest.$ac_ext
19600cat >>conftest.$ac_ext <<_ACEOF
19601/* end confdefs.h. */
19602$ac_includes_default
19603int
19604main ()
19605{
19606static struct stat ac_aggr;
19607if (sizeof ac_aggr.st_blocks)
19608return 0;
19609 ;
19610 return 0;
19611}
19612_ACEOF
19613rm -f conftest.$ac_objext
0ebeb530
JW
19614if { (ac_try="$ac_compile"
19615case "(($ac_try" in
19616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617 *) ac_try_echo=$ac_try;;
19618esac
19619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19620 (eval "$ac_compile") 2>conftest.er1
d6507196 19621 ac_status=$?
875927f6
AJ
19622 grep -v '^ *+' conftest.er1 >conftest.err
19623 rm -f conftest.er1
19624 cat conftest.err >&5
d6507196 19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19626 (exit $ac_status); } && {
19627 test -z "$ac_c_werror_flag" ||
19628 test ! -s conftest.err
19629 } && test -s conftest.$ac_objext; then
d6507196
PR
19630 ac_cv_member_struct_stat_st_blocks=yes
19631else
19632 echo "$as_me: failed program was:" >&5
19633sed 's/^/| /' conftest.$ac_ext >&5
19634
fc6ffb29 19635 ac_cv_member_struct_stat_st_blocks=no
d6507196 19636fi
fc6ffb29 19637
0ebeb530 19638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6507196 19639fi
fc6ffb29 19640
0ebeb530 19641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6507196 19642fi
fc6ffb29
AJ
19643{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19644echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
d6507196
PR
19645if test $ac_cv_member_struct_stat_st_blocks = yes; then
19646
19647cat >>confdefs.h <<_ACEOF
19648#define HAVE_STRUCT_STAT_ST_BLOCKS 1
19649_ACEOF
19650
19651
19652fi
19653
19654
fc6ffb29
AJ
19655{ echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
19656echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
40a6a74a
VL
19657if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19659else
19660 cat >conftest.$ac_ext <<_ACEOF
19661/* confdefs.h. */
19662_ACEOF
19663cat confdefs.h >>conftest.$ac_ext
19664cat >>conftest.$ac_ext <<_ACEOF
19665/* end confdefs.h. */
19666#ifdef HAVE_SYS_TYPES_H
19667#include <sys/types.h>
19668#endif
19669#ifdef HAVE_NETINET_IN_H
19670#include <netinet/in.h>
19671#endif
19672
19673int
19674main ()
19675{
19676static struct sockaddr_in6 ac_aggr;
19677if (ac_aggr.sin6_scope_id)
19678return 0;
19679 ;
19680 return 0;
19681}
19682_ACEOF
19683rm -f conftest.$ac_objext
0ebeb530
JW
19684if { (ac_try="$ac_compile"
19685case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19688esac
19689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_compile") 2>conftest.er1
40a6a74a
VL
19691 ac_status=$?
19692 grep -v '^ *+' conftest.er1 >conftest.err
19693 rm -f conftest.er1
19694 cat conftest.err >&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19696 (exit $ac_status); } && {
19697 test -z "$ac_c_werror_flag" ||
19698 test ! -s conftest.err
19699 } && test -s conftest.$ac_objext; then
40a6a74a
VL
19700 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19701else
19702 echo "$as_me: failed program was:" >&5
19703sed 's/^/| /' conftest.$ac_ext >&5
19704
fc6ffb29 19705 cat >conftest.$ac_ext <<_ACEOF
40a6a74a
VL
19706/* confdefs.h. */
19707_ACEOF
19708cat confdefs.h >>conftest.$ac_ext
19709cat >>conftest.$ac_ext <<_ACEOF
19710/* end confdefs.h. */
19711#ifdef HAVE_SYS_TYPES_H
19712#include <sys/types.h>
19713#endif
19714#ifdef HAVE_NETINET_IN_H
19715#include <netinet/in.h>
19716#endif
19717
19718int
19719main ()
19720{
19721static struct sockaddr_in6 ac_aggr;
19722if (sizeof ac_aggr.sin6_scope_id)
19723return 0;
19724 ;
19725 return 0;
19726}
19727_ACEOF
19728rm -f conftest.$ac_objext
0ebeb530
JW
19729if { (ac_try="$ac_compile"
19730case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19733esac
19734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_compile") 2>conftest.er1
40a6a74a
VL
19736 ac_status=$?
19737 grep -v '^ *+' conftest.er1 >conftest.err
19738 rm -f conftest.er1
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19741 (exit $ac_status); } && {
19742 test -z "$ac_c_werror_flag" ||
19743 test ! -s conftest.err
19744 } && test -s conftest.$ac_objext; then
40a6a74a
VL
19745 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19746else
19747 echo "$as_me: failed program was:" >&5
19748sed 's/^/| /' conftest.$ac_ext >&5
19749
fc6ffb29 19750 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
40a6a74a 19751fi
fc6ffb29 19752
0ebeb530 19753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40a6a74a 19754fi
fc6ffb29 19755
0ebeb530 19756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40a6a74a 19757fi
fc6ffb29
AJ
19758{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
19759echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
40a6a74a
VL
19760if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
19761
19762cat >>confdefs.h <<_ACEOF
19763#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
19764_ACEOF
19765
19766
19767fi
19768
19769
788e30f1
AJ
19770{ echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
19771echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
19772if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19774else
19775 cat >conftest.$ac_ext <<_ACEOF
19776/* confdefs.h. */
19777_ACEOF
19778cat confdefs.h >>conftest.$ac_ext
19779cat >>conftest.$ac_ext <<_ACEOF
19780/* end confdefs.h. */
19781#ifdef HAVE_SYS_TYPES_H
19782#include <sys/types.h>
19783#endif
19784#ifdef HAVE_NETINET_IN_H
19785# include <netinet/in.h>
19786#endif
19787#ifdef HAVE_ARPA_NAMESER_H
19788# include <arpa/nameser.h>
19789#endif
19790
19791int
19792main ()
19793{
19794static ns_msg ac_aggr;
19795if (ac_aggr._msg_ptr)
19796return 0;
19797 ;
19798 return 0;
19799}
19800_ACEOF
19801rm -f conftest.$ac_objext
0ebeb530
JW
19802if { (ac_try="$ac_compile"
19803case "(($ac_try" in
19804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19805 *) ac_try_echo=$ac_try;;
19806esac
19807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19808 (eval "$ac_compile") 2>conftest.er1
788e30f1
AJ
19809 ac_status=$?
19810 grep -v '^ *+' conftest.er1 >conftest.err
19811 rm -f conftest.er1
19812 cat conftest.err >&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19814 (exit $ac_status); } && {
19815 test -z "$ac_c_werror_flag" ||
19816 test ! -s conftest.err
19817 } && test -s conftest.$ac_objext; then
788e30f1
AJ
19818 ac_cv_member_ns_msg__msg_ptr=yes
19819else
19820 echo "$as_me: failed program was:" >&5
19821sed 's/^/| /' conftest.$ac_ext >&5
19822
19823 cat >conftest.$ac_ext <<_ACEOF
19824/* confdefs.h. */
19825_ACEOF
19826cat confdefs.h >>conftest.$ac_ext
19827cat >>conftest.$ac_ext <<_ACEOF
19828/* end confdefs.h. */
19829#ifdef HAVE_SYS_TYPES_H
19830#include <sys/types.h>
19831#endif
19832#ifdef HAVE_NETINET_IN_H
19833# include <netinet/in.h>
19834#endif
19835#ifdef HAVE_ARPA_NAMESER_H
19836# include <arpa/nameser.h>
19837#endif
19838
19839int
19840main ()
19841{
19842static ns_msg ac_aggr;
19843if (sizeof ac_aggr._msg_ptr)
19844return 0;
19845 ;
19846 return 0;
19847}
19848_ACEOF
19849rm -f conftest.$ac_objext
0ebeb530
JW
19850if { (ac_try="$ac_compile"
19851case "(($ac_try" in
19852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853 *) ac_try_echo=$ac_try;;
19854esac
19855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856 (eval "$ac_compile") 2>conftest.er1
788e30f1
AJ
19857 ac_status=$?
19858 grep -v '^ *+' conftest.er1 >conftest.err
19859 rm -f conftest.er1
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19862 (exit $ac_status); } && {
19863 test -z "$ac_c_werror_flag" ||
19864 test ! -s conftest.err
19865 } && test -s conftest.$ac_objext; then
788e30f1
AJ
19866 ac_cv_member_ns_msg__msg_ptr=yes
19867else
19868 echo "$as_me: failed program was:" >&5
19869sed 's/^/| /' conftest.$ac_ext >&5
19870
19871 ac_cv_member_ns_msg__msg_ptr=no
19872fi
19873
0ebeb530 19874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
788e30f1
AJ
19875fi
19876
0ebeb530 19877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
788e30f1
AJ
19878fi
19879{ echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
19880echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
19881if test $ac_cv_member_ns_msg__msg_ptr = yes; then
19882
19883cat >>confdefs.h <<_ACEOF
19884#define HAVE_NS_MSG__MSG_PTR 1
19885_ACEOF
19886
19887
19888fi
19889
19890
fc6ffb29
AJ
19891{ echo "$as_me:$LINENO: checking for timezone variable" >&5
19892echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
6618b035
PK
19893if test "${ac_cv_have_timezone+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19895else
19896 cat >conftest.$ac_ext <<_ACEOF
19897/* confdefs.h. */
19898_ACEOF
19899cat confdefs.h >>conftest.$ac_ext
19900cat >>conftest.$ac_ext <<_ACEOF
19901/* end confdefs.h. */
19902#include <time.h>
19903int
19904main ()
19905{
ff2bd661 19906timezone = 1
6618b035
PK
19907 ;
19908 return 0;
19909}
19910_ACEOF
19911rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
19912if { (ac_try="$ac_link"
19913case "(($ac_try" in
19914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915 *) ac_try_echo=$ac_try;;
19916esac
19917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19918 (eval "$ac_link") 2>conftest.er1
6618b035
PK
19919 ac_status=$?
19920 grep -v '^ *+' conftest.er1 >conftest.err
19921 rm -f conftest.er1
19922 cat conftest.err >&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19924 (exit $ac_status); } && {
19925 test -z "$ac_c_werror_flag" ||
19926 test ! -s conftest.err
19927 } && test -s conftest$ac_exeext &&
19928 $as_test_x conftest$ac_exeext; then
6618b035
PK
19929 ac_cv_have_timezone="yes"
19930else
19931 echo "$as_me: failed program was:" >&5
19932sed 's/^/| /' conftest.$ac_ext >&5
19933
fc6ffb29 19934 ac_cv_have_timezone="no"
6618b035 19935fi
fc6ffb29 19936
f0ca586f 19937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6618b035
PK
19938 conftest$ac_exeext conftest.$ac_ext
19939fi
fc6ffb29
AJ
19940{ echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
19941echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
6618b035
PK
19942if test "$ac_cv_have_timezone" = "yes"
19943then
19944
19945cat >>confdefs.h <<\_ACEOF
19946#define HAVE_TIMEZONE 1
19947_ACEOF
19948
19949fi
fc6ffb29
AJ
19950{ echo "$as_me:$LINENO: checking for daylight variable" >&5
19951echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
6618b035
PK
19952if test "${ac_cv_have_daylight+set}" = set; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19954else
19955 cat >conftest.$ac_ext <<_ACEOF
19956/* confdefs.h. */
19957_ACEOF
19958cat confdefs.h >>conftest.$ac_ext
19959cat >>conftest.$ac_ext <<_ACEOF
19960/* end confdefs.h. */
19961#include <time.h>
19962int
19963main ()
19964{
ff2bd661 19965daylight = 1
6618b035
PK
19966 ;
19967 return 0;
19968}
19969_ACEOF
19970rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
19971if { (ac_try="$ac_link"
19972case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19975esac
19976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_link") 2>conftest.er1
6618b035
PK
19978 ac_status=$?
19979 grep -v '^ *+' conftest.er1 >conftest.err
19980 rm -f conftest.er1
19981 cat conftest.err >&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19983 (exit $ac_status); } && {
19984 test -z "$ac_c_werror_flag" ||
19985 test ! -s conftest.err
19986 } && test -s conftest$ac_exeext &&
19987 $as_test_x conftest$ac_exeext; then
6618b035
PK
19988 ac_cv_have_daylight="yes"
19989else
19990 echo "$as_me: failed program was:" >&5
19991sed 's/^/| /' conftest.$ac_ext >&5
19992
fc6ffb29 19993 ac_cv_have_daylight="no"
6618b035 19994fi
fc6ffb29 19995
f0ca586f 19996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6618b035
PK
19997 conftest$ac_exeext conftest.$ac_ext
19998fi
fc6ffb29
AJ
19999{ echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
20000echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
6618b035
PK
20001if test "$ac_cv_have_daylight" = "yes"
20002then
20003
20004cat >>confdefs.h <<\_ACEOF
20005#define HAVE_DAYLIGHT 1
20006_ACEOF
20007
20008fi
20009
daa2886c 20010
fc01b729 20011case $host_cpu in
fc6ffb29
AJ
20012 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
20013echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
05783b55 20014if test "${ac_cv_cpp_def___i386__+set}" = set; then
f5818d2f 20015 echo $ECHO_N "(cached) $ECHO_C" >&6
51d46ba9 20016else
f5818d2f 20017 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
20018/* confdefs.h. */
20019_ACEOF
20020cat confdefs.h >>conftest.$ac_ext
20021cat >>conftest.$ac_ext <<_ACEOF
20022/* end confdefs.h. */
f5818d2f 20023#ifndef __i386__
51d46ba9
AJ
20024yes
20025#endif
f5818d2f 20026_ACEOF
51d46ba9 20027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 20028 $EGREP "yes" >/dev/null 2>&1; then
05783b55 20029 ac_cv_cpp_def___i386__=yes
51d46ba9 20030else
05783b55 20031 ac_cv_cpp_def___i386__=no
51d46ba9
AJ
20032fi
20033rm -f conftest*
20034
20035fi
fc6ffb29
AJ
20036{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20037echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
05783b55
AJ
20038if test $ac_cv_cpp_def___i386__ = yes; then
20039 CFLAGS="$CFLAGS -D__i386__"
20040 LINTFLAGS="$LINTFLAGS -D__i386__"
e3be5642
AJ
20041fi
20042 ;;
fc6ffb29
AJ
20043 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
20044echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
e3be5642
AJ
20045if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
20047else
20048 cat >conftest.$ac_ext <<_ACEOF
20049/* confdefs.h. */
20050_ACEOF
20051cat confdefs.h >>conftest.$ac_ext
20052cat >>conftest.$ac_ext <<_ACEOF
20053/* end confdefs.h. */
20054#ifndef __x86_64__
20055yes
20056#endif
20057_ACEOF
20058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20059 $EGREP "yes" >/dev/null 2>&1; then
20060 ac_cv_cpp_def___x86_64__=yes
20061else
20062 ac_cv_cpp_def___x86_64__=no
20063fi
20064rm -f conftest*
20065
20066fi
fc6ffb29
AJ
20067{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
20068echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
e3be5642
AJ
20069if test $ac_cv_cpp_def___x86_64__ = yes; then
20070 CFLAGS="$CFLAGS -D__x86_64__"
20071 LINTFLAGS="$LINTFLAGS -D__x86_64__"
51d46ba9 20072fi
05783b55 20073 ;;
fc6ffb29
AJ
20074 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
20075echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
05783b55 20076if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
69b67861
SE
20077 echo $ECHO_N "(cached) $ECHO_C" >&6
20078else
20079 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
20080/* confdefs.h. */
20081_ACEOF
20082cat confdefs.h >>conftest.$ac_ext
20083cat >>conftest.$ac_ext <<_ACEOF
20084/* end confdefs.h. */
69b67861
SE
20085#ifndef __ALPHA__
20086yes
20087#endif
20088_ACEOF
20089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20090 $EGREP "yes" >/dev/null 2>&1; then
05783b55 20091 ac_cv_cpp_def___ALPHA__=yes
69b67861 20092else
05783b55 20093 ac_cv_cpp_def___ALPHA__=no
69b67861
SE
20094fi
20095rm -f conftest*
20096
20097fi
fc6ffb29
AJ
20098{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20099echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
05783b55
AJ
20100if test $ac_cv_cpp_def___ALPHA__ = yes; then
20101 CFLAGS="$CFLAGS -D__ALPHA__"
20102 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
69b67861 20103fi
05783b55 20104 ;;
fc6ffb29
AJ
20105 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20106echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
05783b55 20107if test "${ac_cv_cpp_def___sparc__+set}" = set; then
57807fa1
GM
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
20109else
20110 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
20111/* confdefs.h. */
20112_ACEOF
20113cat confdefs.h >>conftest.$ac_ext
20114cat >>conftest.$ac_ext <<_ACEOF
20115/* end confdefs.h. */
57807fa1
GM
20116#ifndef __sparc__
20117yes
20118#endif
20119_ACEOF
20120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 20121 $EGREP "yes" >/dev/null 2>&1; then
05783b55 20122 ac_cv_cpp_def___sparc__=yes
57807fa1 20123else
05783b55 20124 ac_cv_cpp_def___sparc__=no
57807fa1
GM
20125fi
20126rm -f conftest*
20127
20128fi
fc6ffb29
AJ
20129{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20130echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
05783b55
AJ
20131if test $ac_cv_cpp_def___sparc__ = yes; then
20132 CFLAGS="$CFLAGS -D__sparc__"
20133 LINTFLAGS="$LINTFLAGS -D__sparc__"
b64b7deb
PH
20134fi
20135 ;;
fc6ffb29
AJ
20136 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20137echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
b64b7deb
PH
20138if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20139 echo $ECHO_N "(cached) $ECHO_C" >&6
20140else
20141 cat >conftest.$ac_ext <<_ACEOF
b64b7deb
PH
20142/* confdefs.h. */
20143_ACEOF
20144cat confdefs.h >>conftest.$ac_ext
20145cat >>conftest.$ac_ext <<_ACEOF
20146/* end confdefs.h. */
20147#ifndef __powerpc__
20148yes
20149#endif
20150_ACEOF
20151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20152 $EGREP "yes" >/dev/null 2>&1; then
20153 ac_cv_cpp_def___powerpc__=yes
20154else
20155 ac_cv_cpp_def___powerpc__=no
20156fi
20157rm -f conftest*
20158
20159fi
fc6ffb29
AJ
20160{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20161echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
b64b7deb
PH
20162if test $ac_cv_cpp_def___powerpc__ = yes; then
20163 CFLAGS="$CFLAGS -D__powerpc__"
20164 LINTFLAGS="$LINTFLAGS -D__powerpc__"
57807fa1 20165fi
05783b55
AJ
20166 ;;
20167esac
57807fa1
GM
20168
20169case $host_vendor in
fc6ffb29
AJ
20170 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20171echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
05783b55 20172if test "${ac_cv_cpp_def___sun__+set}" = set; then
57807fa1
GM
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20174else
20175 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
20176/* confdefs.h. */
20177_ACEOF
20178cat confdefs.h >>conftest.$ac_ext
20179cat >>conftest.$ac_ext <<_ACEOF
20180/* end confdefs.h. */
57807fa1
GM
20181#ifndef __sun__
20182yes
20183#endif
20184_ACEOF
20185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 20186 $EGREP "yes" >/dev/null 2>&1; then
05783b55 20187 ac_cv_cpp_def___sun__=yes
57807fa1 20188else
05783b55 20189 ac_cv_cpp_def___sun__=no
57807fa1
GM
20190fi
20191rm -f conftest*
20192
20193fi
fc6ffb29
AJ
20194{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20195echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
05783b55
AJ
20196if test $ac_cv_cpp_def___sun__ = yes; then
20197 CFLAGS="$CFLAGS -D__sun__"
20198 LINTFLAGS="$LINTFLAGS -D__sun__"
57807fa1 20199fi
05783b55
AJ
20200 ;;
20201esac
57807fa1
GM
20202
20203
32ab895e
AJ
20204DEPENDENCIES="### Dependencies:
20205
8598a4c6
AJ
20206.INIT: Makefile
20207.BEGIN: Makefile
20208Makefile: dummy
20209 -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS)
20210
a4b6ee36 20211\$(OBJS): \$(IDL_GEN_HEADERS)
12c19620 20212\$(IDL_GEN_C_SRCS:.c=.o): \$(IDL_GEN_C_SRCS)
32ab895e
AJ
20213\$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
20214\$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"
20215
20216
daa2886c
AJ
20217
20218
20219
c4704c2d
AJ
20220ac_config_commands="$ac_config_commands include/stamp-h"
20221
20222
7dfc4477 20223ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
89118568 20224
7dfc4477 20225ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
89118568 20226
1c60e3bf 20227ac_config_commands="$ac_config_commands dlls/kernel32/nls"
f5818d2f 20228
b8a2e3b8 20229ac_config_commands="$ac_config_commands dlls/user32/resources"
f5818d2f 20230
fc6ffb29 20231ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
f5818d2f 20232
fc6ffb29 20233ac_config_commands="$ac_config_commands include/wine"
f5818d2f 20234
f5818d2f
AJ
20235
20236MAKE_RULES=Make.rules
20237
daa2886c 20238
f5818d2f 20239MAKE_DLL_RULES=dlls/Makedll.rules
d0edc5fe 20240
daa2886c 20241
633b12d5
AJ
20242MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
20243
20244
edeee89c
AJ
20245MAKE_TEST_RULES=dlls/Maketest.rules
20246
20247
626f425b
AJ
20248MAKE_PROG_RULES=programs/Makeprog.rules
20249
daa2886c 20250
fbc80d79
MM
20251ac_config_files="$ac_config_files Make.rules"
20252
20253ac_config_files="$ac_config_files dlls/Makedll.rules"
20254
20255ac_config_files="$ac_config_files dlls/Makeimplib.rules"
20256
20257ac_config_files="$ac_config_files dlls/Maketest.rules"
20258
20259ac_config_files="$ac_config_files programs/Makeprog.rules"
20260
20261ac_config_files="$ac_config_files Makefile"
20262
20263ac_config_files="$ac_config_files dlls/Makefile"
20264
0da02fb2
EP
20265ac_config_files="$ac_config_files dlls/acledit/Makefile"
20266
fbc80d79
MM
20267ac_config_files="$ac_config_files dlls/activeds/Makefile"
20268
20269ac_config_files="$ac_config_files dlls/advapi32/Makefile"
20270
20271ac_config_files="$ac_config_files dlls/advapi32/tests/Makefile"
20272
20273ac_config_files="$ac_config_files dlls/advpack/Makefile"
20274
20275ac_config_files="$ac_config_files dlls/advpack/tests/Makefile"
20276
20277ac_config_files="$ac_config_files dlls/amstream/Makefile"
20278
20279ac_config_files="$ac_config_files dlls/atl/Makefile"
20280
20281ac_config_files="$ac_config_files dlls/avicap32/Makefile"
20282
20283ac_config_files="$ac_config_files dlls/avifil32/Makefile"
20284
20285ac_config_files="$ac_config_files dlls/browseui/Makefile"
20286
20287ac_config_files="$ac_config_files dlls/browseui/tests/Makefile"
20288
20289ac_config_files="$ac_config_files dlls/cabinet/Makefile"
20290
20291ac_config_files="$ac_config_files dlls/cabinet/tests/Makefile"
20292
20293ac_config_files="$ac_config_files dlls/capi2032/Makefile"
20294
20295ac_config_files="$ac_config_files dlls/cards/Makefile"
20296
20297ac_config_files="$ac_config_files dlls/cfgmgr32/Makefile"
20298
20299ac_config_files="$ac_config_files dlls/clusapi/Makefile"
20300
20301ac_config_files="$ac_config_files dlls/comcat/Makefile"
20302
20303ac_config_files="$ac_config_files dlls/comcat/tests/Makefile"
20304
20305ac_config_files="$ac_config_files dlls/comctl32/Makefile"
20306
20307ac_config_files="$ac_config_files dlls/comctl32/tests/Makefile"
20308
20309ac_config_files="$ac_config_files dlls/comdlg32/Makefile"
20310
20311ac_config_files="$ac_config_files dlls/comdlg32/tests/Makefile"
20312
20313ac_config_files="$ac_config_files dlls/compstui/Makefile"
20314
20315ac_config_files="$ac_config_files dlls/credui/Makefile"
20316
20317ac_config_files="$ac_config_files dlls/crtdll/Makefile"
20318
20319ac_config_files="$ac_config_files dlls/crypt32/Makefile"
20320
20321ac_config_files="$ac_config_files dlls/crypt32/tests/Makefile"
20322
20323ac_config_files="$ac_config_files dlls/cryptdll/Makefile"
20324
20325ac_config_files="$ac_config_files dlls/cryptnet/Makefile"
20326
20327ac_config_files="$ac_config_files dlls/ctl3d32/Makefile"
20328
0db109ff
KA
20329ac_config_files="$ac_config_files dlls/d3d10/Makefile"
20330
fbc80d79
MM
20331ac_config_files="$ac_config_files dlls/d3d8/Makefile"
20332
20333ac_config_files="$ac_config_files dlls/d3d8/tests/Makefile"
20334
20335ac_config_files="$ac_config_files dlls/d3d9/Makefile"
20336
20337ac_config_files="$ac_config_files dlls/d3d9/tests/Makefile"
20338
20339ac_config_files="$ac_config_files dlls/d3dim/Makefile"
20340
20341ac_config_files="$ac_config_files dlls/d3drm/Makefile"
20342
f50800b2
DA
20343ac_config_files="$ac_config_files dlls/d3drm/tests/Makefile"
20344
fbc80d79
MM
20345ac_config_files="$ac_config_files dlls/d3dx8/Makefile"
20346
20347ac_config_files="$ac_config_files dlls/d3dxof/Makefile"
20348
20349ac_config_files="$ac_config_files dlls/dbghelp/Makefile"
20350
20351ac_config_files="$ac_config_files dlls/dciman32/Makefile"
20352
20353ac_config_files="$ac_config_files dlls/ddraw/Makefile"
20354
20355ac_config_files="$ac_config_files dlls/ddraw/tests/Makefile"
20356
20357ac_config_files="$ac_config_files dlls/ddrawex/Makefile"
20358
20359ac_config_files="$ac_config_files dlls/devenum/Makefile"
20360
20361ac_config_files="$ac_config_files dlls/dinput/Makefile"
20362
20363ac_config_files="$ac_config_files dlls/dinput/tests/Makefile"
20364
20365ac_config_files="$ac_config_files dlls/dinput8/Makefile"
20366
20367ac_config_files="$ac_config_files dlls/dmband/Makefile"
20368
20369ac_config_files="$ac_config_files dlls/dmcompos/Makefile"
20370
20371ac_config_files="$ac_config_files dlls/dmime/Makefile"
20372
20373ac_config_files="$ac_config_files dlls/dmloader/Makefile"
20374
20375ac_config_files="$ac_config_files dlls/dmscript/Makefile"
20376
20377ac_config_files="$ac_config_files dlls/dmstyle/Makefile"
20378
20379ac_config_files="$ac_config_files dlls/dmsynth/Makefile"
20380
20381ac_config_files="$ac_config_files dlls/dmusic/Makefile"
20382
20383ac_config_files="$ac_config_files dlls/dmusic32/Makefile"
20384
20385ac_config_files="$ac_config_files dlls/dnsapi/Makefile"
20386
20387ac_config_files="$ac_config_files dlls/dnsapi/tests/Makefile"
20388
20389ac_config_files="$ac_config_files dlls/dplay/Makefile"
20390
20391ac_config_files="$ac_config_files dlls/dplayx/Makefile"
20392
d1331e62
AP
20393ac_config_files="$ac_config_files dlls/dplayx/tests/Makefile"
20394
8caf0787
LCBP
20395ac_config_files="$ac_config_files dlls/dpnaddr/Makefile"
20396
fbc80d79
MM
20397ac_config_files="$ac_config_files dlls/dpnet/Makefile"
20398
20399ac_config_files="$ac_config_files dlls/dpnhpast/Makefile"
20400
5996c132
LBP
20401ac_config_files="$ac_config_files dlls/dpnlobby/Makefile"
20402
fbc80d79
MM
20403ac_config_files="$ac_config_files dlls/dsound/Makefile"
20404
20405ac_config_files="$ac_config_files dlls/dsound/tests/Makefile"
20406
20407ac_config_files="$ac_config_files dlls/dswave/Makefile"
20408
c0ddd5e3
KA
20409ac_config_files="$ac_config_files dlls/dwmapi/Makefile"
20410
fbc80d79
MM
20411ac_config_files="$ac_config_files dlls/dxdiagn/Makefile"
20412
20413ac_config_files="$ac_config_files dlls/dxerr8/Makefile"
20414
20415ac_config_files="$ac_config_files dlls/dxerr9/Makefile"
20416
20417ac_config_files="$ac_config_files dlls/dxguid/Makefile"
20418
a2cd6430
PDT
20419ac_config_files="$ac_config_files dlls/faultrep/Makefile"
20420
fbc80d79
MM
20421ac_config_files="$ac_config_files dlls/gdi32/Makefile"
20422
20423ac_config_files="$ac_config_files dlls/gdi32/tests/Makefile"
20424
bed761c9
ES
20425ac_config_files="$ac_config_files dlls/gdiplus/Makefile"
20426
fcd7a62e
ES
20427ac_config_files="$ac_config_files dlls/gdiplus/tests/Makefile"
20428
fbc80d79
MM
20429ac_config_files="$ac_config_files dlls/glu32/Makefile"
20430
20431ac_config_files="$ac_config_files dlls/gphoto2.ds/Makefile"
20432
d2d68702
AJ
20433ac_config_files="$ac_config_files dlls/hal/Makefile"
20434
fbc80d79
MM
20435ac_config_files="$ac_config_files dlls/hhctrl.ocx/Makefile"
20436
20437ac_config_files="$ac_config_files dlls/hid/Makefile"
20438
20439ac_config_files="$ac_config_files dlls/hlink/Makefile"
20440
20441ac_config_files="$ac_config_files dlls/hlink/tests/Makefile"
20442
a00aa039
JL
20443ac_config_files="$ac_config_files dlls/hnetcfg/Makefile"
20444
fbc80d79
MM
20445ac_config_files="$ac_config_files dlls/iccvid/Makefile"
20446
20447ac_config_files="$ac_config_files dlls/icmp/Makefile"
20448
20449ac_config_files="$ac_config_files dlls/ifsmgr.vxd/Makefile"
20450
20451ac_config_files="$ac_config_files dlls/imaadp32.acm/Makefile"
20452
20453ac_config_files="$ac_config_files dlls/imagehlp/Makefile"
20454
20455ac_config_files="$ac_config_files dlls/imm32/Makefile"
20456
20457ac_config_files="$ac_config_files dlls/infosoft/Makefile"
20458
20459ac_config_files="$ac_config_files dlls/infosoft/tests/Makefile"
20460
e9252251
JK
20461ac_config_files="$ac_config_files dlls/inkobj/Makefile"
20462
fbc80d79
MM
20463ac_config_files="$ac_config_files dlls/inseng/Makefile"
20464
20465ac_config_files="$ac_config_files dlls/iphlpapi/Makefile"
20466
20467ac_config_files="$ac_config_files dlls/iphlpapi/tests/Makefile"
20468
20469ac_config_files="$ac_config_files dlls/itss/Makefile"
20470
20471ac_config_files="$ac_config_files dlls/itss/tests/Makefile"
20472
20473ac_config_files="$ac_config_files dlls/kernel32/Makefile"
20474
20475ac_config_files="$ac_config_files dlls/kernel32/tests/Makefile"
20476
20477ac_config_files="$ac_config_files dlls/localspl/Makefile"
20478
20479ac_config_files="$ac_config_files dlls/localspl/tests/Makefile"
20480
d24bc087
DR
20481ac_config_files="$ac_config_files dlls/localui/Makefile"
20482
62e92795
DR
20483ac_config_files="$ac_config_files dlls/localui/tests/Makefile"
20484
fbc80d79
MM
20485ac_config_files="$ac_config_files dlls/lz32/Makefile"
20486
20487ac_config_files="$ac_config_files dlls/lz32/tests/Makefile"
20488
20489ac_config_files="$ac_config_files dlls/mapi32/Makefile"
20490
20491ac_config_files="$ac_config_files dlls/mapi32/tests/Makefile"
20492
20493ac_config_files="$ac_config_files dlls/mciavi32/Makefile"
20494
20495ac_config_files="$ac_config_files dlls/mcicda/Makefile"
20496
20497ac_config_files="$ac_config_files dlls/mciseq/Makefile"
20498
20499ac_config_files="$ac_config_files dlls/mciwave/Makefile"
20500
20501ac_config_files="$ac_config_files dlls/midimap/Makefile"
20502
20503ac_config_files="$ac_config_files dlls/mlang/Makefile"
20504
20505ac_config_files="$ac_config_files dlls/mlang/tests/Makefile"
20506
20507ac_config_files="$ac_config_files dlls/mmdevldr.vxd/Makefile"
20508
20509ac_config_files="$ac_config_files dlls/monodebg.vxd/Makefile"
20510
20511ac_config_files="$ac_config_files dlls/mpr/Makefile"
20512
20513ac_config_files="$ac_config_files dlls/mprapi/Makefile"
20514
20515ac_config_files="$ac_config_files dlls/msacm32.drv/Makefile"
20516
20517ac_config_files="$ac_config_files dlls/msacm32/Makefile"
20518
20519ac_config_files="$ac_config_files dlls/msacm32/tests/Makefile"
20520
20521ac_config_files="$ac_config_files dlls/msadp32.acm/Makefile"
20522
20523ac_config_files="$ac_config_files dlls/mscms/Makefile"
20524
20525ac_config_files="$ac_config_files dlls/mscms/tests/Makefile"
20526
20527ac_config_files="$ac_config_files dlls/mscoree/Makefile"
20528
20529ac_config_files="$ac_config_files dlls/msdmo/Makefile"
20530
20531ac_config_files="$ac_config_files dlls/msftedit/Makefile"
20532
20533ac_config_files="$ac_config_files dlls/msg711.acm/Makefile"
20534
021d06a4
JC
20535ac_config_files="$ac_config_files dlls/mshtml.tlb/Makefile"
20536
fbc80d79
MM
20537ac_config_files="$ac_config_files dlls/mshtml/Makefile"
20538
20539ac_config_files="$ac_config_files dlls/mshtml/tests/Makefile"
20540
20541ac_config_files="$ac_config_files dlls/msi/Makefile"
20542
20543ac_config_files="$ac_config_files dlls/msi/tests/Makefile"
20544
20545ac_config_files="$ac_config_files dlls/msimg32/Makefile"
20546
20547ac_config_files="$ac_config_files dlls/msisys.ocx/Makefile"
20548
20549ac_config_files="$ac_config_files dlls/msnet32/Makefile"
20550
20551ac_config_files="$ac_config_files dlls/msrle32/Makefile"
20552
20553ac_config_files="$ac_config_files dlls/msvcrt/Makefile"
20554
20555ac_config_files="$ac_config_files dlls/msvcrt/tests/Makefile"
20556
20557ac_config_files="$ac_config_files dlls/msvcrt20/Makefile"
20558
20559ac_config_files="$ac_config_files dlls/msvcrt40/Makefile"
20560
20561ac_config_files="$ac_config_files dlls/msvcrtd/Makefile"
20562
20563ac_config_files="$ac_config_files dlls/msvcrtd/tests/Makefile"
20564
20565ac_config_files="$ac_config_files dlls/msvfw32/Makefile"
20566
20567ac_config_files="$ac_config_files dlls/msvidc32/Makefile"
20568
20569ac_config_files="$ac_config_files dlls/mswsock/Makefile"
20570
20571ac_config_files="$ac_config_files dlls/msxml3/Makefile"
20572
20573ac_config_files="$ac_config_files dlls/msxml3/tests/Makefile"
20574
20575ac_config_files="$ac_config_files dlls/nddeapi/Makefile"
20576
20577ac_config_files="$ac_config_files dlls/netapi32/Makefile"
20578
20579ac_config_files="$ac_config_files dlls/netapi32/tests/Makefile"
20580
20581ac_config_files="$ac_config_files dlls/newdev/Makefile"
20582
20583ac_config_files="$ac_config_files dlls/ntdll/Makefile"
20584
20585ac_config_files="$ac_config_files dlls/ntdll/tests/Makefile"
20586
20587ac_config_files="$ac_config_files dlls/ntdsapi/Makefile"
20588
12c169d2
AJ
20589ac_config_files="$ac_config_files dlls/ntoskrnl.exe/Makefile"
20590
a8697b58
DR
20591ac_config_files="$ac_config_files dlls/ntprint/Makefile"
20592
a114483e
DR
20593ac_config_files="$ac_config_files dlls/ntprint/tests/Makefile"
20594
fbc80d79
MM
20595ac_config_files="$ac_config_files dlls/objsel/Makefile"
20596
20597ac_config_files="$ac_config_files dlls/odbc32/Makefile"
20598
20599ac_config_files="$ac_config_files dlls/odbccp32/Makefile"
20600
20601ac_config_files="$ac_config_files dlls/odbccp32/tests/Makefile"
20602
20603ac_config_files="$ac_config_files dlls/ole32/Makefile"
20604
20605ac_config_files="$ac_config_files dlls/ole32/tests/Makefile"
20606
20607ac_config_files="$ac_config_files dlls/oleacc/Makefile"
20608
20609ac_config_files="$ac_config_files dlls/oleaut32/Makefile"
20610
20611ac_config_files="$ac_config_files dlls/oleaut32/tests/Makefile"
20612
20613ac_config_files="$ac_config_files dlls/olecli32/Makefile"
20614
20615ac_config_files="$ac_config_files dlls/oledlg/Makefile"
20616
20617ac_config_files="$ac_config_files dlls/olepro32/Makefile"
20618
20619ac_config_files="$ac_config_files dlls/olesvr32/Makefile"
20620
7db1bd9f
SL
20621ac_config_files="$ac_config_files dlls/olethk32/Makefile"
20622
fbc80d79
MM
20623ac_config_files="$ac_config_files dlls/opengl32/Makefile"
20624
219269c0
RC
20625ac_config_files="$ac_config_files dlls/opengl32/tests/Makefile"
20626
41f15a76
AT
20627ac_config_files="$ac_config_files dlls/pdh/Makefile"
20628
0a6f6874
HL
20629ac_config_files="$ac_config_files dlls/pdh/tests/Makefile"
20630
fbc80d79
MM
20631ac_config_files="$ac_config_files dlls/powrprof/Makefile"
20632
3fd4a536
DR
20633ac_config_files="$ac_config_files dlls/printui/Makefile"
20634
fbc80d79
MM
20635ac_config_files="$ac_config_files dlls/psapi/Makefile"
20636
20637ac_config_files="$ac_config_files dlls/psapi/tests/Makefile"
20638
20639ac_config_files="$ac_config_files dlls/pstorec/Makefile"
20640
20641ac_config_files="$ac_config_files dlls/qcap/Makefile"
20642
20643ac_config_files="$ac_config_files dlls/quartz/Makefile"
20644
20645ac_config_files="$ac_config_files dlls/quartz/tests/Makefile"
20646
20647ac_config_files="$ac_config_files dlls/query/Makefile"
20648
20649ac_config_files="$ac_config_files dlls/rasapi32/Makefile"
20650
20651ac_config_files="$ac_config_files dlls/resutils/Makefile"
20652
20653ac_config_files="$ac_config_files dlls/riched20/Makefile"
20654
20655ac_config_files="$ac_config_files dlls/riched20/tests/Makefile"
20656
20657ac_config_files="$ac_config_files dlls/riched32/Makefile"
20658
20659ac_config_files="$ac_config_files dlls/rpcrt4/Makefile"
20660
20661ac_config_files="$ac_config_files dlls/rpcrt4/tests/Makefile"
20662
20663ac_config_files="$ac_config_files dlls/rsabase/Makefile"
20664
20665ac_config_files="$ac_config_files dlls/rsabase/tests/Makefile"
20666
20667ac_config_files="$ac_config_files dlls/rsaenh/Makefile"
20668
20669ac_config_files="$ac_config_files dlls/rsaenh/tests/Makefile"
20670
20671ac_config_files="$ac_config_files dlls/sane.ds/Makefile"
20672
361c6f20
RS
20673ac_config_files="$ac_config_files dlls/schannel/Makefile"
20674
735df246
YF
20675ac_config_files="$ac_config_files dlls/schannel/tests/Makefile"
20676
fbc80d79
MM
20677ac_config_files="$ac_config_files dlls/secur32/Makefile"
20678
20679ac_config_files="$ac_config_files dlls/secur32/tests/Makefile"
20680
20681ac_config_files="$ac_config_files dlls/security/Makefile"
20682
20683ac_config_files="$ac_config_files dlls/sensapi/Makefile"
20684
20685ac_config_files="$ac_config_files dlls/serialui/Makefile"
20686
20687ac_config_files="$ac_config_files dlls/serialui/tests/Makefile"
20688
20689ac_config_files="$ac_config_files dlls/setupapi/Makefile"
20690
20691ac_config_files="$ac_config_files dlls/setupapi/tests/Makefile"
20692
20693ac_config_files="$ac_config_files dlls/sfc/Makefile"
20694
20695ac_config_files="$ac_config_files dlls/sfc_os/Makefile"
20696
20697ac_config_files="$ac_config_files dlls/shdoclc/Makefile"
20698
20699ac_config_files="$ac_config_files dlls/shdocvw/Makefile"
20700
20701ac_config_files="$ac_config_files dlls/shdocvw/tests/Makefile"
20702
20703ac_config_files="$ac_config_files dlls/shell32/Makefile"
20704
20705ac_config_files="$ac_config_files dlls/shell32/tests/Makefile"
20706
20707ac_config_files="$ac_config_files dlls/shfolder/Makefile"
20708
20709ac_config_files="$ac_config_files dlls/shlwapi/Makefile"
20710
20711ac_config_files="$ac_config_files dlls/shlwapi/tests/Makefile"
20712
20713ac_config_files="$ac_config_files dlls/snmpapi/Makefile"
20714
20715ac_config_files="$ac_config_files dlls/snmpapi/tests/Makefile"
20716
20717ac_config_files="$ac_config_files dlls/spoolss/Makefile"
20718
20719ac_config_files="$ac_config_files dlls/stdole2.tlb/Makefile"
20720
20721ac_config_files="$ac_config_files dlls/stdole32.tlb/Makefile"
20722
20723ac_config_files="$ac_config_files dlls/sti/Makefile"
20724
20725ac_config_files="$ac_config_files dlls/strmiids/Makefile"
20726
20727ac_config_files="$ac_config_files dlls/svrapi/Makefile"
20728
74977dae
ED
20729ac_config_files="$ac_config_files dlls/sxs/Makefile"
20730
fbc80d79
MM
20731ac_config_files="$ac_config_files dlls/tapi32/Makefile"
20732
20733ac_config_files="$ac_config_files dlls/twain_32/Makefile"
20734
20735ac_config_files="$ac_config_files dlls/unicows/Makefile"
20736
20737ac_config_files="$ac_config_files dlls/url/Makefile"
20738
20739ac_config_files="$ac_config_files dlls/urlmon/Makefile"
20740
20741ac_config_files="$ac_config_files dlls/urlmon/tests/Makefile"
20742
20743ac_config_files="$ac_config_files dlls/user32/Makefile"
20744
20745ac_config_files="$ac_config_files dlls/user32/tests/Makefile"
20746
20747ac_config_files="$ac_config_files dlls/userenv/Makefile"
20748
20749ac_config_files="$ac_config_files dlls/usp10/Makefile"
20750
20751ac_config_files="$ac_config_files dlls/usp10/tests/Makefile"
20752
20753ac_config_files="$ac_config_files dlls/uuid/Makefile"
20754
20755ac_config_files="$ac_config_files dlls/uxtheme/Makefile"
20756
20757ac_config_files="$ac_config_files dlls/uxtheme/tests/Makefile"
20758
20759ac_config_files="$ac_config_files dlls/vdhcp.vxd/Makefile"
20760
20761ac_config_files="$ac_config_files dlls/vdmdbg/Makefile"
20762
20763ac_config_files="$ac_config_files dlls/version/Makefile"
20764
20765ac_config_files="$ac_config_files dlls/version/tests/Makefile"
20766
20767ac_config_files="$ac_config_files dlls/vmm.vxd/Makefile"
20768
20769ac_config_files="$ac_config_files dlls/vnbt.vxd/Makefile"
20770
20771ac_config_files="$ac_config_files dlls/vnetbios.vxd/Makefile"
20772
20773ac_config_files="$ac_config_files dlls/vtdapi.vxd/Makefile"
20774
20775ac_config_files="$ac_config_files dlls/vwin32.vxd/Makefile"
20776
20777ac_config_files="$ac_config_files dlls/w32skrnl/Makefile"
20778
20779ac_config_files="$ac_config_files dlls/winealsa.drv/Makefile"
20780
fbc80d79
MM
20781ac_config_files="$ac_config_files dlls/wineaudioio.drv/Makefile"
20782
20783ac_config_files="$ac_config_files dlls/winecoreaudio.drv/Makefile"
20784
20785ac_config_files="$ac_config_files dlls/winecrt0/Makefile"
20786
20787ac_config_files="$ac_config_files dlls/wined3d/Makefile"
20788
20789ac_config_files="$ac_config_files dlls/winedos/Makefile"
20790
20791ac_config_files="$ac_config_files dlls/wineesd.drv/Makefile"
20792
20793ac_config_files="$ac_config_files dlls/winejack.drv/Makefile"
20794
20795ac_config_files="$ac_config_files dlls/winejoystick.drv/Makefile"
20796
20797ac_config_files="$ac_config_files dlls/winemp3.acm/Makefile"
20798
20799ac_config_files="$ac_config_files dlls/winenas.drv/Makefile"
20800
20801ac_config_files="$ac_config_files dlls/wineoss.drv/Makefile"
20802
20803ac_config_files="$ac_config_files dlls/wineps.drv/Makefile"
20804
20805ac_config_files="$ac_config_files dlls/winequartz.drv/Makefile"
20806
20807ac_config_files="$ac_config_files dlls/winex11.drv/Makefile"
20808
20809ac_config_files="$ac_config_files dlls/wing32/Makefile"
20810
21572967
JC
20811ac_config_files="$ac_config_files dlls/winhttp/Makefile"
20812
fbc80d79
MM
20813ac_config_files="$ac_config_files dlls/wininet/Makefile"
20814
20815ac_config_files="$ac_config_files dlls/wininet/tests/Makefile"
20816
20817ac_config_files="$ac_config_files dlls/winmm/Makefile"
20818
20819ac_config_files="$ac_config_files dlls/winmm/tests/Makefile"
20820
20821ac_config_files="$ac_config_files dlls/winnls32/Makefile"
20822
23df68d8
MI
20823ac_config_files="$ac_config_files dlls/winscard/Makefile"
20824
fbc80d79
MM
20825ac_config_files="$ac_config_files dlls/winspool.drv/Makefile"
20826
20827ac_config_files="$ac_config_files dlls/winspool.drv/tests/Makefile"
20828
20829ac_config_files="$ac_config_files dlls/wintab32/Makefile"
20830
20831ac_config_files="$ac_config_files dlls/wintrust/Makefile"
20832
20833ac_config_files="$ac_config_files dlls/wintrust/tests/Makefile"
20834
20835ac_config_files="$ac_config_files dlls/wldap32/Makefile"
20836
20837ac_config_files="$ac_config_files dlls/wnaspi32/Makefile"
20838
20839ac_config_files="$ac_config_files dlls/wow32/Makefile"
20840
20841ac_config_files="$ac_config_files dlls/ws2_32/Makefile"
20842
20843ac_config_files="$ac_config_files dlls/ws2_32/tests/Makefile"
20844
20845ac_config_files="$ac_config_files dlls/wsock32/Makefile"
20846
20847ac_config_files="$ac_config_files dlls/wtsapi32/Makefile"
20848
20849ac_config_files="$ac_config_files documentation/Makefile"
20850
20851ac_config_files="$ac_config_files fonts/Makefile"
20852
20853ac_config_files="$ac_config_files include/Makefile"
20854
20855ac_config_files="$ac_config_files libs/Makefile"
20856
20857ac_config_files="$ac_config_files libs/port/Makefile"
20858
20859ac_config_files="$ac_config_files libs/wine/Makefile"
20860
20861ac_config_files="$ac_config_files libs/wpp/Makefile"
20862
20863ac_config_files="$ac_config_files loader/Makefile"
20864
20865ac_config_files="$ac_config_files programs/Makefile"
20866
20867ac_config_files="$ac_config_files programs/clock/Makefile"
20868
20869ac_config_files="$ac_config_files programs/cmd/Makefile"
20870
20871ac_config_files="$ac_config_files programs/cmdlgtst/Makefile"
20872
20873ac_config_files="$ac_config_files programs/control/Makefile"
20874
20875ac_config_files="$ac_config_files programs/eject/Makefile"
20876
20877ac_config_files="$ac_config_files programs/expand/Makefile"
20878
20879ac_config_files="$ac_config_files programs/explorer/Makefile"
20880
20881ac_config_files="$ac_config_files programs/hh/Makefile"
20882
20883ac_config_files="$ac_config_files programs/icinfo/Makefile"
20884
20885ac_config_files="$ac_config_files programs/iexplore/Makefile"
20886
20887ac_config_files="$ac_config_files programs/msiexec/Makefile"
20888
451616ee
TS
20889ac_config_files="$ac_config_files programs/net/Makefile"
20890
fbc80d79
MM
20891ac_config_files="$ac_config_files programs/notepad/Makefile"
20892
20893ac_config_files="$ac_config_files programs/oleview/Makefile"
20894
20895ac_config_files="$ac_config_files programs/progman/Makefile"
20896
20897ac_config_files="$ac_config_files programs/regedit/Makefile"
20898
20899ac_config_files="$ac_config_files programs/regsvr32/Makefile"
20900
20901ac_config_files="$ac_config_files programs/rpcss/Makefile"
20902
20903ac_config_files="$ac_config_files programs/rundll32/Makefile"
20904
d1ddc9c1
JC
20905ac_config_files="$ac_config_files programs/spoolsv/Makefile"
20906
fbc80d79
MM
20907ac_config_files="$ac_config_files programs/start/Makefile"
20908
20909ac_config_files="$ac_config_files programs/taskmgr/Makefile"
20910
20911ac_config_files="$ac_config_files programs/uninstaller/Makefile"
20912
20913ac_config_files="$ac_config_files programs/view/Makefile"
20914
20915ac_config_files="$ac_config_files programs/wineboot/Makefile"
20916
20917ac_config_files="$ac_config_files programs/winebrowser/Makefile"
20918
20919ac_config_files="$ac_config_files programs/winecfg/Makefile"
20920
20921ac_config_files="$ac_config_files programs/wineconsole/Makefile"
20922
20923ac_config_files="$ac_config_files programs/winedbg/Makefile"
20924
c81d0995
AJ
20925ac_config_files="$ac_config_files programs/winedevice/Makefile"
20926
fbc80d79
MM
20927ac_config_files="$ac_config_files programs/winefile/Makefile"
20928
20929ac_config_files="$ac_config_files programs/winemenubuilder/Makefile"
20930
20931ac_config_files="$ac_config_files programs/winemine/Makefile"
20932
20933ac_config_files="$ac_config_files programs/winepath/Makefile"
20934
20935ac_config_files="$ac_config_files programs/winetest/Makefile"
20936
20937ac_config_files="$ac_config_files programs/winevdm/Makefile"
20938
20939ac_config_files="$ac_config_files programs/winhelp/Makefile"
20940
20941ac_config_files="$ac_config_files programs/winver/Makefile"
20942
20943ac_config_files="$ac_config_files programs/wordpad/Makefile"
20944
2777a94d
MZ
20945ac_config_files="$ac_config_files programs/write/Makefile"
20946
921edab7
JE
20947ac_config_files="$ac_config_files programs/xcopy/Makefile"
20948
fbc80d79
MM
20949ac_config_files="$ac_config_files server/Makefile"
20950
20951ac_config_files="$ac_config_files tools/Makefile"
20952
20953ac_config_files="$ac_config_files tools/widl/Makefile"
20954
20955ac_config_files="$ac_config_files tools/winebuild/Makefile"
20956
20957ac_config_files="$ac_config_files tools/winedump/Makefile"
20958
20959ac_config_files="$ac_config_files tools/winegcc/Makefile"
20960
20961ac_config_files="$ac_config_files tools/wmc/Makefile"
20962
20963ac_config_files="$ac_config_files tools/wrc/Makefile"
daa2886c 20964
626f425b 20965
f5818d2f 20966cat >confcache <<\_ACEOF
e2991ea7
AJ
20967# This file is a shell script that caches the results of configure
20968# tests run on this system so they can be shared between configure
f5818d2f
AJ
20969# scripts and configure runs, see configure's option --config-cache.
20970# It is not useful on other systems. If it contains results you don't
20971# want to keep, you may remove or edit it.
e2991ea7 20972#
f5818d2f
AJ
20973# config.status only pays attention to the cache file if you give it
20974# the --recheck option to rerun configure.
e2991ea7 20975#
11af04e3 20976# `ac_cv_env_foo' variables (set or unset) will be overridden when
f5818d2f
AJ
20977# loading this file, other *unset* `ac_cv_foo' will be assigned the
20978# following values.
20979
20980_ACEOF
20981
7e6ae4ba
AJ
20982# The following way of writing the cache mishandles newlines in values,
20983# but we know of no workaround that is simple, portable, and efficient.
fc6ffb29 20984# So, we kill variables containing newlines.
e2991ea7
AJ
20985# Ultrix sh set writes to stderr and can't be redirected directly,
20986# and sets the high bit in the cache file unless we assign to the vars.
fc6ffb29
AJ
20987(
20988 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20989 eval ac_val=\$$ac_var
20990 case $ac_val in #(
20991 *${as_nl}*)
20992 case $ac_var in #(
20993 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20994echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20995 esac
20996 case $ac_var in #(
20997 _ | IFS | as_nl) ;; #(
20998 *) $as_unset $ac_var ;;
20999 esac ;;
21000 esac
21001 done
21002
f5818d2f 21003 (set) 2>&1 |
fc6ffb29
AJ
21004 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21005 *${as_nl}ac_space=\ *)
f5818d2f
AJ
21006 # `set' does not quote correctly, so add quotes (double-quote
21007 # substitution turns \\\\ into \\, and sed turns \\ into \).
21008 sed -n \
875927f6
AJ
21009 "s/'/'\\\\''/g;
21010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
fc6ffb29 21011 ;; #(
f5818d2f
AJ
21012 *)
21013 # `set' quotes correctly as required by POSIX, so do not add quotes.
fc6ffb29 21014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f5818d2f 21015 ;;
fc6ffb29
AJ
21016 esac |
21017 sort
21018) |
f5818d2f 21019 sed '
fc6ffb29 21020 /^ac_cv_env_/b end
f5818d2f 21021 t clear
fc6ffb29 21022 :clear
f5818d2f
AJ
21023 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21024 t end
fc6ffb29
AJ
21025 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21026 :end' >>confcache
0ebeb530
JW
21027if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21028 if test -w "$cache_file"; then
fc6ffb29
AJ
21029 test "x$cache_file" != "x/dev/null" &&
21030 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21031echo "$as_me: updating cache $cache_file" >&6;}
f5818d2f 21032 cat confcache >$cache_file
e2991ea7 21033 else
fc6ffb29
AJ
21034 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21035echo "$as_me: not updating unwritable cache $cache_file" >&6;}
e2991ea7
AJ
21036 fi
21037fi
21038rm -f confcache
21039
e2991ea7
AJ
21040test "x$prefix" = xNONE && prefix=$ac_default_prefix
21041# Let make expand exec_prefix.
21042test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21043
18f92e76 21044DEFS=-DHAVE_CONFIG_H
e2991ea7 21045
11af04e3
AJ
21046ac_libobjs=
21047ac_ltlibobjs=
21048for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21049 # 1. Remove the extension, and $U if already installed.
fc6ffb29
AJ
21050 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21051 ac_i=`echo "$ac_i" | sed "$ac_script"`
21052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21053 # will be set to the directory where LIBOBJS objects are built.
21054 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21055 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11af04e3
AJ
21056done
21057LIBOBJS=$ac_libobjs
21058
21059LTLIBOBJS=$ac_ltlibobjs
21060
21061
daa2886c 21062
e2991ea7 21063: ${CONFIG_STATUS=./config.status}
f5818d2f
AJ
21064ac_clean_files_save=$ac_clean_files
21065ac_clean_files="$ac_clean_files $CONFIG_STATUS"
daa2886c 21066{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
f5818d2f
AJ
21067echo "$as_me: creating $CONFIG_STATUS" >&6;}
21068cat >$CONFIG_STATUS <<_ACEOF
21069#! $SHELL
daa2886c 21070# Generated by $as_me.
e2991ea7 21071# Run this file to recreate the current configuration.
e2991ea7 21072# Compiler output produced by configure, useful for debugging
f5818d2f 21073# configure, is in config.log if it exists.
e2991ea7 21074
f5818d2f 21075debug=false
e24bcc77
AJ
21076ac_cs_recheck=false
21077ac_cs_silent=false
f5818d2f 21078SHELL=\${CONFIG_SHELL-$SHELL}
f5818d2f
AJ
21079_ACEOF
21080
21081cat >>$CONFIG_STATUS <<\_ACEOF
daa2886c
AJ
21082## --------------------- ##
21083## M4sh Initialization. ##
21084## --------------------- ##
21085
dc9f3843
AJ
21086# Be more Bourne compatible
21087DUALCASE=1; export DUALCASE # for MKS sh
f5818d2f
AJ
21088if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21089 emulate sh
21090 NULLCMD=:
11af04e3
AJ
21091 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21092 # is contrary to our usage. Disable this feature.
21093 alias -g '${1+"$@"}'='"$@"'
fc6ffb29
AJ
21094 setopt NO_GLOB_SUBST
21095else
dc9f3843
AJ
21096 case `(set -o) 2>/dev/null` in
21097 *posix*) set -o posix ;;
21098esac
21099
f5818d2f 21100fi
dc9f3843
AJ
21101
21102
f5818d2f 21103
fc6ffb29
AJ
21104
21105# PATH needs CR
21106# Avoid depending upon Character Ranges.
21107as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21108as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21109as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21110as_cr_digits='0123456789'
21111as_cr_alnum=$as_cr_Letters$as_cr_digits
21112
21113# The user is always right.
21114if test "${PATH_SEPARATOR+set}" != set; then
21115 echo "#! /bin/sh" >conf$$.sh
21116 echo "exit 0" >>conf$$.sh
21117 chmod +x conf$$.sh
21118 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21119 PATH_SEPARATOR=';'
21120 else
21121 PATH_SEPARATOR=:
21122 fi
21123 rm -f conf$$.sh
21124fi
21125
daa2886c 21126# Support unset when possible.
875927f6 21127if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
daa2886c
AJ
21128 as_unset=unset
21129else
21130 as_unset=false
21131fi
21132
11af04e3 21133
fc6ffb29
AJ
21134# IFS
21135# We need space, tab and new line, in precisely that order. Quoting is
21136# there to prevent editors from complaining about space-tab.
21137# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21138# splitting by setting IFS to empty value.)
21139as_nl='
21140'
21141IFS=" "" $as_nl"
21142
21143# Find who we are. Look in the path if we contain no directory separator.
21144case $0 in
21145 *[\\/]* ) as_myself=$0 ;;
21146 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21147for as_dir in $PATH
21148do
21149 IFS=$as_save_IFS
21150 test -z "$as_dir" && as_dir=.
21151 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21152done
21153IFS=$as_save_IFS
21154
21155 ;;
21156esac
21157# We did not find ourselves, most probably we were run as `sh COMMAND'
21158# in which case we are not to be found in the path.
21159if test "x$as_myself" = x; then
21160 as_myself=$0
21161fi
21162if test ! -f "$as_myself"; then
21163 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21164 { (exit 1); exit 1; }
21165fi
21166
11af04e3 21167# Work around bugs in pre-3.0 UWIN ksh.
fc6ffb29
AJ
21168for as_var in ENV MAIL MAILPATH
21169do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21170done
11af04e3
AJ
21171PS1='$ '
21172PS2='> '
21173PS4='+ '
21174
21175# NLS nuisances.
e24bcc77
AJ
21176for as_var in \
21177 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21178 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21179 LC_TELEPHONE LC_TIME
11af04e3 21180do
875927f6 21181 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11af04e3
AJ
21182 eval $as_var=C; export $as_var
21183 else
fc6ffb29 21184 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11af04e3
AJ
21185 fi
21186done
21187
21188# Required to use basename.
fc6ffb29
AJ
21189if expr a : '\(a\)' >/dev/null 2>&1 &&
21190 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11af04e3
AJ
21191 as_expr=expr
21192else
21193 as_expr=false
21194fi
21195
fc6ffb29 21196if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11af04e3
AJ
21197 as_basename=basename
21198else
21199 as_basename=false
21200fi
daa2886c
AJ
21201
21202
f5818d2f 21203# Name of the executable.
fc6ffb29 21204as_me=`$as_basename -- "$0" ||
daa2886c
AJ
21205$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21206 X"$0" : 'X\(//\)$' \| \
fc6ffb29 21207 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
daa2886c 21208echo X/"$0" |
fc6ffb29
AJ
21209 sed '/^.*\/\([^/][^/]*\)\/*$/{
21210 s//\1/
21211 q
21212 }
21213 /^X\/\(\/\/\)$/{
21214 s//\1/
21215 q
21216 }
21217 /^X\/\(\/\).*/{
21218 s//\1/
21219 q
21220 }
21221 s/.*/./; q'`
daa2886c 21222
fc6ffb29
AJ
21223# CDPATH.
21224$as_unset CDPATH
11af04e3 21225
daa2886c
AJ
21226
21227
21228 as_lineno_1=$LINENO
21229 as_lineno_2=$LINENO
daa2886c 21230 test "x$as_lineno_1" != "x$as_lineno_2" &&
fc6ffb29 21231 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
daa2886c
AJ
21232
21233 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21234 # uniformly replaced by the line number. The first 'sed' inserts a
fc6ffb29
AJ
21235 # line-number line after each line using $LINENO; the second 'sed'
21236 # does the real work. The second script uses 'N' to pair each
21237 # line-number line with the line containing $LINENO, and appends
21238 # trailing '-' during substitution so that $LINENO is not a special
21239 # case at line end.
daa2886c 21240 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
fc6ffb29
AJ
21241 # scripts with optimization help from Paolo Bonzini. Blame Lee
21242 # E. McMahon (1931-1989) for sed's syntax. :-)
21243 sed -n '
21244 p
21245 /[$]LINENO/=
21246 ' <$as_myself |
daa2886c 21247 sed '
fc6ffb29
AJ
21248 s/[$]LINENO.*/&-/
21249 t lineno
21250 b
21251 :lineno
daa2886c 21252 N
fc6ffb29
AJ
21253 :loop
21254 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
daa2886c 21255 t loop
fc6ffb29 21256 s/-\n.*//
daa2886c 21257 ' >$as_me.lineno &&
fc6ffb29
AJ
21258 chmod +x "$as_me.lineno" ||
21259 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
daa2886c
AJ
21260 { (exit 1); exit 1; }; }
21261
21262 # Don't try to exec as it changes $[0], causing all sort of problems
21263 # (the dirname of $[0] is not the place where we might find the
fc6ffb29
AJ
21264 # original and so on. Autoconf is especially sensitive to this).
21265 . "./$as_me.lineno"
daa2886c
AJ
21266 # Exit status is that of the last command.
21267 exit
21268}
21269
21270
0ebeb530 21271if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
fc6ffb29
AJ
21272 as_dirname=dirname
21273else
21274 as_dirname=false
21275fi
21276
21277ECHO_C= ECHO_N= ECHO_T=
21278case `echo -n x` in
21279-n*)
21280 case `echo 'x\c'` in
21281 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21282 *) ECHO_C='\c';;
21283 esac;;
21284*)
21285 ECHO_N='-n';;
daa2886c 21286esac
f5818d2f 21287
fc6ffb29
AJ
21288if expr a : '\(a\)' >/dev/null 2>&1 &&
21289 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f5818d2f
AJ
21290 as_expr=expr
21291else
21292 as_expr=false
21293fi
21294
21295rm -f conf$$ conf$$.exe conf$$.file
fc6ffb29
AJ
21296if test -d conf$$.dir; then
21297 rm -f conf$$.dir/conf$$.file
21298else
21299 rm -f conf$$.dir
21300 mkdir conf$$.dir
21301fi
f5818d2f
AJ
21302echo >conf$$.file
21303if ln -s conf$$.file conf$$ 2>/dev/null; then
fc6ffb29
AJ
21304 as_ln_s='ln -s'
21305 # ... but there are two gotchas:
21306 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21307 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21308 # In both cases, we have to default to `cp -p'.
21309 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f5818d2f 21310 as_ln_s='cp -p'
f5818d2f
AJ
21311elif ln conf$$.file conf$$ 2>/dev/null; then
21312 as_ln_s=ln
21313else
21314 as_ln_s='cp -p'
21315fi
fc6ffb29
AJ
21316rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21317rmdir conf$$.dir 2>/dev/null
f5818d2f 21318
11af04e3
AJ
21319if mkdir -p . 2>/dev/null; then
21320 as_mkdir_p=:
21321else
875927f6 21322 test -d ./-p && rmdir ./-p
11af04e3
AJ
21323 as_mkdir_p=false
21324fi
21325
dc9f3843
AJ
21326if test -x / >/dev/null 2>&1; then
21327 as_test_x='test -x'
fc6ffb29 21328else
dc9f3843
AJ
21329 if ls -dL / >/dev/null 2>&1; then
21330 as_ls_L_option=L
21331 else
21332 as_ls_L_option=
21333 fi
21334 as_test_x='
21335 eval sh -c '\''
21336 if test -d "$1"; then
21337 test -d "$1/.";
21338 else
21339 case $1 in
21340 -*)set "./$1";;
21341 esac;
21342 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21343 ???[sx]*):;;*)false;;esac;fi
21344 '\'' sh
21345 '
fc6ffb29 21346fi
dc9f3843 21347as_executable_p=$as_test_x
f5818d2f 21348
daa2886c 21349# Sed expression to map a string onto a valid CPP name.
875927f6 21350as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
daa2886c
AJ
21351
21352# Sed expression to map a string onto a valid variable name.
875927f6 21353as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
f5818d2f 21354
f5818d2f 21355
f5818d2f
AJ
21356exec 6>&1
21357
fc6ffb29 21358# Save the log message, to keep $[0] and so on meaningful, and to
daa2886c 21359# report actual input values of CONFIG_FILES etc. instead of their
fc6ffb29
AJ
21360# values after options handling.
21361ac_log="
69016cfa 21362This file was extended by Wine $as_me 0.9.45, which was
dc9f3843 21363generated by GNU Autoconf 2.61. Invocation command line was
daa2886c
AJ
21364
21365 CONFIG_FILES = $CONFIG_FILES
21366 CONFIG_HEADERS = $CONFIG_HEADERS
21367 CONFIG_LINKS = $CONFIG_LINKS
21368 CONFIG_COMMANDS = $CONFIG_COMMANDS
21369 $ $0 $@
21370
fc6ffb29
AJ
21371on `(hostname || uname -n) 2>/dev/null | sed 1q`
21372"
21373
f5818d2f
AJ
21374_ACEOF
21375
fc6ffb29 21376cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f 21377# Files that config.status was made for.
fc6ffb29
AJ
21378config_files="$ac_config_files"
21379config_headers="$ac_config_headers"
21380config_commands="$ac_config_commands"
f5818d2f 21381
fc6ffb29 21382_ACEOF
f5818d2f 21383
daa2886c 21384cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
21385ac_cs_usage="\
21386\`$as_me' instantiates files from templates according to the
21387current configuration.
21388
21389Usage: $0 [OPTIONS] [FILE]...
21390
21391 -h, --help print this help, then exit
78bd1948 21392 -V, --version print version number and configuration settings, then exit
e24bcc77 21393 -q, --quiet do not print progress messages
f5818d2f
AJ
21394 -d, --debug don't remove temporary files
21395 --recheck update $as_me by reconfiguring in the same conditions
21396 --file=FILE[:TEMPLATE]
875927f6 21397 instantiate the configuration file FILE
f5818d2f 21398 --header=FILE[:TEMPLATE]
875927f6 21399 instantiate the configuration header FILE
f5818d2f
AJ
21400
21401Configuration files:
21402$config_files
21403
21404Configuration headers:
21405$config_headers
21406
21407Configuration commands:
21408$config_commands
21409
21410Report bugs to <bug-autoconf@gnu.org>."
f5818d2f 21411
fc6ffb29 21412_ACEOF
daa2886c 21413cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f 21414ac_cs_version="\\
69016cfa 21415Wine config.status 0.9.45
dc9f3843 21416configured by $0, generated by GNU Autoconf 2.61,
0ebeb530 21417 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
f5818d2f 21418
fc6ffb29 21419Copyright (C) 2006 Free Software Foundation, Inc.
f5818d2f
AJ
21420This config.status script is free software; the Free Software Foundation
21421gives unlimited permission to copy, distribute and modify it."
fc6ffb29
AJ
21422
21423ac_pwd='$ac_pwd'
21424srcdir='$srcdir'
21425INSTALL='$INSTALL'
daa2886c 21426_ACEOF
f5818d2f 21427
daa2886c 21428cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
21429# If no file are specified by the user, then we need to provide default
21430# value. By we need to know if files were specified by the user.
21431ac_need_defaults=:
21432while test $# != 0
e2991ea7 21433do
f5818d2f
AJ
21434 case $1 in
21435 --*=*)
fc6ffb29
AJ
21436 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21437 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11af04e3
AJ
21438 ac_shift=:
21439 ;;
fc6ffb29 21440 *)
11af04e3
AJ
21441 ac_option=$1
21442 ac_optarg=$2
21443 ac_shift=shift
f5818d2f 21444 ;;
f5818d2f
AJ
21445 esac
21446
11af04e3 21447 case $ac_option in
f5818d2f 21448 # Handling of the options.
e24bcc77
AJ
21449 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21450 ac_cs_recheck=: ;;
fc6ffb29
AJ
21451 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21452 echo "$ac_cs_version"; exit ;;
21453 --debug | --debu | --deb | --de | --d | -d )
f5818d2f
AJ
21454 debug=: ;;
21455 --file | --fil | --fi | --f )
11af04e3
AJ
21456 $ac_shift
21457 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
f5818d2f
AJ
21458 ac_need_defaults=false;;
21459 --header | --heade | --head | --hea )
11af04e3
AJ
21460 $ac_shift
21461 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
f5818d2f 21462 ac_need_defaults=false;;
fc6ffb29
AJ
21463 --he | --h)
21464 # Conflict between --help and --header
21465 { echo "$as_me: error: ambiguous option: $1
21466Try \`$0 --help' for more information." >&2
21467 { (exit 1); exit 1; }; };;
21468 --help | --hel | -h )
21469 echo "$ac_cs_usage"; exit ;;
e24bcc77
AJ
21470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21471 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21472 ac_cs_silent=: ;;
f5818d2f
AJ
21473
21474 # This is an error.
fc6ffb29
AJ
21475 -*) { echo "$as_me: error: unrecognized option: $1
21476Try \`$0 --help' for more information." >&2
f5818d2f
AJ
21477 { (exit 1); exit 1; }; } ;;
21478
fc6ffb29
AJ
21479 *) ac_config_targets="$ac_config_targets $1"
21480 ac_need_defaults=false ;;
f5818d2f 21481
e2991ea7 21482 esac
f5818d2f 21483 shift
e2991ea7
AJ
21484done
21485
e24bcc77
AJ
21486ac_configure_extra_args=
21487
21488if $ac_cs_silent; then
21489 exec 6>/dev/null
21490 ac_configure_extra_args="$ac_configure_extra_args --silent"
21491fi
21492
21493_ACEOF
21494cat >>$CONFIG_STATUS <<_ACEOF
21495if \$ac_cs_recheck; then
0ebeb530 21496 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
fc6ffb29
AJ
21497 CONFIG_SHELL=$SHELL
21498 export CONFIG_SHELL
0ebeb530 21499 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
e24bcc77
AJ
21500fi
21501
f5818d2f 21502_ACEOF
fc6ffb29
AJ
21503cat >>$CONFIG_STATUS <<\_ACEOF
21504exec 5>>config.log
21505{
21506 echo
21507 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21508## Running $as_me. ##
21509_ASBOX
21510 echo "$ac_log"
21511} >&5
e2991ea7 21512
fc6ffb29
AJ
21513_ACEOF
21514cat >>$CONFIG_STATUS <<_ACEOF
21515_ACEOF
daa2886c
AJ
21516
21517cat >>$CONFIG_STATUS <<\_ACEOF
fc6ffb29
AJ
21518
21519# Handling of arguments.
f5818d2f
AJ
21520for ac_config_target in $ac_config_targets
21521do
fc6ffb29
AJ
21522 case $ac_config_target in
21523 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
c4704c2d 21524 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
7dfc4477
AJ
21525 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
21526 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
1c60e3bf 21527 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
b8a2e3b8 21528 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
fc6ffb29
AJ
21529 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
21530 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
21531 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
21532 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
21533 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
21534 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
fc6ffb29
AJ
21535 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
21536 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21537 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
0da02fb2 21538 "dlls/acledit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/acledit/Makefile" ;;
fc6ffb29
AJ
21539 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
21540 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
21541 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
21542 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
21543 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
21544 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
21545 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
21546 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
21547 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
ea0361f3 21548 "dlls/browseui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/Makefile" ;;
7206e106 21549 "dlls/browseui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/tests/Makefile" ;;
fc6ffb29
AJ
21550 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
21551 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
21552 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
21553 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
21554 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
493bc6b8 21555 "dlls/clusapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/clusapi/Makefile" ;;
fc6ffb29 21556 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
9c3b12bd 21557 "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
fc6ffb29
AJ
21558 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
21559 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
21560 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
955fe0da 21561 "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
5640b56e 21562 "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
c82fde40 21563 "dlls/credui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/credui/Makefile" ;;
fc6ffb29
AJ
21564 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
21565 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
21566 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
21567 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
d2ee3872 21568 "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
fc6ffb29 21569 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
0db109ff 21570 "dlls/d3d10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d10/Makefile" ;;
fc6ffb29
AJ
21571 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
21572 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
21573 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
21574 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
21575 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
21576 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
f50800b2 21577 "dlls/d3drm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/tests/Makefile" ;;
fc6ffb29
AJ
21578 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
21579 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
21580 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
21581 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
21582 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
21583 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
fe70c54a 21584 "dlls/ddrawex/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddrawex/Makefile" ;;
fc6ffb29
AJ
21585 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
21586 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
21587 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
21588 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
21589 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
21590 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
21591 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
21592 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
21593 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
21594 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
21595 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
21596 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
21597 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
21598 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
21599 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
21600 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
21601 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
d1331e62 21602 "dlls/dplayx/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/tests/Makefile" ;;
8caf0787 21603 "dlls/dpnaddr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnaddr/Makefile" ;;
fc6ffb29
AJ
21604 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
21605 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
5996c132 21606 "dlls/dpnlobby/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnlobby/Makefile" ;;
fc6ffb29
AJ
21607 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
21608 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
21609 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
c0ddd5e3 21610 "dlls/dwmapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dwmapi/Makefile" ;;
fc6ffb29
AJ
21611 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
21612 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
21613 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
21614 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
a2cd6430 21615 "dlls/faultrep/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/faultrep/Makefile" ;;
7dfc4477
AJ
21616 "dlls/gdi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/Makefile" ;;
21617 "dlls/gdi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/tests/Makefile" ;;
bed761c9 21618 "dlls/gdiplus/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdiplus/Makefile" ;;
fcd7a62e 21619 "dlls/gdiplus/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdiplus/tests/Makefile" ;;
fc6ffb29 21620 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
fc6ffb29 21621 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
d2d68702 21622 "dlls/hal/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hal/Makefile" ;;
fc6ffb29 21623 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
b89cafaf 21624 "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
b732e9b4 21625 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
a430db9e 21626 "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
a00aa039 21627 "dlls/hnetcfg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hnetcfg/Makefile" ;;
fc6ffb29
AJ
21628 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
21629 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
21630 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
21631 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
21632 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
21633 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
4d3877b6 21634 "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
b5871fa5 21635 "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
e9252251 21636 "dlls/inkobj/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inkobj/Makefile" ;;
4d3877b6 21637 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
fc6ffb29
AJ
21638 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
21639 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
21640 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
1e65d474 21641 "dlls/itss/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/tests/Makefile" ;;
489d87d1
AJ
21642 "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
21643 "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
2198d836 21644 "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
ecb97fc2 21645 "dlls/localspl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/tests/Makefile" ;;
d24bc087 21646 "dlls/localui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localui/Makefile" ;;
62e92795 21647 "dlls/localui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localui/tests/Makefile" ;;
fc6ffb29
AJ
21648 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
21649 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
21650 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
21651 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
21652 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
21653 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
21654 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
21655 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
21656 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
21657 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
21658 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
21659 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
21660 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
21661 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
21662 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
21663 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
21664 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
21665 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
21666 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
21667 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
21668 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
4fe6c3fa 21669 "dlls/mscoree/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscoree/Makefile" ;;
fc6ffb29
AJ
21670 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
21671 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
21672 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
021d06a4 21673 "dlls/mshtml.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml.tlb/Makefile" ;;
fc6ffb29
AJ
21674 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
21675 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
21676 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
21677 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
21678 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
21679 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
21680 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
21681 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
21682 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
21683 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
21684 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
21685 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
21686 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
21687 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
21688 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
21689 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
21690 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
21691 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
21692 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
0b4eafad 21693 "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;;
fc6ffb29
AJ
21694 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
21695 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
21696 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
21697 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
21698 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
21699 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
12c169d2 21700 "dlls/ntoskrnl.exe/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntoskrnl.exe/Makefile" ;;
a8697b58 21701 "dlls/ntprint/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntprint/Makefile" ;;
a114483e 21702 "dlls/ntprint/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntprint/tests/Makefile" ;;
fc6ffb29
AJ
21703 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
21704 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
21705 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
cf6e0d82 21706 "dlls/odbccp32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/tests/Makefile" ;;
fc6ffb29
AJ
21707 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
21708 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
21709 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
21710 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
21711 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
21712 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
21713 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
21714 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
21715 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
7db1bd9f 21716 "dlls/olethk32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olethk32/Makefile" ;;
fc6ffb29 21717 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
219269c0 21718 "dlls/opengl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/tests/Makefile" ;;
41f15a76 21719 "dlls/pdh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/Makefile" ;;
0a6f6874 21720 "dlls/pdh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/tests/Makefile" ;;
fc6ffb29 21721 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
3fd4a536 21722 "dlls/printui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/printui/Makefile" ;;
fc6ffb29
AJ
21723 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
21724 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
acb7f8ab 21725 "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
fc6ffb29
AJ
21726 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
21727 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
21728 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
defbc49b 21729 "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
fc6ffb29 21730 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
3ac07aa0 21731 "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;;
fc6ffb29
AJ
21732 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
21733 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
21734 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
21735 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
21736 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
21737 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
21738 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
21739 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
21740 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
21741 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
361c6f20 21742 "dlls/schannel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/Makefile" ;;
735df246 21743 "dlls/schannel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/tests/Makefile" ;;
fc6ffb29
AJ
21744 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
21745 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
21746 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
21747 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
21748 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
8650c570 21749 "dlls/serialui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/tests/Makefile" ;;
fc6ffb29
AJ
21750 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
21751 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
21752 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
161897e1 21753 "dlls/sfc_os/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc_os/Makefile" ;;
2d3a5a61 21754 "dlls/shdoclc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdoclc/Makefile" ;;
fc6ffb29
AJ
21755 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
21756 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
21757 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
21758 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
21759 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
21760 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
21761 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
21762 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
396f6c05 21763 "dlls/snmpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/tests/Makefile" ;;
fc6ffb29
AJ
21764 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
21765 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
21766 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
21767 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
21768 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
bb497631 21769 "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;;
74977dae 21770 "dlls/sxs/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sxs/Makefile" ;;
fc6ffb29
AJ
21771 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
21772 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
21773 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
21774 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
21775 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
21776 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
b8a2e3b8
AJ
21777 "dlls/user32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/Makefile" ;;
21778 "dlls/user32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/tests/Makefile" ;;
a6ea0f61 21779 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
fc6ffb29
AJ
21780 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
21781 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
21782 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
21783 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
569a452d 21784 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
fc6ffb29
AJ
21785 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
21786 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
21787 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
21788 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
21789 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
21790 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
21791 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
21792 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
21793 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
21794 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
01905338 21795 "dlls/winealsa.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winealsa.drv/Makefile" ;;
f972d662 21796 "dlls/wineaudioio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineaudioio.drv/Makefile" ;;
9402089e 21797 "dlls/winecoreaudio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecoreaudio.drv/Makefile" ;;
fc6ffb29
AJ
21798 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
21799 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
21800 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
851e6d7c 21801 "dlls/wineesd.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineesd.drv/Makefile" ;;
7fc151d6 21802 "dlls/winejack.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejack.drv/Makefile" ;;
f231a70f 21803 "dlls/winejoystick.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejoystick.drv/Makefile" ;;
fc6ffb29 21804 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
ae0380d9 21805 "dlls/winenas.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winenas.drv/Makefile" ;;
dc3961bc 21806 "dlls/wineoss.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineoss.drv/Makefile" ;;
fc6ffb29 21807 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
08884514 21808 "dlls/winequartz.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winequartz.drv/Makefile" ;;
bdb4fab7 21809 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
47e6fb4d 21810 "dlls/wing32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wing32/Makefile" ;;
21572967 21811 "dlls/winhttp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winhttp/Makefile" ;;
fc6ffb29
AJ
21812 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
21813 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
21814 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
fc6ffb29 21815 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
fc6ffb29 21816 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
23df68d8 21817 "dlls/winscard/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winscard/Makefile" ;;
fc6ffb29
AJ
21818 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
21819 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
21820 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
21821 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
95bb9032 21822 "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
fc6ffb29
AJ
21823 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
21824 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
21825 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
21826 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
21827 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
21828 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
21829 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
fc6ffb29
AJ
21830 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
21831 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
21832 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21833 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
21834 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
fc6ffb29
AJ
21835 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
21836 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
21837 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
21838 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
21839 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
39857443 21840 "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
fc6ffb29
AJ
21841 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
21842 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
21843 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
21844 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
21845 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
21846 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
21847 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
21848 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
21849 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
451616ee 21850 "programs/net/Makefile") CONFIG_FILES="$CONFIG_FILES programs/net/Makefile" ;;
fc6ffb29 21851 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
68f590cf 21852 "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
fc6ffb29
AJ
21853 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
21854 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
21855 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
21856 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
21857 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
d1ddc9c1 21858 "programs/spoolsv/Makefile") CONFIG_FILES="$CONFIG_FILES programs/spoolsv/Makefile" ;;
fc6ffb29
AJ
21859 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
21860 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
21861 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
21862 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
fc6ffb29
AJ
21863 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
21864 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
21865 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
21866 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
21867 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
c81d0995 21868 "programs/winedevice/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedevice/Makefile" ;;
fc6ffb29
AJ
21869 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
21870 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
21871 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
21872 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
21873 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
21874 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
21875 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
21876 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
21877 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
2777a94d 21878 "programs/write/Makefile") CONFIG_FILES="$CONFIG_FILES programs/write/Makefile" ;;
921edab7 21879 "programs/xcopy/Makefile") CONFIG_FILES="$CONFIG_FILES programs/xcopy/Makefile" ;;
fc6ffb29
AJ
21880 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21881 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21882 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
fc6ffb29
AJ
21883 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21884 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
21885 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
21886 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21887 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
21888
daa2886c 21889 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
f5818d2f
AJ
21890echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21891 { (exit 1); exit 1; }; };;
21892 esac
21893done
21894
fc6ffb29 21895
f5818d2f
AJ
21896# If the user did not use the arguments to specify the items to instantiate,
21897# then the envvar interface is used. Set only those that are not.
21898# We use the long form for the default assignment because of an extremely
21899# bizarre bug on SunOS 4.1.3.
21900if $ac_need_defaults; then
21901 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21902 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21903 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21904fi
21905
e24bcc77 21906# Have a temporary directory for convenience. Make it in the build tree
fc6ffb29 21907# simply because there is no reason against having it here, and in addition,
e24bcc77 21908# creating and moving files from /tmp can sometimes cause problems.
fc6ffb29
AJ
21909# Hook for its removal unless debugging.
21910# Note that there is a small window in which the directory will not be cleaned:
21911# after its creation but before its name has been assigned to `$tmp'.
f5818d2f
AJ
21912$debug ||
21913{
fc6ffb29
AJ
21914 tmp=
21915 trap 'exit_status=$?
21916 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21917' 0
f5818d2f
AJ
21918 trap '{ (exit 1); exit 1; }' 1 2 13 15
21919}
f5818d2f 21920# Create a (secure) tmp directory for tmp files.
e24bcc77 21921
f5818d2f 21922{
fc6ffb29 21923 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f5818d2f
AJ
21924 test -n "$tmp" && test -d "$tmp"
21925} ||
21926{
fc6ffb29
AJ
21927 tmp=./conf$$-$RANDOM
21928 (umask 077 && mkdir "$tmp")
f5818d2f
AJ
21929} ||
21930{
e24bcc77 21931 echo "$me: cannot create a temporary directory in ." >&2
f5818d2f
AJ
21932 { (exit 1); exit 1; }
21933}
21934
f5818d2f 21935#
fc6ffb29 21936# Set up the sed scripts for CONFIG_FILES section.
f5818d2f
AJ
21937#
21938
21939# No need to generate the scripts if there are no CONFIG_FILES.
21940# This happens for instance when ./config.status config.h
fc6ffb29
AJ
21941if test -n "$CONFIG_FILES"; then
21942
21943_ACEOF
21944
21945# Create sed commands to just substitute file output variables.
21946
21947# Remaining file output variables are in a fragment that also has non-file
21948# output varibles.
21949
21950
21951
21952ac_delim='%!_!# '
21953for ac_last_try in false false false false false :; do
21954 cat >conf$$subs.sed <<_ACEOF
21955SHELL!$SHELL$ac_delim
21956PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21957PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21958PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21959PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21960PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21961PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21962exec_prefix!$exec_prefix$ac_delim
21963prefix!$prefix$ac_delim
21964program_transform_name!$program_transform_name$ac_delim
21965bindir!$bindir$ac_delim
21966sbindir!$sbindir$ac_delim
21967libexecdir!$libexecdir$ac_delim
21968datarootdir!$datarootdir$ac_delim
21969datadir!$datadir$ac_delim
21970sysconfdir!$sysconfdir$ac_delim
21971sharedstatedir!$sharedstatedir$ac_delim
21972localstatedir!$localstatedir$ac_delim
21973includedir!$includedir$ac_delim
21974oldincludedir!$oldincludedir$ac_delim
21975docdir!$docdir$ac_delim
21976infodir!$infodir$ac_delim
21977htmldir!$htmldir$ac_delim
21978dvidir!$dvidir$ac_delim
21979pdfdir!$pdfdir$ac_delim
21980psdir!$psdir$ac_delim
21981libdir!$libdir$ac_delim
21982localedir!$localedir$ac_delim
21983mandir!$mandir$ac_delim
21984DEFS!$DEFS$ac_delim
21985ECHO_C!$ECHO_C$ac_delim
21986ECHO_N!$ECHO_N$ac_delim
21987ECHO_T!$ECHO_T$ac_delim
21988LIBS!$LIBS$ac_delim
21989build_alias!$build_alias$ac_delim
21990host_alias!$host_alias$ac_delim
21991target_alias!$target_alias$ac_delim
21992build!$build$ac_delim
21993build_cpu!$build_cpu$ac_delim
21994build_vendor!$build_vendor$ac_delim
21995build_os!$build_os$ac_delim
21996host!$host$ac_delim
21997host_cpu!$host_cpu$ac_delim
21998host_vendor!$host_vendor$ac_delim
21999host_os!$host_os$ac_delim
22000WIN16_FILES!$WIN16_FILES$ac_delim
22001WIN16_INSTALL!$WIN16_INSTALL$ac_delim
22002SET_MAKE!$SET_MAKE$ac_delim
22003CC!$CC$ac_delim
22004CFLAGS!$CFLAGS$ac_delim
22005LDFLAGS!$LDFLAGS$ac_delim
22006CPPFLAGS!$CPPFLAGS$ac_delim
22007ac_ct_CC!$ac_ct_CC$ac_delim
22008EXEEXT!$EXEEXT$ac_delim
22009OBJEXT!$OBJEXT$ac_delim
22010CXX!$CXX$ac_delim
22011CXXFLAGS!$CXXFLAGS$ac_delim
22012ac_ct_CXX!$ac_ct_CXX$ac_delim
22013CPPBIN!$CPPBIN$ac_delim
22014TOOLSDIR!$TOOLSDIR$ac_delim
22015XMKMF!$XMKMF$ac_delim
22016CPP!$CPP$ac_delim
22017X_CFLAGS!$X_CFLAGS$ac_delim
22018X_PRE_LIBS!$X_PRE_LIBS$ac_delim
22019X_LIBS!$X_LIBS$ac_delim
22020X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
4091627c 22021FLEX!$FLEX$ac_delim
fc6ffb29
AJ
22022BISON!$BISON$ac_delim
22023AS!$AS$ac_delim
22024ac_ct_AS!$ac_ct_AS$ac_delim
22025LD!$LD$ac_delim
22026AR!$AR$ac_delim
22027RANLIB!$RANLIB$ac_delim
22028STRIP!$STRIP$ac_delim
22029WINDRES!$WINDRES$ac_delim
22030LN_S!$LN_S$ac_delim
fdfc24ca
AJ
22031LN!$LN$ac_delim
22032GREP!$GREP$ac_delim
22033EGREP!$EGREP$ac_delim
4091627c
AJ
22034LDCONFIG!$LDCONFIG$ac_delim
22035INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22036INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
fc6ffb29
AJ
22037_ACEOF
22038
fdfc24ca 22039 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
fc6ffb29
AJ
22040 break
22041 elif $ac_last_try; then
22042 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22043echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22044 { (exit 1); exit 1; }; }
22045 else
22046 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
da0cfb36 22047 fi
fc6ffb29
AJ
22048done
22049
0ebeb530
JW
22050ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22051if test -n "$ac_eof"; then
22052 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22053 ac_eof=`expr $ac_eof + 1`
fc6ffb29
AJ
22054fi
22055
22056cat >>$CONFIG_STATUS <<_ACEOF
22057cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22058/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22059/^[ ]*@MAKE_RULES@[ ]*$/{
22060r $MAKE_RULES
22061d
22062}
22063/^[ ]*@MAKE_DLL_RULES@[ ]*$/{
22064r $MAKE_DLL_RULES
22065d
22066}
22067/^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
22068r $MAKE_IMPLIB_RULES
22069d
22070}
22071/^[ ]*@MAKE_TEST_RULES@[ ]*$/{
22072r $MAKE_TEST_RULES
22073d
22074}
fc6ffb29
AJ
22075/^[ ]*@MAKE_PROG_RULES@[ ]*$/{
22076r $MAKE_PROG_RULES
22077d
22078}
22079_ACEOF
22080sed '
22081s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22082s/^/s,@/; s/!/@,|#_!!_#|/
22083:n
22084t n
22085s/'"$ac_delim"'$/,g/; t
22086s/$/\\/; p
22087N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22088' >>$CONFIG_STATUS <conf$$subs.sed
22089rm -f conf$$subs.sed
22090cat >>$CONFIG_STATUS <<_ACEOF
22091CEOF$ac_eof
22092_ACEOF
22093
22094
22095ac_delim='%!_!# '
22096for ac_last_try in false false false false false :; do
22097 cat >conf$$subs.sed <<_ACEOF
fc6ffb29
AJ
22098INSTALL_DATA!$INSTALL_DATA$ac_delim
22099LINT!$LINT$ac_delim
22100LINTFLAGS!$LINTFLAGS$ac_delim
22101FONTFORGE!$FONTFORGE$ac_delim
22102PKG_CONFIG!$PKG_CONFIG$ac_delim
22103PRELINK!$PRELINK$ac_delim
22104LIBPTHREAD!$LIBPTHREAD$ac_delim
22105XLIB!$XLIB$ac_delim
22106XFILES!$XFILES$ac_delim
22107OPENGLFILES!$OPENGLFILES$ac_delim
22108GLU32FILES!$GLU32FILES$ac_delim
22109OPENGL_LIBS!$OPENGL_LIBS$ac_delim
08884514 22110QUARTZFILES!$QUARTZFILES$ac_delim
a3097628
AJ
22111DLLEXT!$DLLEXT$ac_delim
22112DLLFLAGS!$DLLFLAGS$ac_delim
22113LDSHARED!$LDSHARED$ac_delim
22114LDDLLFLAGS!$LDDLLFLAGS$ac_delim
22115LIBEXT!$LIBEXT$ac_delim
22116IMPLIBEXT!$IMPLIBEXT$ac_delim
22117LDRPATH_INSTALL!$LDRPATH_INSTALL$ac_delim
22118LDRPATH_LOCAL!$LDRPATH_LOCAL$ac_delim
22119LDD!$LDD$ac_delim
22120DLLTOOL!$DLLTOOL$ac_delim
22121DLLWRAP!$DLLWRAP$ac_delim
22122MINGWAR!$MINGWAR$ac_delim
22123COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
22124IOKITLIB!$IOKITLIB$ac_delim
22125LDEXECFLAGS!$LDEXECFLAGS$ac_delim
22126DISKARBITRATIONLIB!$DISKARBITRATIONLIB$ac_delim
22127COREAUDIO!$COREAUDIO$ac_delim
22128CARBONLIB!$CARBONLIB$ac_delim
22129CROSSTEST!$CROSSTEST$ac_delim
22130CROSSCC!$CROSSCC$ac_delim
22131CROSSWINDRES!$CROSSWINDRES$ac_delim
fc6ffb29
AJ
22132NASLIBS!$NASLIBS$ac_delim
22133XML2LIBS!$XML2LIBS$ac_delim
22134XML2INCL!$XML2INCL$ac_delim
22135XSLTLIBS!$XSLTLIBS$ac_delim
22136XSLTINCL!$XSLTINCL$ac_delim
22137HALINCL!$HALINCL$ac_delim
fc6ffb29 22138sane_devel!$sane_devel$ac_delim
fc6ffb29
AJ
22139SANEINCL!$SANEINCL$ac_delim
22140gphoto2_devel!$gphoto2_devel$ac_delim
22141gphoto2port_devel!$gphoto2port_devel$ac_delim
22142GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
22143GPHOTO2INCL!$GPHOTO2INCL$ac_delim
22144ICULIBS!$ICULIBS$ac_delim
22145RESOLVLIBS!$RESOLVLIBS$ac_delim
22146LCMSLIBS!$LCMSLIBS$ac_delim
22147LDAPLIBS!$LDAPLIBS$ac_delim
24a55f38 22148ft_devel!$ft_devel$ac_delim
fc6ffb29
AJ
22149FREETYPELIBS!$FREETYPELIBS$ac_delim
22150FREETYPEINCL!$FREETYPEINCL$ac_delim
fc6ffb29 22151FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
fc6ffb29
AJ
22152ESDCONFIG!$ESDCONFIG$ac_delim
22153ESDLIBS!$ESDLIBS$ac_delim
22154ESDINCL!$ESDINCL$ac_delim
22155ALSALIBS!$ALSALIBS$ac_delim
22156AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
22157EXTRACFLAGS!$EXTRACFLAGS$ac_delim
22158BUILTINFLAG!$BUILTINFLAG$ac_delim
fc6ffb29
AJ
22159LDPATH!$LDPATH$ac_delim
22160CRTLIBS!$CRTLIBS$ac_delim
22161SOCKETLIBS!$SOCKETLIBS$ac_delim
22162MAIN_BINARY!$MAIN_BINARY$ac_delim
22163EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
e533e972 22164LIBDL!$LIBDL$ac_delim
1089260f 22165LIBPOLL!$LIBPOLL$ac_delim
32ab895e 22166DEPENDENCIES!$DEPENDENCIES$ac_delim
fc6ffb29
AJ
22167LIBOBJS!$LIBOBJS$ac_delim
22168LTLIBOBJS!$LTLIBOBJS$ac_delim
22169_ACEOF
22170
24a55f38 22171 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 71; then
fc6ffb29
AJ
22172 break
22173 elif $ac_last_try; then
22174 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22175echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22176 { (exit 1); exit 1; }; }
22177 else
22178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22179 fi
22180done
22181
0ebeb530
JW
22182ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22183if test -n "$ac_eof"; then
22184 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22185 ac_eof=`expr $ac_eof + 1`
fc6ffb29 22186fi
da0cfb36 22187
fc6ffb29
AJ
22188cat >>$CONFIG_STATUS <<_ACEOF
22189cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22190/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22191_ACEOF
22192sed '
22193s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22194s/^/s,@/; s/!/@,|#_!!_#|/
22195:n
22196t n
22197s/'"$ac_delim"'$/,g/; t
22198s/$/\\/; p
22199N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22200' >>$CONFIG_STATUS <conf$$subs.sed
22201rm -f conf$$subs.sed
22202cat >>$CONFIG_STATUS <<_ACEOF
22203:end
22204s/|#_!!_#|//g
22205CEOF$ac_eof
daa2886c 22206_ACEOF
fc6ffb29
AJ
22207
22208
22209# VPATH may cause trouble with some makes, so we remove $(srcdir),
22210# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22211# trailing colons and then remove the whole line if VPATH becomes empty
22212# (actually we leave an empty line to preserve line numbers).
22213if test "x$srcdir" = x.; then
22214 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22215s/:*\$(srcdir):*/:/
22216s/:*\${srcdir}:*/:/
22217s/:*@srcdir@:*/:/
22218s/^\([^=]*=[ ]*\):*/\1/
22219s/:*$//
22220s/^[^=]*=[ ]*$//
22221}'
22222fi
22223
daa2886c 22224cat >>$CONFIG_STATUS <<\_ACEOF
fc6ffb29
AJ
22225fi # test -n "$CONFIG_FILES"
22226
22227
22228for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22229do
22230 case $ac_tag in
22231 :[FHLC]) ac_mode=$ac_tag; continue;;
22232 esac
22233 case $ac_mode$ac_tag in
22234 :[FHL]*:*);;
22235 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22236echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22237 { (exit 1); exit 1; }; };;
22238 :[FH]-) ac_tag=-:-;;
22239 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
e2991ea7 22240 esac
fc6ffb29
AJ
22241 ac_save_IFS=$IFS
22242 IFS=:
22243 set x $ac_tag
22244 IFS=$ac_save_IFS
22245 shift
22246 ac_file=$1
22247 shift
e2991ea7 22248
fc6ffb29
AJ
22249 case $ac_mode in
22250 :L) ac_source=$1;;
22251 :[FH])
22252 ac_file_inputs=
22253 for ac_f
22254 do
22255 case $ac_f in
22256 -) ac_f="$tmp/stdin";;
22257 *) # Look for the file first in the build tree, then in the source tree
22258 # (if the path is not absolute). The absolute path cannot be DOS-style,
22259 # because $ac_f cannot contain `:'.
22260 test -f "$ac_f" ||
22261 case $ac_f in
22262 [\\/$]*) false;;
22263 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22264 esac ||
22265 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22266echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22267 { (exit 1); exit 1; }; };;
22268 esac
22269 ac_file_inputs="$ac_file_inputs $ac_f"
22270 done
22271
22272 # Let's still pretend it is `configure' which instantiates (i.e., don't
22273 # use $as_me), people would be surprised to read:
22274 # /* config.h. Generated by config.status. */
22275 configure_input="Generated from "`IFS=:
22276 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22277 if test x"$ac_file" != x-; then
22278 configure_input="$ac_file. $configure_input"
22279 { echo "$as_me:$LINENO: creating $ac_file" >&5
22280echo "$as_me: creating $ac_file" >&6;}
22281 fi
22282
22283 case $ac_tag in
22284 *:-:* | *:-) cat >"$tmp/stdin";;
22285 esac
22286 ;;
22287 esac
22288
22289 ac_dir=`$as_dirname -- "$ac_file" ||
daa2886c 22290$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875927f6
AJ
22291 X"$ac_file" : 'X\(//\)[^/]' \| \
22292 X"$ac_file" : 'X\(//\)$' \| \
fc6ffb29 22293 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
f5818d2f 22294echo X"$ac_file" |
fc6ffb29
AJ
22295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22296 s//\1/
22297 q
22298 }
22299 /^X\(\/\/\)[^/].*/{
22300 s//\1/
22301 q
22302 }
22303 /^X\(\/\/\)$/{
22304 s//\1/
22305 q
22306 }
22307 /^X\(\/\).*/{
22308 s//\1/
22309 q
22310 }
22311 s/.*/./; q'`
22312 { as_dir="$ac_dir"
22313 case $as_dir in #(
22314 -*) as_dir=./$as_dir;;
22315 esac
22316 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11af04e3 22317 as_dirs=
fc6ffb29
AJ
22318 while :; do
22319 case $as_dir in #(
22320 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22321 *) as_qdir=$as_dir;;
22322 esac
22323 as_dirs="'$as_qdir' $as_dirs"
22324 as_dir=`$as_dirname -- "$as_dir" ||
11af04e3 22325$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875927f6
AJ
22326 X"$as_dir" : 'X\(//\)[^/]' \| \
22327 X"$as_dir" : 'X\(//\)$' \| \
fc6ffb29 22328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11af04e3 22329echo X"$as_dir" |
fc6ffb29
AJ
22330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22331 s//\1/
22332 q
22333 }
22334 /^X\(\/\/\)[^/].*/{
22335 s//\1/
22336 q
22337 }
22338 /^X\(\/\/\)$/{
22339 s//\1/
22340 q
22341 }
22342 /^X\(\/\).*/{
22343 s//\1/
22344 q
22345 }
22346 s/.*/./; q'`
22347 test -d "$as_dir" && break
11af04e3 22348 done
fc6ffb29
AJ
22349 test -z "$as_dirs" || eval "mkdir $as_dirs"
22350 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22351echo "$as_me: error: cannot create directory $as_dir" >&2;}
11af04e3 22352 { (exit 1); exit 1; }; }; }
daa2886c 22353 ac_builddir=.
e2991ea7 22354
fc6ffb29
AJ
22355case "$ac_dir" in
22356.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22357*)
daa2886c 22358 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
fc6ffb29
AJ
22359 # A ".." for each directory in $ac_dir_suffix.
22360 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22361 case $ac_top_builddir_sub in
22362 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22363 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22364 esac ;;
22365esac
22366ac_abs_top_builddir=$ac_pwd
22367ac_abs_builddir=$ac_pwd$ac_dir_suffix
22368# for backward compatibility:
22369ac_top_builddir=$ac_top_build_prefix
daa2886c
AJ
22370
22371case $srcdir in
fc6ffb29 22372 .) # We are building in place.
daa2886c 22373 ac_srcdir=.
fc6ffb29
AJ
22374 ac_top_srcdir=$ac_top_builddir_sub
22375 ac_abs_top_srcdir=$ac_pwd ;;
22376 [\\/]* | ?:[\\/]* ) # Absolute name.
daa2886c 22377 ac_srcdir=$srcdir$ac_dir_suffix;
fc6ffb29
AJ
22378 ac_top_srcdir=$srcdir
22379 ac_abs_top_srcdir=$srcdir ;;
22380 *) # Relative name.
22381 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22382 ac_top_srcdir=$ac_top_build_prefix$srcdir
22383 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
daa2886c 22384esac
fc6ffb29 22385ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
875927f6 22386
daa2886c 22387
fc6ffb29
AJ
22388 case $ac_mode in
22389 :F)
22390 #
22391 # CONFIG_FILE
22392 #
e2991ea7 22393
f5818d2f
AJ
22394 case $INSTALL in
22395 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
fc6ffb29 22396 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d7d4fdf8 22397 esac
fc6ffb29 22398_ACEOF
da0cfb36 22399
fc6ffb29
AJ
22400cat >>$CONFIG_STATUS <<\_ACEOF
22401# If the template does not know about datarootdir, expand it.
22402# FIXME: This hack should be removed a few years after 2.60.
0ebeb530 22403ac_datarootdir_hack=; ac_datarootdir_seen=
875927f6 22404
fc6ffb29
AJ
22405case `sed -n '/datarootdir/ {
22406 p
22407 q
22408}
22409/@datadir@/p
22410/@docdir@/p
22411/@infodir@/p
22412/@localedir@/p
22413/@mandir@/p
22414' $ac_file_inputs` in
0ebeb530 22415*datarootdir*) ac_datarootdir_seen=yes;;
fc6ffb29
AJ
22416*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22417 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22418echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
daa2886c 22419_ACEOF
fc6ffb29
AJ
22420cat >>$CONFIG_STATUS <<_ACEOF
22421 ac_datarootdir_hack='
22422 s&@datadir@&$datadir&g
22423 s&@docdir@&$docdir&g
22424 s&@infodir@&$infodir&g
22425 s&@localedir@&$localedir&g
22426 s&@mandir@&$mandir&g
22427 s&\\\${datarootdir}&$datarootdir&g' ;;
22428esac
22429_ACEOF
22430
22431# Neutralize VPATH when `$srcdir' = `.'.
22432# Shell code in configure.ac might set extrasub.
22433# FIXME: do we really want to maintain this feature?
daa2886c 22434cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f
AJ
22435 sed "$ac_vpsub
22436$extrasub
daa2886c
AJ
22437_ACEOF
22438cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
22439:t
22440/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
fc6ffb29
AJ
22441s&@configure_input@&$configure_input&;t t
22442s&@top_builddir@&$ac_top_builddir_sub&;t t
22443s&@srcdir@&$ac_srcdir&;t t
22444s&@abs_srcdir@&$ac_abs_srcdir&;t t
22445s&@top_srcdir@&$ac_top_srcdir&;t t
22446s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22447s&@builddir@&$ac_builddir&;t t
22448s&@abs_builddir@&$ac_abs_builddir&;t t
22449s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22450s&@INSTALL@&$ac_INSTALL&;t t
22451$ac_datarootdir_hack
22452" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22453
0ebeb530
JW
22454test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22455 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
f5f37a85 22456 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
0ebeb530
JW
22457 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22458which seems to be undefined. Please make sure it is defined." >&5
22459echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22460which seems to be undefined. Please make sure it is defined." >&2;}
22461
fc6ffb29 22462 rm -f "$tmp/stdin"
f5818d2f 22463 case $ac_file in
fc6ffb29
AJ
22464 -) cat "$tmp/out"; rm -f "$tmp/out";;
22465 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18f92e76 22466 esac
fc6ffb29
AJ
22467 ;;
22468 :H)
22469 #
22470 # CONFIG_HEADER
22471 #
fc6ffb29
AJ
22472_ACEOF
22473
22474# Transform confdefs.h into a sed script `conftest.defines', that
22475# substitutes the proper values into config.h.in to produce config.h.
22476rm -f conftest.defines conftest.tail
22477# First, append a space to every undef/define line, to ease matching.
22478echo 's/$/ /' >conftest.defines
22479# Then, protect against being on the right side of a sed subst, or in
22480# an unquoted here document, in config.status. If some macros were
22481# called several times there might be several #defines for the same
22482# symbol, which is useless. But do not sort them, since the last
22483# AC_DEFINE must be honored.
22484ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
0ebeb530
JW
22485# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22486# NAME is the cpp macro being defined, VALUE is the value it is being given.
22487# PARAMS is the parameter list in the macro definition--in most cases, it's
22488# just an empty string.
22489ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22490ac_dB='\\)[ (].*,\\1define\\2'
22491ac_dC=' '
22492ac_dD=' ,'
22493
fc6ffb29
AJ
22494uniq confdefs.h |
22495 sed -n '
22496 t rset
22497 :rset
22498 s/^[ ]*#[ ]*define[ ][ ]*//
22499 t ok
22500 d
22501 :ok
22502 s/[\\&,]/\\&/g
0ebeb530
JW
22503 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22504 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
fc6ffb29
AJ
22505 ' >>conftest.defines
22506
22507# Remove the space that was appended to ease matching.
22508# Then replace #undef with comments. This is necessary, for
18f92e76
AJ
22509# example, in the case of _POSIX_SOURCE, which is predefined and required
22510# on some systems where configure will not decide to define it.
fc6ffb29
AJ
22511# (The regexp can be short, since the line contains either #define or #undef.)
22512echo 's/ $//
22513s,^[ #]*u.*,/* & */,' >>conftest.defines
22514
22515# Break up conftest.defines:
0ebeb530 22516ac_max_sed_lines=50
fc6ffb29
AJ
22517
22518# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22519# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22520# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22521# et cetera.
22522ac_in='$ac_file_inputs'
22523ac_out='"$tmp/out1"'
22524ac_nxt='"$tmp/out2"'
22525
22526while :
f5818d2f 22527do
fc6ffb29 22528 # Write a here document:
0ebeb530
JW
22529 cat >>$CONFIG_STATUS <<_ACEOF
22530 # First, check the format of the line:
22531 cat >"\$tmp/defines.sed" <<\\CEOF
22532/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22533/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
fc6ffb29 22534b
0ebeb530
JW
22535:def
22536_ACEOF
fc6ffb29 22537 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
f5818d2f 22538 echo 'CEOF
fc6ffb29
AJ
22539 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22540 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22541 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22542 grep . conftest.tail >/dev/null || break
f5818d2f
AJ
22543 rm -f conftest.defines
22544 mv conftest.tail conftest.defines
22545done
fc6ffb29 22546rm -f conftest.defines conftest.tail
f5818d2f 22547
fc6ffb29 22548echo "ac_result=$ac_in" >>$CONFIG_STATUS
daa2886c 22549cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f 22550 if test x"$ac_file" != x-; then
fc6ffb29
AJ
22551 echo "/* $configure_input */" >"$tmp/config.h"
22552 cat "$ac_result" >>"$tmp/config.h"
22553 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
daa2886c 22554 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
f5818d2f
AJ
22555echo "$as_me: $ac_file is unchanged" >&6;}
22556 else
f5818d2f 22557 rm -f $ac_file
fc6ffb29 22558 mv "$tmp/config.h" $ac_file
18f92e76 22559 fi
f5818d2f 22560 else
fc6ffb29
AJ
22561 echo "/* $configure_input */"
22562 cat "$ac_result"
18f92e76 22563 fi
fc6ffb29
AJ
22564 rm -f "$tmp/out12"
22565 ;;
875927f6 22566
fc6ffb29
AJ
22567 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22568echo "$as_me: executing $ac_file commands" >&6;}
22569 ;;
22570 esac
daa2886c
AJ
22571
22572
fc6ffb29 22573 case $ac_file$ac_mode in
c4704c2d 22574 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
7dfc4477
AJ
22575 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/enhmfdrv" >&5
22576echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;} && mkdir "dlls/gdi32/enhmfdrv") ;;
22577 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/mfdrv" >&5
22578echo "$as_me: creating dlls/gdi32/mfdrv" >&6;} && mkdir "dlls/gdi32/mfdrv") ;;
1c60e3bf
AJ
22579 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5
22580echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;;
b8a2e3b8
AJ
22581 "dlls/user32/resources":C) test -d "dlls/user32/resources" || ({ echo "$as_me:$LINENO: creating dlls/user32/resources" >&5
22582echo "$as_me: creating dlls/user32/resources" >&6;} && mkdir "dlls/user32/resources") ;;
fc6ffb29 22583 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
57ed75bf 22584echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
fc6ffb29 22585 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
f5818d2f 22586echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
fc6ffb29 22587
f5818d2f 22588 esac
fc6ffb29 22589done # for ac_tag
e2991ea7 22590
87a2f8df 22591
f5818d2f 22592{ (exit 0); exit 0; }
daa2886c 22593_ACEOF
e2991ea7 22594chmod +x $CONFIG_STATUS
f5818d2f
AJ
22595ac_clean_files=$ac_clean_files_save
22596
daa2886c 22597
f5818d2f
AJ
22598# configure is writing to config.log, and then calls config.status.
22599# config.status does its own redirection, appending to config.log.
22600# Unfortunately, on DOS this fails, as config.log is still kept open
22601# by configure, so config.status won't be able to write to it; its
22602# output is simply discarded. So we exec the FD to /dev/null,
22603# effectively closing config.log, so it can be properly (re)opened and
22604# appended to by config.status. When coming back to configure, we
22605# need to make the FD available again.
22606if test "$no_create" != yes; then
22607 ac_cs_success=:
e24bcc77
AJ
22608 ac_config_status_args=
22609 test "$silent" = yes &&
22610 ac_config_status_args="$ac_config_status_args --quiet"
f5818d2f 22611 exec 5>/dev/null
e24bcc77 22612 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
f5818d2f
AJ
22613 exec 5>>config.log
22614 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22615 # would make configure fail if this is the last instruction.
22616 $ac_cs_success || { (exit 1); exit 1; }
22617fi
e2991ea7 22618
daa2886c 22619
e3bd111b
AJ
22620if test "$no_create" = "yes"
22621then
22622 exit 0
22623fi
22624
f9dec94f
AJ
22625ac_save_IFS="$IFS"
22626IFS="|"
22627if test "$verbose" = "yes"; then
22628 for msg in $wine_notices; do
22629 if test -n "$msg"; then
22630 echo >&2
22631 { echo "$as_me:$LINENO: $msg" >&5
22632echo "$as_me: $msg" >&6;}
22633 fi
22634 done
99d026fb 22635fi
f9dec94f
AJ
22636for msg in $wine_warnings; do
22637 if test -n "$msg"; then
22638 echo >&2
22639 { echo "$as_me:$LINENO: WARNING: $msg" >&5
22640echo "$as_me: WARNING: $msg" >&2;}
22641 fi
22642done
22643IFS="$ac_save_IFS"
99d026fb 22644
e2991ea7 22645echo
5606d104 22646echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
e2991ea7
AJ
22647echo
22648