ntdll: Fix NtAccessCheck for NULL, but present SACLs and DACLs.
[wine] / configure
CommitLineData
e2991ea7 1#! /bin/sh
e2991ea7 2# Guess values for system-dependent variables and create Makefiles.
7be8a646 3# Generated by GNU Autoconf 2.61 for Wine 0.9.47.
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'
7be8a646
AJ
577PACKAGE_VERSION='0.9.47'
578PACKAGE_STRING='Wine 0.9.47'
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
fc6ffb29
AJ
746RESOLVLIBS
747LCMSLIBS
748LDAPLIBS
24a55f38 749ft_devel
fc6ffb29
AJ
750FREETYPELIBS
751FREETYPEINCL
fc6ffb29 752FONTSSUBDIRS
fc6ffb29
AJ
753ESDCONFIG
754ESDLIBS
755ESDINCL
756ALSALIBS
757AUDIOIOLIBS
758EXTRACFLAGS
759BUILTINFLAG
fc6ffb29
AJ
760LDPATH
761CRTLIBS
762SOCKETLIBS
763MAIN_BINARY
764EXTRA_BINARIES
e533e972 765LIBDL
1089260f 766LIBPOLL
32ab895e 767DEPENDENCIES
fc6ffb29
AJ
768LIBOBJS
769LTLIBOBJS'
770ac_subst_files='MAKE_RULES
771MAKE_DLL_RULES
772MAKE_IMPLIB_RULES
773MAKE_TEST_RULES
fc6ffb29
AJ
774MAKE_PROG_RULES'
775 ac_precious_vars='build_alias
776host_alias
777target_alias
778CC
779CFLAGS
780LDFLAGS
dc9f3843 781LIBS
fc6ffb29
AJ
782CPPFLAGS
783CXX
784CXXFLAGS
785CCC
786XMKMF
787CPP'
788
daa2886c 789
e2991ea7 790# Initialize some variables set by options.
f5818d2f
AJ
791ac_init_help=
792ac_init_version=false
e2991ea7
AJ
793# The variables have the same names as the options, with
794# dashes changed to underlines.
f5818d2f 795cache_file=/dev/null
e2991ea7 796exec_prefix=NONE
e2991ea7 797no_create=
e2991ea7
AJ
798no_recursion=
799prefix=NONE
800program_prefix=NONE
801program_suffix=NONE
802program_transform_name=s,x,x,
803silent=
804site=
805srcdir=
e2991ea7
AJ
806verbose=
807x_includes=NONE
808x_libraries=NONE
f5818d2f
AJ
809
810# Installation directory options.
811# These are left unexpanded so users can "make install exec_prefix=/foo"
812# and all the variables that are supposed to be based on exec_prefix
813# by default will actually change.
814# Use braces instead of parens because sh, perl, etc. also accept them.
fc6ffb29 815# (The list follows the same order as the GNU Coding Standards.)
d7d4fdf8
AJ
816bindir='${exec_prefix}/bin'
817sbindir='${exec_prefix}/sbin'
818libexecdir='${exec_prefix}/libexec'
fc6ffb29
AJ
819datarootdir='${prefix}/share'
820datadir='${datarootdir}'
d7d4fdf8
AJ
821sysconfdir='${prefix}/etc'
822sharedstatedir='${prefix}/com'
823localstatedir='${prefix}/var'
d7d4fdf8
AJ
824includedir='${prefix}/include'
825oldincludedir='/usr/include'
fc6ffb29
AJ
826docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827infodir='${datarootdir}/info'
828htmldir='${docdir}'
829dvidir='${docdir}'
830pdfdir='${docdir}'
831psdir='${docdir}'
832libdir='${exec_prefix}/lib'
833localedir='${datarootdir}/locale'
834mandir='${datarootdir}/man'
e2991ea7 835
e2991ea7 836ac_prev=
fc6ffb29 837ac_dashdash=
e2991ea7
AJ
838for ac_option
839do
e2991ea7
AJ
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
fc6ffb29 842 eval $ac_prev=\$ac_option
e2991ea7
AJ
843 ac_prev=
844 continue
845 fi
846
fc6ffb29
AJ
847 case $ac_option in
848 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *) ac_optarg=yes ;;
850 esac
e2991ea7
AJ
851
852 # Accept the important Cygnus configure options, so we can diagnose typos.
853
fc6ffb29
AJ
854 case $ac_dashdash$ac_option in
855 --)
856 ac_dashdash=yes ;;
e2991ea7 857
d7d4fdf8
AJ
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
f5818d2f 861 bindir=$ac_optarg ;;
d7d4fdf8
AJ
862
863 -build | --build | --buil | --bui | --bu)
f5818d2f 864 ac_prev=build_alias ;;
d7d4fdf8 865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
f5818d2f 866 build_alias=$ac_optarg ;;
e2991ea7
AJ
867
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
f5818d2f
AJ
873 cache_file=$ac_optarg ;;
874
875 --config-cache | -C)
876 cache_file=config.cache ;;
e2991ea7 877
fc6ffb29 878 -datadir | --datadir | --datadi | --datad)
d7d4fdf8 879 ac_prev=datadir ;;
fc6ffb29 880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
f5818d2f 881 datadir=$ac_optarg ;;
d7d4fdf8 882
fc6ffb29
AJ
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
889
e2991ea7 890 -disable-* | --disable-*)
f5818d2f 891 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
e2991ea7 892 # Reject names that are not valid shell variable names.
dc9f3843 893 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
f5818d2f
AJ
894 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
895 { (exit 1); exit 1; }; }
dc9f3843 896 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
fc6ffb29
AJ
897 eval enable_$ac_feature=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
e2991ea7
AJ
908
909 -enable-* | --enable-*)
f5818d2f 910 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
e2991ea7 911 # Reject names that are not valid shell variable names.
dc9f3843 912 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
f5818d2f
AJ
913 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
914 { (exit 1); exit 1; }; }
dc9f3843 915 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
fc6ffb29 916 eval enable_$ac_feature=\$ac_optarg ;;
e2991ea7
AJ
917
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
f5818d2f 925 exec_prefix=$ac_optarg ;;
e2991ea7
AJ
926
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
929 with_gas=yes ;;
930
f5818d2f
AJ
931 -help | --help | --hel | --he | -h)
932 ac_init_help=long ;;
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
e2991ea7
AJ
937
938 -host | --host | --hos | --ho)
f5818d2f 939 ac_prev=host_alias ;;
e2991ea7 940 -host=* | --host=* | --hos=* | --ho=*)
f5818d2f 941 host_alias=$ac_optarg ;;
e2991ea7 942
fc6ffb29
AJ
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 ac_prev=htmldir ;;
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 | --ht=*)
947 htmldir=$ac_optarg ;;
948
d7d4fdf8
AJ
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
f5818d2f 954 includedir=$ac_optarg ;;
d7d4fdf8
AJ
955
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 ac_prev=infodir ;;
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
f5818d2f 959 infodir=$ac_optarg ;;
d7d4fdf8
AJ
960
961 -libdir | --libdir | --libdi | --libd)
962 ac_prev=libdir ;;
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
f5818d2f 964 libdir=$ac_optarg ;;
d7d4fdf8
AJ
965
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
f5818d2f 971 libexecdir=$ac_optarg ;;
d7d4fdf8 972
fc6ffb29
AJ
973 -localedir | --localedir | --localedi | --localed | --locale)
974 ac_prev=localedir ;;
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
977
d7d4fdf8 978 -localstatedir | --localstatedir | --localstatedi | --localstated \
fc6ffb29 979 | --localstate | --localstat | --localsta | --localst | --locals)
d7d4fdf8
AJ
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
fc6ffb29 982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
f5818d2f 983 localstatedir=$ac_optarg ;;
d7d4fdf8
AJ
984
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 ac_prev=mandir ;;
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
f5818d2f 988 mandir=$ac_optarg ;;
d7d4fdf8 989
e2991ea7
AJ
990 -nfp | --nfp | --nf)
991 # Obsolete; use --without-fp.
992 with_fp=no ;;
993
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
daa2886c 995 | --no-cr | --no-c | -n)
e2991ea7
AJ
996 no_create=yes ;;
997
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 no_recursion=yes ;;
1001
d7d4fdf8
AJ
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
f5818d2f 1009 oldincludedir=$ac_optarg ;;
d7d4fdf8 1010
e2991ea7
AJ
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 ac_prev=prefix ;;
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f5818d2f 1014 prefix=$ac_optarg ;;
e2991ea7
AJ
1015
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
f5818d2f 1021 program_prefix=$ac_optarg ;;
e2991ea7
AJ
1022
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
f5818d2f 1028 program_suffix=$ac_optarg ;;
e2991ea7
AJ
1029
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
f5818d2f 1045 program_transform_name=$ac_optarg ;;
e2991ea7 1046
fc6ffb29
AJ
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 ac_prev=pdfdir ;;
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1051
1052 -psdir | --psdir | --psdi | --psd | --ps)
1053 ac_prev=psdir ;;
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 psdir=$ac_optarg ;;
1056
e2991ea7
AJ
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 silent=yes ;;
1060
d7d4fdf8
AJ
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 ac_prev=sbindir ;;
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 | --sbi=* | --sb=*)
f5818d2f 1065 sbindir=$ac_optarg ;;
d7d4fdf8
AJ
1066
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1070 | --sha | --sh)
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 | --sha=* | --sh=*)
f5818d2f 1076 sharedstatedir=$ac_optarg ;;
d7d4fdf8 1077
e2991ea7
AJ
1078 -site | --site | --sit)
1079 ac_prev=site ;;
1080 -site=* | --site=* | --sit=*)
f5818d2f 1081 site=$ac_optarg ;;
e2991ea7
AJ
1082
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 ac_prev=srcdir ;;
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
f5818d2f 1086 srcdir=$ac_optarg ;;
e2991ea7 1087
d7d4fdf8
AJ
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
f5818d2f 1093 sysconfdir=$ac_optarg ;;
d7d4fdf8 1094
e2991ea7 1095 -target | --target | --targe | --targ | --tar | --ta | --t)
f5818d2f 1096 ac_prev=target_alias ;;
e2991ea7 1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
f5818d2f 1098 target_alias=$ac_optarg ;;
e2991ea7
AJ
1099
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 verbose=yes ;;
1102
f5818d2f
AJ
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
e2991ea7
AJ
1105
1106 -with-* | --with-*)
f5818d2f 1107 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
e2991ea7 1108 # Reject names that are not valid shell variable names.
dc9f3843 1109 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
f5818d2f
AJ
1110 { echo "$as_me: error: invalid package name: $ac_package" >&2
1111 { (exit 1); exit 1; }; }
dc9f3843 1112 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
fc6ffb29 1113 eval with_$ac_package=\$ac_optarg ;;
e2991ea7
AJ
1114
1115 -without-* | --without-*)
f5818d2f 1116 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
e2991ea7 1117 # Reject names that are not valid shell variable names.
dc9f3843 1118 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
f5818d2f
AJ
1119 { echo "$as_me: error: invalid package name: $ac_package" >&2
1120 { (exit 1); exit 1; }; }
dc9f3843 1121 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
fc6ffb29 1122 eval with_$ac_package=no ;;
e2991ea7
AJ
1123
1124 --x)
1125 # Obsolete; use --with-x.
1126 with_x=yes ;;
1127
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
f5818d2f 1133 x_includes=$ac_optarg ;;
e2991ea7
AJ
1134
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
f5818d2f 1140 x_libraries=$ac_optarg ;;
e2991ea7 1141
f5818d2f
AJ
1142 -*) { echo "$as_me: error: unrecognized option: $ac_option
1143Try \`$0 --help' for more information." >&2
1144 { (exit 1); exit 1; }; }
e2991ea7
AJ
1145 ;;
1146
f5818d2f
AJ
1147 *=*)
1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1152 { (exit 1); exit 1; }; }
fc6ffb29 1153 eval $ac_envvar=\$ac_optarg
f5818d2f
AJ
1154 export $ac_envvar ;;
1155
d7d4fdf8 1156 *)
f5818d2f
AJ
1157 # FIXME: should be removed in autoconf 3.0.
1158 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
e2991ea7
AJ
1162 ;;
1163
1164 esac
1165done
1166
1167if test -n "$ac_prev"; then
f5818d2f
AJ
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 { echo "$as_me: error: missing argument to $ac_option" >&2
1170 { (exit 1); exit 1; }; }
e2991ea7 1171fi
e2991ea7 1172
fc6ffb29
AJ
1173# Be sure to have absolute directory names.
1174for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
e2991ea7 1178do
fc6ffb29 1179 eval ac_val=\$$ac_var
f5818d2f 1180 case $ac_val in
fc6ffb29
AJ
1181 [\\/$]* | ?:[\\/]* ) continue;;
1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
e2991ea7 1183 esac
fc6ffb29
AJ
1184 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1185 { (exit 1); exit 1; }; }
e2991ea7
AJ
1186done
1187
f5818d2f
AJ
1188# There might be people who depend on the old broken behavior: `$host'
1189# used to hold the argument of --host etc.
daa2886c 1190# FIXME: To remove some day.
f5818d2f
AJ
1191build=$build_alias
1192host=$host_alias
1193target=$target_alias
1194
daa2886c 1195# FIXME: To remove some day.
f5818d2f
AJ
1196if test "x$host_alias" != x; then
1197 if test "x$build_alias" = x; then
1198 cross_compiling=maybe
1199 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1200 If a cross compiler is detected then cross compile mode will be used." >&2
1201 elif test "x$build_alias" != "x$host_alias"; then
1202 cross_compiling=yes
1203 fi
1204fi
e2991ea7 1205
f5818d2f
AJ
1206ac_tool_prefix=
1207test -n "$host_alias" && ac_tool_prefix=$host_alias-
e2991ea7 1208
f5818d2f 1209test "$silent" = yes && exec 6>/dev/null
e2991ea7 1210
daa2886c 1211
fc6ffb29
AJ
1212ac_pwd=`pwd` && test -n "$ac_pwd" &&
1213ac_ls_di=`ls -di .` &&
1214ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1215 { echo "$as_me: error: Working directory cannot be determined" >&2
1216 { (exit 1); exit 1; }; }
1217test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218 { echo "$as_me: error: pwd does not report name of working directory" >&2
1219 { (exit 1); exit 1; }; }
1220
1221
e2991ea7
AJ
1222# Find the source files, if location was not specified.
1223if test -z "$srcdir"; then
1224 ac_srcdir_defaulted=yes
fc6ffb29
AJ
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir=`$as_dirname -- "$0" ||
daa2886c 1227$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875927f6
AJ
1228 X"$0" : 'X\(//\)[^/]' \| \
1229 X"$0" : 'X\(//\)$' \| \
fc6ffb29 1230 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
daa2886c 1231echo X"$0" |
fc6ffb29
AJ
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1233 s//\1/
1234 q
1235 }
1236 /^X\(\/\/\)[^/].*/{
1237 s//\1/
1238 q
1239 }
1240 /^X\(\/\/\)$/{
1241 s//\1/
1242 q
1243 }
1244 /^X\(\/\).*/{
1245 s//\1/
1246 q
1247 }
1248 s/.*/./; q'`
e2991ea7 1249 srcdir=$ac_confdir
fc6ffb29 1250 if test ! -r "$srcdir/$ac_unique_file"; then
e2991ea7
AJ
1251 srcdir=..
1252 fi
1253else
1254 ac_srcdir_defaulted=no
1255fi
fc6ffb29
AJ
1256if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
f5818d2f 1259 { (exit 1); exit 1; }; }
e2991ea7 1260fi
fc6ffb29
AJ
1261ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262ac_abs_confdir=`(
1263 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
11af04e3 1264 { (exit 1); exit 1; }; }
fc6ffb29
AJ
1265 pwd)`
1266# When building in place, set srcdir=.
1267if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1269fi
1270# Remove unnecessary trailing slashes from srcdir.
1271# Double slashes in file names in object file debugging info
1272# mess up M-x gdb in Emacs.
1273case $srcdir in
1274*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275esac
1276for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281done
f5818d2f
AJ
1282
1283#
1284# Report the --help message.
1285#
1286if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
daa2886c 1289 cat <<_ACEOF
7be8a646 1290\`configure' configures Wine 0.9.47 to adapt to many kinds of systems.
f5818d2f
AJ
1291
1292Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295VAR=VALUE. See below for descriptions of some of the useful variables.
1296
1297Defaults for the options are specified in brackets.
1298
1299Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309
f5818d2f
AJ
1310Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
875927f6 1312 [$ac_default_prefix]
f5818d2f 1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
875927f6 1314 [PREFIX]
f5818d2f
AJ
1315
1316By default, \`make install' will install all the files in
1317\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319for instance \`--prefix=\$HOME'.
1320
1321For better control, use the options below.
1322
1323Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
f5818d2f
AJ
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
fc6ffb29
AJ
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
daa2886c 1343_ACEOF
f5818d2f 1344
daa2886c 1345 cat <<\_ACEOF
f5818d2f
AJ
1346
1347X features:
1348 --x-includes=DIR X include files are in DIR
1349 --x-libraries=DIR X library files are in DIR
1350
1351System types:
1352 --build=BUILD configure for building on BUILD [guessed]
daa2886c 1353 --host=HOST cross-compile to build programs to run on HOST [BUILD]
daa2886c 1354_ACEOF
f5818d2f
AJ
1355fi
1356
1357if test -n "$ac_init_help"; then
1358 case $ac_init_help in
7be8a646 1359 short | recursive ) echo "Configuration of Wine 0.9.47:";;
f5818d2f 1360 esac
daa2886c 1361 cat <<\_ACEOF
f5818d2f
AJ
1362
1363Optional Features:
1364 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1365 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
53fa0d54 1366 --disable-win16 do not include Win16 support
2aa8e871
AJ
1367 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1368 binaries)
f5818d2f
AJ
1369
1370Optional Packages:
1371 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1372 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53fa0d54 1373 --without-opengl do not use OpenGL
53fa0d54 1374 --with-wine-tools=<dir> use Wine tools from directory <dir>
f5818d2f
AJ
1375 --with-x use the X Window System
1376
1377Some influential environment variables:
53fa0d54
EP
1378 CC C compiler command
1379 CFLAGS C compiler flags
1380 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1381 nonstandard directory <lib dir>
dc9f3843 1382 LIBS libraries to pass to the linker, e.g. -l<library>
fc6ffb29
AJ
1383 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1384 you have headers in a nonstandard directory <include dir>
f41c2b21
DP
1385 CXX C++ compiler command
1386 CXXFLAGS C++ compiler flags
fc6ffb29 1387 XMKMF Path to xmkmf, Makefile generator for X Window System
53fa0d54 1388 CPP C preprocessor
f5818d2f
AJ
1389
1390Use these variables to override the choices made by `configure' or to help
1391it to find libraries and programs with nonstandard names/locations.
1392
875927f6 1393Report bugs to <wine-devel@winehq.org>.
daa2886c 1394_ACEOF
fc6ffb29 1395ac_status=$?
f5818d2f
AJ
1396fi
1397
1398if test "$ac_init_help" = "recursive"; then
1399 # If there are subdirs, report their specific --help.
daa2886c 1400 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
0ebeb530 1401 test -d "$ac_dir" || continue
daa2886c
AJ
1402 ac_builddir=.
1403
fc6ffb29
AJ
1404case "$ac_dir" in
1405.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406*)
daa2886c 1407 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
fc6ffb29
AJ
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413 esac ;;
1414esac
1415ac_abs_top_builddir=$ac_pwd
1416ac_abs_builddir=$ac_pwd$ac_dir_suffix
1417# for backward compatibility:
1418ac_top_builddir=$ac_top_build_prefix
f5818d2f 1419
daa2886c 1420case $srcdir in
fc6ffb29 1421 .) # We are building in place.
daa2886c 1422 ac_srcdir=.
fc6ffb29
AJ
1423 ac_top_srcdir=$ac_top_builddir_sub
1424 ac_abs_top_srcdir=$ac_pwd ;;
1425 [\\/]* | ?:[\\/]* ) # Absolute name.
daa2886c 1426 ac_srcdir=$srcdir$ac_dir_suffix;
fc6ffb29
AJ
1427 ac_top_srcdir=$srcdir
1428 ac_abs_top_srcdir=$srcdir ;;
1429 *) # Relative name.
1430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
875927f6 1433esac
fc6ffb29 1434ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
daa2886c 1435
fc6ffb29
AJ
1436 cd "$ac_dir" || { ac_status=$?; continue; }
1437 # Check for guested configure.
0ebeb530 1438 if test -f "$ac_srcdir/configure.gnu"; then
fc6ffb29 1439 echo &&
0ebeb530
JW
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
fc6ffb29 1442 echo &&
0ebeb530 1443 $SHELL "$ac_srcdir/configure" --help=recursive
f5818d2f 1444 else
daa2886c 1445 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
fc6ffb29
AJ
1446 fi || ac_status=$?
1447 cd "$ac_pwd" || { ac_status=$?; break; }
f5818d2f
AJ
1448 done
1449fi
e2991ea7 1450
fc6ffb29 1451test -n "$ac_init_help" && exit $ac_status
f5818d2f 1452if $ac_init_version; then
daa2886c 1453 cat <<\_ACEOF
7be8a646 1454Wine configure 0.9.47
dc9f3843 1455generated by GNU Autoconf 2.61
f5818d2f 1456
fc6ffb29
AJ
1457Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14582002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
f5818d2f
AJ
1459This configure script is free software; the Free Software Foundation
1460gives unlimited permission to copy, distribute and modify it.
daa2886c 1461_ACEOF
fc6ffb29 1462 exit
f5818d2f 1463fi
fc6ffb29 1464cat >config.log <<_ACEOF
f5818d2f
AJ
1465This file contains any messages produced by compilers while
1466running configure, to aid debugging if configure makes a mistake.
1467
7be8a646 1468It was created by Wine $as_me 0.9.47, which was
dc9f3843 1469generated by GNU Autoconf 2.61. Invocation command line was
f5818d2f
AJ
1470
1471 $ $0 $@
1472
daa2886c 1473_ACEOF
fc6ffb29 1474exec 5>>config.log
f5818d2f
AJ
1475{
1476cat <<_ASUNAME
daa2886c
AJ
1477## --------- ##
1478## Platform. ##
1479## --------- ##
f5818d2f
AJ
1480
1481hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1482uname -m = `(uname -m) 2>/dev/null || echo unknown`
1483uname -r = `(uname -r) 2>/dev/null || echo unknown`
1484uname -s = `(uname -s) 2>/dev/null || echo unknown`
1485uname -v = `(uname -v) 2>/dev/null || echo unknown`
1486
1487/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1488/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1489
1490/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1491/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1492/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
fc6ffb29 1493/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
f5818d2f
AJ
1494/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1495/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1496/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1497
f5818d2f 1498_ASUNAME
daa2886c
AJ
1499
1500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501for as_dir in $PATH
1502do
1503 IFS=$as_save_IFS
1504 test -z "$as_dir" && as_dir=.
1505 echo "PATH: $as_dir"
1506done
fc6ffb29 1507IFS=$as_save_IFS
daa2886c 1508
f5818d2f
AJ
1509} >&5
1510
daa2886c
AJ
1511cat >&5 <<_ACEOF
1512
1513
1514## ----------- ##
1515## Core tests. ##
1516## ----------- ##
1517
1518_ACEOF
f5818d2f 1519
f5818d2f
AJ
1520
1521# Keep a trace of the command line.
1522# Strip out --no-create and --no-recursion so they do not pile up.
e24bcc77 1523# Strip out --silent because we don't want to record it for future runs.
f5818d2f 1524# Also quote any args containing shell meta-characters.
e24bcc77 1525# Make two passes to allow for proper duplicate-argument suppression.
f5818d2f 1526ac_configure_args=
e24bcc77
AJ
1527ac_configure_args0=
1528ac_configure_args1=
e24bcc77
AJ
1529ac_must_keep_next=false
1530for ac_pass in 1 2
f5818d2f 1531do
e24bcc77
AJ
1532 for ac_arg
1533 do
1534 case $ac_arg in
1535 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1537 | -silent | --silent | --silen | --sile | --sil)
1538 continue ;;
fc6ffb29 1539 *\'*)
e24bcc77
AJ
1540 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1541 esac
1542 case $ac_pass in
1543 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544 2)
1545 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1546 if test $ac_must_keep_next = true; then
875927f6 1547 ac_must_keep_next=false # Got value, back to normal.
e24bcc77 1548 else
875927f6
AJ
1549 case $ac_arg in
1550 *=* | --config-cache | -C | -disable-* | --disable-* \
1551 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1552 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1553 | -with-* | --with-* | -without-* | --without-* | --x)
1554 case "$ac_configure_args0 " in
1555 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1556 esac
1557 ;;
1558 -* ) ac_must_keep_next=true ;;
1559 esac
e24bcc77 1560 fi
0ebeb530 1561 ac_configure_args="$ac_configure_args '$ac_arg'"
e24bcc77
AJ
1562 ;;
1563 esac
1564 done
f5818d2f 1565done
e24bcc77
AJ
1566$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1567$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
f5818d2f
AJ
1568
1569# When interrupted or exit'd, cleanup temporary files, and complete
1570# config.log. We remove comments because anyway the quotes in there
1571# would cause problems or look ugly.
fc6ffb29
AJ
1572# WARNING: Use '\'' to represent an apostrophe within the trap.
1573# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
f5818d2f
AJ
1574trap 'exit_status=$?
1575 # Save into config.log some information that might help in debugging.
daa2886c
AJ
1576 {
1577 echo
11af04e3 1578
daa2886c
AJ
1579 cat <<\_ASBOX
1580## ---------------- ##
1581## Cache variables. ##
1582## ---------------- ##
1583_ASBOX
1584 echo
1585 # The following way of writing the cache mishandles newlines in values,
fc6ffb29
AJ
1586(
1587 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1588 eval ac_val=\$$ac_var
1589 case $ac_val in #(
1590 *${as_nl}*)
1591 case $ac_var in #(
1592 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1593echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1594 esac
1595 case $ac_var in #(
1596 _ | IFS | as_nl) ;; #(
1597 *) $as_unset $ac_var ;;
1598 esac ;;
1599 esac
1600 done
f5818d2f 1601 (set) 2>&1 |
fc6ffb29
AJ
1602 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1603 *${as_nl}ac_space=\ *)
f5818d2f 1604 sed -n \
fc6ffb29
AJ
1605 "s/'\''/'\''\\\\'\'''\''/g;
1606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1607 ;; #(
f5818d2f 1608 *)
fc6ffb29 1609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f5818d2f 1610 ;;
fc6ffb29
AJ
1611 esac |
1612 sort
1613)
daa2886c 1614 echo
11af04e3
AJ
1615
1616 cat <<\_ASBOX
1617## ----------------- ##
1618## Output variables. ##
1619## ----------------- ##
1620_ASBOX
1621 echo
1622 for ac_var in $ac_subst_vars
1623 do
fc6ffb29 1624 eval ac_val=\$$ac_var
0ebeb530
JW
1625 case $ac_val in
1626 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 esac
fc6ffb29 1628 echo "$ac_var='\''$ac_val'\''"
11af04e3
AJ
1629 done | sort
1630 echo
1631
1632 if test -n "$ac_subst_files"; then
1633 cat <<\_ASBOX
fc6ffb29
AJ
1634## ------------------- ##
1635## File substitutions. ##
1636## ------------------- ##
11af04e3
AJ
1637_ASBOX
1638 echo
1639 for ac_var in $ac_subst_files
1640 do
fc6ffb29 1641 eval ac_val=\$$ac_var
0ebeb530
JW
1642 case $ac_val in
1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 esac
fc6ffb29 1645 echo "$ac_var='\''$ac_val'\''"
11af04e3
AJ
1646 done | sort
1647 echo
1648 fi
1649
daa2886c
AJ
1650 if test -s confdefs.h; then
1651 cat <<\_ASBOX
1652## ----------- ##
1653## confdefs.h. ##
1654## ----------- ##
1655_ASBOX
1656 echo
fc6ffb29 1657 cat confdefs.h
daa2886c
AJ
1658 echo
1659 fi
1660 test "$ac_signal" != 0 &&
1661 echo "$as_me: caught signal $ac_signal"
1662 echo "$as_me: exit $exit_status"
1663 } >&5
fc6ffb29
AJ
1664 rm -f core *.core core.conftest.* &&
1665 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
f5818d2f 1666 exit $exit_status
fc6ffb29 1667' 0
f5818d2f
AJ
1668for ac_signal in 1 2 13 15; do
1669 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1670done
1671ac_signal=0
1672
1673# confdefs.h avoids OS command line length limits that DEFS can exceed.
fc6ffb29 1674rm -f -r conftest* confdefs.h
f5818d2f 1675
daa2886c
AJ
1676# Predefined preprocessor variables.
1677
1678cat >>confdefs.h <<_ACEOF
1679#define PACKAGE_NAME "$PACKAGE_NAME"
1680_ACEOF
1681
1682
1683cat >>confdefs.h <<_ACEOF
1684#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1685_ACEOF
1686
1687
1688cat >>confdefs.h <<_ACEOF
1689#define PACKAGE_VERSION "$PACKAGE_VERSION"
1690_ACEOF
1691
1692
1693cat >>confdefs.h <<_ACEOF
1694#define PACKAGE_STRING "$PACKAGE_STRING"
1695_ACEOF
1696
1697
1698cat >>confdefs.h <<_ACEOF
1699#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1700_ACEOF
1701
1702
f5818d2f 1703# Let the site file select an alternate cache file if it wants to.
e2991ea7 1704# Prefer explicitly selected file to automatically selected ones.
fc6ffb29
AJ
1705if test -n "$CONFIG_SITE"; then
1706 set x "$CONFIG_SITE"
1707elif test "x$prefix" != xNONE; then
1708 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1709else
1710 set x "$ac_default_prefix/share/config.site" \
1711 "$ac_default_prefix/etc/config.site"
e2991ea7 1712fi
fc6ffb29
AJ
1713shift
1714for ac_site_file
1715do
e2991ea7 1716 if test -r "$ac_site_file"; then
daa2886c 1717 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
f5818d2f 1718echo "$as_me: loading site script $ac_site_file" >&6;}
daa2886c 1719 sed 's/^/| /' "$ac_site_file" >&5
e2991ea7
AJ
1720 . "$ac_site_file"
1721 fi
1722done
1723
1724if test -r "$cache_file"; then
f5818d2f
AJ
1725 # Some versions of bash will fail to source /dev/null (special
1726 # files actually), so we avoid doing that.
1727 if test -f "$cache_file"; then
daa2886c 1728 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
f5818d2f
AJ
1729echo "$as_me: loading cache $cache_file" >&6;}
1730 case $cache_file in
0ebeb530
JW
1731 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1732 *) . "./$cache_file";;
f5818d2f
AJ
1733 esac
1734 fi
e2991ea7 1735else
daa2886c 1736 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
f5818d2f
AJ
1737echo "$as_me: creating cache $cache_file" >&6;}
1738 >$cache_file
1739fi
1740
1741# Check that the precious variables saved in the cache have kept the same
1742# value.
1743ac_cache_corrupted=false
fc6ffb29 1744for ac_var in $ac_precious_vars; do
f5818d2f
AJ
1745 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1746 eval ac_new_set=\$ac_env_${ac_var}_set
fc6ffb29
AJ
1747 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1748 eval ac_new_val=\$ac_env_${ac_var}_value
f5818d2f
AJ
1749 case $ac_old_set,$ac_new_set in
1750 set,)
daa2886c 1751 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
f5818d2f
AJ
1752echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1753 ac_cache_corrupted=: ;;
1754 ,set)
daa2886c 1755 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
f5818d2f
AJ
1756echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1757 ac_cache_corrupted=: ;;
1758 ,);;
1759 *)
1760 if test "x$ac_old_val" != "x$ac_new_val"; then
875927f6 1761 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
f5818d2f 1762echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
875927f6 1763 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
f5818d2f 1764echo "$as_me: former value: $ac_old_val" >&2;}
875927f6 1765 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
f5818d2f 1766echo "$as_me: current value: $ac_new_val" >&2;}
875927f6 1767 ac_cache_corrupted=:
f5818d2f
AJ
1768 fi;;
1769 esac
daa2886c 1770 # Pass precious variables to config.status.
f5818d2f
AJ
1771 if test "$ac_new_set" = set; then
1772 case $ac_new_val in
fc6ffb29 1773 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
daa2886c
AJ
1774 *) ac_arg=$ac_var=$ac_new_val ;;
1775 esac
1776 case " $ac_configure_args " in
1777 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1778 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
f5818d2f
AJ
1779 esac
1780 fi
1781done
1782if $ac_cache_corrupted; then
daa2886c 1783 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
f5818d2f 1784echo "$as_me: error: changes in the environment can compromise the build" >&2;}
daa2886c 1785 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
f5818d2f
AJ
1786echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1787 { (exit 1); exit 1; }; }
e2991ea7
AJ
1788fi
1789
daa2886c
AJ
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
fc6ffb29
AJ
1814ac_ext=c
1815ac_cpp='$CPP $CPPFLAGS'
1816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1818ac_compiler_gnu=$ac_cv_c_compiler_gnu
daa2886c 1819
e2991ea7 1820
11af04e3 1821
fc6ffb29 1822ac_config_headers="$ac_config_headers include/config.h"
18f92e76 1823
d7d4fdf8 1824ac_aux_dir=
0ebeb530
JW
1825for ac_dir in tools "$srcdir"/tools; do
1826 if test -f "$ac_dir/install-sh"; then
d7d4fdf8
AJ
1827 ac_aux_dir=$ac_dir
1828 ac_install_sh="$ac_aux_dir/install-sh -c"
1829 break
0ebeb530 1830 elif test -f "$ac_dir/install.sh"; then
d7d4fdf8
AJ
1831 ac_aux_dir=$ac_dir
1832 ac_install_sh="$ac_aux_dir/install.sh -c"
1833 break
0ebeb530 1834 elif test -f "$ac_dir/shtool"; then
f5818d2f
AJ
1835 ac_aux_dir=$ac_dir
1836 ac_install_sh="$ac_aux_dir/shtool install -c"
1837 break
d7d4fdf8
AJ
1838 fi
1839done
1840if test -z "$ac_aux_dir"; then
0ebeb530
JW
1841 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1842echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
f5818d2f 1843 { (exit 1); exit 1; }; }
d7d4fdf8 1844fi
0ebeb530
JW
1845
1846# These three variables are undocumented and unsupported,
1847# and are intended to be withdrawn in a future Autoconf release.
1848# They can cause serious problems if a builder's source tree is in a directory
1849# whose full name contains unusual characters.
1850ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1851ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1852ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1853
ff8331ea 1854
daa2886c
AJ
1855
1856
fc6ffb29 1857# Check whether --enable-win16 was given.
c728efc3 1858if test "${enable_win16+set}" = set; then
fc6ffb29
AJ
1859 enableval=$enable_win16;
1860fi
c728efc3 1861
fc6ffb29 1862# Check whether --enable-win64 was given.
2aa8e871 1863if test "${enable_win64+set}" = set; then
fc6ffb29
AJ
1864 enableval=$enable_win64;
1865fi
2aa8e871 1866
b8074991
AJ
1867
1868
fc6ffb29 1869# Check whether --with-opengl was given.
b8074991 1870if test "${with_opengl+set}" = set; then
fc6ffb29
AJ
1871 withval=$with_opengl;
1872fi
f90efa9c
AJ
1873
1874
fc6ffb29 1875# Check whether --with-wine-tools was given.
fc01b729 1876if test "${with_wine_tools+set}" = set; then
fc6ffb29
AJ
1877 withval=$with_wine_tools;
1878fi
fc01b729 1879
fc01b729 1880
f5818d2f 1881# Make sure we can run config.sub.
0ebeb530
JW
1882$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1883 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1884echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
f5818d2f
AJ
1885 { (exit 1); exit 1; }; }
1886
fc6ffb29
AJ
1887{ echo "$as_me:$LINENO: checking build system type" >&5
1888echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
f5818d2f
AJ
1889if test "${ac_cv_build+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
fc6ffb29
AJ
1892 ac_build_alias=$build_alias
1893test "x$ac_build_alias" = x &&
0ebeb530 1894 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
fc6ffb29 1895test "x$ac_build_alias" = x &&
daa2886c 1896 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
f5818d2f
AJ
1897echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1898 { (exit 1); exit 1; }; }
0ebeb530
JW
1899ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1900 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1901echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
f5818d2f
AJ
1902 { (exit 1); exit 1; }; }
1903
1904fi
fc6ffb29
AJ
1905{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1906echo "${ECHO_T}$ac_cv_build" >&6; }
1907case $ac_cv_build in
1908*-*-*) ;;
1909*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1910echo "$as_me: error: invalid value of canonical build" >&2;}
1911 { (exit 1); exit 1; }; };;
1912esac
f5818d2f 1913build=$ac_cv_build
fc6ffb29
AJ
1914ac_save_IFS=$IFS; IFS='-'
1915set x $ac_cv_build
1916shift
1917build_cpu=$1
1918build_vendor=$2
1919shift; shift
1920# Remember, the first character of IFS is used to create $*,
1921# except with old shells:
1922build_os=$*
1923IFS=$ac_save_IFS
1924case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1925
1926
1927{ echo "$as_me:$LINENO: checking host system type" >&5
1928echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
f5818d2f
AJ
1929if test "${ac_cv_host+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931else
fc6ffb29
AJ
1932 if test "x$host_alias" = x; then
1933 ac_cv_host=$ac_cv_build
1934else
0ebeb530
JW
1935 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1936 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1937echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
f5818d2f 1938 { (exit 1); exit 1; }; }
fc6ffb29 1939fi
f5818d2f
AJ
1940
1941fi
fc6ffb29
AJ
1942{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1943echo "${ECHO_T}$ac_cv_host" >&6; }
1944case $ac_cv_host in
1945*-*-*) ;;
1946*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1947echo "$as_me: error: invalid value of canonical host" >&2;}
1948 { (exit 1); exit 1; }; };;
1949esac
f5818d2f 1950host=$ac_cv_host
fc6ffb29
AJ
1951ac_save_IFS=$IFS; IFS='-'
1952set x $ac_cv_host
1953shift
1954host_cpu=$1
1955host_vendor=$2
1956shift; shift
1957# Remember, the first character of IFS is used to create $*,
1958# except with old shells:
1959host_os=$*
1960IFS=$ac_save_IFS
1961case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
f5818d2f 1962
daa2886c 1963
2aa8e871
AJ
1964case $host in
1965 x86_64*linux*)
1966 if test "x$enable_win64" != "xyes"
1967 then
1968 test -n "$CC" || CC="gcc -m32"
e06016fa 1969 test -n "$CXX"|| CXX="g++ -m32"
2aa8e871
AJ
1970 test -n "$LD" || LD="ld -m elf_i386"
1971 test -n "$AS" || AS="as --32"
bbcf9864 1972 host_cpu="i386"
2aa8e871
AJ
1973 fi
1974 ;;
1975esac
1976
71440f35
AJ
1977case $host_cpu in
1978 *i[3456789]86*)
1979 if test "x$enable_win16" != "xno"
1980 then
1981 enable_win16="yes"
1982 fi
1983 ;;
1984esac
1985
1986WIN16_FILES="\$(WIN16_FILES)"
1987
1988WIN16_INSTALL="\$(WIN16_INSTALL)"
1989
1990if test "x$enable_win16" != "xyes"
1991then
1992 WIN16_FILES=""
1993 WIN16_INSTALL=""
1994fi
1995
73b724e7
AJ
1996case "$srcdir" in
1997 .) ;;
1998 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
1999 { { echo "$as_me:$LINENO: error: you are building out of the source tree, but the source tree contains object files.
2000You need to run 'make distclean' in the source tree first." >&5
2001echo "$as_me: error: you are building out of the source tree, but the source tree contains object files.
2002You need to run 'make distclean' in the source tree first." >&2;}
2003 { (exit 1); exit 1; }; }
2004 fi ;;
2005esac
2006
71440f35 2007
fc6ffb29
AJ
2008{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2009echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
0ebeb530 2010set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
fc6ffb29 2011if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f
AJ
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013else
daa2886c 2014 cat >conftest.make <<\_ACEOF
fc6ffb29 2015SHELL = /bin/sh
e2991ea7 2016all:
0ebeb530 2017 @echo '@@@%%%=$(MAKE)=@@@%%%'
daa2886c 2018_ACEOF
e2991ea7 2019# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0ebeb530
JW
2020case `${MAKE-make} -f conftest.make 2>/dev/null` in
2021 *@@@%%%=?*=@@@%%%*)
2022 eval ac_cv_prog_make_${ac_make}_set=yes;;
2023 *)
2024 eval ac_cv_prog_make_${ac_make}_set=no;;
2025esac
f5818d2f 2026rm -f conftest.make
e2991ea7 2027fi
0ebeb530 2028if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
fc6ffb29
AJ
2029 { echo "$as_me:$LINENO: result: yes" >&5
2030echo "${ECHO_T}yes" >&6; }
e2991ea7
AJ
2031 SET_MAKE=
2032else
fc6ffb29
AJ
2033 { echo "$as_me:$LINENO: result: no" >&5
2034echo "${ECHO_T}no" >&6; }
e2991ea7
AJ
2035 SET_MAKE="MAKE=${MAKE-make}"
2036fi
2037
f5818d2f
AJ
2038ac_ext=c
2039ac_cpp='$CPP $CPPFLAGS'
2040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043if test -n "$ac_tool_prefix"; then
2044 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2045set dummy ${ac_tool_prefix}gcc; ac_word=$2
fc6ffb29
AJ
2046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2048if test "${ac_cv_prog_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050else
2051 if test -n "$CC"; then
2052 ac_cv_prog_CC="$CC" # Let the user override the test.
2053else
daa2886c
AJ
2054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055for as_dir in $PATH
2056do
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2061 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 break 2
2064 fi
2065done
f5818d2f 2066done
fc6ffb29 2067IFS=$as_save_IFS
f5818d2f
AJ
2068
2069fi
2070fi
2071CC=$ac_cv_prog_CC
2072if test -n "$CC"; then
fc6ffb29
AJ
2073 { echo "$as_me:$LINENO: result: $CC" >&5
2074echo "${ECHO_T}$CC" >&6; }
f5818d2f 2075else
fc6ffb29
AJ
2076 { echo "$as_me:$LINENO: result: no" >&5
2077echo "${ECHO_T}no" >&6; }
f5818d2f
AJ
2078fi
2079
fc6ffb29 2080
f5818d2f
AJ
2081fi
2082if test -z "$ac_cv_prog_CC"; then
2083 ac_ct_CC=$CC
2084 # Extract the first word of "gcc", so it can be a program name with args.
e2991ea7 2085set dummy gcc; ac_word=$2
fc6ffb29
AJ
2086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2090else
2091 if test -n "$ac_ct_CC"; then
2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093else
daa2886c
AJ
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2101 ac_cv_prog_ac_ct_CC="gcc"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 break 2
2104 fi
2105done
f5818d2f 2106done
fc6ffb29 2107IFS=$as_save_IFS
f5818d2f
AJ
2108
2109fi
2110fi
2111ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112if test -n "$ac_ct_CC"; then
fc6ffb29
AJ
2113 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114echo "${ECHO_T}$ac_ct_CC" >&6; }
f5818d2f 2115else
fc6ffb29
AJ
2116 { echo "$as_me:$LINENO: result: no" >&5
2117echo "${ECHO_T}no" >&6; }
f5818d2f
AJ
2118fi
2119
fc6ffb29
AJ
2120 if test "x$ac_ct_CC" = x; then
2121 CC=""
2122 else
2123 case $cross_compiling:$ac_tool_warned in
2124yes:)
2125{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2126whose name does not start with the host triplet. If you think this
2127configuration is useful to you, please write to autoconf@gnu.org." >&5
2128echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2129whose name does not start with the host triplet. If you think this
2130configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2131ac_tool_warned=yes ;;
2132esac
2133 CC=$ac_ct_CC
2134 fi
f5818d2f
AJ
2135else
2136 CC="$ac_cv_prog_CC"
2137fi
2138
2139if test -z "$CC"; then
fc6ffb29
AJ
2140 if test -n "$ac_tool_prefix"; then
2141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
f5818d2f 2142set dummy ${ac_tool_prefix}cc; ac_word=$2
fc6ffb29
AJ
2143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2145if test "${ac_cv_prog_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
2147else
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2150else
daa2886c
AJ
2151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152for as_dir in $PATH
2153do
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2158 ac_cv_prog_CC="${ac_tool_prefix}cc"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 break 2
2161 fi
2162done
f5818d2f 2163done
fc6ffb29 2164IFS=$as_save_IFS
f5818d2f 2165
e2991ea7
AJ
2166fi
2167fi
f5818d2f 2168CC=$ac_cv_prog_CC
e2991ea7 2169if test -n "$CC"; then
fc6ffb29
AJ
2170 { echo "$as_me:$LINENO: result: $CC" >&5
2171echo "${ECHO_T}$CC" >&6; }
f5818d2f 2172else
fc6ffb29
AJ
2173 { echo "$as_me:$LINENO: result: no" >&5
2174echo "${ECHO_T}no" >&6; }
f5818d2f
AJ
2175fi
2176
e2991ea7 2177
fc6ffb29 2178 fi
f5818d2f 2179fi
b817f4fb
AJ
2180if test -z "$CC"; then
2181 # Extract the first word of "cc", so it can be a program name with args.
2182set dummy cc; ac_word=$2
fc6ffb29
AJ
2183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2185if test "${ac_cv_prog_CC+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
b817f4fb
AJ
2187else
2188 if test -n "$CC"; then
2189 ac_cv_prog_CC="$CC" # Let the user override the test.
2190else
b817f4fb 2191 ac_prog_rejected=no
daa2886c
AJ
2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2199 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2200 ac_prog_rejected=yes
2201 continue
2202 fi
2203 ac_cv_prog_CC="cc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2206 fi
2207done
f5818d2f 2208done
fc6ffb29 2209IFS=$as_save_IFS
f5818d2f 2210
b817f4fb
AJ
2211if test $ac_prog_rejected = yes; then
2212 # We found a bogon in the path, so make sure we never use it.
2213 set dummy $ac_cv_prog_CC
2214 shift
f5818d2f 2215 if test $# != 0; then
b817f4fb
AJ
2216 # We chose a different compiler from the bogus one.
2217 # However, it has the same basename, so the bogon will be chosen
2218 # first if we set CC to just the basename; use the full file name.
2219 shift
11af04e3 2220 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
b817f4fb
AJ
2221 fi
2222fi
2223fi
2224fi
f5818d2f 2225CC=$ac_cv_prog_CC
b817f4fb 2226if test -n "$CC"; then
fc6ffb29
AJ
2227 { echo "$as_me:$LINENO: result: $CC" >&5
2228echo "${ECHO_T}$CC" >&6; }
b817f4fb 2229else
fc6ffb29
AJ
2230 { echo "$as_me:$LINENO: result: no" >&5
2231echo "${ECHO_T}no" >&6; }
b817f4fb
AJ
2232fi
2233
fc6ffb29 2234
f5818d2f
AJ
2235fi
2236if test -z "$CC"; then
2237 if test -n "$ac_tool_prefix"; then
fc6ffb29 2238 for ac_prog in cl.exe
f5818d2f
AJ
2239 do
2240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2241set dummy $ac_tool_prefix$ac_prog; ac_word=$2
fc6ffb29
AJ
2242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2244if test "${ac_cv_prog_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246else
2247 if test -n "$CC"; then
18ad24a7
EP
2248 ac_cv_prog_CC="$CC" # Let the user override the test.
2249else
daa2886c
AJ
2250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251for as_dir in $PATH
2252do
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2257 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 break 2
2260 fi
2261done
f5818d2f 2262done
fc6ffb29 2263IFS=$as_save_IFS
f5818d2f 2264
18ad24a7
EP
2265fi
2266fi
f5818d2f 2267CC=$ac_cv_prog_CC
18ad24a7 2268if test -n "$CC"; then
fc6ffb29
AJ
2269 { echo "$as_me:$LINENO: result: $CC" >&5
2270echo "${ECHO_T}$CC" >&6; }
18ad24a7 2271else
fc6ffb29
AJ
2272 { echo "$as_me:$LINENO: result: no" >&5
2273echo "${ECHO_T}no" >&6; }
b817f4fb 2274fi
e2991ea7 2275
fc6ffb29 2276
f5818d2f
AJ
2277 test -n "$CC" && break
2278 done
2279fi
2280if test -z "$CC"; then
2281 ac_ct_CC=$CC
fc6ffb29 2282 for ac_prog in cl.exe
f5818d2f
AJ
2283do
2284 # Extract the first word of "$ac_prog", so it can be a program name with args.
2285set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
2286{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2288if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290else
2291 if test -n "$ac_ct_CC"; then
2292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2293else
daa2886c
AJ
2294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295for as_dir in $PATH
2296do
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2301 ac_cv_prog_ac_ct_CC="$ac_prog"
2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 break 2
2304 fi
2305done
f5818d2f 2306done
fc6ffb29 2307IFS=$as_save_IFS
da0cfb36 2308
f5818d2f
AJ
2309fi
2310fi
2311ac_ct_CC=$ac_cv_prog_ac_ct_CC
2312if test -n "$ac_ct_CC"; then
fc6ffb29
AJ
2313 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2314echo "${ECHO_T}$ac_ct_CC" >&6; }
f5818d2f 2315else
fc6ffb29
AJ
2316 { echo "$as_me:$LINENO: result: no" >&5
2317echo "${ECHO_T}no" >&6; }
f5818d2f 2318fi
da0cfb36 2319
fc6ffb29 2320
f5818d2f
AJ
2321 test -n "$ac_ct_CC" && break
2322done
18ad24a7 2323
fc6ffb29
AJ
2324 if test "x$ac_ct_CC" = x; then
2325 CC=""
2326 else
2327 case $cross_compiling:$ac_tool_warned in
2328yes:)
2329{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2330whose name does not start with the host triplet. If you think this
2331configuration is useful to you, please write to autoconf@gnu.org." >&5
2332echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2333whose name does not start with the host triplet. If you think this
2334configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2335ac_tool_warned=yes ;;
2336esac
2337 CC=$ac_ct_CC
2338 fi
f5818d2f
AJ
2339fi
2340
2341fi
2342
daa2886c 2343
e24bcc77
AJ
2344test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2345See \`config.log' for more details." >&5
2346echo "$as_me: error: no acceptable C compiler found in \$PATH
2347See \`config.log' for more details." >&2;}
f5818d2f
AJ
2348 { (exit 1); exit 1; }; }
2349
2350# Provide some information about the compiler.
fc6ffb29 2351echo "$as_me:$LINENO: checking for C compiler version" >&5
f5818d2f 2352ac_compiler=`set X $ac_compile; echo $2`
0ebeb530
JW
2353{ (ac_try="$ac_compiler --version >&5"
2354case "(($ac_try" in
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2357esac
2358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359 (eval "$ac_compiler --version >&5") 2>&5
f5818d2f 2360 ac_status=$?
daa2886c 2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2362 (exit $ac_status); }
0ebeb530
JW
2363{ (ac_try="$ac_compiler -v >&5"
2364case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367esac
2368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_compiler -v >&5") 2>&5
f5818d2f 2370 ac_status=$?
daa2886c 2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2372 (exit $ac_status); }
0ebeb530
JW
2373{ (ac_try="$ac_compiler -V >&5"
2374case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377esac
2378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_compiler -V >&5") 2>&5
f5818d2f 2380 ac_status=$?
daa2886c 2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2382 (exit $ac_status); }
2383
2384cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
2385/* confdefs.h. */
2386_ACEOF
2387cat confdefs.h >>conftest.$ac_ext
2388cat >>conftest.$ac_ext <<_ACEOF
2389/* end confdefs.h. */
18ad24a7 2390
f5818d2f
AJ
2391int
2392main ()
2393{
2394
2395 ;
2396 return 0;
2397}
2398_ACEOF
2399ac_clean_files_save=$ac_clean_files
0ebeb530 2400ac_clean_files="$ac_clean_files a.out a.exe b.out"
f5818d2f
AJ
2401# Try to create an executable without -o first, disregard a.out.
2402# It will help us diagnose broken compilers, and finding out an intuition
2403# of exeext.
fc6ffb29
AJ
2404{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2405echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
f5818d2f 2406ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
0ebeb530
JW
2407#
2408# List of possible output files, starting from the most likely.
2409# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2410# only as a last resort. b.out is created by i960 compilers.
2411ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2412#
2413# The IRIX 6 linker writes into existing files which may not be
2414# executable, retaining their permissions. Remove them first so a
2415# subsequent execution test works.
2416ac_rmfiles=
2417for ac_file in $ac_files
2418do
2419 case $ac_file in
2420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2422 esac
2423done
2424rm -f $ac_rmfiles
fc6ffb29 2425
0ebeb530
JW
2426if { (ac_try="$ac_link_default"
2427case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2430esac
2431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_link_default") 2>&5
f5818d2f 2433 ac_status=$?
daa2886c 2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2435 (exit $ac_status); }; then
0ebeb530
JW
2436 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2437# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2438# in a Makefile. We should not override ac_cv_exeext if it was cached,
2439# so that the user can short-circuit this test for compilers unknown to
2440# Autoconf.
78bd1948 2441for ac_file in $ac_files ''
e24bcc77 2442do
11af04e3 2443 test -f "$ac_file" || continue
f5818d2f 2444 case $ac_file in
0ebeb530
JW
2445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2446 ;;
2447 [ab].out )
2448 # We found the default executable, but exeext='' is most
2449 # certainly right.
2450 break;;
2451 *.* )
2452 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2453 then :; else
2454 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2455 fi
2456 # We set ac_cv_exeext here because the later test for it is not
2457 # safe: cross compilers may not add the suffix if given an `-o'
2458 # argument, so we may need to know it at that point already.
2459 # Even if this section looks crufty: it has the advantage of
2460 # actually working.
2461 break;;
2462 * )
2463 break;;
f5818d2f
AJ
2464 esac
2465done
0ebeb530 2466test "$ac_cv_exeext" = no && ac_cv_exeext=
fc6ffb29 2467
f5818d2f 2468else
78bd1948
AJ
2469 ac_file=''
2470fi
2471
2472{ echo "$as_me:$LINENO: result: $ac_file" >&5
2473echo "${ECHO_T}$ac_file" >&6; }
2474if test -z "$ac_file"; then
f5818d2f 2475 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2476sed 's/^/| /' conftest.$ac_ext >&5
2477
11af04e3 2478{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
e24bcc77 2479See \`config.log' for more details." >&5
11af04e3 2480echo "$as_me: error: C compiler cannot create executables
e24bcc77 2481See \`config.log' for more details." >&2;}
f5818d2f
AJ
2482 { (exit 77); exit 77; }; }
2483fi
2484
0ebeb530 2485ac_exeext=$ac_cv_exeext
0ebeb530 2486
fc6ffb29 2487# Check that the compiler produces executables we can run. If not, either
f5818d2f 2488# the compiler is broken, or we cross compile.
fc6ffb29
AJ
2489{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2490echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
f5818d2f
AJ
2491# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2492# If not cross compiling, check that we can run a simple program.
2493if test "$cross_compiling" != yes; then
2494 if { ac_try='./$ac_file'
0ebeb530
JW
2495 { (case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2498esac
2499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_try") 2>&5
f5818d2f 2501 ac_status=$?
daa2886c 2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2503 (exit $ac_status); }; }; then
2504 cross_compiling=no
7e6ae4ba 2505 else
f5818d2f
AJ
2506 if test "$cross_compiling" = maybe; then
2507 cross_compiling=yes
2508 else
daa2886c 2509 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
e24bcc77
AJ
2510If you meant to cross compile, use \`--host'.
2511See \`config.log' for more details." >&5
f5818d2f 2512echo "$as_me: error: cannot run C compiled programs.
e24bcc77
AJ
2513If you meant to cross compile, use \`--host'.
2514See \`config.log' for more details." >&2;}
f5818d2f
AJ
2515 { (exit 1); exit 1; }; }
2516 fi
7e6ae4ba 2517 fi
f5818d2f 2518fi
fc6ffb29
AJ
2519{ echo "$as_me:$LINENO: result: yes" >&5
2520echo "${ECHO_T}yes" >&6; }
f5818d2f 2521
0ebeb530
JW
2522rm -f a.out a.exe conftest$ac_cv_exeext b.out
2523ac_clean_files=$ac_clean_files_save
2524# Check that the compiler produces executables we can run. If not, either
2525# the compiler is broken, or we cross compile.
fc6ffb29
AJ
2526{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2527echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2528{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2529echo "${ECHO_T}$cross_compiling" >&6; }
2530
2531{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2532echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
0ebeb530
JW
2533if { (ac_try="$ac_link"
2534case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537esac
2538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_link") 2>&5
f5818d2f 2540 ac_status=$?
daa2886c 2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2542 (exit $ac_status); }; then
0ebeb530
JW
2543 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2544# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2545# work properly (i.e., refer to `conftest.exe'), while it won't with
2546# `rm'.
2547for ac_file in conftest.exe conftest conftest.*; do
2548 test -f "$ac_file" || continue
2549 case $ac_file in
2550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2551 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 break;;
2553 * ) break;;
2554 esac
2555done
da0cfb36 2556else
e24bcc77
AJ
2557 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2558See \`config.log' for more details." >&5
2559echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2560See \`config.log' for more details." >&2;}
f5818d2f 2561 { (exit 1); exit 1; }; }
da0cfb36 2562fi
da0cfb36 2563
0ebeb530 2564rm -f conftest$ac_cv_exeext
fc6ffb29
AJ
2565{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2566echo "${ECHO_T}$ac_cv_exeext" >&6; }
0ebeb530
JW
2567
2568rm -f conftest.$ac_ext
f5818d2f
AJ
2569EXEEXT=$ac_cv_exeext
2570ac_exeext=$EXEEXT
fc6ffb29
AJ
2571{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2572echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
f5818d2f
AJ
2573if test "${ac_cv_objext+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 2575else
0ebeb530
JW
2576 cat >conftest.$ac_ext <<_ACEOF
2577/* confdefs.h. */
2578_ACEOF
2579cat confdefs.h >>conftest.$ac_ext
2580cat >>conftest.$ac_ext <<_ACEOF
2581/* end confdefs.h. */
2582
2583int
2584main ()
2585{
2586
2587 ;
2588 return 0;
2589}
2590_ACEOF
2591rm -f conftest.o conftest.obj
2592if { (ac_try="$ac_compile"
2593case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2596esac
2597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_compile") 2>&5
f5818d2f 2599 ac_status=$?
daa2886c 2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2601 (exit $ac_status); }; then
fc6ffb29
AJ
2602 for ac_file in conftest.o conftest.obj conftest.*; do
2603 test -f "$ac_file" || continue;
f5818d2f 2604 case $ac_file in
fc6ffb29 2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
f5818d2f
AJ
2606 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2607 break;;
2608 esac
2609done
18ad24a7 2610else
f5818d2f 2611 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2612sed 's/^/| /' conftest.$ac_ext >&5
2613
2614{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2615See \`config.log' for more details." >&5
2616echo "$as_me: error: cannot compute suffix of object files: cannot compile
2617See \`config.log' for more details." >&2;}
f5818d2f 2618 { (exit 1); exit 1; }; }
18ad24a7
EP
2619fi
2620
0ebeb530 2621rm -f conftest.$ac_cv_objext conftest.$ac_ext
f5818d2f 2622fi
fc6ffb29
AJ
2623{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2624echo "${ECHO_T}$ac_cv_objext" >&6; }
f5818d2f
AJ
2625OBJEXT=$ac_cv_objext
2626ac_objext=$OBJEXT
fc6ffb29
AJ
2627{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2628echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
f5818d2f
AJ
2629if test "${ac_cv_c_compiler_gnu+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 2631else
f5818d2f 2632 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
2633/* confdefs.h. */
2634_ACEOF
2635cat confdefs.h >>conftest.$ac_ext
2636cat >>conftest.$ac_ext <<_ACEOF
2637/* end confdefs.h. */
f5818d2f
AJ
2638
2639int
2640main ()
2641{
2642#ifndef __GNUC__
2643 choke me
2644#endif
2645
2646 ;
2647 return 0;
2648}
2649_ACEOF
2650rm -f conftest.$ac_objext
0ebeb530
JW
2651if { (ac_try="$ac_compile"
2652case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2655esac
2656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_compile") 2>conftest.er1
f5818d2f 2658 ac_status=$?
875927f6
AJ
2659 grep -v '^ *+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
daa2886c 2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
2663 (exit $ac_status); } && {
2664 test -z "$ac_c_werror_flag" ||
2665 test ! -s conftest.err
2666 } && test -s conftest.$ac_objext; then
f5818d2f
AJ
2667 ac_compiler_gnu=yes
2668else
2669 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2670sed 's/^/| /' conftest.$ac_ext >&5
2671
fc6ffb29 2672 ac_compiler_gnu=no
f5818d2f 2673fi
fc6ffb29 2674
0ebeb530 2675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f
AJ
2676ac_cv_c_compiler_gnu=$ac_compiler_gnu
2677
2678fi
fc6ffb29
AJ
2679{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2680echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
f5818d2f
AJ
2681GCC=`test $ac_compiler_gnu = yes && echo yes`
2682ac_test_CFLAGS=${CFLAGS+set}
2683ac_save_CFLAGS=$CFLAGS
fc6ffb29
AJ
2684{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2685echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
f5818d2f
AJ
2686if test "${ac_cv_prog_cc_g+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2688else
fc6ffb29
AJ
2689 ac_save_c_werror_flag=$ac_c_werror_flag
2690 ac_c_werror_flag=yes
2691 ac_cv_prog_cc_g=no
2692 CFLAGS="-g"
2693 cat >conftest.$ac_ext <<_ACEOF
2694/* confdefs.h. */
2695_ACEOF
2696cat confdefs.h >>conftest.$ac_ext
2697cat >>conftest.$ac_ext <<_ACEOF
2698/* end confdefs.h. */
2699
2700int
2701main ()
2702{
2703
2704 ;
2705 return 0;
2706}
2707_ACEOF
2708rm -f conftest.$ac_objext
0ebeb530
JW
2709if { (ac_try="$ac_compile"
2710case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713esac
2714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compile") 2>conftest.er1
fc6ffb29
AJ
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
2721 (exit $ac_status); } && {
2722 test -z "$ac_c_werror_flag" ||
2723 test ! -s conftest.err
2724 } && test -s conftest.$ac_objext; then
fc6ffb29
AJ
2725 ac_cv_prog_cc_g=yes
2726else
2727 echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
2729
2730 CFLAGS=""
2731 cat >conftest.$ac_ext <<_ACEOF
2732/* confdefs.h. */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h. */
2737
2738int
2739main ()
2740{
2741
2742 ;
2743 return 0;
2744}
2745_ACEOF
2746rm -f conftest.$ac_objext
0ebeb530
JW
2747if { (ac_try="$ac_compile"
2748case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751esac
2752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compile") 2>conftest.er1
fc6ffb29
AJ
2754 ac_status=$?
2755 grep -v '^ *+' conftest.er1 >conftest.err
2756 rm -f conftest.er1
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
2759 (exit $ac_status); } && {
2760 test -z "$ac_c_werror_flag" ||
2761 test ! -s conftest.err
2762 } && test -s conftest.$ac_objext; then
fc6ffb29
AJ
2763 :
2764else
2765 echo "$as_me: failed program was:" >&5
2766sed 's/^/| /' conftest.$ac_ext >&5
2767
2768 ac_c_werror_flag=$ac_save_c_werror_flag
2769 CFLAGS="-g"
2770 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
2771/* confdefs.h. */
2772_ACEOF
2773cat confdefs.h >>conftest.$ac_ext
2774cat >>conftest.$ac_ext <<_ACEOF
2775/* end confdefs.h. */
f5818d2f
AJ
2776
2777int
2778main ()
2779{
2780
2781 ;
2782 return 0;
2783}
2784_ACEOF
2785rm -f conftest.$ac_objext
0ebeb530
JW
2786if { (ac_try="$ac_compile"
2787case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790esac
2791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_compile") 2>conftest.er1
f5818d2f 2793 ac_status=$?
875927f6
AJ
2794 grep -v '^ *+' conftest.er1 >conftest.err
2795 rm -f conftest.er1
2796 cat conftest.err >&5
daa2886c 2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
2798 (exit $ac_status); } && {
2799 test -z "$ac_c_werror_flag" ||
2800 test ! -s conftest.err
2801 } && test -s conftest.$ac_objext; then
7e6ae4ba 2802 ac_cv_prog_cc_g=yes
e2991ea7 2803else
f5818d2f 2804 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2805sed 's/^/| /' conftest.$ac_ext >&5
2806
fc6ffb29
AJ
2807
2808fi
2809
0ebeb530 2810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
2811fi
2812
0ebeb530 2813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e2991ea7 2814fi
fc6ffb29 2815
0ebeb530 2816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 2817 ac_c_werror_flag=$ac_save_c_werror_flag
e2991ea7 2818fi
fc6ffb29
AJ
2819{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2820echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18ad24a7 2821if test "$ac_test_CFLAGS" = set; then
f5818d2f 2822 CFLAGS=$ac_save_CFLAGS
18ad24a7
EP
2823elif test $ac_cv_prog_cc_g = yes; then
2824 if test "$GCC" = yes; then
da0cfb36
AJ
2825 CFLAGS="-g -O2"
2826 else
18ad24a7 2827 CFLAGS="-g"
e2991ea7
AJ
2828 fi
2829else
18ad24a7
EP
2830 if test "$GCC" = yes; then
2831 CFLAGS="-O2"
2832 else
2833 CFLAGS=
2834 fi
e2991ea7 2835fi
fc6ffb29
AJ
2836{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2837echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2838if test "${ac_cv_prog_cc_c89+set}" = set; then
11af04e3
AJ
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840else
fc6ffb29 2841 ac_cv_prog_cc_c89=no
11af04e3
AJ
2842ac_save_CC=$CC
2843cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
2844/* confdefs.h. */
2845_ACEOF
2846cat confdefs.h >>conftest.$ac_ext
2847cat >>conftest.$ac_ext <<_ACEOF
2848/* end confdefs.h. */
11af04e3
AJ
2849#include <stdarg.h>
2850#include <stdio.h>
2851#include <sys/types.h>
2852#include <sys/stat.h>
2853/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2854struct buf { int x; };
2855FILE * (*rcsopen) (struct buf *, struct stat *, int);
2856static char *e (p, i)
2857 char **p;
2858 int i;
2859{
2860 return p[i];
2861}
2862static char *f (char * (*g) (char **, int), char **p, ...)
2863{
2864 char *s;
2865 va_list v;
2866 va_start (v,p);
2867 s = g (p, va_arg (v,int));
2868 va_end (v);
2869 return s;
2870}
875927f6
AJ
2871
2872/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2873 function prototypes and stuff, but not '\xHH' hex character constants.
2874 These don't provoke an error unfortunately, instead are silently treated
fc6ffb29 2875 as 'x'. The following induces an error, until -std is added to get
875927f6
AJ
2876 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2877 array size at least. It's necessary to write '\x00'==0 to get something
fc6ffb29 2878 that's true only with -std. */
875927f6
AJ
2879int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2880
f5f37a85
AJ
2881/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2882 inside strings and character constants. */
2883#define FOO(x) 'x'
2884int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2885
11af04e3
AJ
2886int test (int i, double x);
2887struct s1 {int (*f) (int a);};
2888struct s2 {int (*f) (double a);};
2889int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2890int argc;
2891char **argv;
2892int
2893main ()
2894{
2895return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2896 ;
2897 return 0;
2898}
2899_ACEOF
fc6ffb29
AJ
2900for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2901 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11af04e3
AJ
2902do
2903 CC="$ac_save_CC $ac_arg"
2904 rm -f conftest.$ac_objext
0ebeb530
JW
2905if { (ac_try="$ac_compile"
2906case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909esac
2910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compile") 2>conftest.er1
11af04e3 2912 ac_status=$?
875927f6
AJ
2913 grep -v '^ *+' conftest.er1 >conftest.err
2914 rm -f conftest.er1
2915 cat conftest.err >&5
11af04e3 2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
2917 (exit $ac_status); } && {
2918 test -z "$ac_c_werror_flag" ||
2919 test ! -s conftest.err
2920 } && test -s conftest.$ac_objext; then
fc6ffb29 2921 ac_cv_prog_cc_c89=$ac_arg
11af04e3
AJ
2922else
2923 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2924sed 's/^/| /' conftest.$ac_ext >&5
2925
fc6ffb29 2926
11af04e3 2927fi
fc6ffb29 2928
0ebeb530 2929rm -f core conftest.err conftest.$ac_objext
fc6ffb29 2930 test "x$ac_cv_prog_cc_c89" != "xno" && break
11af04e3 2931done
fc6ffb29 2932rm -f conftest.$ac_ext
11af04e3
AJ
2933CC=$ac_save_CC
2934
2935fi
fc6ffb29
AJ
2936# AC_CACHE_VAL
2937case "x$ac_cv_prog_cc_c89" in
2938 x)
2939 { echo "$as_me:$LINENO: result: none needed" >&5
2940echo "${ECHO_T}none needed" >&6; } ;;
2941 xno)
2942 { echo "$as_me:$LINENO: result: unsupported" >&5
2943echo "${ECHO_T}unsupported" >&6; } ;;
11af04e3 2944 *)
fc6ffb29
AJ
2945 CC="$CC $ac_cv_prog_cc_c89"
2946 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2947echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
11af04e3
AJ
2948esac
2949
e24bcc77 2950
f5818d2f
AJ
2951ac_ext=c
2952ac_cpp='$CPP $CPPFLAGS'
2953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955ac_compiler_gnu=$ac_cv_c_compiler_gnu
e2991ea7 2956
fc6ffb29 2957ac_ext=cpp
f41c2b21
DP
2958ac_cpp='$CXXCPP $CPPFLAGS'
2959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
fc6ffb29
AJ
2962if test -z "$CXX"; then
2963 if test -n "$CCC"; then
2964 CXX=$CCC
2965 else
2966 if test -n "$ac_tool_prefix"; then
2967 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
f41c2b21
DP
2968 do
2969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2970set dummy $ac_tool_prefix$ac_prog; ac_word=$2
fc6ffb29
AJ
2971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f41c2b21
DP
2973if test "${ac_cv_prog_CXX+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975else
2976 if test -n "$CXX"; then
2977 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2978else
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f41c2b21
DP
2986 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990done
2991done
fc6ffb29 2992IFS=$as_save_IFS
f41c2b21
DP
2993
2994fi
2995fi
2996CXX=$ac_cv_prog_CXX
2997if test -n "$CXX"; then
fc6ffb29
AJ
2998 { echo "$as_me:$LINENO: result: $CXX" >&5
2999echo "${ECHO_T}$CXX" >&6; }
f41c2b21 3000else
fc6ffb29
AJ
3001 { echo "$as_me:$LINENO: result: no" >&5
3002echo "${ECHO_T}no" >&6; }
f41c2b21
DP
3003fi
3004
fc6ffb29 3005
f41c2b21
DP
3006 test -n "$CXX" && break
3007 done
3008fi
3009if test -z "$CXX"; then
3010 ac_ct_CXX=$CXX
fc6ffb29 3011 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
f41c2b21
DP
3012do
3013 # Extract the first word of "$ac_prog", so it can be a program name with args.
3014set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
3015{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f41c2b21
DP
3017if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019else
3020 if test -n "$ac_ct_CXX"; then
3021 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3022else
3023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024for as_dir in $PATH
3025do
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f41c2b21
DP
3030 ac_cv_prog_ac_ct_CXX="$ac_prog"
3031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3033 fi
3034done
3035done
fc6ffb29 3036IFS=$as_save_IFS
f41c2b21
DP
3037
3038fi
3039fi
3040ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3041if test -n "$ac_ct_CXX"; then
fc6ffb29
AJ
3042 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3043echo "${ECHO_T}$ac_ct_CXX" >&6; }
f41c2b21 3044else
fc6ffb29
AJ
3045 { echo "$as_me:$LINENO: result: no" >&5
3046echo "${ECHO_T}no" >&6; }
f41c2b21
DP
3047fi
3048
fc6ffb29 3049
f41c2b21
DP
3050 test -n "$ac_ct_CXX" && break
3051done
f41c2b21 3052
fc6ffb29
AJ
3053 if test "x$ac_ct_CXX" = x; then
3054 CXX="g++"
3055 else
3056 case $cross_compiling:$ac_tool_warned in
3057yes:)
3058{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3059whose name does not start with the host triplet. If you think this
3060configuration is useful to you, please write to autoconf@gnu.org." >&5
3061echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3062whose name does not start with the host triplet. If you think this
3063configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3064ac_tool_warned=yes ;;
3065esac
3066 CXX=$ac_ct_CXX
3067 fi
f41c2b21
DP
3068fi
3069
fc6ffb29
AJ
3070 fi
3071fi
f41c2b21 3072# Provide some information about the compiler.
fc6ffb29 3073echo "$as_me:$LINENO: checking for C++ compiler version" >&5
f41c2b21 3074ac_compiler=`set X $ac_compile; echo $2`
0ebeb530
JW
3075{ (ac_try="$ac_compiler --version >&5"
3076case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079esac
3080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compiler --version >&5") 2>&5
f41c2b21
DP
3082 ac_status=$?
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }
0ebeb530
JW
3085{ (ac_try="$ac_compiler -v >&5"
3086case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089esac
3090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_compiler -v >&5") 2>&5
f41c2b21
DP
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }
0ebeb530
JW
3095{ (ac_try="$ac_compiler -V >&5"
3096case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compiler -V >&5") 2>&5
f41c2b21
DP
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }
3105
fc6ffb29
AJ
3106{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3107echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
f41c2b21
DP
3108if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110else
3111 cat >conftest.$ac_ext <<_ACEOF
3112/* confdefs.h. */
3113_ACEOF
3114cat confdefs.h >>conftest.$ac_ext
3115cat >>conftest.$ac_ext <<_ACEOF
3116/* end confdefs.h. */
3117
3118int
3119main ()
3120{
3121#ifndef __GNUC__
3122 choke me
3123#endif
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
3129rm -f conftest.$ac_objext
0ebeb530
JW
3130if { (ac_try="$ac_compile"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
f41c2b21
DP
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3142 (exit $ac_status); } && {
3143 test -z "$ac_cxx_werror_flag" ||
3144 test ! -s conftest.err
3145 } && test -s conftest.$ac_objext; then
f41c2b21
DP
3146 ac_compiler_gnu=yes
3147else
3148 echo "$as_me: failed program was:" >&5
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
fc6ffb29 3151 ac_compiler_gnu=no
f41c2b21 3152fi
fc6ffb29 3153
0ebeb530 3154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21
DP
3155ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3156
3157fi
fc6ffb29
AJ
3158{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3159echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
f41c2b21
DP
3160GXX=`test $ac_compiler_gnu = yes && echo yes`
3161ac_test_CXXFLAGS=${CXXFLAGS+set}
3162ac_save_CXXFLAGS=$CXXFLAGS
fc6ffb29
AJ
3163{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3164echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
f41c2b21
DP
3165if test "${ac_cv_prog_cxx_g+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167else
fc6ffb29
AJ
3168 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3169 ac_cxx_werror_flag=yes
3170 ac_cv_prog_cxx_g=no
3171 CXXFLAGS="-g"
3172 cat >conftest.$ac_ext <<_ACEOF
f41c2b21
DP
3173/* confdefs.h. */
3174_ACEOF
3175cat confdefs.h >>conftest.$ac_ext
3176cat >>conftest.$ac_ext <<_ACEOF
3177/* end confdefs.h. */
3178
3179int
3180main ()
3181{
3182
3183 ;
3184 return 0;
3185}
3186_ACEOF
3187rm -f conftest.$ac_objext
0ebeb530
JW
3188if { (ac_try="$ac_compile"
3189case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192esac
3193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_compile") 2>conftest.er1
f41c2b21
DP
3195 ac_status=$?
3196 grep -v '^ *+' conftest.er1 >conftest.err
3197 rm -f conftest.er1
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3200 (exit $ac_status); } && {
3201 test -z "$ac_cxx_werror_flag" ||
3202 test ! -s conftest.err
3203 } && test -s conftest.$ac_objext; then
f41c2b21
DP
3204 ac_cv_prog_cxx_g=yes
3205else
3206 echo "$as_me: failed program was:" >&5
3207sed 's/^/| /' conftest.$ac_ext >&5
3208
fc6ffb29
AJ
3209 CXXFLAGS=""
3210 cat >conftest.$ac_ext <<_ACEOF
f41c2b21
DP
3211/* confdefs.h. */
3212_ACEOF
3213cat confdefs.h >>conftest.$ac_ext
3214cat >>conftest.$ac_ext <<_ACEOF
3215/* end confdefs.h. */
fc6ffb29 3216
f41c2b21
DP
3217int
3218main ()
3219{
fc6ffb29 3220
f41c2b21
DP
3221 ;
3222 return 0;
3223}
3224_ACEOF
3225rm -f conftest.$ac_objext
0ebeb530
JW
3226if { (ac_try="$ac_compile"
3227case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230esac
3231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_compile") 2>conftest.er1
f41c2b21
DP
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3238 (exit $ac_status); } && {
3239 test -z "$ac_cxx_werror_flag" ||
3240 test ! -s conftest.err
3241 } && test -s conftest.$ac_objext; then
f41c2b21
DP
3242 :
3243else
3244 echo "$as_me: failed program was:" >&5
3245sed 's/^/| /' conftest.$ac_ext >&5
3246
fc6ffb29
AJ
3247 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3248 CXXFLAGS="-g"
3249 cat >conftest.$ac_ext <<_ACEOF
f41c2b21
DP
3250/* confdefs.h. */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h. */
fc6ffb29 3255
f41c2b21
DP
3256int
3257main ()
3258{
fc6ffb29 3259
f41c2b21
DP
3260 ;
3261 return 0;
3262}
3263_ACEOF
3264rm -f conftest.$ac_objext
0ebeb530
JW
3265if { (ac_try="$ac_compile"
3266case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269esac
3270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271 (eval "$ac_compile") 2>conftest.er1
f41c2b21
DP
3272 ac_status=$?
3273 grep -v '^ *+' conftest.er1 >conftest.err
3274 rm -f conftest.er1
3275 cat conftest.err >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3277 (exit $ac_status); } && {
3278 test -z "$ac_cxx_werror_flag" ||
3279 test ! -s conftest.err
3280 } && test -s conftest.$ac_objext; then
fc6ffb29 3281 ac_cv_prog_cxx_g=yes
f41c2b21
DP
3282else
3283 echo "$as_me: failed program was:" >&5
3284sed 's/^/| /' conftest.$ac_ext >&5
3285
fc6ffb29 3286
f41c2b21 3287fi
fc6ffb29 3288
0ebeb530 3289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
3290fi
3291
0ebeb530 3292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21
DP
3293fi
3294
0ebeb530 3295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
3296 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3297fi
3298{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3299echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3300if test "$ac_test_CXXFLAGS" = set; then
3301 CXXFLAGS=$ac_save_CXXFLAGS
3302elif test $ac_cv_prog_cxx_g = yes; then
3303 if test "$GXX" = yes; then
3304 CXXFLAGS="-g -O2"
3305 else
3306 CXXFLAGS="-g"
3307 fi
3308else
3309 if test "$GXX" = yes; then
3310 CXXFLAGS="-O2"
3311 else
3312 CXXFLAGS=
3313 fi
3314fi
f41c2b21
DP
3315ac_ext=c
3316ac_cpp='$CPP $CPPFLAGS'
3317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320
3e61ef7d
AJ
3321if test -n "$ac_tool_prefix"; then
3322 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3323set dummy ${ac_tool_prefix}cpp; ac_word=$2
fc6ffb29
AJ
3324{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a631ef63 3326if test "${ac_cv_prog_CPPBIN+set}" = set; then
f41c2b21
DP
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
a631ef63
AJ
3329 if test -n "$CPPBIN"; then
3330 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
f41c2b21
DP
3331else
3332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333for as_dir in $PATH
3334do
3335 IFS=$as_save_IFS
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a631ef63 3339 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
f41c2b21
DP
3340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 break 2
3342 fi
3343done
3344done
fc6ffb29 3345IFS=$as_save_IFS
f41c2b21
DP
3346
3347fi
3348fi
a631ef63
AJ
3349CPPBIN=$ac_cv_prog_CPPBIN
3350if test -n "$CPPBIN"; then
fc6ffb29
AJ
3351 { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3352echo "${ECHO_T}$CPPBIN" >&6; }
f41c2b21 3353else
fc6ffb29
AJ
3354 { echo "$as_me:$LINENO: result: no" >&5
3355echo "${ECHO_T}no" >&6; }
f41c2b21
DP
3356fi
3357
fc6ffb29 3358
3e61ef7d 3359fi
a631ef63
AJ
3360if test -z "$ac_cv_prog_CPPBIN"; then
3361 ac_ct_CPPBIN=$CPPBIN
3e61ef7d
AJ
3362 # Extract the first word of "cpp", so it can be a program name with args.
3363set dummy cpp; ac_word=$2
fc6ffb29
AJ
3364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a631ef63 3366if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3e61ef7d
AJ
3367 echo $ECHO_N "(cached) $ECHO_C" >&6
3368else
a631ef63
AJ
3369 if test -n "$ac_ct_CPPBIN"; then
3370 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3e61ef7d
AJ
3371else
3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH
3374do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a631ef63 3379 ac_cv_prog_ac_ct_CPPBIN="cpp"
3e61ef7d
AJ
3380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383done
3384done
fc6ffb29 3385IFS=$as_save_IFS
3e61ef7d 3386
3e61ef7d
AJ
3387fi
3388fi
a631ef63
AJ
3389ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3390if test -n "$ac_ct_CPPBIN"; then
fc6ffb29
AJ
3391 { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3392echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3e61ef7d 3393else
fc6ffb29
AJ
3394 { echo "$as_me:$LINENO: result: no" >&5
3395echo "${ECHO_T}no" >&6; }
3e61ef7d
AJ
3396fi
3397
fc6ffb29
AJ
3398 if test "x$ac_ct_CPPBIN" = x; then
3399 CPPBIN="cpp"
3400 else
3401 case $cross_compiling:$ac_tool_warned in
3402yes:)
3403{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3404whose name does not start with the host triplet. If you think this
3405configuration is useful to you, please write to autoconf@gnu.org." >&5
3406echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3407whose name does not start with the host triplet. If you think this
3408configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3409ac_tool_warned=yes ;;
3410esac
3411 CPPBIN=$ac_ct_CPPBIN
3412 fi
3e61ef7d 3413else
a631ef63 3414 CPPBIN="$ac_cv_prog_CPPBIN"
3e61ef7d
AJ
3415fi
3416
f41c2b21 3417
fc6ffb29
AJ
3418{ echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3419echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
f41c2b21
DP
3420if test "${wine_cv_toolsdir+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422else
3423 if test -z "$with_wine_tools"; then
3424 if test "$cross_compiling" = "yes"; then
3425 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3426echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3427 { (exit 1); exit 1; }; }
3428 else
3429 wine_cv_toolsdir="\$(TOPOBJDIR)"
3430 fi
3431 elif test -d "$with_wine_tools/tools/winebuild"; then
3432 case $with_wine_tools in
3433 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3434 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3435 esac
3436 else
3437 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3438echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3439 { (exit 1); exit 1; }; }
3440 fi
3441fi
fc6ffb29
AJ
3442{ echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3443echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
f41c2b21
DP
3444TOOLSDIR=$wine_cv_toolsdir
3445
3446
3447
f5818d2f
AJ
3448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_c_compiler_gnu
fc6ffb29
AJ
3453{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3454echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
e2991ea7
AJ
3455# On Suns, sometimes $CPP names a directory.
3456if test -n "$CPP" && test -d "$CPP"; then
3457 CPP=
3458fi
3459if test -z "$CPP"; then
f5818d2f
AJ
3460 if test "${ac_cv_prog_CPP+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462else
3463 # Double quotes because CPP needs to be expanded
3464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3465 do
3466 ac_preproc_ok=false
3467for ac_c_preproc_warn_flag in '' yes
3468do
3469 # Use a header file that comes with gcc, so configuring glibc
3470 # with a fresh cross-compiler works.
e24bcc77
AJ
3471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3472 # <limits.h> exists even on freestanding compilers.
e2991ea7 3473 # On the NeXT, cc -E runs the code through the compiler's parser,
f5818d2f
AJ
3474 # not just through cpp. "Syntax error" is here to catch this case.
3475 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3476/* confdefs.h. */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h. */
3481#ifdef __STDC__
3482# include <limits.h>
3483#else
3484# include <assert.h>
3485#endif
875927f6 3486 Syntax error
f5818d2f 3487_ACEOF
0ebeb530
JW
3488if { (ac_try="$ac_cpp conftest.$ac_ext"
3489case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492esac
3493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 3495 ac_status=$?
11af04e3 3496 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
3497 rm -f conftest.er1
3498 cat conftest.err >&5
daa2886c 3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3500 (exit $ac_status); } >/dev/null && {
3501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3502 test ! -s conftest.err
3503 }; then
e2991ea7
AJ
3504 :
3505else
f5818d2f 3506 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3507sed 's/^/| /' conftest.$ac_ext >&5
3508
f5818d2f
AJ
3509 # Broken: fails on valid input.
3510continue
3511fi
fc6ffb29 3512
f5818d2f
AJ
3513rm -f conftest.err conftest.$ac_ext
3514
fc6ffb29 3515 # OK, works on sane cases. Now check whether nonexistent headers
f5818d2f
AJ
3516 # can be detected and how.
3517 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3518/* confdefs.h. */
3519_ACEOF
3520cat confdefs.h >>conftest.$ac_ext
3521cat >>conftest.$ac_ext <<_ACEOF
3522/* end confdefs.h. */
f5818d2f
AJ
3523#include <ac_nonexistent.h>
3524_ACEOF
0ebeb530
JW
3525if { (ac_try="$ac_cpp conftest.$ac_ext"
3526case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529esac
3530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 3532 ac_status=$?
11af04e3 3533 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
3534 rm -f conftest.er1
3535 cat conftest.err >&5
daa2886c 3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3537 (exit $ac_status); } >/dev/null && {
3538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3539 test ! -s conftest.err
3540 }; then
f5818d2f
AJ
3541 # Broken: success on invalid input.
3542continue
18ad24a7 3543else
f5818d2f 3544 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
f5818d2f
AJ
3547 # Passes both tests.
3548ac_preproc_ok=:
3549break
3550fi
fc6ffb29 3551
f5818d2f
AJ
3552rm -f conftest.err conftest.$ac_ext
3553
3554done
3555# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3556rm -f conftest.err conftest.$ac_ext
3557if $ac_preproc_ok; then
3558 break
3559fi
3560
3561 done
3562 ac_cv_prog_CPP=$CPP
3563
3564fi
3565 CPP=$ac_cv_prog_CPP
3566else
3567 ac_cv_prog_CPP=$CPP
3568fi
fc6ffb29
AJ
3569{ echo "$as_me:$LINENO: result: $CPP" >&5
3570echo "${ECHO_T}$CPP" >&6; }
f5818d2f
AJ
3571ac_preproc_ok=false
3572for ac_c_preproc_warn_flag in '' yes
3573do
3574 # Use a header file that comes with gcc, so configuring glibc
3575 # with a fresh cross-compiler works.
e24bcc77
AJ
3576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3577 # <limits.h> exists even on freestanding compilers.
f5818d2f
AJ
3578 # On the NeXT, cc -E runs the code through the compiler's parser,
3579 # not just through cpp. "Syntax error" is here to catch this case.
3580 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3581/* confdefs.h. */
3582_ACEOF
3583cat confdefs.h >>conftest.$ac_ext
3584cat >>conftest.$ac_ext <<_ACEOF
3585/* end confdefs.h. */
3586#ifdef __STDC__
3587# include <limits.h>
3588#else
3589# include <assert.h>
3590#endif
875927f6 3591 Syntax error
f5818d2f 3592_ACEOF
0ebeb530
JW
3593if { (ac_try="$ac_cpp conftest.$ac_ext"
3594case "(($ac_try" in
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3597esac
3598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 3600 ac_status=$?
11af04e3 3601 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
3602 rm -f conftest.er1
3603 cat conftest.err >&5
daa2886c 3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3605 (exit $ac_status); } >/dev/null && {
3606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3607 test ! -s conftest.err
3608 }; then
e2991ea7
AJ
3609 :
3610else
f5818d2f 3611 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3612sed 's/^/| /' conftest.$ac_ext >&5
3613
f5818d2f
AJ
3614 # Broken: fails on valid input.
3615continue
e2991ea7 3616fi
fc6ffb29 3617
f5818d2f
AJ
3618rm -f conftest.err conftest.$ac_ext
3619
fc6ffb29 3620 # OK, works on sane cases. Now check whether nonexistent headers
f5818d2f
AJ
3621 # can be detected and how.
3622 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3623/* confdefs.h. */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h. */
f5818d2f
AJ
3628#include <ac_nonexistent.h>
3629_ACEOF
0ebeb530
JW
3630if { (ac_try="$ac_cpp conftest.$ac_ext"
3631case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634esac
3635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 3637 ac_status=$?
11af04e3 3638 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
3639 rm -f conftest.er1
3640 cat conftest.err >&5
daa2886c 3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3642 (exit $ac_status); } >/dev/null && {
3643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3644 test ! -s conftest.err
3645 }; then
f5818d2f
AJ
3646 # Broken: success on invalid input.
3647continue
3648else
3649 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3650sed 's/^/| /' conftest.$ac_ext >&5
3651
f5818d2f
AJ
3652 # Passes both tests.
3653ac_preproc_ok=:
3654break
e2991ea7 3655fi
fc6ffb29 3656
f5818d2f
AJ
3657rm -f conftest.err conftest.$ac_ext
3658
3659done
3660# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3661rm -f conftest.err conftest.$ac_ext
3662if $ac_preproc_ok; then
3663 :
e2991ea7 3664else
e24bcc77
AJ
3665 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3666See \`config.log' for more details." >&5
3667echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3668See \`config.log' for more details." >&2;}
f5818d2f 3669 { (exit 1); exit 1; }; }
e2991ea7 3670fi
e2991ea7 3671
f5818d2f
AJ
3672ac_ext=c
3673ac_cpp='$CPP $CPPFLAGS'
3674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677
daa2886c 3678
0ebeb530 3679{ echo "$as_me:$LINENO: checking for X" >&5
fc6ffb29 3680echo $ECHO_N "checking for X... $ECHO_C" >&6; }
e2991ea7 3681
daa2886c 3682
fc6ffb29 3683# Check whether --with-x was given.
d7d4fdf8 3684if test "${with_x+set}" = set; then
fc6ffb29
AJ
3685 withval=$with_x;
3686fi
e2991ea7 3687
b817f4fb 3688# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
e2991ea7 3689if test "x$with_x" = xno; then
b817f4fb
AJ
3690 # The user explicitly disabled X.
3691 have_x=disabled
e2991ea7 3692else
0ebeb530
JW
3693 case $x_includes,$x_libraries in #(
3694 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3695echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3696 { (exit 1); exit 1; }; };; #(
3697 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
f5818d2f 3698 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
3699else
3700 # One or both of the vars are not set, and there is no cached value.
f5818d2f 3701ac_x_includes=no ac_x_libraries=no
fc6ffb29 3702rm -f -r conftest.dir
f5818d2f
AJ
3703if mkdir conftest.dir; then
3704 cd conftest.dir
daa2886c 3705 cat >Imakefile <<'_ACEOF'
0ebeb530
JW
3706incroot:
3707 @echo incroot='${INCROOT}'
3708usrlibdir:
3709 @echo usrlibdir='${USRLIBDIR}'
3710libdir:
3711 @echo libdir='${LIBDIR}'
daa2886c 3712_ACEOF
fc6ffb29 3713 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
e2991ea7 3714 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0ebeb530
JW
3715 for ac_var in incroot usrlibdir libdir; do
3716 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3717 done
e2991ea7
AJ
3718 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3719 for ac_extension in a so sl; do
0ebeb530
JW
3720 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3721 test -f "$ac_im_libdir/libX11.$ac_extension"; then
875927f6 3722 ac_im_usrlibdir=$ac_im_libdir; break
e2991ea7
AJ
3723 fi
3724 done
da0cfb36
AJ
3725 # Screen out bogus values from the imake configuration. They are
3726 # bogus both because they are the default anyway, and because
3727 # using them would break gcc on systems where it needs fixed includes.
f5818d2f 3728 case $ac_im_incroot in
fc6ffb29 3729 /usr/include) ac_x_includes= ;;
f5818d2f 3730 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
e2991ea7 3731 esac
f5818d2f 3732 case $ac_im_usrlibdir in
e2991ea7 3733 /usr/lib | /lib) ;;
f5818d2f 3734 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
e2991ea7
AJ
3735 esac
3736 fi
3737 cd ..
fc6ffb29 3738 rm -f -r conftest.dir
e2991ea7
AJ
3739fi
3740
f5818d2f
AJ
3741# Standard set of common directories for X headers.
3742# Check X11 before X11Rn because it is often a symlink to the current release.
3743ac_x_header_dirs='
3744/usr/X11/include
3745/usr/X11R6/include
3746/usr/X11R5/include
3747/usr/X11R4/include
3748
3749/usr/include/X11
3750/usr/include/X11R6
3751/usr/include/X11R5
3752/usr/include/X11R4
3753
3754/usr/local/X11/include
3755/usr/local/X11R6/include
3756/usr/local/X11R5/include
3757/usr/local/X11R4/include
3758
3759/usr/local/include/X11
3760/usr/local/include/X11R6
3761/usr/local/include/X11R5
3762/usr/local/include/X11R4
3763
3764/usr/X386/include
3765/usr/x386/include
3766/usr/XFree86/include/X11
3767
3768/usr/include
3769/usr/local/include
3770/usr/unsupported/include
3771/usr/athena/include
3772/usr/local/x11r5/include
3773/usr/lpp/Xamples/include
3774
3775/usr/openwin/include
3776/usr/openwin/share/include'
3777
3778if test "$ac_x_includes" = no; then
fc6ffb29 3779 # Guess where to find include files, by looking for Xlib.h.
b817f4fb 3780 # First, try using that file with no special directory specified.
f5818d2f 3781 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3782/* confdefs.h. */
3783_ACEOF
3784cat confdefs.h >>conftest.$ac_ext
3785cat >>conftest.$ac_ext <<_ACEOF
3786/* end confdefs.h. */
0ebeb530 3787#include <X11/Xlib.h>
f5818d2f 3788_ACEOF
0ebeb530
JW
3789if { (ac_try="$ac_cpp conftest.$ac_ext"
3790case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793esac
3794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 3796 ac_status=$?
11af04e3 3797 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
3798 rm -f conftest.er1
3799 cat conftest.err >&5
daa2886c 3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3801 (exit $ac_status); } >/dev/null && {
3802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3803 test ! -s conftest.err
3804 }; then
b817f4fb
AJ
3805 # We can compile using X headers with no special include directory.
3806ac_x_includes=
e2991ea7 3807else
f5818d2f 3808 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
f5818d2f 3811 for ac_dir in $ac_x_header_dirs; do
d7d3169d 3812 if test -r "$ac_dir/X11/Xlib.h"; then
f5818d2f
AJ
3813 ac_x_includes=$ac_dir
3814 break
3815 fi
3816done
e2991ea7 3817fi
fc6ffb29 3818
f5818d2f
AJ
3819rm -f conftest.err conftest.$ac_ext
3820fi # $ac_x_includes = no
b817f4fb 3821
f5818d2f 3822if test "$ac_x_libraries" = no; then
b817f4fb 3823 # Check for the libraries.
b817f4fb
AJ
3824 # See if we find them without any special options.
3825 # Don't add to $LIBS permanently.
f5818d2f 3826 ac_save_LIBS=$LIBS
d01063e1 3827 LIBS="-lX11 $LIBS"
f5818d2f 3828 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3829/* confdefs.h. */
3830_ACEOF
3831cat confdefs.h >>conftest.$ac_ext
3832cat >>conftest.$ac_ext <<_ACEOF
3833/* end confdefs.h. */
d7d3169d 3834#include <X11/Xlib.h>
f5818d2f
AJ
3835int
3836main ()
3837{
d7d3169d 3838XrmInitialize ()
f5818d2f
AJ
3839 ;
3840 return 0;
3841}
3842_ACEOF
3843rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
3844if { (ac_try="$ac_link"
3845case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848esac
3849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_link") 2>conftest.er1
f5818d2f 3851 ac_status=$?
875927f6
AJ
3852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
daa2886c 3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3856 (exit $ac_status); } && {
3857 test -z "$ac_c_werror_flag" ||
3858 test ! -s conftest.err
3859 } && test -s conftest$ac_exeext &&
3860 $as_test_x conftest$ac_exeext; then
f5818d2f 3861 LIBS=$ac_save_LIBS
b817f4fb
AJ
3862# We can link X programs with no special library path.
3863ac_x_libraries=
e2991ea7 3864else
f5818d2f 3865 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3866sed 's/^/| /' conftest.$ac_ext >&5
3867
fc6ffb29 3868 LIBS=$ac_save_LIBS
f5818d2f 3869for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
e2991ea7 3870do
f5818d2f 3871 # Don't even attempt the hair of trying to link an X program!
e2991ea7 3872 for ac_extension in a so sl; do
d01063e1 3873 if test -r "$ac_dir/libX11.$ac_extension"; then
b817f4fb 3874 ac_x_libraries=$ac_dir
e2991ea7
AJ
3875 break 2
3876 fi
3877 done
3878done
3879fi
fc6ffb29 3880
f0ca586f 3881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 3882 conftest$ac_exeext conftest.$ac_ext
f5818d2f 3883fi # $ac_x_libraries = no
b817f4fb 3884
0ebeb530
JW
3885case $ac_x_includes,$ac_x_libraries in #(
3886 no,* | *,no | *\'*)
3887 # Didn't find X, or a directory has "'" in its name.
3888 ac_cv_have_x="have_x=no";; #(
3889 *)
3890 # Record where we found X for the cache.
3891 ac_cv_have_x="have_x=yes\
3892 ac_x_includes='$ac_x_includes'\
3893 ac_x_libraries='$ac_x_libraries'"
3894esac
e2991ea7 3895fi
0ebeb530
JW
3896;; #(
3897 *) have_x=yes;;
3898 esac
b817f4fb 3899 eval "$ac_cv_have_x"
e2991ea7
AJ
3900fi # $with_x != no
3901
b817f4fb 3902if test "$have_x" != yes; then
fc6ffb29
AJ
3903 { echo "$as_me:$LINENO: result: $have_x" >&5
3904echo "${ECHO_T}$have_x" >&6; }
b817f4fb 3905 no_x=yes
e2991ea7 3906else
b817f4fb 3907 # If each of the values was on the command line, it overrides each guess.
e2991ea7
AJ
3908 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3909 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
b817f4fb 3910 # Update the cache value to reflect the command line values.
0ebeb530
JW
3911 ac_cv_have_x="have_x=yes\
3912 ac_x_includes='$x_includes'\
3913 ac_x_libraries='$x_libraries'"
3914 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3915echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
e2991ea7
AJ
3916fi
3917
b817f4fb 3918if test "$no_x" = yes; then
ff8331ea 3919 # Not all programs may use this symbol, but it does not hurt to define it.
f5818d2f 3920
daa2886c 3921cat >>confdefs.h <<\_ACEOF
da0cfb36 3922#define X_DISPLAY_MISSING 1
daa2886c 3923_ACEOF
da0cfb36
AJ
3924
3925 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
ff8331ea
AJ
3926else
3927 if test -n "$x_includes"; then
3928 X_CFLAGS="$X_CFLAGS -I$x_includes"
3929 fi
3930
ff8331ea
AJ
3931 # It would also be nice to do this for all -L options, not just this one.
3932 if test -n "$x_libraries"; then
3933 X_LIBS="$X_LIBS -L$x_libraries"
da0cfb36
AJ
3934 # For Solaris; some versions of Sun CC require a space after -R and
3935 # others require no space. Words are not sufficient . . . .
c8278926 3936 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
fc6ffb29 3937echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
c8278926
AJ
3938 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3939 ac_xsave_c_werror_flag=$ac_c_werror_flag
3940 ac_c_werror_flag=yes
3941 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3942/* confdefs.h. */
3943_ACEOF
3944cat confdefs.h >>conftest.$ac_ext
3945cat >>conftest.$ac_ext <<_ACEOF
3946/* end confdefs.h. */
ff8331ea 3947
f5818d2f
AJ
3948int
3949main ()
3950{
da0cfb36 3951
f5818d2f
AJ
3952 ;
3953 return 0;
3954}
3955_ACEOF
3956rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
3957if { (ac_try="$ac_link"
3958case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961esac
3962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_link") 2>conftest.er1
f5818d2f 3964 ac_status=$?
875927f6
AJ
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
daa2886c 3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
3969 (exit $ac_status); } && {
3970 test -z "$ac_c_werror_flag" ||
3971 test ! -s conftest.err
3972 } && test -s conftest$ac_exeext &&
3973 $as_test_x conftest$ac_exeext; then
c8278926
AJ
3974 { echo "$as_me:$LINENO: result: no" >&5
3975echo "${ECHO_T}no" >&6; }
3976 X_LIBS="$X_LIBS -R$x_libraries"
ff8331ea 3977else
f5818d2f 3978 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
da0cfb36 3981 LIBS="$ac_xsave_LIBS -R $x_libraries"
c8278926 3982 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3983/* confdefs.h. */
3984_ACEOF
3985cat confdefs.h >>conftest.$ac_ext
3986cat >>conftest.$ac_ext <<_ACEOF
3987/* end confdefs.h. */
da0cfb36 3988
f5818d2f
AJ
3989int
3990main ()
3991{
da0cfb36 3992
f5818d2f
AJ
3993 ;
3994 return 0;
3995}
3996_ACEOF
3997rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
3998if { (ac_try="$ac_link"
3999case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002esac
4003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_link") 2>conftest.er1
f5818d2f 4005 ac_status=$?
875927f6
AJ
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
daa2886c 4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4010 (exit $ac_status); } && {
4011 test -z "$ac_c_werror_flag" ||
4012 test ! -s conftest.err
4013 } && test -s conftest$ac_exeext &&
4014 $as_test_x conftest$ac_exeext; then
c8278926
AJ
4015 { echo "$as_me:$LINENO: result: yes" >&5
4016echo "${ECHO_T}yes" >&6; }
4017 X_LIBS="$X_LIBS -R $x_libraries"
ff8331ea 4018else
f5818d2f 4019 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4020sed 's/^/| /' conftest.$ac_ext >&5
4021
c8278926
AJ
4022 { echo "$as_me:$LINENO: result: neither works" >&5
4023echo "${ECHO_T}neither works" >&6; }
ff8331ea 4024fi
fc6ffb29 4025
f0ca586f 4026rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4027 conftest$ac_exeext conftest.$ac_ext
c8278926
AJ
4028fi
4029
f0ca586f 4030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
c8278926
AJ
4031 conftest$ac_exeext conftest.$ac_ext
4032 ac_c_werror_flag=$ac_xsave_c_werror_flag
4033 LIBS=$ac_xsave_LIBS
da0cfb36 4034 fi
ff8331ea
AJ
4035
4036 # Check for system-dependent libraries X programs must link with.
da0cfb36
AJ
4037 # Do this before checking for the system-independent R6 libraries
4038 # (-lICE), since we may need -lsocket or whatever for X linking.
ff8331ea
AJ
4039
4040 if test "$ISC" = yes; then
4041 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4042 else
f5818d2f
AJ
4043 # Martyn Johnson says this is needed for Ultrix, if the X
4044 # libraries were built with DECnet support. And Karl Berry says
ff8331ea 4045 # the Alpha needs dnet_stub (dnet does not exist).
f5818d2f
AJ
4046 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4047 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4048/* confdefs.h. */
4049_ACEOF
4050cat confdefs.h >>conftest.$ac_ext
4051cat >>conftest.$ac_ext <<_ACEOF
4052/* end confdefs.h. */
f5818d2f 4053
fc6ffb29
AJ
4054/* Override any GCC internal prototype to avoid an error.
4055 Use char because int might match the return type of a GCC
4056 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4057#ifdef __cplusplus
4058extern "C"
4059#endif
f5818d2f
AJ
4060char XOpenDisplay ();
4061int
4062main ()
4063{
fc6ffb29 4064return XOpenDisplay ();
f5818d2f
AJ
4065 ;
4066 return 0;
4067}
4068_ACEOF
4069rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4070if { (ac_try="$ac_link"
4071case "(($ac_try" in
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4074esac
4075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_link") 2>conftest.er1
f5818d2f 4077 ac_status=$?
875927f6
AJ
4078 grep -v '^ *+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
daa2886c 4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4082 (exit $ac_status); } && {
4083 test -z "$ac_c_werror_flag" ||
4084 test ! -s conftest.err
4085 } && test -s conftest$ac_exeext &&
4086 $as_test_x conftest$ac_exeext; then
f5818d2f 4087 :
ff8331ea 4088else
f5818d2f 4089 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4090sed 's/^/| /' conftest.$ac_ext >&5
4091
fc6ffb29
AJ
4092 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4093echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
f5818d2f
AJ
4094if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096else
4097 ac_check_lib_save_LIBS=$LIBS
4098LIBS="-ldnet $LIBS"
4099cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4100/* confdefs.h. */
4101_ACEOF
4102cat confdefs.h >>conftest.$ac_ext
4103cat >>conftest.$ac_ext <<_ACEOF
4104/* end confdefs.h. */
ff8331ea 4105
fc6ffb29
AJ
4106/* Override any GCC internal prototype to avoid an error.
4107 Use char because int might match the return type of a GCC
4108 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4109#ifdef __cplusplus
4110extern "C"
4111#endif
f5818d2f
AJ
4112char dnet_ntoa ();
4113int
4114main ()
4115{
fc6ffb29 4116return dnet_ntoa ();
f5818d2f
AJ
4117 ;
4118 return 0;
4119}
4120_ACEOF
4121rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4122if { (ac_try="$ac_link"
4123case "(($ac_try" in
4124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4125 *) ac_try_echo=$ac_try;;
4126esac
4127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4128 (eval "$ac_link") 2>conftest.er1
f5818d2f 4129 ac_status=$?
875927f6
AJ
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
daa2886c 4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4134 (exit $ac_status); } && {
4135 test -z "$ac_c_werror_flag" ||
4136 test ! -s conftest.err
4137 } && test -s conftest$ac_exeext &&
4138 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4139 ac_cv_lib_dnet_dnet_ntoa=yes
4140else
4141 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4142sed 's/^/| /' conftest.$ac_ext >&5
4143
fc6ffb29 4144 ac_cv_lib_dnet_dnet_ntoa=no
f5818d2f 4145fi
fc6ffb29 4146
f0ca586f 4147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4148 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4149LIBS=$ac_check_lib_save_LIBS
4150fi
fc6ffb29
AJ
4151{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4152echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
f5818d2f 4153if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
ff8331ea 4154 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
ff8331ea
AJ
4155fi
4156
59730ae1 4157 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
fc6ffb29
AJ
4158 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4159echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
f5818d2f
AJ
4160if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 4162else
f5818d2f 4163 ac_check_lib_save_LIBS=$LIBS
ff8331ea 4164LIBS="-ldnet_stub $LIBS"
f5818d2f 4165cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4166/* confdefs.h. */
4167_ACEOF
4168cat confdefs.h >>conftest.$ac_ext
4169cat >>conftest.$ac_ext <<_ACEOF
4170/* end confdefs.h. */
f5818d2f 4171
fc6ffb29
AJ
4172/* Override any GCC internal prototype to avoid an error.
4173 Use char because int might match the return type of a GCC
4174 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4175#ifdef __cplusplus
4176extern "C"
4177#endif
f5818d2f
AJ
4178char dnet_ntoa ();
4179int
4180main ()
4181{
fc6ffb29 4182return dnet_ntoa ();
f5818d2f
AJ
4183 ;
4184 return 0;
4185}
4186_ACEOF
4187rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4188if { (ac_try="$ac_link"
4189case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4192esac
4193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_link") 2>conftest.er1
f5818d2f 4195 ac_status=$?
875927f6
AJ
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
daa2886c 4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4200 (exit $ac_status); } && {
4201 test -z "$ac_c_werror_flag" ||
4202 test ! -s conftest.err
4203 } && test -s conftest$ac_exeext &&
4204 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4205 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4206else
4207 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
fc6ffb29 4210 ac_cv_lib_dnet_stub_dnet_ntoa=no
f5818d2f 4211fi
fc6ffb29 4212
f0ca586f 4213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4214 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4215LIBS=$ac_check_lib_save_LIBS
4216fi
fc6ffb29
AJ
4217{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4218echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
f5818d2f 4219if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
ff8331ea 4220 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
ff8331ea
AJ
4221fi
4222
4223 fi
f5818d2f 4224fi
fc6ffb29 4225
f0ca586f 4226rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4227 conftest$ac_exeext conftest.$ac_ext
f5818d2f 4228 LIBS="$ac_xsave_LIBS"
ff8331ea
AJ
4229
4230 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4231 # to get the SysV transport functions.
f5818d2f 4232 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
da0cfb36
AJ
4233 # needs -lnsl.
4234 # The nsl library prevents programs from opening the X display
f5818d2f
AJ
4235 # on Irix 5.2, according to T.E. Dickey.
4236 # The functions gethostbyname, getservbyname, and inet_addr are
4237 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
fc6ffb29
AJ
4238 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4239echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
f5818d2f
AJ
4240if test "${ac_cv_func_gethostbyname+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242else
4243 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4244/* confdefs.h. */
4245_ACEOF
4246cat confdefs.h >>conftest.$ac_ext
4247cat >>conftest.$ac_ext <<_ACEOF
4248/* end confdefs.h. */
875927f6
AJ
4249/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4251#define gethostbyname innocuous_gethostbyname
4252
da0cfb36 4253/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
4254 which can conflict with char gethostbyname (); below.
4255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4256 <limits.h> exists even on freestanding compilers. */
875927f6 4257
e24bcc77
AJ
4258#ifdef __STDC__
4259# include <limits.h>
4260#else
4261# include <assert.h>
4262#endif
875927f6
AJ
4263
4264#undef gethostbyname
4265
fc6ffb29
AJ
4266/* Override any GCC internal prototype to avoid an error.
4267 Use char because int might match the return type of a GCC
4268 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4269#ifdef __cplusplus
4270extern "C"
4271#endif
f5818d2f 4272char gethostbyname ();
da0cfb36
AJ
4273/* The GNU C library defines this for functions which it implements
4274 to always fail with ENOSYS. Some functions are actually named
4275 something starting with __ and the normal name is an alias. */
fc6ffb29 4276#if defined __stub_gethostbyname || defined __stub___gethostbyname
da0cfb36 4277choke me
da0cfb36
AJ
4278#endif
4279
e24bcc77
AJ
4280int
4281main ()
4282{
fc6ffb29 4283return gethostbyname ();
f5818d2f
AJ
4284 ;
4285 return 0;
4286}
4287_ACEOF
4288rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4289if { (ac_try="$ac_link"
4290case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293esac
4294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_link") 2>conftest.er1
f5818d2f 4296 ac_status=$?
875927f6
AJ
4297 grep -v '^ *+' conftest.er1 >conftest.err
4298 rm -f conftest.er1
4299 cat conftest.err >&5
daa2886c 4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4301 (exit $ac_status); } && {
4302 test -z "$ac_c_werror_flag" ||
4303 test ! -s conftest.err
4304 } && test -s conftest$ac_exeext &&
4305 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4306 ac_cv_func_gethostbyname=yes
4307else
4308 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4309sed 's/^/| /' conftest.$ac_ext >&5
4310
fc6ffb29 4311 ac_cv_func_gethostbyname=no
f5818d2f 4312fi
fc6ffb29 4313
f0ca586f 4314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4315 conftest$ac_exeext conftest.$ac_ext
f5818d2f 4316fi
fc6ffb29
AJ
4317{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4318echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
da0cfb36
AJ
4319
4320 if test $ac_cv_func_gethostbyname = no; then
fc6ffb29
AJ
4321 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4322echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
f5818d2f
AJ
4323if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 4325else
f5818d2f 4326 ac_check_lib_save_LIBS=$LIBS
ff8331ea 4327LIBS="-lnsl $LIBS"
f5818d2f 4328cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4329/* confdefs.h. */
4330_ACEOF
4331cat confdefs.h >>conftest.$ac_ext
4332cat >>conftest.$ac_ext <<_ACEOF
4333/* end confdefs.h. */
f5818d2f 4334
fc6ffb29
AJ
4335/* Override any GCC internal prototype to avoid an error.
4336 Use char because int might match the return type of a GCC
4337 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4338#ifdef __cplusplus
4339extern "C"
4340#endif
f5818d2f
AJ
4341char gethostbyname ();
4342int
4343main ()
4344{
fc6ffb29 4345return gethostbyname ();
f5818d2f
AJ
4346 ;
4347 return 0;
4348}
4349_ACEOF
4350rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4351if { (ac_try="$ac_link"
4352case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4355esac
4356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357 (eval "$ac_link") 2>conftest.er1
f5818d2f 4358 ac_status=$?
875927f6
AJ
4359 grep -v '^ *+' conftest.er1 >conftest.err
4360 rm -f conftest.er1
4361 cat conftest.err >&5
daa2886c 4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4363 (exit $ac_status); } && {
4364 test -z "$ac_c_werror_flag" ||
4365 test ! -s conftest.err
4366 } && test -s conftest$ac_exeext &&
4367 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4368 ac_cv_lib_nsl_gethostbyname=yes
4369else
4370 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4371sed 's/^/| /' conftest.$ac_ext >&5
4372
fc6ffb29 4373 ac_cv_lib_nsl_gethostbyname=no
f5818d2f 4374fi
fc6ffb29 4375
f0ca586f 4376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4377 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4378LIBS=$ac_check_lib_save_LIBS
4379fi
fc6ffb29
AJ
4380{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4381echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
f5818d2f
AJ
4382if test $ac_cv_lib_nsl_gethostbyname = yes; then
4383 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4384fi
ff8331ea 4385
f5818d2f 4386 if test $ac_cv_lib_nsl_gethostbyname = no; then
fc6ffb29
AJ
4387 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4388echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
f5818d2f
AJ
4389if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 4391else
f5818d2f
AJ
4392 ac_check_lib_save_LIBS=$LIBS
4393LIBS="-lbsd $LIBS"
4394cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4395/* confdefs.h. */
4396_ACEOF
4397cat confdefs.h >>conftest.$ac_ext
4398cat >>conftest.$ac_ext <<_ACEOF
4399/* end confdefs.h. */
ff8331ea 4400
fc6ffb29
AJ
4401/* Override any GCC internal prototype to avoid an error.
4402 Use char because int might match the return type of a GCC
4403 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4404#ifdef __cplusplus
4405extern "C"
4406#endif
f5818d2f
AJ
4407char gethostbyname ();
4408int
4409main ()
4410{
fc6ffb29 4411return gethostbyname ();
f5818d2f
AJ
4412 ;
4413 return 0;
4414}
4415_ACEOF
4416rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4417if { (ac_try="$ac_link"
4418case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4421esac
4422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423 (eval "$ac_link") 2>conftest.er1
f5818d2f 4424 ac_status=$?
875927f6
AJ
4425 grep -v '^ *+' conftest.er1 >conftest.err
4426 rm -f conftest.er1
4427 cat conftest.err >&5
daa2886c 4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4429 (exit $ac_status); } && {
4430 test -z "$ac_c_werror_flag" ||
4431 test ! -s conftest.err
4432 } && test -s conftest$ac_exeext &&
4433 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4434 ac_cv_lib_bsd_gethostbyname=yes
4435else
4436 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4437sed 's/^/| /' conftest.$ac_ext >&5
4438
fc6ffb29 4439 ac_cv_lib_bsd_gethostbyname=no
f5818d2f 4440fi
fc6ffb29 4441
f0ca586f 4442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4443 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4444LIBS=$ac_check_lib_save_LIBS
4445fi
fc6ffb29
AJ
4446{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4447echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
f5818d2f
AJ
4448if test $ac_cv_lib_bsd_gethostbyname = yes; then
4449 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
ff8331ea
AJ
4450fi
4451
f5818d2f 4452 fi
da0cfb36 4453 fi
ff8331ea
AJ
4454
4455 # lieder@skyler.mavd.honeywell.com says without -lsocket,
da0cfb36
AJ
4456 # socket/setsockopt and other routines are undefined under SCO ODT
4457 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
f5818d2f 4458 # on later versions), says Simon Leinen: it contains gethostby*
11af04e3 4459 # variants that don't use the name server (or something). -lsocket
f5818d2f
AJ
4460 # must be given before -lnsl if both are needed. We assume that
4461 # if connect needs -lnsl, so does gethostbyname.
fc6ffb29
AJ
4462 { echo "$as_me:$LINENO: checking for connect" >&5
4463echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
f5818d2f
AJ
4464if test "${ac_cv_func_connect+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466else
4467 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4468/* confdefs.h. */
4469_ACEOF
4470cat confdefs.h >>conftest.$ac_ext
4471cat >>conftest.$ac_ext <<_ACEOF
4472/* end confdefs.h. */
875927f6
AJ
4473/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4475#define connect innocuous_connect
4476
da0cfb36 4477/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
4478 which can conflict with char connect (); below.
4479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4480 <limits.h> exists even on freestanding compilers. */
875927f6 4481
e24bcc77
AJ
4482#ifdef __STDC__
4483# include <limits.h>
4484#else
4485# include <assert.h>
4486#endif
875927f6
AJ
4487
4488#undef connect
4489
fc6ffb29
AJ
4490/* Override any GCC internal prototype to avoid an error.
4491 Use char because int might match the return type of a GCC
4492 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4493#ifdef __cplusplus
4494extern "C"
4495#endif
f5818d2f 4496char connect ();
da0cfb36
AJ
4497/* The GNU C library defines this for functions which it implements
4498 to always fail with ENOSYS. Some functions are actually named
4499 something starting with __ and the normal name is an alias. */
fc6ffb29 4500#if defined __stub_connect || defined __stub___connect
da0cfb36 4501choke me
da0cfb36
AJ
4502#endif
4503
e24bcc77
AJ
4504int
4505main ()
4506{
fc6ffb29 4507return connect ();
f5818d2f
AJ
4508 ;
4509 return 0;
4510}
4511_ACEOF
4512rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4513if { (ac_try="$ac_link"
4514case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517esac
4518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4519 (eval "$ac_link") 2>conftest.er1
f5818d2f 4520 ac_status=$?
875927f6
AJ
4521 grep -v '^ *+' conftest.er1 >conftest.err
4522 rm -f conftest.er1
4523 cat conftest.err >&5
daa2886c 4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4525 (exit $ac_status); } && {
4526 test -z "$ac_c_werror_flag" ||
4527 test ! -s conftest.err
4528 } && test -s conftest$ac_exeext &&
4529 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4530 ac_cv_func_connect=yes
4531else
4532 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4533sed 's/^/| /' conftest.$ac_ext >&5
4534
fc6ffb29 4535 ac_cv_func_connect=no
f5818d2f 4536fi
fc6ffb29 4537
f0ca586f 4538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4539 conftest$ac_exeext conftest.$ac_ext
f5818d2f 4540fi
fc6ffb29
AJ
4541{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4542echo "${ECHO_T}$ac_cv_func_connect" >&6; }
da0cfb36
AJ
4543
4544 if test $ac_cv_func_connect = no; then
fc6ffb29
AJ
4545 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4546echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
f5818d2f
AJ
4547if test "${ac_cv_lib_socket_connect+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 4549else
f5818d2f 4550 ac_check_lib_save_LIBS=$LIBS
da0cfb36 4551LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
f5818d2f 4552cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4553/* confdefs.h. */
4554_ACEOF
4555cat confdefs.h >>conftest.$ac_ext
4556cat >>conftest.$ac_ext <<_ACEOF
4557/* end confdefs.h. */
f5818d2f 4558
fc6ffb29
AJ
4559/* Override any GCC internal prototype to avoid an error.
4560 Use char because int might match the return type of a GCC
4561 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4562#ifdef __cplusplus
4563extern "C"
4564#endif
f5818d2f
AJ
4565char connect ();
4566int
4567main ()
4568{
fc6ffb29 4569return connect ();
f5818d2f
AJ
4570 ;
4571 return 0;
4572}
4573_ACEOF
4574rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4575if { (ac_try="$ac_link"
4576case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579esac
4580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_link") 2>conftest.er1
f5818d2f 4582 ac_status=$?
875927f6
AJ
4583 grep -v '^ *+' conftest.er1 >conftest.err
4584 rm -f conftest.er1
4585 cat conftest.err >&5
daa2886c 4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4587 (exit $ac_status); } && {
4588 test -z "$ac_c_werror_flag" ||
4589 test ! -s conftest.err
4590 } && test -s conftest$ac_exeext &&
4591 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4592 ac_cv_lib_socket_connect=yes
4593else
4594 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4595sed 's/^/| /' conftest.$ac_ext >&5
4596
fc6ffb29 4597 ac_cv_lib_socket_connect=no
f5818d2f 4598fi
fc6ffb29 4599
f0ca586f 4600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4601 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4602LIBS=$ac_check_lib_save_LIBS
4603fi
fc6ffb29
AJ
4604{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4605echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
f5818d2f 4606if test $ac_cv_lib_socket_connect = yes; then
da0cfb36 4607 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
ff8331ea
AJ
4608fi
4609
da0cfb36
AJ
4610 fi
4611
f5818d2f 4612 # Guillermo Gomez says -lposix is necessary on A/UX.
fc6ffb29
AJ
4613 { echo "$as_me:$LINENO: checking for remove" >&5
4614echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
f5818d2f
AJ
4615if test "${ac_cv_func_remove+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 4617else
f5818d2f 4618 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4619/* confdefs.h. */
4620_ACEOF
4621cat confdefs.h >>conftest.$ac_ext
4622cat >>conftest.$ac_ext <<_ACEOF
4623/* end confdefs.h. */
875927f6
AJ
4624/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4626#define remove innocuous_remove
4627
da0cfb36 4628/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
4629 which can conflict with char remove (); below.
4630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4631 <limits.h> exists even on freestanding compilers. */
875927f6 4632
e24bcc77
AJ
4633#ifdef __STDC__
4634# include <limits.h>
4635#else
4636# include <assert.h>
4637#endif
875927f6
AJ
4638
4639#undef remove
4640
fc6ffb29
AJ
4641/* Override any GCC internal prototype to avoid an error.
4642 Use char because int might match the return type of a GCC
4643 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4644#ifdef __cplusplus
4645extern "C"
4646#endif
f5818d2f 4647char remove ();
da0cfb36
AJ
4648/* The GNU C library defines this for functions which it implements
4649 to always fail with ENOSYS. Some functions are actually named
4650 something starting with __ and the normal name is an alias. */
fc6ffb29 4651#if defined __stub_remove || defined __stub___remove
da0cfb36 4652choke me
da0cfb36
AJ
4653#endif
4654
e24bcc77
AJ
4655int
4656main ()
4657{
fc6ffb29 4658return remove ();
f5818d2f
AJ
4659 ;
4660 return 0;
4661}
4662_ACEOF
4663rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4664if { (ac_try="$ac_link"
4665case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668esac
4669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4670 (eval "$ac_link") 2>conftest.er1
f5818d2f 4671 ac_status=$?
875927f6
AJ
4672 grep -v '^ *+' conftest.er1 >conftest.err
4673 rm -f conftest.er1
4674 cat conftest.err >&5
daa2886c 4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4676 (exit $ac_status); } && {
4677 test -z "$ac_c_werror_flag" ||
4678 test ! -s conftest.err
4679 } && test -s conftest$ac_exeext &&
4680 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4681 ac_cv_func_remove=yes
4682else
4683 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4684sed 's/^/| /' conftest.$ac_ext >&5
4685
fc6ffb29 4686 ac_cv_func_remove=no
f5818d2f 4687fi
fc6ffb29 4688
f0ca586f 4689rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4690 conftest$ac_exeext conftest.$ac_ext
f5818d2f 4691fi
fc6ffb29
AJ
4692{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4693echo "${ECHO_T}$ac_cv_func_remove" >&6; }
da0cfb36
AJ
4694
4695 if test $ac_cv_func_remove = no; then
fc6ffb29
AJ
4696 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4697echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
f5818d2f
AJ
4698if test "${ac_cv_lib_posix_remove+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
e2bfa4c7 4700else
f5818d2f 4701 ac_check_lib_save_LIBS=$LIBS
da0cfb36 4702LIBS="-lposix $LIBS"
f5818d2f 4703cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4704/* confdefs.h. */
4705_ACEOF
4706cat confdefs.h >>conftest.$ac_ext
4707cat >>conftest.$ac_ext <<_ACEOF
4708/* end confdefs.h. */
f5818d2f 4709
fc6ffb29
AJ
4710/* Override any GCC internal prototype to avoid an error.
4711 Use char because int might match the return type of a GCC
4712 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4713#ifdef __cplusplus
4714extern "C"
4715#endif
f5818d2f
AJ
4716char remove ();
4717int
4718main ()
4719{
fc6ffb29 4720return remove ();
f5818d2f
AJ
4721 ;
4722 return 0;
4723}
4724_ACEOF
4725rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4726if { (ac_try="$ac_link"
4727case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730esac
4731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_link") 2>conftest.er1
f5818d2f 4733 ac_status=$?
875927f6
AJ
4734 grep -v '^ *+' conftest.er1 >conftest.err
4735 rm -f conftest.er1
4736 cat conftest.err >&5
daa2886c 4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4738 (exit $ac_status); } && {
4739 test -z "$ac_c_werror_flag" ||
4740 test ! -s conftest.err
4741 } && test -s conftest$ac_exeext &&
4742 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4743 ac_cv_lib_posix_remove=yes
4744else
4745 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4746sed 's/^/| /' conftest.$ac_ext >&5
4747
fc6ffb29 4748 ac_cv_lib_posix_remove=no
f5818d2f 4749fi
fc6ffb29 4750
f0ca586f 4751rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4752 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4753LIBS=$ac_check_lib_save_LIBS
4754fi
fc6ffb29
AJ
4755{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4756echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
f5818d2f 4757if test $ac_cv_lib_posix_remove = yes; then
da0cfb36 4758 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
da0cfb36
AJ
4759fi
4760
4761 fi
4762
4763 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
fc6ffb29
AJ
4764 { echo "$as_me:$LINENO: checking for shmat" >&5
4765echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
f5818d2f
AJ
4766if test "${ac_cv_func_shmat+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 4768else
f5818d2f 4769 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4770/* confdefs.h. */
4771_ACEOF
4772cat confdefs.h >>conftest.$ac_ext
4773cat >>conftest.$ac_ext <<_ACEOF
4774/* end confdefs.h. */
875927f6
AJ
4775/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4777#define shmat innocuous_shmat
4778
da0cfb36 4779/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
4780 which can conflict with char shmat (); below.
4781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4782 <limits.h> exists even on freestanding compilers. */
875927f6 4783
e24bcc77
AJ
4784#ifdef __STDC__
4785# include <limits.h>
4786#else
4787# include <assert.h>
4788#endif
875927f6
AJ
4789
4790#undef shmat
4791
fc6ffb29
AJ
4792/* Override any GCC internal prototype to avoid an error.
4793 Use char because int might match the return type of a GCC
4794 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4795#ifdef __cplusplus
4796extern "C"
4797#endif
f5818d2f 4798char shmat ();
da0cfb36
AJ
4799/* The GNU C library defines this for functions which it implements
4800 to always fail with ENOSYS. Some functions are actually named
4801 something starting with __ and the normal name is an alias. */
fc6ffb29 4802#if defined __stub_shmat || defined __stub___shmat
da0cfb36 4803choke me
da0cfb36
AJ
4804#endif
4805
e24bcc77
AJ
4806int
4807main ()
4808{
fc6ffb29 4809return shmat ();
f5818d2f
AJ
4810 ;
4811 return 0;
4812}
4813_ACEOF
4814rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4815if { (ac_try="$ac_link"
4816case "(($ac_try" in
4817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818 *) ac_try_echo=$ac_try;;
4819esac
4820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4821 (eval "$ac_link") 2>conftest.er1
f5818d2f 4822 ac_status=$?
875927f6
AJ
4823 grep -v '^ *+' conftest.er1 >conftest.err
4824 rm -f conftest.er1
4825 cat conftest.err >&5
daa2886c 4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4827 (exit $ac_status); } && {
4828 test -z "$ac_c_werror_flag" ||
4829 test ! -s conftest.err
4830 } && test -s conftest$ac_exeext &&
4831 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4832 ac_cv_func_shmat=yes
4833else
4834 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4835sed 's/^/| /' conftest.$ac_ext >&5
4836
fc6ffb29 4837 ac_cv_func_shmat=no
f5818d2f 4838fi
fc6ffb29 4839
f0ca586f 4840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4841 conftest$ac_exeext conftest.$ac_ext
f5818d2f 4842fi
fc6ffb29
AJ
4843{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4844echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
da0cfb36
AJ
4845
4846 if test $ac_cv_func_shmat = no; then
fc6ffb29
AJ
4847 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4848echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
f5818d2f
AJ
4849if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 4851else
f5818d2f 4852 ac_check_lib_save_LIBS=$LIBS
da0cfb36 4853LIBS="-lipc $LIBS"
f5818d2f 4854cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4855/* confdefs.h. */
4856_ACEOF
4857cat confdefs.h >>conftest.$ac_ext
4858cat >>conftest.$ac_ext <<_ACEOF
4859/* end confdefs.h. */
f5818d2f 4860
fc6ffb29
AJ
4861/* Override any GCC internal prototype to avoid an error.
4862 Use char because int might match the return type of a GCC
4863 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4864#ifdef __cplusplus
4865extern "C"
4866#endif
f5818d2f
AJ
4867char shmat ();
4868int
4869main ()
4870{
fc6ffb29 4871return shmat ();
f5818d2f
AJ
4872 ;
4873 return 0;
4874}
4875_ACEOF
4876rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4877if { (ac_try="$ac_link"
4878case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881esac
4882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_link") 2>conftest.er1
f5818d2f 4884 ac_status=$?
875927f6
AJ
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
daa2886c 4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4889 (exit $ac_status); } && {
4890 test -z "$ac_c_werror_flag" ||
4891 test ! -s conftest.err
4892 } && test -s conftest$ac_exeext &&
4893 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4894 ac_cv_lib_ipc_shmat=yes
4895else
4896 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4897sed 's/^/| /' conftest.$ac_ext >&5
4898
fc6ffb29 4899 ac_cv_lib_ipc_shmat=no
f5818d2f 4900fi
fc6ffb29 4901
f0ca586f 4902rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4903 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4904LIBS=$ac_check_lib_save_LIBS
4905fi
fc6ffb29
AJ
4906{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4907echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
f5818d2f 4908if test $ac_cv_lib_ipc_shmat = yes; then
da0cfb36 4909 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
e2bfa4c7
AJ
4910fi
4911
ff8331ea
AJ
4912 fi
4913 fi
da0cfb36
AJ
4914
4915 # Check for libraries that X11R6 Xt/Xaw programs need.
f5818d2f 4916 ac_save_LDFLAGS=$LDFLAGS
da0cfb36
AJ
4917 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4918 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4919 # check for ICE first), but we must link in the order -lSM -lICE or
4920 # we get undefined symbols. So assume we have SM if we have ICE.
4921 # These have to be linked with before -lX11, unlike the other
4922 # libraries we check for below, so use a different variable.
f5818d2f 4923 # John Interrante, Karl Berry
fc6ffb29
AJ
4924 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4925echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
f5818d2f
AJ
4926if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928else
4929 ac_check_lib_save_LIBS=$LIBS
18ad24a7 4930LIBS="-lICE $X_EXTRA_LIBS $LIBS"
f5818d2f 4931cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4932/* confdefs.h. */
4933_ACEOF
4934cat confdefs.h >>conftest.$ac_ext
4935cat >>conftest.$ac_ext <<_ACEOF
4936/* end confdefs.h. */
f5818d2f 4937
fc6ffb29
AJ
4938/* Override any GCC internal prototype to avoid an error.
4939 Use char because int might match the return type of a GCC
4940 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4941#ifdef __cplusplus
4942extern "C"
4943#endif
f5818d2f
AJ
4944char IceConnectionNumber ();
4945int
4946main ()
4947{
fc6ffb29 4948return IceConnectionNumber ();
f5818d2f
AJ
4949 ;
4950 return 0;
4951}
4952_ACEOF
4953rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4954if { (ac_try="$ac_link"
4955case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958esac
4959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_link") 2>conftest.er1
f5818d2f 4961 ac_status=$?
875927f6
AJ
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
daa2886c 4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
4966 (exit $ac_status); } && {
4967 test -z "$ac_c_werror_flag" ||
4968 test ! -s conftest.err
4969 } && test -s conftest$ac_exeext &&
4970 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
4971 ac_cv_lib_ICE_IceConnectionNumber=yes
4972else
4973 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
fc6ffb29 4976 ac_cv_lib_ICE_IceConnectionNumber=no
f5818d2f 4977fi
fc6ffb29 4978
f0ca586f 4979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 4980 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4981LIBS=$ac_check_lib_save_LIBS
4982fi
fc6ffb29
AJ
4983{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4984echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
f5818d2f 4985if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
da0cfb36 4986 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
da0cfb36
AJ
4987fi
4988
f5818d2f 4989 LDFLAGS=$ac_save_LDFLAGS
da0cfb36 4990
ff8331ea
AJ
4991fi
4992
e2991ea7 4993
4091627c 4994for ac_prog in flex
5c5a6217 4995do
f5818d2f 4996 # Extract the first word of "$ac_prog", so it can be a program name with args.
5c5a6217 4997set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
4998{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4091627c 5000if test "${ac_cv_prog_FLEX+set}" = set; then
f5818d2f 5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5c5a6217 5002else
4091627c
AJ
5003 if test -n "$FLEX"; then
5004 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5c5a6217 5005else
daa2886c
AJ
5006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007for as_dir in $PATH
5008do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
5011 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4091627c 5013 ac_cv_prog_FLEX="$ac_prog"
daa2886c
AJ
5014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5015 break 2
5016 fi
5017done
f5818d2f 5018done
fc6ffb29 5019IFS=$as_save_IFS
f5818d2f 5020
5c5a6217
MM
5021fi
5022fi
4091627c
AJ
5023FLEX=$ac_cv_prog_FLEX
5024if test -n "$FLEX"; then
5025 { echo "$as_me:$LINENO: result: $FLEX" >&5
5026echo "${ECHO_T}$FLEX" >&6; }
5c5a6217 5027else
fc6ffb29
AJ
5028 { echo "$as_me:$LINENO: result: no" >&5
5029echo "${ECHO_T}no" >&6; }
5c5a6217
MM
5030fi
5031
fc6ffb29 5032
4091627c 5033 test -n "$FLEX" && break
5c5a6217 5034done
4091627c 5035test -n "$FLEX" || FLEX="none"
5c5a6217 5036
4091627c 5037if test "$FLEX" = "none"
5c5a6217 5038then
4091627c
AJ
5039 { { echo "$as_me:$LINENO: error: no suitable flex found. Please install the 'flex' package." >&5
5040echo "$as_me: error: no suitable flex found. Please install the 'flex' package." >&2;}
f5818d2f 5041 { (exit 1); exit 1; }; }
5c5a6217 5042fi
c068f670
MM
5043
5044for ac_prog in bison
b53bb419 5045do
f5818d2f 5046 # Extract the first word of "$ac_prog", so it can be a program name with args.
b53bb419 5047set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
5048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
c068f670 5050if test "${ac_cv_prog_BISON+set}" = set; then
f5818d2f 5051 echo $ECHO_N "(cached) $ECHO_C" >&6
b53bb419 5052else
c068f670
MM
5053 if test -n "$BISON"; then
5054 ac_cv_prog_BISON="$BISON" # Let the user override the test.
b53bb419 5055else
daa2886c
AJ
5056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057for as_dir in $PATH
5058do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c068f670 5063 ac_cv_prog_BISON="$ac_prog"
daa2886c
AJ
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5066 fi
5067done
f5818d2f 5068done
fc6ffb29 5069IFS=$as_save_IFS
f5818d2f 5070
b53bb419
MM
5071fi
5072fi
c068f670
MM
5073BISON=$ac_cv_prog_BISON
5074if test -n "$BISON"; then
fc6ffb29
AJ
5075 { echo "$as_me:$LINENO: result: $BISON" >&5
5076echo "${ECHO_T}$BISON" >&6; }
b53bb419 5077else
fc6ffb29
AJ
5078 { echo "$as_me:$LINENO: result: no" >&5
5079echo "${ECHO_T}no" >&6; }
b53bb419
MM
5080fi
5081
fc6ffb29 5082
c068f670 5083 test -n "$BISON" && break
b53bb419 5084done
c068f670 5085test -n "$BISON" || BISON="none"
b53bb419 5086
c068f670 5087if test "$BISON" = "none"
b53bb419 5088then
c068f670
MM
5089 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5090echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
f5818d2f
AJ
5091 { (exit 1); exit 1; }; }
5092fi
fc01b729 5093
1d4db787 5094if test -n "$ac_tool_prefix"; then
c80c290e
AJ
5095 for ac_prog in gas as
5096 do
5097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5098set dummy $ac_tool_prefix$ac_prog; ac_word=$2
fc6ffb29
AJ
5099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1d4db787
MM
5101if test "${ac_cv_prog_AS+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 if test -n "$AS"; then
5105 ac_cv_prog_AS="$AS" # Let the user override the test.
5106else
5107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108for as_dir in $PATH
5109do
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c80c290e 5114 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
1d4db787
MM
5115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 break 2
5117 fi
5118done
5119done
fc6ffb29 5120IFS=$as_save_IFS
1d4db787
MM
5121
5122fi
5123fi
5124AS=$ac_cv_prog_AS
5125if test -n "$AS"; then
fc6ffb29
AJ
5126 { echo "$as_me:$LINENO: result: $AS" >&5
5127echo "${ECHO_T}$AS" >&6; }
1d4db787 5128else
fc6ffb29
AJ
5129 { echo "$as_me:$LINENO: result: no" >&5
5130echo "${ECHO_T}no" >&6; }
1d4db787
MM
5131fi
5132
fc6ffb29 5133
c80c290e
AJ
5134 test -n "$AS" && break
5135 done
1d4db787 5136fi
c80c290e 5137if test -z "$AS"; then
1d4db787 5138 ac_ct_AS=$AS
c80c290e
AJ
5139 for ac_prog in gas as
5140do
5141 # Extract the first word of "$ac_prog", so it can be a program name with args.
5142set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
5143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1d4db787
MM
5145if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147else
5148 if test -n "$ac_ct_AS"; then
5149 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5150else
5151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c80c290e 5158 ac_cv_prog_ac_ct_AS="$ac_prog"
1d4db787
MM
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162done
5163done
fc6ffb29 5164IFS=$as_save_IFS
1d4db787 5165
1d4db787
MM
5166fi
5167fi
5168ac_ct_AS=$ac_cv_prog_ac_ct_AS
5169if test -n "$ac_ct_AS"; then
fc6ffb29
AJ
5170 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5171echo "${ECHO_T}$ac_ct_AS" >&6; }
1d4db787 5172else
fc6ffb29
AJ
5173 { echo "$as_me:$LINENO: result: no" >&5
5174echo "${ECHO_T}no" >&6; }
1d4db787
MM
5175fi
5176
fc6ffb29 5177
c80c290e
AJ
5178 test -n "$ac_ct_AS" && break
5179done
c80c290e 5180
fc6ffb29
AJ
5181 if test "x$ac_ct_AS" = x; then
5182 AS="as"
5183 else
5184 case $cross_compiling:$ac_tool_warned in
5185yes:)
5186{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5187whose name does not start with the host triplet. If you think this
5188configuration is useful to you, please write to autoconf@gnu.org." >&5
5189echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5190whose name does not start with the host triplet. If you think this
5191configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5192ac_tool_warned=yes ;;
5193esac
5194 AS=$ac_ct_AS
5195 fi
1d4db787
MM
5196fi
5197
eb5f89c5
AJ
5198if test -n "$ac_tool_prefix"; then
5199 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5200set dummy ${ac_tool_prefix}ld; ac_word=$2
fc6ffb29
AJ
5201{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
eb5f89c5
AJ
5203if test "${ac_cv_prog_LD+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205else
5206 if test -n "$LD"; then
5207 ac_cv_prog_LD="$LD" # Let the user override the test.
5208else
5209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
eb5f89c5
AJ
5216 ac_cv_prog_LD="${ac_tool_prefix}ld"
5217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5219 fi
5220done
5221done
fc6ffb29 5222IFS=$as_save_IFS
eb5f89c5
AJ
5223
5224fi
5225fi
5226LD=$ac_cv_prog_LD
5227if test -n "$LD"; then
fc6ffb29
AJ
5228 { echo "$as_me:$LINENO: result: $LD" >&5
5229echo "${ECHO_T}$LD" >&6; }
eb5f89c5 5230else
fc6ffb29
AJ
5231 { echo "$as_me:$LINENO: result: no" >&5
5232echo "${ECHO_T}no" >&6; }
eb5f89c5
AJ
5233fi
5234
fc6ffb29 5235
eb5f89c5
AJ
5236fi
5237if test -z "$ac_cv_prog_LD"; then
5238 ac_ct_LD=$LD
5239 # Extract the first word of "ld", so it can be a program name with args.
5240set dummy ld; ac_word=$2
fc6ffb29
AJ
5241{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
eb5f89c5
AJ
5243if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
5246 if test -n "$ac_ct_LD"; then
5247 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5248else
5249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250for as_dir in $PATH
5251do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
eb5f89c5
AJ
5256 ac_cv_prog_ac_ct_LD="ld"
5257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5259 fi
5260done
5261done
fc6ffb29 5262IFS=$as_save_IFS
eb5f89c5 5263
eb5f89c5
AJ
5264fi
5265fi
5266ac_ct_LD=$ac_cv_prog_ac_ct_LD
5267if test -n "$ac_ct_LD"; then
fc6ffb29
AJ
5268 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5269echo "${ECHO_T}$ac_ct_LD" >&6; }
eb5f89c5 5270else
fc6ffb29
AJ
5271 { echo "$as_me:$LINENO: result: no" >&5
5272echo "${ECHO_T}no" >&6; }
eb5f89c5
AJ
5273fi
5274
fc6ffb29
AJ
5275 if test "x$ac_ct_LD" = x; then
5276 LD="ld"
5277 else
5278 case $cross_compiling:$ac_tool_warned in
5279yes:)
5280{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5281whose name does not start with the host triplet. If you think this
5282configuration is useful to you, please write to autoconf@gnu.org." >&5
5283echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5284whose name does not start with the host triplet. If you think this
5285configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5286ac_tool_warned=yes ;;
5287esac
5288 LD=$ac_ct_LD
5289 fi
eb5f89c5
AJ
5290else
5291 LD="$ac_cv_prog_LD"
5292fi
5293
fc01b729
AJ
5294if test -n "$ac_tool_prefix"; then
5295 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5296set dummy ${ac_tool_prefix}ar; ac_word=$2
fc6ffb29
AJ
5297{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
5299if test "${ac_cv_prog_AR+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302 if test -n "$AR"; then
5303 ac_cv_prog_AR="$AR" # Let the user override the test.
5304else
5305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306for as_dir in $PATH
5307do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
5312 ac_cv_prog_AR="${ac_tool_prefix}ar"
5313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5315 fi
5316done
5317done
fc6ffb29 5318IFS=$as_save_IFS
fc01b729
AJ
5319
5320fi
5321fi
5322AR=$ac_cv_prog_AR
5323if test -n "$AR"; then
fc6ffb29
AJ
5324 { echo "$as_me:$LINENO: result: $AR" >&5
5325echo "${ECHO_T}$AR" >&6; }
fc01b729 5326else
fc6ffb29
AJ
5327 { echo "$as_me:$LINENO: result: no" >&5
5328echo "${ECHO_T}no" >&6; }
fc01b729
AJ
5329fi
5330
fc6ffb29 5331
fc01b729
AJ
5332fi
5333if test -z "$ac_cv_prog_AR"; then
5334 ac_ct_AR=$AR
5335 # Extract the first word of "ar", so it can be a program name with args.
5336set dummy ar; ac_word=$2
fc6ffb29
AJ
5337{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
5339if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5341else
5342 if test -n "$ac_ct_AR"; then
5343 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5344else
5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346for as_dir in $PATH
5347do
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
5352 ac_cv_prog_ac_ct_AR="ar"
5353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5355 fi
5356done
5357done
fc6ffb29 5358IFS=$as_save_IFS
fc01b729 5359
fc01b729
AJ
5360fi
5361fi
5362ac_ct_AR=$ac_cv_prog_ac_ct_AR
5363if test -n "$ac_ct_AR"; then
fc6ffb29
AJ
5364 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5365echo "${ECHO_T}$ac_ct_AR" >&6; }
fc01b729 5366else
fc6ffb29
AJ
5367 { echo "$as_me:$LINENO: result: no" >&5
5368echo "${ECHO_T}no" >&6; }
fc01b729
AJ
5369fi
5370
fc6ffb29
AJ
5371 if test "x$ac_ct_AR" = x; then
5372 AR="ar"
5373 else
5374 case $cross_compiling:$ac_tool_warned in
5375yes:)
5376{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5377whose name does not start with the host triplet. If you think this
5378configuration is useful to you, please write to autoconf@gnu.org." >&5
5379echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5380whose name does not start with the host triplet. If you think this
5381configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5382ac_tool_warned=yes ;;
5383esac
5384 AR=$ac_ct_AR
5385 fi
fc01b729
AJ
5386else
5387 AR="$ac_cv_prog_AR"
5388fi
5389
f5818d2f
AJ
5390if test -n "$ac_tool_prefix"; then
5391 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5392set dummy ${ac_tool_prefix}ranlib; ac_word=$2
fc6ffb29
AJ
5393{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
5395if test "${ac_cv_prog_RANLIB+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea
AJ
5397else
5398 if test -n "$RANLIB"; then
5399 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5400else
daa2886c
AJ
5401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402for as_dir in $PATH
5403do
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
5408 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 break 2
5411 fi
5412done
f5818d2f 5413done
fc6ffb29 5414IFS=$as_save_IFS
f5818d2f 5415
e2991ea7 5416fi
e2991ea7 5417fi
f5818d2f 5418RANLIB=$ac_cv_prog_RANLIB
ff8331ea 5419if test -n "$RANLIB"; then
fc6ffb29
AJ
5420 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5421echo "${ECHO_T}$RANLIB" >&6; }
f5818d2f 5422else
fc6ffb29
AJ
5423 { echo "$as_me:$LINENO: result: no" >&5
5424echo "${ECHO_T}no" >&6; }
f5818d2f
AJ
5425fi
5426
fc6ffb29 5427
f5818d2f
AJ
5428fi
5429if test -z "$ac_cv_prog_RANLIB"; then
5430 ac_ct_RANLIB=$RANLIB
5431 # Extract the first word of "ranlib", so it can be a program name with args.
5432set dummy ranlib; ac_word=$2
fc6ffb29
AJ
5433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
5435if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438 if test -n "$ac_ct_RANLIB"; then
5439 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5440else
daa2886c
AJ
5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442for as_dir in $PATH
5443do
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
5448 ac_cv_prog_ac_ct_RANLIB="ranlib"
5449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 break 2
5451 fi
5452done
f5818d2f 5453done
fc6ffb29 5454IFS=$as_save_IFS
f5818d2f 5455
f5818d2f
AJ
5456fi
5457fi
5458ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5459if test -n "$ac_ct_RANLIB"; then
fc6ffb29
AJ
5460 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5461echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
f5818d2f 5462else
fc6ffb29
AJ
5463 { echo "$as_me:$LINENO: result: no" >&5
5464echo "${ECHO_T}no" >&6; }
f5818d2f
AJ
5465fi
5466
fc6ffb29
AJ
5467 if test "x$ac_ct_RANLIB" = x; then
5468 RANLIB=":"
5469 else
5470 case $cross_compiling:$ac_tool_warned in
5471yes:)
5472{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5473whose name does not start with the host triplet. If you think this
5474configuration is useful to you, please write to autoconf@gnu.org." >&5
5475echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5476whose name does not start with the host triplet. If you think this
5477configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5478ac_tool_warned=yes ;;
5479esac
5480 RANLIB=$ac_ct_RANLIB
5481 fi
ff8331ea 5482else
f5818d2f 5483 RANLIB="$ac_cv_prog_RANLIB"
ff8331ea 5484fi
e2991ea7 5485
fc01b729
AJ
5486if test -n "$ac_tool_prefix"; then
5487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5488set dummy ${ac_tool_prefix}strip; ac_word=$2
fc6ffb29
AJ
5489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
5491if test "${ac_cv_prog_STRIP+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5493else
5494 if test -n "$STRIP"; then
5495 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5496else
5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498for as_dir in $PATH
5499do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
5504 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508done
5509done
fc6ffb29 5510IFS=$as_save_IFS
fc01b729
AJ
5511
5512fi
5513fi
5514STRIP=$ac_cv_prog_STRIP
5515if test -n "$STRIP"; then
fc6ffb29
AJ
5516 { echo "$as_me:$LINENO: result: $STRIP" >&5
5517echo "${ECHO_T}$STRIP" >&6; }
fc01b729 5518else
fc6ffb29
AJ
5519 { echo "$as_me:$LINENO: result: no" >&5
5520echo "${ECHO_T}no" >&6; }
fc01b729
AJ
5521fi
5522
fc6ffb29 5523
fc01b729
AJ
5524fi
5525if test -z "$ac_cv_prog_STRIP"; then
5526 ac_ct_STRIP=$STRIP
5527 # Extract the first word of "strip", so it can be a program name with args.
5528set dummy strip; ac_word=$2
fc6ffb29
AJ
5529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
5531if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533else
5534 if test -n "$ac_ct_STRIP"; then
5535 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5536else
5537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538for as_dir in $PATH
5539do
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
5544 ac_cv_prog_ac_ct_STRIP="strip"
5545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 break 2
5547 fi
5548done
5549done
fc6ffb29 5550IFS=$as_save_IFS
fc01b729 5551
fc01b729
AJ
5552fi
5553fi
5554ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5555if test -n "$ac_ct_STRIP"; then
fc6ffb29
AJ
5556 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5557echo "${ECHO_T}$ac_ct_STRIP" >&6; }
fc01b729 5558else
fc6ffb29
AJ
5559 { echo "$as_me:$LINENO: result: no" >&5
5560echo "${ECHO_T}no" >&6; }
fc01b729
AJ
5561fi
5562
fc6ffb29
AJ
5563 if test "x$ac_ct_STRIP" = x; then
5564 STRIP="strip"
5565 else
5566 case $cross_compiling:$ac_tool_warned in
5567yes:)
5568{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5569whose name does not start with the host triplet. If you think this
5570configuration is useful to you, please write to autoconf@gnu.org." >&5
5571echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5572whose name does not start with the host triplet. If you think this
5573configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5574ac_tool_warned=yes ;;
5575esac
5576 STRIP=$ac_ct_STRIP
5577 fi
fc01b729
AJ
5578else
5579 STRIP="$ac_cv_prog_STRIP"
5580fi
5581
5582if test -n "$ac_tool_prefix"; then
5583 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5584set dummy ${ac_tool_prefix}windres; ac_word=$2
fc6ffb29
AJ
5585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
5587if test "${ac_cv_prog_WINDRES+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
5590 if test -n "$WINDRES"; then
5591 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5592else
5593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594for as_dir in $PATH
5595do
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
5600 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5603 fi
5604done
5605done
fc6ffb29 5606IFS=$as_save_IFS
fc01b729
AJ
5607
5608fi
5609fi
5610WINDRES=$ac_cv_prog_WINDRES
5611if test -n "$WINDRES"; then
fc6ffb29
AJ
5612 { echo "$as_me:$LINENO: result: $WINDRES" >&5
5613echo "${ECHO_T}$WINDRES" >&6; }
fc01b729 5614else
fc6ffb29
AJ
5615 { echo "$as_me:$LINENO: result: no" >&5
5616echo "${ECHO_T}no" >&6; }
fc01b729
AJ
5617fi
5618
fc6ffb29 5619
fc01b729
AJ
5620fi
5621if test -z "$ac_cv_prog_WINDRES"; then
5622 ac_ct_WINDRES=$WINDRES
5623 # Extract the first word of "windres", so it can be a program name with args.
5624set dummy windres; ac_word=$2
fc6ffb29
AJ
5625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
5627if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629else
5630 if test -n "$ac_ct_WINDRES"; then
5631 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5632else
5633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634for as_dir in $PATH
5635do
5636 IFS=$as_save_IFS
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
5640 ac_cv_prog_ac_ct_WINDRES="windres"
5641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642 break 2
5643 fi
5644done
5645done
fc6ffb29 5646IFS=$as_save_IFS
fc01b729 5647
fc01b729
AJ
5648fi
5649fi
5650ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5651if test -n "$ac_ct_WINDRES"; then
fc6ffb29
AJ
5652 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5653echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
fc01b729 5654else
fc6ffb29
AJ
5655 { echo "$as_me:$LINENO: result: no" >&5
5656echo "${ECHO_T}no" >&6; }
fc01b729
AJ
5657fi
5658
fc6ffb29
AJ
5659 if test "x$ac_ct_WINDRES" = x; then
5660 WINDRES="false"
5661 else
5662 case $cross_compiling:$ac_tool_warned in
5663yes:)
5664{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5665whose name does not start with the host triplet. If you think this
5666configuration is useful to you, please write to autoconf@gnu.org." >&5
5667echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5668whose name does not start with the host triplet. If you think this
5669configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5670ac_tool_warned=yes ;;
5671esac
5672 WINDRES=$ac_ct_WINDRES
5673 fi
fc01b729
AJ
5674else
5675 WINDRES="$ac_cv_prog_WINDRES"
5676fi
5677
fc6ffb29
AJ
5678{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5679echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
f5818d2f
AJ
5680LN_S=$as_ln_s
5681if test "$LN_S" = "ln -s"; then
fc6ffb29
AJ
5682 { echo "$as_me:$LINENO: result: yes" >&5
5683echo "${ECHO_T}yes" >&6; }
641ee76a 5684else
fc6ffb29
AJ
5685 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5686echo "${ECHO_T}no, using $LN_S" >&6; }
641ee76a
AJ
5687fi
5688
fc6ffb29
AJ
5689{ echo "$as_me:$LINENO: checking whether ln works" >&5
5690echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
df234a9f
AJ
5691rm -f conf$$ conf$$.file
5692echo >conf$$.file
5693if ln conf$$.file conf$$ 2>/dev/null; then
5694 LN=ln
5695
fc6ffb29
AJ
5696 { echo "$as_me:$LINENO: result: yes" >&5
5697echo "${ECHO_T}yes" >&6; }
df234a9f
AJ
5698else
5699 LN="cp -p"
5700
fc6ffb29
AJ
5701 { echo "$as_me:$LINENO: result: no, using $LN" >&5
5702echo "${ECHO_T}no, using $LN" >&6; }
df234a9f
AJ
5703fi
5704rm -f conf$$ conf$$.file
fc6ffb29
AJ
5705{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5706echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5707if test "${ac_cv_path_GREP+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709else
5710 # Extract the first word of "grep ggrep" to use in msg output
5711if test -z "$GREP"; then
5712set dummy grep ggrep; ac_prog_name=$2
5713if test "${ac_cv_path_GREP+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716 ac_path_GREP_found=false
5717# Loop through the user's path and test for each of PROGNAME-LIST
5718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5720do
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_prog in grep ggrep; do
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
dc9f3843 5726 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
fc6ffb29
AJ
5727 # Check for GNU ac_path_GREP and select it if it is found.
5728 # Check for GNU $ac_path_GREP
5729case `"$ac_path_GREP" --version 2>&1` in
5730*GNU*)
5731 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5732*)
5733 ac_count=0
5734 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5735 while :
5736 do
5737 cat "conftest.in" "conftest.in" >"conftest.tmp"
5738 mv "conftest.tmp" "conftest.in"
5739 cp "conftest.in" "conftest.nl"
5740 echo 'GREP' >> "conftest.nl"
5741 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5743 ac_count=`expr $ac_count + 1`
5744 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5745 # Best one so far, save it but keep looking for a better one
5746 ac_cv_path_GREP="$ac_path_GREP"
5747 ac_path_GREP_max=$ac_count
5748 fi
5749 # 10*(2^10) chars as input seems more than enough
5750 test $ac_count -gt 10 && break
5751 done
0ebeb530 5752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
fc6ffb29
AJ
5753esac
5754
5755
5756 $ac_path_GREP_found && break 3
5757 done
5758done
5759
5760done
5761IFS=$as_save_IFS
5762
5763
5764fi
5765
5766GREP="$ac_cv_path_GREP"
5767if test -z "$GREP"; then
5768 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5769echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5770 { (exit 1); exit 1; }; }
5771fi
5772
5773else
5774 ac_cv_path_GREP=$GREP
5775fi
5776
5777
5778fi
5779{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5780echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5781 GREP="$ac_cv_path_GREP"
5782
5783
5784{ echo "$as_me:$LINENO: checking for egrep" >&5
5785echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5786if test "${ac_cv_path_EGREP+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5788else
5789 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5790 then ac_cv_path_EGREP="$GREP -E"
5791 else
5792 # Extract the first word of "egrep" to use in msg output
5793if test -z "$EGREP"; then
5794set dummy egrep; ac_prog_name=$2
5795if test "${ac_cv_path_EGREP+set}" = set; then
c626491b
AJ
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797else
fc6ffb29
AJ
5798 ac_path_EGREP_found=false
5799# Loop through the user's path and test for each of PROGNAME-LIST
5800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5802do
5803 IFS=$as_save_IFS
5804 test -z "$as_dir" && as_dir=.
5805 for ac_prog in egrep; do
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
dc9f3843 5808 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
fc6ffb29
AJ
5809 # Check for GNU ac_path_EGREP and select it if it is found.
5810 # Check for GNU $ac_path_EGREP
5811case `"$ac_path_EGREP" --version 2>&1` in
5812*GNU*)
5813 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5814*)
5815 ac_count=0
5816 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5817 while :
5818 do
5819 cat "conftest.in" "conftest.in" >"conftest.tmp"
5820 mv "conftest.tmp" "conftest.in"
5821 cp "conftest.in" "conftest.nl"
5822 echo 'EGREP' >> "conftest.nl"
5823 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5825 ac_count=`expr $ac_count + 1`
5826 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5827 # Best one so far, save it but keep looking for a better one
5828 ac_cv_path_EGREP="$ac_path_EGREP"
5829 ac_path_EGREP_max=$ac_count
c626491b 5830 fi
fc6ffb29
AJ
5831 # 10*(2^10) chars as input seems more than enough
5832 test $ac_count -gt 10 && break
5833 done
0ebeb530 5834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
fc6ffb29
AJ
5835esac
5836
5837
5838 $ac_path_EGREP_found && break 3
5839 done
5840done
5841
5842done
5843IFS=$as_save_IFS
5844
5845
5846fi
5847
5848EGREP="$ac_cv_path_EGREP"
5849if test -z "$EGREP"; then
5850 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5851echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5852 { (exit 1); exit 1; }; }
5853fi
5854
5855else
5856 ac_cv_path_EGREP=$EGREP
5857fi
5858
5859
5860 fi
c626491b 5861fi
fc6ffb29
AJ
5862{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5863echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5864 EGREP="$ac_cv_path_EGREP"
c626491b
AJ
5865
5866
ffe6b767
JJ
5867# Extract the first word of "ldconfig", so it can be a program name with args.
5868set dummy ldconfig; ac_word=$2
fc6ffb29
AJ
5869{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
5871if test "${ac_cv_path_LDCONFIG+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
ffe6b767 5873else
f5818d2f
AJ
5874 case $LDCONFIG in
5875 [\\/]* | ?:[\\/]*)
ffe6b767
JJ
5876 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5877 ;;
5878 *)
daa2886c 5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91372b39 5880for as_dir in /sbin /usr/sbin $PATH
daa2886c
AJ
5881do
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
5886 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 break 2
5889 fi
5890done
f5818d2f 5891done
fc6ffb29 5892IFS=$as_save_IFS
f5818d2f 5893
318f4cef 5894 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
ffe6b767
JJ
5895 ;;
5896esac
5897fi
f5818d2f 5898LDCONFIG=$ac_cv_path_LDCONFIG
f5818d2f 5899if test -n "$LDCONFIG"; then
fc6ffb29
AJ
5900 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
5901echo "${ECHO_T}$LDCONFIG" >&6; }
d48ca948 5902else
fc6ffb29
AJ
5903 { echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6; }
d48ca948
HT
5905fi
5906
fc6ffb29 5907
e24bcc77
AJ
5908# Find a good install program. We prefer a C program (faster),
5909# so one script is as good as another. But avoid the broken or
5910# incompatible versions:
5911# SysV /etc/install, /usr/sbin/install
5912# SunOS /usr/etc/install
5913# IRIX /sbin/install
5914# AIX /bin/install
5915# AmigaOS /C/install, which installs bootblocks on floppy discs
5916# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5917# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5918# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
875927f6 5919# OS/2's system install, which has a completely different semantic
e24bcc77 5920# ./install, which can be erroneously created by make from ./install.sh.
fc6ffb29
AJ
5921{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5922echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
e24bcc77
AJ
5923if test -z "$INSTALL"; then
5924if test "${ac_cv_path_install+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928for as_dir in $PATH
5929do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 # Account for people who put trailing slashes in PATH elements.
5933case $as_dir/ in
5934 ./ | .// | /cC/* | \
5935 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
875927f6 5936 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e24bcc77
AJ
5937 /usr/ucb/* ) ;;
5938 *)
5939 # OSF1 and SCO ODT 3.0 have their own names for install.
5940 # Don't use installbsd from OSF since it installs stuff as root
5941 # by default.
5942 for ac_prog in ginstall scoinst install; do
5943 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 5944 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
875927f6
AJ
5945 if test $ac_prog = install &&
5946 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5947 # AIX install. It has an incompatible calling convention.
5948 :
5949 elif test $ac_prog = install &&
5950 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5951 # program-specific install script used by HP pwplus--don't use.
5952 :
5953 else
5954 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5955 break 3
5956 fi
5957 fi
e24bcc77
AJ
5958 done
5959 done
5960 ;;
5961esac
5962done
fc6ffb29 5963IFS=$as_save_IFS
e24bcc77
AJ
5964
5965
5966fi
5967 if test "${ac_cv_path_install+set}" = set; then
5968 INSTALL=$ac_cv_path_install
5969 else
fc6ffb29
AJ
5970 # As a last resort, use the slow shell script. Don't cache a
5971 # value for INSTALL within a source directory, because that will
e24bcc77 5972 # break other packages using the cache if that directory is
fc6ffb29 5973 # removed, or if the value is a relative name.
e24bcc77
AJ
5974 INSTALL=$ac_install_sh
5975 fi
5976fi
fc6ffb29
AJ
5977{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5978echo "${ECHO_T}$INSTALL" >&6; }
e24bcc77
AJ
5979
5980# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5981# It thinks the first close brace ends the variable substitution.
5982test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5983
5984test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5985
5986test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5987
5988case "$INSTALL" in
8418d8f3 5989 [\\/$]* | ?:[\\/]* ) ;;
e24bcc77
AJ
5990 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5991esac
daa2886c 5992
a9be64e2
PS
5993for ac_prog in lclint lint
5994do
f5818d2f 5995 # Extract the first word of "$ac_prog", so it can be a program name with args.
a9be64e2 5996set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
5997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
5999if test "${ac_cv_prog_LINT+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
a9be64e2
PS
6001else
6002 if test -n "$LINT"; then
6003 ac_cv_prog_LINT="$LINT" # Let the user override the test.
6004else
daa2886c
AJ
6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006for as_dir in $PATH
6007do
6008 IFS=$as_save_IFS
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 6011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
6012 ac_cv_prog_LINT="$ac_prog"
6013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 break 2
6015 fi
6016done
f5818d2f 6017done
fc6ffb29 6018IFS=$as_save_IFS
f5818d2f 6019
a9be64e2
PS
6020fi
6021fi
f5818d2f 6022LINT=$ac_cv_prog_LINT
a9be64e2 6023if test -n "$LINT"; then
fc6ffb29
AJ
6024 { echo "$as_me:$LINENO: result: $LINT" >&5
6025echo "${ECHO_T}$LINT" >&6; }
a9be64e2 6026else
fc6ffb29
AJ
6027 { echo "$as_me:$LINENO: result: no" >&5
6028echo "${ECHO_T}no" >&6; }
a9be64e2
PS
6029fi
6030
fc6ffb29 6031
f5818d2f 6032 test -n "$LINT" && break
a9be64e2
PS
6033done
6034
6035if test "$LINT" = "lint"
6036then
6037 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6038 fi
6039
daa2886c
AJ
6040
6041
00acb5f7
HD
6042for ac_prog in fontforge
6043do
6044 # Extract the first word of "$ac_prog", so it can be a program name with args.
6045set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
6046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
00acb5f7
HD
6048if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6050else
6051 if test -n "$FONTFORGE"; then
6052 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 6060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
00acb5f7
HD
6061 ac_cv_prog_FONTFORGE="$ac_prog"
6062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 break 2
6064 fi
6065done
6066done
fc6ffb29 6067IFS=$as_save_IFS
00acb5f7
HD
6068
6069fi
6070fi
6071FONTFORGE=$ac_cv_prog_FONTFORGE
6072if test -n "$FONTFORGE"; then
fc6ffb29
AJ
6073 { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6074echo "${ECHO_T}$FONTFORGE" >&6; }
00acb5f7 6075else
fc6ffb29
AJ
6076 { echo "$as_me:$LINENO: result: no" >&5
6077echo "${ECHO_T}no" >&6; }
00acb5f7
HD
6078fi
6079
fc6ffb29 6080
00acb5f7
HD
6081 test -n "$FONTFORGE" && break
6082done
6083test -n "$FONTFORGE" || FONTFORGE="false"
b817a3c5 6084
90c75bdd
MM
6085for ac_prog in pkg-config
6086do
6087 # Extract the first word of "$ac_prog", so it can be a program name with args.
6088set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
6089{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
90c75bdd
MM
6091if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094 if test -n "$PKG_CONFIG"; then
6095 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100 IFS=$as_save_IFS
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
90c75bdd
MM
6104 ac_cv_prog_PKG_CONFIG="$ac_prog"
6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106 break 2
6107 fi
6108done
6109done
fc6ffb29 6110IFS=$as_save_IFS
90c75bdd
MM
6111
6112fi
6113fi
6114PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6115if test -n "$PKG_CONFIG"; then
fc6ffb29
AJ
6116 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6117echo "${ECHO_T}$PKG_CONFIG" >&6; }
90c75bdd 6118else
fc6ffb29
AJ
6119 { echo "$as_me:$LINENO: result: no" >&5
6120echo "${ECHO_T}no" >&6; }
90c75bdd
MM
6121fi
6122
fc6ffb29 6123
90c75bdd
MM
6124 test -n "$PKG_CONFIG" && break
6125done
6126test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6127
b817a3c5 6128
adbb0988
AJ
6129case $host_cpu in
6130 *i[3456789]86*)
3d08f5d9
AJ
6131 # Extract the first word of "prelink", so it can be a program name with args.
6132set dummy prelink; ac_word=$2
fc6ffb29
AJ
6133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3d08f5d9 6135if test "${ac_cv_path_PRELINK+set}" = set; then
adbb0988
AJ
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137else
3d08f5d9
AJ
6138 case $PRELINK in
6139 [\\/]* | ?:[\\/]*)
6140 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6141 ;;
6142 *)
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adbb0988
AJ
6144for as_dir in /sbin /usr/sbin $PATH
6145do
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3d08f5d9 6150 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
adbb0988
AJ
6151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 break 2
6153 fi
6154done
6155done
fc6ffb29 6156IFS=$as_save_IFS
adbb0988 6157
3d08f5d9
AJ
6158 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6159 ;;
6160esac
adbb0988 6161fi
3d08f5d9 6162PRELINK=$ac_cv_path_PRELINK
adbb0988 6163if test -n "$PRELINK"; then
fc6ffb29
AJ
6164 { echo "$as_me:$LINENO: result: $PRELINK" >&5
6165echo "${ECHO_T}$PRELINK" >&6; }
adbb0988 6166else
fc6ffb29
AJ
6167 { echo "$as_me:$LINENO: result: no" >&5
6168echo "${ECHO_T}no" >&6; }
adbb0988
AJ
6169fi
6170
fc6ffb29 6171
adbb0988
AJ
6172 ;;
6173esac
6174
daa2886c
AJ
6175
6176
fc6ffb29
AJ
6177{ echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6178echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
f5818d2f
AJ
6179if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
902da699 6181else
f5818d2f 6182 ac_check_lib_save_LIBS=$LIBS
902da699 6183LIBS="-li386 $LIBS"
f5818d2f 6184cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6185/* confdefs.h. */
6186_ACEOF
6187cat confdefs.h >>conftest.$ac_ext
6188cat >>conftest.$ac_ext <<_ACEOF
6189/* end confdefs.h. */
f5818d2f 6190
fc6ffb29
AJ
6191/* Override any GCC internal prototype to avoid an error.
6192 Use char because int might match the return type of a GCC
6193 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
6194#ifdef __cplusplus
6195extern "C"
6196#endif
f5818d2f
AJ
6197char i386_set_ldt ();
6198int
6199main ()
6200{
fc6ffb29 6201return i386_set_ldt ();
f5818d2f
AJ
6202 ;
6203 return 0;
6204}
6205_ACEOF
6206rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
6207if { (ac_try="$ac_link"
6208case "(($ac_try" in
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6211esac
6212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_link") 2>conftest.er1
f5818d2f 6214 ac_status=$?
875927f6
AJ
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
daa2886c 6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
6219 (exit $ac_status); } && {
6220 test -z "$ac_c_werror_flag" ||
6221 test ! -s conftest.err
6222 } && test -s conftest$ac_exeext &&
6223 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
6224 ac_cv_lib_i386_i386_set_ldt=yes
6225else
6226 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6227sed 's/^/| /' conftest.$ac_ext >&5
6228
fc6ffb29 6229 ac_cv_lib_i386_i386_set_ldt=no
f5818d2f 6230fi
fc6ffb29 6231
f0ca586f 6232rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 6233 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
6234LIBS=$ac_check_lib_save_LIBS
6235fi
fc6ffb29
AJ
6236{ echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6237echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
f5818d2f 6238if test $ac_cv_lib_i386_i386_set_ldt = yes; then
daa2886c 6239 cat >>confdefs.h <<_ACEOF
f5818d2f 6240#define HAVE_LIBI386 1
daa2886c 6241_ACEOF
02e90087
AJ
6242
6243 LIBS="-li386 $LIBS"
6244
02e90087
AJ
6245fi
6246
daa2886c 6247
fc6ffb29
AJ
6248{ echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6249echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
f5818d2f
AJ
6250if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
ecc7669d 6252else
f5818d2f 6253 ac_check_lib_save_LIBS=$LIBS
ecc7669d 6254LIBS="-lossaudio $LIBS"
f5818d2f 6255cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6256/* confdefs.h. */
6257_ACEOF
6258cat confdefs.h >>conftest.$ac_ext
6259cat >>conftest.$ac_ext <<_ACEOF
6260/* end confdefs.h. */
f5818d2f 6261
fc6ffb29
AJ
6262/* Override any GCC internal prototype to avoid an error.
6263 Use char because int might match the return type of a GCC
6264 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
6265#ifdef __cplusplus
6266extern "C"
6267#endif
f5818d2f
AJ
6268char _oss_ioctl ();
6269int
6270main ()
6271{
fc6ffb29 6272return _oss_ioctl ();
f5818d2f
AJ
6273 ;
6274 return 0;
6275}
6276_ACEOF
6277rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
6278if { (ac_try="$ac_link"
6279case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282esac
6283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_link") 2>conftest.er1
f5818d2f 6285 ac_status=$?
875927f6
AJ
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
daa2886c 6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest$ac_exeext &&
6294 $as_test_x conftest$ac_exeext; then
f5818d2f
AJ
6295 ac_cv_lib_ossaudio__oss_ioctl=yes
6296else
6297 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6298sed 's/^/| /' conftest.$ac_ext >&5
6299
fc6ffb29 6300 ac_cv_lib_ossaudio__oss_ioctl=no
f5818d2f 6301fi
fc6ffb29 6302
f0ca586f 6303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 6304 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
6305LIBS=$ac_check_lib_save_LIBS
6306fi
fc6ffb29
AJ
6307{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6308echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
f5818d2f 6309if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
daa2886c 6310 cat >>confdefs.h <<_ACEOF
f5818d2f 6311#define HAVE_LIBOSSAUDIO 1
daa2886c 6312_ACEOF
ecc7669d
TV
6313
6314 LIBS="-lossaudio $LIBS"
6315
ecc7669d
TV
6316fi
6317
e533e972
AJ
6318{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6319echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
6320if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
f5818d2f
AJ
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6322else
6323 ac_check_lib_save_LIBS=$LIBS
e533e972 6324LIBS="-lpthread $LIBS"
f5818d2f 6325cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6326/* confdefs.h. */
6327_ACEOF
6328cat confdefs.h >>conftest.$ac_ext
6329cat >>conftest.$ac_ext <<_ACEOF
6330/* end confdefs.h. */
f5818d2f 6331
fc6ffb29
AJ
6332/* Override any GCC internal prototype to avoid an error.
6333 Use char because int might match the return type of a GCC
6334 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
6335#ifdef __cplusplus
6336extern "C"
6337#endif
e533e972 6338char pthread_create ();
f5818d2f
AJ
6339int
6340main ()
6341{
e533e972 6342return pthread_create ();
f5818d2f
AJ
6343 ;
6344 return 0;
6345}
6346_ACEOF
6347rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
6348if { (ac_try="$ac_link"
6349case "(($ac_try" in
6350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6352esac
6353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_link") 2>conftest.er1
f5818d2f 6355 ac_status=$?
875927f6
AJ
6356 grep -v '^ *+' conftest.er1 >conftest.err
6357 rm -f conftest.er1
6358 cat conftest.err >&5
daa2886c 6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
6360 (exit $ac_status); } && {
6361 test -z "$ac_c_werror_flag" ||
6362 test ! -s conftest.err
6363 } && test -s conftest$ac_exeext &&
6364 $as_test_x conftest$ac_exeext; then
e533e972 6365 ac_cv_lib_pthread_pthread_create=yes
f5818d2f
AJ
6366else
6367 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6368sed 's/^/| /' conftest.$ac_ext >&5
6369
e533e972 6370 ac_cv_lib_pthread_pthread_create=no
f5818d2f 6371fi
fc6ffb29 6372
f0ca586f 6373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 6374 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
6375LIBS=$ac_check_lib_save_LIBS
6376fi
e533e972
AJ
6377{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6378echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
6379if test $ac_cv_lib_pthread_pthread_create = yes; then
6380 LIBPTHREAD="-lpthread"
2e8e2334 6381
ea584724
PS
6382fi
6383
f070fda2 6384
e533e972
AJ
6385XLIB=""
6386
6387XFILES=""
daa2886c 6388
e533e972
AJ
6389OPENGLFILES=""
6390
6391GLU32FILES=""
6392
6393OPENGL_LIBS=""
6394
08884514
PH
6395QUARTZFILES=""
6396
e533e972
AJ
6397
6398
6399{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6400echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6401if test "${ac_cv_header_stdc+set}" = set; then
f5818d2f
AJ
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
6404 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6405/* confdefs.h. */
6406_ACEOF
6407cat confdefs.h >>conftest.$ac_ext
6408cat >>conftest.$ac_ext <<_ACEOF
6409/* end confdefs.h. */
e533e972
AJ
6410#include <stdlib.h>
6411#include <stdarg.h>
6412#include <string.h>
6413#include <float.h>
715a55e7 6414
e24bcc77
AJ
6415int
6416main ()
6417{
e533e972 6418
f5818d2f
AJ
6419 ;
6420 return 0;
6421}
6422_ACEOF
e533e972
AJ
6423rm -f conftest.$ac_objext
6424if { (ac_try="$ac_compile"
0ebeb530
JW
6425case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428esac
6429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
e533e972 6430 (eval "$ac_compile") 2>conftest.er1
f5818d2f 6431 ac_status=$?
875927f6
AJ
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
daa2886c 6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
6436 (exit $ac_status); } && {
6437 test -z "$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 } && test -s conftest.$ac_objext; then
e533e972 6440 ac_cv_header_stdc=yes
f5818d2f
AJ
6441else
6442 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6443sed 's/^/| /' conftest.$ac_ext >&5
6444
e533e972 6445 ac_cv_header_stdc=no
f5818d2f 6446fi
fc6ffb29 6447
e533e972
AJ
6448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449
6450if test $ac_cv_header_stdc = yes; then
6451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6452 cat >conftest.$ac_ext <<_ACEOF
6453/* confdefs.h. */
6454_ACEOF
6455cat confdefs.h >>conftest.$ac_ext
6456cat >>conftest.$ac_ext <<_ACEOF
6457/* end confdefs.h. */
6458#include <string.h>
6459
6460_ACEOF
6461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6462 $EGREP "memchr" >/dev/null 2>&1; then
6463 :
6464else
6465 ac_cv_header_stdc=no
f5818d2f 6466fi
e533e972
AJ
6467rm -f conftest*
6468
6469fi
6470
6471if test $ac_cv_header_stdc = yes; then
6472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6473 cat >conftest.$ac_ext <<_ACEOF
6474/* confdefs.h. */
daa2886c 6475_ACEOF
e533e972
AJ
6476cat confdefs.h >>conftest.$ac_ext
6477cat >>conftest.$ac_ext <<_ACEOF
6478/* end confdefs.h. */
6479#include <stdlib.h>
f5818d2f 6480
e533e972
AJ
6481_ACEOF
6482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6483 $EGREP "free" >/dev/null 2>&1; then
6484 :
f5818d2f 6485else
e533e972
AJ
6486 ac_cv_header_stdc=no
6487fi
6488rm -f conftest*
f5818d2f 6489
e533e972
AJ
6490fi
6491
6492if test $ac_cv_header_stdc = yes; then
6493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6494 if test "$cross_compiling" = yes; then
6495 :
f5818d2f 6496else
e533e972 6497 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6498/* confdefs.h. */
6499_ACEOF
6500cat confdefs.h >>conftest.$ac_ext
6501cat >>conftest.$ac_ext <<_ACEOF
6502/* end confdefs.h. */
e533e972
AJ
6503#include <ctype.h>
6504#include <stdlib.h>
6505#if ((' ' & 0x0FF) == 0x020)
6506# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6507# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6508#else
6509# define ISLOWER(c) \
6510 (('a' <= (c) && (c) <= 'i') \
6511 || ('j' <= (c) && (c) <= 'r') \
6512 || ('s' <= (c) && (c) <= 'z'))
6513# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
f5818d2f 6514#endif
e533e972
AJ
6515
6516#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
f5818d2f
AJ
6517int
6518main ()
6519{
e533e972
AJ
6520 int i;
6521 for (i = 0; i < 256; i++)
6522 if (XOR (islower (i), ISLOWER (i))
6523 || toupper (i) != TOUPPER (i))
6524 return 2;
f5818d2f
AJ
6525 return 0;
6526}
6527_ACEOF
e533e972 6528rm -f conftest$ac_exeext
0ebeb530
JW
6529if { (ac_try="$ac_link"
6530case "(($ac_try" in
6531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532 *) ac_try_echo=$ac_try;;
6533esac
6534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
e533e972 6535 (eval "$ac_link") 2>&5
f5818d2f 6536 ac_status=$?
daa2886c 6537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
e533e972 6538 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
0ebeb530
JW
6539 { (case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542esac
6543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_try") 2>&5
f5818d2f 6545 ac_status=$?
daa2886c 6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 6547 (exit $ac_status); }; }; then
e533e972 6548 :
f5818d2f 6549else
e533e972
AJ
6550 echo "$as_me: program exited with status $ac_status" >&5
6551echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6552sed 's/^/| /' conftest.$ac_ext >&5
6553
e533e972
AJ
6554( exit $ac_status )
6555ac_cv_header_stdc=no
f5818d2f 6556fi
e533e972 6557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f5818d2f 6558fi
715a55e7 6559
715a55e7 6560
715a55e7 6561fi
ea584724 6562fi
e533e972
AJ
6563{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6564echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6565if test $ac_cv_header_stdc = yes; then
daa2886c 6566
e533e972
AJ
6567cat >>confdefs.h <<\_ACEOF
6568#define STDC_HEADERS 1
e24bcc77 6569_ACEOF
875927f6 6570
e533e972 6571fi
875927f6 6572
e533e972 6573# On IRIX 5.3, sys/types and inttypes.h are conflicting.
875927f6 6574
875927f6 6575
c555274d 6576
e24bcc77 6577
fc6ffb29 6578
c555274d 6579
c555274d 6580
e533e972
AJ
6581
6582
6583for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6584 inttypes.h stdint.h unistd.h
6585do
6586as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6587{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 6590 echo $ECHO_N "(cached) $ECHO_C" >&6
d30dfd24 6591else
e533e972 6592 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6593/* confdefs.h. */
6594_ACEOF
6595cat confdefs.h >>conftest.$ac_ext
6596cat >>conftest.$ac_ext <<_ACEOF
6597/* end confdefs.h. */
e533e972 6598$ac_includes_default
f5818d2f 6599
e533e972 6600#include <$ac_header>
f5818d2f 6601_ACEOF
e533e972
AJ
6602rm -f conftest.$ac_objext
6603if { (ac_try="$ac_compile"
0ebeb530
JW
6604case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607esac
6608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
e533e972 6609 (eval "$ac_compile") 2>conftest.er1
f5818d2f 6610 ac_status=$?
875927f6
AJ
6611 grep -v '^ *+' conftest.er1 >conftest.err
6612 rm -f conftest.er1
6613 cat conftest.err >&5
daa2886c 6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
6615 (exit $ac_status); } && {
6616 test -z "$ac_c_werror_flag" ||
6617 test ! -s conftest.err
6618 } && test -s conftest.$ac_objext; then
e533e972 6619 eval "$as_ac_Header=yes"
3b943bca
FG
6620else
6621 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6622sed 's/^/| /' conftest.$ac_ext >&5
6623
e533e972 6624 eval "$as_ac_Header=no"
3b943bca 6625fi
fc6ffb29 6626
e533e972 6627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3b943bca 6628fi
e533e972
AJ
6629ac_res=`eval echo '${'$as_ac_Header'}'`
6630 { echo "$as_me:$LINENO: result: $ac_res" >&5
6631echo "${ECHO_T}$ac_res" >&6; }
6632if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6633 cat >>confdefs.h <<_ACEOF
e533e972 6634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
728bedcf
MM
6635_ACEOF
6636
728bedcf
MM
6637fi
6638
6639done
6640
6641
daa2886c 6642
7ff12568
RK
6643
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
7ff12568
RK
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
73482144
AJ
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
7ff12568 6731
a2bbacb0 6732
57279184 6733
64c07786
EM
6734
6735
888eaae7 6736
ea524def
HL
6737
6738
0f6c0394 6739
ebe0484d 6740
1e5153cf 6741
0cd0626d 6742
144a5353
EM
6743
6744
9603ee07 6745
08884514 6746
66f45a5b 6747
150b5dca 6748
00302152 6749
7ff12568
RK
6750
6751
6752for ac_header in \
144a5353 6753 AudioUnit/AudioUnit.h \
08884514 6754 Carbon/Carbon.h \
144a5353 6755 CoreAudio/CoreAudio.h \
66f45a5b 6756 DiskArbitration/DiskArbitration.h \
0f6c0394 6757 IOKit/IOKitLib.h \
73482144 6758 alsa/asoundlib.h \
7ff12568
RK
6759 arpa/inet.h \
6760 arpa/nameser.h \
888eaae7 6761 asm/types.h \
73482144 6762 capi20.h \
7ff12568 6763 cups/cups.h \
73482144 6764 curses.h \
7ff12568 6765 direct.h \
73482144 6766 dlfcn.h \
7ff12568
RK
6767 elf.h \
6768 float.h \
6769 fontconfig/fontconfig.h \
6770 getopt.h \
7ff12568
RK
6771 ieeefp.h \
6772 io.h \
6773 jack/jack.h \
6774 jpeglib.h \
ea524def 6775 lber.h \
7ff12568 6776 lcms.h \
73482144 6777 lcms/lcms.h \
ea524def 6778 ldap.h \
73482144 6779 libaudioio.h \
7ff12568
RK
6780 link.h \
6781 linux/cdrom.h \
6782 linux/compiler.h \
6783 linux/hdreg.h \
6784 linux/input.h \
6785 linux/ioctl.h \
6786 linux/joystick.h \
6787 linux/major.h \
6788 linux/param.h \
6789 linux/serial.h \
6790 linux/ucdrom.h \
150b5dca 6791 mach/mach.h \
64c07786 6792 mach/machine.h \
7ff12568 6793 machine/cpu.h \
64c07786 6794 machine/limits.h \
73482144 6795 machine/soundcard.h \
7ff12568 6796 mntent.h \
73482144 6797 ncurses.h \
7ff12568
RK
6798 netdb.h \
6799 netinet/in.h \
6800 netinet/in_systm.h \
6801 netinet/tcp.h \
6802 netinet/tcp_fsm.h \
1e5153cf 6803 openssl/err.h \
7ff12568 6804 openssl/ssl.h \
00302152 6805 png.h \
57279184 6806 poll.h \
7ff12568
RK
6807 process.h \
6808 pthread.h \
7ff12568
RK
6809 pwd.h \
6810 regex.h \
6811 sched.h \
7ff12568
RK
6812 scsi/scsi.h \
6813 scsi/scsi_ioctl.h \
73482144
AJ
6814 scsi/sg.h \
6815 soundcard.h \
7ff12568
RK
6816 stdint.h \
6817 strings.h \
73482144 6818 sys/asoundlib.h \
7ff12568
RK
6819 sys/cdio.h \
6820 sys/elf32.h \
7ff12568 6821 sys/epoll.h \
73482144 6822 sys/errno.h \
c8278926 6823 sys/event.h \
7ff12568 6824 sys/exec_elf.h \
7ff12568 6825 sys/filio.h \
7ff12568
RK
6826 sys/ioctl.h \
6827 sys/ipc.h \
ebe0484d 6828 sys/limits.h \
7ff12568
RK
6829 sys/link.h \
6830 sys/lwp.h \
6831 sys/mman.h \
6832 sys/modem.h \
6833 sys/msg.h \
0844b702 6834 sys/mtio.h \
7ff12568
RK
6835 sys/param.h \
6836 sys/poll.h \
9603ee07 6837 sys/prctl.h \
7ff12568
RK
6838 sys/ptrace.h \
6839 sys/reg.h \
0cd0626d 6840 sys/resource.h \
7ff12568
RK
6841 sys/scsiio.h \
6842 sys/shm.h \
6843 sys/signal.h \
6844 sys/socket.h \
2569635c 6845 sys/socketvar.h \
7ff12568 6846 sys/sockio.h \
73482144 6847 sys/soundcard.h \
7ff12568
RK
6848 sys/statvfs.h \
6849 sys/strtio.h \
6850 sys/syscall.h \
6851 sys/sysctl.h \
6852 sys/time.h \
6853 sys/times.h \
6854 sys/uio.h \
6855 sys/un.h \
7ff12568
RK
6856 sys/vm86.h \
6857 sys/wait.h \
6858 syscall.h \
6859 termios.h \
6860 unistd.h \
6861 utime.h \
6862 valgrind/memcheck.h
6863
24110288 6864do
f5818d2f 6865as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
6866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 6870 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c 6871fi
fc6ffb29
AJ
6872ac_res=`eval echo '${'$as_ac_Header'}'`
6873 { echo "$as_me:$LINENO: result: $ac_res" >&5
6874echo "${ECHO_T}$ac_res" >&6; }
f5818d2f 6875else
daa2886c 6876 # Is the header compilable?
fc6ffb29
AJ
6877{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
daa2886c 6879cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6880/* confdefs.h. */
6881_ACEOF
6882cat confdefs.h >>conftest.$ac_ext
6883cat >>conftest.$ac_ext <<_ACEOF
6884/* end confdefs.h. */
daa2886c 6885$ac_includes_default
f5818d2f
AJ
6886#include <$ac_header>
6887_ACEOF
daa2886c 6888rm -f conftest.$ac_objext
0ebeb530
JW
6889if { (ac_try="$ac_compile"
6890case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893esac
6894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895 (eval "$ac_compile") 2>conftest.er1
daa2886c 6896 ac_status=$?
875927f6
AJ
6897 grep -v '^ *+' conftest.er1 >conftest.err
6898 rm -f conftest.er1
6899 cat conftest.err >&5
daa2886c 6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
6901 (exit $ac_status); } && {
6902 test -z "$ac_c_werror_flag" ||
6903 test ! -s conftest.err
6904 } && test -s conftest.$ac_objext; then
daa2886c
AJ
6905 ac_header_compiler=yes
6906else
6907 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6908sed 's/^/| /' conftest.$ac_ext >&5
6909
fc6ffb29 6910 ac_header_compiler=no
daa2886c 6911fi
fc6ffb29 6912
0ebeb530 6913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
6914{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6915echo "${ECHO_T}$ac_header_compiler" >&6; }
daa2886c
AJ
6916
6917# Is the header present?
fc6ffb29
AJ
6918{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6919echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
daa2886c 6920cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6921/* confdefs.h. */
6922_ACEOF
6923cat confdefs.h >>conftest.$ac_ext
6924cat >>conftest.$ac_ext <<_ACEOF
6925/* end confdefs.h. */
daa2886c
AJ
6926#include <$ac_header>
6927_ACEOF
0ebeb530
JW
6928if { (ac_try="$ac_cpp conftest.$ac_ext"
6929case "(($ac_try" in
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6932esac
6933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 6935 ac_status=$?
11af04e3 6936 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
6937 rm -f conftest.er1
6938 cat conftest.err >&5
daa2886c 6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
6940 (exit $ac_status); } >/dev/null && {
6941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6942 test ! -s conftest.err
6943 }; then
daa2886c 6944 ac_header_preproc=yes
f5818d2f
AJ
6945else
6946 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6947sed 's/^/| /' conftest.$ac_ext >&5
6948
daa2886c 6949 ac_header_preproc=no
24110288 6950fi
fc6ffb29 6951
f5818d2f 6952rm -f conftest.err conftest.$ac_ext
fc6ffb29
AJ
6953{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6954echo "${ECHO_T}$ac_header_preproc" >&6; }
daa2886c
AJ
6955
6956# So? What about this header?
875927f6
AJ
6957case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6958 yes:no: )
daa2886c
AJ
6959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6960echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
875927f6
AJ
6961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6962echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6963 ac_header_preproc=yes
e24bcc77 6964 ;;
875927f6 6965 no:yes:* )
daa2886c
AJ
6966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6967echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
875927f6
AJ
6968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6969echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6971echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6973echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
daa2886c 6974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77 6975echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
875927f6
AJ
6976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6977echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
fc6ffb29 6978 ( cat <<\_ASBOX
e24bcc77 6979## ------------------------------------ ##
875927f6 6980## Report this to wine-devel@winehq.org ##
e24bcc77
AJ
6981## ------------------------------------ ##
6982_ASBOX
fc6ffb29 6983 ) | sed "s/^/$as_me: WARNING: /" >&2
e24bcc77 6984 ;;
daa2886c 6985esac
fc6ffb29
AJ
6986{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
daa2886c
AJ
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990else
875927f6 6991 eval "$as_ac_Header=\$ac_header_preproc"
24110288 6992fi
fc6ffb29
AJ
6993ac_res=`eval echo '${'$as_ac_Header'}'`
6994 { echo "$as_me:$LINENO: result: $ac_res" >&5
6995echo "${ECHO_T}$ac_res" >&6; }
daa2886c
AJ
6996
6997fi
f5818d2f 6998if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6999 cat >>confdefs.h <<_ACEOF
f5818d2f 7000#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
7001_ACEOF
7002
7ff12568 7003fi
f5818d2f 7004
7ff12568 7005done
255b486c 7006
fc6ffb29
AJ
7007{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7008echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7ff12568 7009if test "${ac_cv_header_stat_broken+set}" = set; then
f5818d2f
AJ
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011else
044b5c41 7012 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7013/* confdefs.h. */
7014_ACEOF
7015cat confdefs.h >>conftest.$ac_ext
7016cat >>conftest.$ac_ext <<_ACEOF
7017/* end confdefs.h. */
7ff12568
RK
7018#include <sys/types.h>
7019#include <sys/stat.h>
044b5c41 7020
fc6ffb29 7021#if defined S_ISBLK && defined S_IFDIR
f0ca586f 7022extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7ff12568 7023#endif
255b486c 7024
fc6ffb29 7025#if defined S_ISBLK && defined S_IFCHR
f0ca586f 7026extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7ff12568 7027#endif
255b486c 7028
fc6ffb29 7029#if defined S_ISLNK && defined S_IFREG
f0ca586f 7030extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7ff12568 7031#endif
f5818d2f 7032
fc6ffb29 7033#if defined S_ISSOCK && defined S_IFREG
f0ca586f 7034extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
f5818d2f 7035#endif
7ff12568 7036
f5818d2f 7037_ACEOF
f0ca586f
PK
7038rm -f conftest.$ac_objext
7039if { (ac_try="$ac_compile"
7040case "(($ac_try" in
7041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042 *) ac_try_echo=$ac_try;;
7043esac
7044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045 (eval "$ac_compile") 2>conftest.er1
7046 ac_status=$?
7047 grep -v '^ *+' conftest.er1 >conftest.err
7048 rm -f conftest.er1
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7051 (exit $ac_status); } && {
7052 test -z "$ac_c_werror_flag" ||
7053 test ! -s conftest.err
7054 } && test -s conftest.$ac_objext; then
7ff12568 7055 ac_cv_header_stat_broken=no
f0ca586f
PK
7056else
7057 echo "$as_me: failed program was:" >&5
7058sed 's/^/| /' conftest.$ac_ext >&5
7059
7060 ac_cv_header_stat_broken=yes
f5818d2f 7061fi
7ff12568 7062
f0ca586f 7063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 7064fi
fc6ffb29
AJ
7065{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7066echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7ff12568 7067if test $ac_cv_header_stat_broken = yes; then
f5818d2f 7068
daa2886c 7069cat >>confdefs.h <<\_ACEOF
7ff12568 7070#define STAT_MACROS_BROKEN 1
daa2886c 7071_ACEOF
c90fb25c 7072
c90fb25c
OK
7073fi
7074
daa2886c 7075
7ff12568 7076
2d6d4e96
HL
7077
7078
7079
7080
7081for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
b079add3
AJ
7082do
7083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
7084{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7086if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b079add3
AJ
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088else
7089 cat >conftest.$ac_ext <<_ACEOF
7090/* confdefs.h. */
7091_ACEOF
7092cat confdefs.h >>conftest.$ac_ext
7093cat >>conftest.$ac_ext <<_ACEOF
7094/* end confdefs.h. */
2d6d4e96
HL
7095#include <sys/types.h>
7096 #if HAVE_SYS_PARAM_H
7097 # include <sys/param.h>
7098 #endif
b079add3
AJ
7099
7100#include <$ac_header>
7101_ACEOF
7102rm -f conftest.$ac_objext
0ebeb530
JW
7103if { (ac_try="$ac_compile"
7104case "(($ac_try" in
7105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7106 *) ac_try_echo=$ac_try;;
7107esac
7108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7109 (eval "$ac_compile") 2>conftest.er1
b079add3
AJ
7110 ac_status=$?
7111 grep -v '^ *+' conftest.er1 >conftest.err
7112 rm -f conftest.er1
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7115 (exit $ac_status); } && {
7116 test -z "$ac_c_werror_flag" ||
7117 test ! -s conftest.err
7118 } && test -s conftest.$ac_objext; then
b079add3
AJ
7119 eval "$as_ac_Header=yes"
7120else
7121 echo "$as_me: failed program was:" >&5
7122sed 's/^/| /' conftest.$ac_ext >&5
7123
fc6ffb29 7124 eval "$as_ac_Header=no"
b079add3 7125fi
fc6ffb29 7126
0ebeb530 7127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b079add3 7128fi
fc6ffb29
AJ
7129ac_res=`eval echo '${'$as_ac_Header'}'`
7130 { echo "$as_me:$LINENO: result: $ac_res" >&5
7131echo "${ECHO_T}$ac_res" >&6; }
b079add3
AJ
7132if test `eval echo '${'$as_ac_Header'}'` = yes; then
7133 cat >>confdefs.h <<_ACEOF
7134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7135_ACEOF
7136
7137fi
7138
7139done
7140
7141
7142
7ff12568
RK
7143
7144
7145
7146
7147
2569635c
MA
7148
7149
7150for 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
7151do
7152as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7153{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157else
7158 cat >conftest.$ac_ext <<_ACEOF
7159/* confdefs.h. */
7160_ACEOF
7161cat confdefs.h >>conftest.$ac_ext
7162cat >>conftest.$ac_ext <<_ACEOF
7163/* end confdefs.h. */
7164#include <sys/types.h>
7165 #if HAVE_SYS_SOCKET_H
7166 # include <sys/socket.h>
7167 #endif
7168
7169#include <$ac_header>
7170_ACEOF
7171rm -f conftest.$ac_objext
7172if { (ac_try="$ac_compile"
7173case "(($ac_try" in
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7176esac
7177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178 (eval "$ac_compile") 2>conftest.er1
7179 ac_status=$?
7180 grep -v '^ *+' conftest.er1 >conftest.err
7181 rm -f conftest.er1
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } && {
7185 test -z "$ac_c_werror_flag" ||
7186 test ! -s conftest.err
7187 } && test -s conftest.$ac_objext; then
7188 eval "$as_ac_Header=yes"
7189else
7190 echo "$as_me: failed program was:" >&5
7191sed 's/^/| /' conftest.$ac_ext >&5
7192
7193 eval "$as_ac_Header=no"
7194fi
7195
7196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197fi
7198ac_res=`eval echo '${'$as_ac_Header'}'`
7199 { echo "$as_me:$LINENO: result: $ac_res" >&5
7200echo "${ECHO_T}$ac_res" >&6; }
7201if test `eval echo '${'$as_ac_Header'}'` = yes; then
7202 cat >>confdefs.h <<_ACEOF
7203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7204_ACEOF
7205
7206fi
7207
7208done
7209
7210 #if HAVE_SYS_SOCKETVAR_H
7211 # include <sys/socketvar.h>
7212 #endif
7213
7214
7215for ac_header in netinet/tcp_var.h
7ff12568
RK
7216do
7217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
7218{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7ff12568
RK
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222else
7223 cat >conftest.$ac_ext <<_ACEOF
7224/* confdefs.h. */
7225_ACEOF
7226cat confdefs.h >>conftest.$ac_ext
7227cat >>conftest.$ac_ext <<_ACEOF
7228/* end confdefs.h. */
2d6d4e96
HL
7229#include <sys/types.h>
7230 #if HAVE_SYS_SOCKET_H
7231 # include <sys/socket.h>
7232 #endif
2569635c
MA
7233 #if HAVE_SYS_SOCKETVAR_H
7234 # include <sys/socketvar.h>
7235 #endif
7236 #if HAVE_NETINET_IN_H
7237 # include <netinet/in.h>
7238 #endif
7239 #ifdef HAVE_NETINET_TCP_H
7240 # include <netinet/tcp.h>
7241 #endif
7ff12568
RK
7242
7243#include <$ac_header>
7244_ACEOF
7245rm -f conftest.$ac_objext
0ebeb530
JW
7246if { (ac_try="$ac_compile"
7247case "(($ac_try" in
7248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7249 *) ac_try_echo=$ac_try;;
7250esac
7251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7252 (eval "$ac_compile") 2>conftest.er1
7ff12568
RK
7253 ac_status=$?
7254 grep -v '^ *+' conftest.er1 >conftest.err
7255 rm -f conftest.er1
7256 cat conftest.err >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7258 (exit $ac_status); } && {
7259 test -z "$ac_c_werror_flag" ||
7260 test ! -s conftest.err
7261 } && test -s conftest.$ac_objext; then
7ff12568
RK
7262 eval "$as_ac_Header=yes"
7263else
7264 echo "$as_me: failed program was:" >&5
7265sed 's/^/| /' conftest.$ac_ext >&5
7266
fc6ffb29 7267 eval "$as_ac_Header=no"
7ff12568 7268fi
fc6ffb29 7269
0ebeb530 7270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7ff12568 7271fi
fc6ffb29
AJ
7272ac_res=`eval echo '${'$as_ac_Header'}'`
7273 { echo "$as_me:$LINENO: result: $ac_res" >&5
7274echo "${ECHO_T}$ac_res" >&6; }
7ff12568
RK
7275if test `eval echo '${'$as_ac_Header'}'` = yes; then
7276 cat >>confdefs.h <<_ACEOF
7277#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 7278_ACEOF
5b6879c5 7279
5b6879c5
FJ
7280fi
7281
7ff12568 7282done
daa2886c 7283
7ff12568 7284
2d6d4e96 7285
faf05dfd
FG
7286for ac_header in linux/ipx.h
7287do
7288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7289{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7290echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293else
7294 cat >conftest.$ac_ext <<_ACEOF
7295/* confdefs.h. */
7296_ACEOF
7297cat confdefs.h >>conftest.$ac_ext
7298cat >>conftest.$ac_ext <<_ACEOF
7299/* end confdefs.h. */
7300#include <sys/types.h>
7301 #ifdef HAVE_ASM_TYPES_H
7302 # include <asm/types.h>
7303 #endif
7304 #if HAVE_SYS_SOCKET_H
7305 # include <sys/socket.h>
7306 #endif
7307
7308#include <$ac_header>
7309_ACEOF
7310rm -f conftest.$ac_objext
7311if { (ac_try="$ac_compile"
7312case "(($ac_try" in
7313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7315esac
7316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_compile") 2>conftest.er1
7318 ac_status=$?
7319 grep -v '^ *+' conftest.er1 >conftest.err
7320 rm -f conftest.er1
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7323 (exit $ac_status); } && {
7324 test -z "$ac_c_werror_flag" ||
7325 test ! -s conftest.err
7326 } && test -s conftest.$ac_objext; then
faf05dfd
FG
7327 eval "$as_ac_Header=yes"
7328else
7329 echo "$as_me: failed program was:" >&5
7330sed 's/^/| /' conftest.$ac_ext >&5
7331
7332 eval "$as_ac_Header=no"
7333fi
7334
7335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336fi
7337ac_res=`eval echo '${'$as_ac_Header'}'`
7338 { echo "$as_me:$LINENO: result: $ac_res" >&5
7339echo "${ECHO_T}$ac_res" >&6; }
7340if test `eval echo '${'$as_ac_Header'}'` = yes; then
7341 cat >>confdefs.h <<_ACEOF
7342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7343_ACEOF
7344
7345fi
7346
7347done
7348
7349
7350
2d6d4e96
HL
7351for ac_header in resolv.h
7352do
7353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
7354{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 7357 echo $ECHO_N "(cached) $ECHO_C" >&6
d94475bd 7358else
2d6d4e96 7359 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7360/* confdefs.h. */
7361_ACEOF
7362cat confdefs.h >>conftest.$ac_ext
7363cat >>conftest.$ac_ext <<_ACEOF
7364/* end confdefs.h. */
2d6d4e96
HL
7365#include <sys/types.h>
7366 #if HAVE_SYS_SOCKET_H
7367 # include <sys/socket.h>
7368 #endif
7369 #if HAVE_NETINET_IN_H
7370 # include <netinet/in.h>
7371 #endif
7372 #if HAVE_ARPA_NAMESER_H
7373 # include <arpa/nameser.h>
7374 #endif
f5818d2f 7375
2d6d4e96 7376#include <$ac_header>
f5818d2f 7377_ACEOF
2d6d4e96 7378rm -f conftest.$ac_objext
0ebeb530
JW
7379if { (ac_try="$ac_compile"
7380case "(($ac_try" in
7381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7382 *) ac_try_echo=$ac_try;;
7383esac
7384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7385 (eval "$ac_compile") 2>conftest.er1
f5818d2f 7386 ac_status=$?
875927f6
AJ
7387 grep -v '^ *+' conftest.er1 >conftest.err
7388 rm -f conftest.er1
7389 cat conftest.err >&5
daa2886c 7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7391 (exit $ac_status); } && {
7392 test -z "$ac_c_werror_flag" ||
7393 test ! -s conftest.err
7394 } && test -s conftest.$ac_objext; then
2d6d4e96 7395 eval "$as_ac_Header=yes"
f5818d2f
AJ
7396else
7397 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7398sed 's/^/| /' conftest.$ac_ext >&5
7399
fc6ffb29 7400 eval "$as_ac_Header=no"
f5818d2f 7401fi
fc6ffb29 7402
0ebeb530 7403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 7404fi
fc6ffb29
AJ
7405ac_res=`eval echo '${'$as_ac_Header'}'`
7406 { echo "$as_me:$LINENO: result: $ac_res" >&5
7407echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
7408if test `eval echo '${'$as_ac_Header'}'` = yes; then
7409 cat >>confdefs.h <<_ACEOF
7410#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 7411_ACEOF
10ad97c8 7412
7ff12568 7413fi
f5818d2f 7414
2d6d4e96 7415done
7ff12568 7416
2d6d4e96
HL
7417
7418
7419for ac_header in ucontext.h
7420do
7421as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
7422{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 7425 echo $ECHO_N "(cached) $ECHO_C" >&6
02e90087 7426else
2d6d4e96 7427 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7428/* confdefs.h. */
7429_ACEOF
7430cat confdefs.h >>conftest.$ac_ext
7431cat >>conftest.$ac_ext <<_ACEOF
7432/* end confdefs.h. */
2d6d4e96 7433#include <signal.h>
f5818d2f 7434
60833da9
TC
7435#include <$ac_header>
7436_ACEOF
7437rm -f conftest.$ac_objext
7438if { (ac_try="$ac_compile"
7439case "(($ac_try" in
7440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7441 *) ac_try_echo=$ac_try;;
7442esac
7443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7444 (eval "$ac_compile") 2>conftest.er1
7445 ac_status=$?
7446 grep -v '^ *+' conftest.er1 >conftest.err
7447 rm -f conftest.er1
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } && {
7451 test -z "$ac_c_werror_flag" ||
7452 test ! -s conftest.err
7453 } && test -s conftest.$ac_objext; then
7454 eval "$as_ac_Header=yes"
7455else
7456 echo "$as_me: failed program was:" >&5
7457sed 's/^/| /' conftest.$ac_ext >&5
7458
7459 eval "$as_ac_Header=no"
7460fi
7461
7462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463fi
7464ac_res=`eval echo '${'$as_ac_Header'}'`
7465 { echo "$as_me:$LINENO: result: $ac_res" >&5
7466echo "${ECHO_T}$ac_res" >&6; }
7467if test `eval echo '${'$as_ac_Header'}'` = yes; then
7468 cat >>confdefs.h <<_ACEOF
7469#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7470_ACEOF
7471
7472fi
7473
7474done
7475
7476
7477
7478for ac_header in sys/thr.h
7479do
7480as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7481{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7483if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7485else
7486 cat >conftest.$ac_ext <<_ACEOF
7487/* confdefs.h. */
7488_ACEOF
7489cat confdefs.h >>conftest.$ac_ext
7490cat >>conftest.$ac_ext <<_ACEOF
7491/* end confdefs.h. */
7492#include <sys/types.h>
7493#if HAVE_UCONTEXT_H
7494#include <ucontext.h>
7495#endif
7496
4ff90b47
GP
7497#include <$ac_header>
7498_ACEOF
7499rm -f conftest.$ac_objext
7500if { (ac_try="$ac_compile"
7501case "(($ac_try" in
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7504esac
7505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506 (eval "$ac_compile") 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7512 (exit $ac_status); } && {
7513 test -z "$ac_c_werror_flag" ||
7514 test ! -s conftest.err
7515 } && test -s conftest.$ac_objext; then
4ff90b47
GP
7516 eval "$as_ac_Header=yes"
7517else
7518 echo "$as_me: failed program was:" >&5
7519sed 's/^/| /' conftest.$ac_ext >&5
7520
7521 eval "$as_ac_Header=no"
7522fi
7523
7524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525fi
7526ac_res=`eval echo '${'$as_ac_Header'}'`
7527 { echo "$as_me:$LINENO: result: $ac_res" >&5
7528echo "${ECHO_T}$ac_res" >&6; }
7529if test `eval echo '${'$as_ac_Header'}'` = yes; then
7530 cat >>confdefs.h <<_ACEOF
7531#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7532_ACEOF
7533
7534fi
7535
7536done
7537
7538
7539
7540for ac_header in pthread_np.h
7541do
7542as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7543{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547else
7548 cat >conftest.$ac_ext <<_ACEOF
7549/* confdefs.h. */
7550_ACEOF
7551cat confdefs.h >>conftest.$ac_ext
7552cat >>conftest.$ac_ext <<_ACEOF
7553/* end confdefs.h. */
7554#ifdef HAVE_PTHREAD_H
7555#include <pthread.h>
7556#endif
7557
2d6d4e96 7558#include <$ac_header>
f5818d2f 7559_ACEOF
2d6d4e96 7560rm -f conftest.$ac_objext
0ebeb530
JW
7561if { (ac_try="$ac_compile"
7562case "(($ac_try" in
7563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7565esac
7566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7567 (eval "$ac_compile") 2>conftest.er1
f5818d2f 7568 ac_status=$?
875927f6
AJ
7569 grep -v '^ *+' conftest.er1 >conftest.err
7570 rm -f conftest.er1
7571 cat conftest.err >&5
daa2886c 7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7573 (exit $ac_status); } && {
7574 test -z "$ac_c_werror_flag" ||
7575 test ! -s conftest.err
7576 } && test -s conftest.$ac_objext; then
2d6d4e96 7577 eval "$as_ac_Header=yes"
f5818d2f
AJ
7578else
7579 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7580sed 's/^/| /' conftest.$ac_ext >&5
7581
fc6ffb29 7582 eval "$as_ac_Header=no"
f5818d2f 7583fi
fc6ffb29 7584
0ebeb530 7585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 7586fi
fc6ffb29
AJ
7587ac_res=`eval echo '${'$as_ac_Header'}'`
7588 { echo "$as_me:$LINENO: result: $ac_res" >&5
7589echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
7590if test `eval echo '${'$as_ac_Header'}'` = yes; then
7591 cat >>confdefs.h <<_ACEOF
7592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 7593_ACEOF
10ad97c8 7594
f2b77ccb
JS
7595fi
7596
2d6d4e96 7597done
daa2886c 7598
2d6d4e96
HL
7599
7600
faf05dfd 7601for ac_header in linux/videodev.h
2d6d4e96
HL
7602do
7603as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
7604{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7606if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 7607 echo $ECHO_N "(cached) $ECHO_C" >&6
399931a2 7608else
2d6d4e96 7609 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7610/* confdefs.h. */
7611_ACEOF
7612cat confdefs.h >>conftest.$ac_ext
7613cat >>conftest.$ac_ext <<_ACEOF
7614/* end confdefs.h. */
2d6d4e96
HL
7615#ifdef HAVE_SYS_TIME_H
7616#include <sys/time.h>
f5818d2f 7617#endif
2d6d4e96
HL
7618#include <sys/types.h>
7619#ifdef HAVE_ASM_TYPES_H
7620#include <asm/types.h>
7621#endif
7622
7623#include <$ac_header>
f5818d2f 7624_ACEOF
2d6d4e96 7625rm -f conftest.$ac_objext
0ebeb530
JW
7626if { (ac_try="$ac_compile"
7627case "(($ac_try" in
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7630esac
7631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_compile") 2>conftest.er1
f5818d2f 7633 ac_status=$?
875927f6
AJ
7634 grep -v '^ *+' conftest.er1 >conftest.err
7635 rm -f conftest.er1
7636 cat conftest.err >&5
daa2886c 7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7638 (exit $ac_status); } && {
7639 test -z "$ac_c_werror_flag" ||
7640 test ! -s conftest.err
7641 } && test -s conftest.$ac_objext; then
2d6d4e96 7642 eval "$as_ac_Header=yes"
f5818d2f
AJ
7643else
7644 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7645sed 's/^/| /' conftest.$ac_ext >&5
7646
fc6ffb29 7647 eval "$as_ac_Header=no"
f5818d2f 7648fi
fc6ffb29 7649
0ebeb530 7650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 7651fi
fc6ffb29
AJ
7652ac_res=`eval echo '${'$as_ac_Header'}'`
7653 { echo "$as_me:$LINENO: result: $ac_res" >&5
7654echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
7655if test `eval echo '${'$as_ac_Header'}'` = yes; then
7656 cat >>confdefs.h <<_ACEOF
7657#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 7658_ACEOF
f2b77ccb 7659
399931a2
SC
7660fi
7661
2d6d4e96 7662done
daa2886c 7663
2d6d4e96
HL
7664
7665
7666for ac_header in linux/capi.h
7667do
7668as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
7669{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2d6d4e96
HL
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7673else
7674 cat >conftest.$ac_ext <<_ACEOF
7675/* confdefs.h. */
7676_ACEOF
8f174bc6
AP
7677cat confdefs.h >>conftest.$ac_ext
7678cat >>conftest.$ac_ext <<_ACEOF
7679/* end confdefs.h. */
2d6d4e96 7680#define __user
7ff12568 7681
2d6d4e96 7682#include <$ac_header>
8f174bc6 7683_ACEOF
2d6d4e96 7684rm -f conftest.$ac_objext
0ebeb530
JW
7685if { (ac_try="$ac_compile"
7686case "(($ac_try" in
7687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7688 *) ac_try_echo=$ac_try;;
7689esac
7690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7691 (eval "$ac_compile") 2>conftest.er1
8f174bc6 7692 ac_status=$?
875927f6
AJ
7693 grep -v '^ *+' conftest.er1 >conftest.err
7694 rm -f conftest.er1
7695 cat conftest.err >&5
8f174bc6 7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
7697 (exit $ac_status); } && {
7698 test -z "$ac_c_werror_flag" ||
7699 test ! -s conftest.err
7700 } && test -s conftest.$ac_objext; then
2d6d4e96 7701 eval "$as_ac_Header=yes"
7ff12568
RK
7702else
7703 echo "$as_me: failed program was:" >&5
7704sed 's/^/| /' conftest.$ac_ext >&5
7705
fc6ffb29 7706 eval "$as_ac_Header=no"
7ff12568 7707fi
fc6ffb29 7708
0ebeb530 7709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7ff12568 7710fi
fc6ffb29
AJ
7711ac_res=`eval echo '${'$as_ac_Header'}'`
7712 { echo "$as_me:$LINENO: result: $ac_res" >&5
7713echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
7714if test `eval echo '${'$as_ac_Header'}'` = yes; then
7715 cat >>confdefs.h <<_ACEOF
7716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7717_ACEOF
7ff12568 7718
2d6d4e96
HL
7719fi
7720
7721done
7722
7723
7724
a3097628 7725DLLEXT=""
2d6d4e96 7726
a3097628 7727DLLFLAGS="-D_REENTRANT"
2d6d4e96 7728
a3097628 7729LDSHARED=""
2d6d4e96 7730
a3097628 7731LDDLLFLAGS=""
2d6d4e96 7732
a3097628 7733LIBEXT="so"
2d6d4e96 7734
a3097628 7735IMPLIBEXT="def"
2d6d4e96 7736
a3097628 7737LDRPATH_INSTALL=""
7d00b050 7738
a3097628 7739LDRPATH_LOCAL=""
23e2cb1f 7740
a3097628
AJ
7741# Extract the first word of "ldd", so it can be a program name with args.
7742set dummy ldd; ac_word=$2
7743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745if test "${ac_cv_path_LDD+set}" = set; then
2d6d4e96
HL
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
a3097628
AJ
7748 case $LDD in
7749 [\\/]* | ?:[\\/]*)
7750 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
7751 ;;
7752 *)
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754as_dummy="/sbin:/usr/sbin:$PATH"
7755for as_dir in $as_dummy
7756do
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
7762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7764 fi
7765done
7766done
7767IFS=$as_save_IFS
7ff12568 7768
a3097628
AJ
7769 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
7770 ;;
0ebeb530 7771esac
7ff12568 7772fi
a3097628
AJ
7773LDD=$ac_cv_path_LDD
7774if test -n "$LDD"; then
7775 { echo "$as_me:$LINENO: result: $LDD" >&5
7776echo "${ECHO_T}$LDD" >&6; }
7777else
7778 { echo "$as_me:$LINENO: result: no" >&5
7779echo "${ECHO_T}no" >&6; }
2d6d4e96 7780fi
7ff12568 7781
2d6d4e96
HL
7782
7783
a3097628
AJ
7784case $host_os in
7785 cygwin*|mingw32*)
7786 if test -n "$ac_tool_prefix"; then
7787 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7788set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7791if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7ff12568
RK
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793else
a3097628
AJ
7794 if test -n "$DLLTOOL"; then
7795 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7ff12568 7796else
a3097628
AJ
7797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798for as_dir in $PATH
7799do
7800 IFS=$as_save_IFS
7801 test -z "$as_dir" && as_dir=.
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7804 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7806 break 2
7807 fi
7808done
7809done
7810IFS=$as_save_IFS
7ff12568 7811
7ff12568 7812fi
7ff12568 7813fi
a3097628
AJ
7814DLLTOOL=$ac_cv_prog_DLLTOOL
7815if test -n "$DLLTOOL"; then
7816 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7817echo "${ECHO_T}$DLLTOOL" >&6; }
7818else
7819 { echo "$as_me:$LINENO: result: no" >&5
7820echo "${ECHO_T}no" >&6; }
7ff12568
RK
7821fi
7822
7ff12568 7823
a3097628
AJ
7824fi
7825if test -z "$ac_cv_prog_DLLTOOL"; then
7826 ac_ct_DLLTOOL=$DLLTOOL
7827 # Extract the first word of "dlltool", so it can be a program name with args.
7828set dummy dlltool; ac_word=$2
7829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7831if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
2d6d4e96
HL
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7833else
a3097628
AJ
7834 if test -n "$ac_ct_DLLTOOL"; then
7835 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
c7c9f939 7836else
a3097628
AJ
7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838for as_dir in $PATH
7839do
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 break 2
7847 fi
7848done
7849done
7850IFS=$as_save_IFS
8f174bc6 7851
a3097628
AJ
7852fi
7853fi
7854ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7855if test -n "$ac_ct_DLLTOOL"; then
7856 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7857echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
7858else
7859 { echo "$as_me:$LINENO: result: no" >&5
7860echo "${ECHO_T}no" >&6; }
8f174bc6 7861fi
fc6ffb29 7862
a3097628
AJ
7863 if test "x$ac_ct_DLLTOOL" = x; then
7864 DLLTOOL="false"
7865 else
7866 case $cross_compiling:$ac_tool_warned in
7867yes:)
7868{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7869whose name does not start with the host triplet. If you think this
7870configuration is useful to you, please write to autoconf@gnu.org." >&5
7871echo "$as_me: 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." >&2;}
7874ac_tool_warned=yes ;;
7875esac
7876 DLLTOOL=$ac_ct_DLLTOOL
7877 fi
7878else
7879 DLLTOOL="$ac_cv_prog_DLLTOOL"
2d6d4e96 7880fi
2d6d4e96 7881
a3097628
AJ
7882 if test -n "$ac_tool_prefix"; then
7883 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
7884set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
7885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7887if test "${ac_cv_prog_DLLWRAP+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7889else
7890 if test -n "$DLLWRAP"; then
7891 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
7892else
7893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894for as_dir in $PATH
7895do
7896 IFS=$as_save_IFS
7897 test -z "$as_dir" && as_dir=.
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7900 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
7901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7902 break 2
7903 fi
7904done
7905done
7906IFS=$as_save_IFS
2d6d4e96
HL
7907
7908fi
a3097628
AJ
7909fi
7910DLLWRAP=$ac_cv_prog_DLLWRAP
7911if test -n "$DLLWRAP"; then
7912 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
7913echo "${ECHO_T}$DLLWRAP" >&6; }
7914else
7915 { echo "$as_me:$LINENO: result: no" >&5
7916echo "${ECHO_T}no" >&6; }
7917fi
2d6d4e96 7918
92ec21bd 7919
a3097628
AJ
7920fi
7921if test -z "$ac_cv_prog_DLLWRAP"; then
7922 ac_ct_DLLWRAP=$DLLWRAP
7923 # Extract the first word of "dllwrap", so it can be a program name with args.
7924set dummy dllwrap; ac_word=$2
7925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7927if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
92ec21bd
KK
7928 echo $ECHO_N "(cached) $ECHO_C" >&6
7929else
a3097628
AJ
7930 if test -n "$ac_ct_DLLWRAP"; then
7931 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
92ec21bd 7932else
a3097628
AJ
7933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH
7935do
7936 IFS=$as_save_IFS
7937 test -z "$as_dir" && as_dir=.
7938 for ac_exec_ext in '' $ac_executable_extensions; do
7939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7940 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
7941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7942 break 2
7943 fi
7944done
7945done
7946IFS=$as_save_IFS
92ec21bd 7947
92ec21bd 7948fi
92ec21bd 7949fi
a3097628
AJ
7950ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
7951if test -n "$ac_ct_DLLWRAP"; then
7952 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
7953echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
7954else
7955 { echo "$as_me:$LINENO: result: no" >&5
7956echo "${ECHO_T}no" >&6; }
f5818d2f 7957fi
5c085704 7958
a3097628
AJ
7959 if test "x$ac_ct_DLLWRAP" = x; then
7960 DLLWRAP="false"
7961 else
7962 case $cross_compiling:$ac_tool_warned in
7963yes:)
7964{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7965whose name does not start with the host triplet. If you think this
7966configuration is useful to you, please write to autoconf@gnu.org." >&5
7967echo "$as_me: 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." >&2;}
7970ac_tool_warned=yes ;;
7971esac
7972 DLLWRAP=$ac_ct_DLLWRAP
7973 fi
7974else
7975 DLLWRAP="$ac_cv_prog_DLLWRAP"
7976fi
2d6d4e96 7977
a3097628
AJ
7978 if test -n "$ac_tool_prefix"; then
7979 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7980set dummy ${ac_tool_prefix}ar; ac_word=$2
7981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7983if test "${ac_cv_prog_MINGWAR+set}" = set; then
f5818d2f 7984 echo $ECHO_N "(cached) $ECHO_C" >&6
5ff00774 7985else
a3097628
AJ
7986 if test -n "$MINGWAR"; then
7987 ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
f5818d2f 7988else
a3097628
AJ
7989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7996 ac_cv_prog_MINGWAR="${ac_tool_prefix}ar"
7997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7998 break 2
7999 fi
8000done
8001done
8002IFS=$as_save_IFS
e24bcc77 8003
f5818d2f 8004fi
f5818d2f 8005fi
a3097628
AJ
8006MINGWAR=$ac_cv_prog_MINGWAR
8007if test -n "$MINGWAR"; then
8008 { echo "$as_me:$LINENO: result: $MINGWAR" >&5
8009echo "${ECHO_T}$MINGWAR" >&6; }
8010else
8011 { echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6; }
8013fi
6bb6d4c2 8014
5a2da4ee 8015
2d6d4e96 8016fi
a3097628
AJ
8017if test -z "$ac_cv_prog_MINGWAR"; then
8018 ac_ct_MINGWAR=$MINGWAR
8019 # Extract the first word of "ar", so it can be a program name with args.
8020set dummy ar; ac_word=$2
8021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8023if test "${ac_cv_prog_ac_ct_MINGWAR+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8025else
8026 if test -n "$ac_ct_MINGWAR"; then
8027 ac_cv_prog_ac_ct_MINGWAR="$ac_ct_MINGWAR" # Let the user override the test.
8028else
8029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030for as_dir in $PATH
8031do
8032 IFS=$as_save_IFS
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8036 ac_cv_prog_ac_ct_MINGWAR="ar"
8037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8038 break 2
8039 fi
8040done
8041done
8042IFS=$as_save_IFS
2d6d4e96 8043
a3097628
AJ
8044fi
8045fi
8046ac_ct_MINGWAR=$ac_cv_prog_ac_ct_MINGWAR
8047if test -n "$ac_ct_MINGWAR"; then
8048 { echo "$as_me:$LINENO: result: $ac_ct_MINGWAR" >&5
8049echo "${ECHO_T}$ac_ct_MINGWAR" >&6; }
8050else
8051 { echo "$as_me:$LINENO: result: no" >&5
8052echo "${ECHO_T}no" >&6; }
8053fi
2d6d4e96 8054
a3097628
AJ
8055 if test "x$ac_ct_MINGWAR" = x; then
8056 MINGWAR="false"
8057 else
8058 case $cross_compiling:$ac_tool_warned in
8059yes:)
8060{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8061whose name does not start with the host triplet. If you think this
8062configuration is useful to you, please write to autoconf@gnu.org." >&5
8063echo "$as_me: 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." >&2;}
8066ac_tool_warned=yes ;;
0ebeb530 8067esac
a3097628
AJ
8068 MINGWAR=$ac_ct_MINGWAR
8069 fi
8070else
8071 MINGWAR="$ac_cv_prog_MINGWAR"
8072fi
2d6d4e96 8073
a3097628
AJ
8074 if test "$DLLWRAP" = "false"; then
8075 LIBEXT="a"
8076 else
8077 LIBEXT="dll"
8078 fi
8079 IMPLIBEXT="a"
8080 WIN16_FILES=""
8081 WIN16_INSTALL=""
8082 ;;
8083 darwin*|macosx*)
8084 DLLEXT=".so"
8085 LIBEXT="dylib"
8086 DLLFLAGS="$DLLFLAGS -fPIC"
8087 LDDLLFLAGS="-bundle -multiply_defined suppress"
8088 LIBWINE_LDFLAGS="-multiply_defined suppress"
8089 LDSHARED="\$(CC) -dynamiclib"
8090 STRIP="$STRIP -x"
8091 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
8092 COREFOUNDATIONLIB="-framework CoreFoundation"
2d6d4e96 8093
a3097628 8094 IOKITLIB="-framework IOKit -framework CoreFoundation"
e24bcc77 8095
a3097628 8096 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
fc6ffb29 8097
a3097628
AJ
8098 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
8099 then
8100 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
fc6ffb29 8101
a3097628
AJ
8102 fi
8103 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
8104 then
8105 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
b63ab445 8106
a3097628
AJ
8107 fi
8108 case $host_cpu in
8109 *powerpc*)
8110 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
8111 esac
8112 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
8113 then
8114 CARBONLIB="-framework Carbon"
8115
8116 QUARTZFILES='$(QUARTZFILES)'
8117 fi
8118 ;;
8119 *)
8120 DLLFLAGS="$DLLFLAGS -fPIC"
8121 DLLEXT=".so"
8122 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
8123echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
8124if test "${ac_cv_c_dll_gnuelf+set}" = set; then
ef799c46
JC
8125 echo $ECHO_N "(cached) $ECHO_C" >&6
8126else
a3097628
AJ
8127 ac_wine_try_cflags_saved=$CFLAGS
8128CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
ef799c46 8129cat >conftest.$ac_ext <<_ACEOF
a3097628 8130void myfunc() {}
ef799c46
JC
8131_ACEOF
8132rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
8133if { (ac_try="$ac_link"
8134case "(($ac_try" in
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8137esac
8138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_link") 2>conftest.er1
ef799c46 8140 ac_status=$?
875927f6
AJ
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
8143 cat conftest.err >&5
ef799c46 8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8145 (exit $ac_status); } && {
8146 test -z "$ac_c_werror_flag" ||
8147 test ! -s conftest.err
8148 } && test -s conftest$ac_exeext &&
8149 $as_test_x conftest$ac_exeext; then
a3097628 8150 ac_cv_c_dll_gnuelf="yes"
ef799c46
JC
8151else
8152 echo "$as_me: failed program was:" >&5
8153sed 's/^/| /' conftest.$ac_ext >&5
8154
a3097628 8155 ac_cv_c_dll_gnuelf="no"
ef799c46 8156fi
fc6ffb29 8157
f0ca586f 8158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 8159 conftest$ac_exeext conftest.$ac_ext
a3097628 8160CFLAGS=$ac_wine_try_cflags_saved
ef799c46 8161fi
a3097628
AJ
8162{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
8163echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
8164 if test "$ac_cv_c_dll_gnuelf" = "yes"
8165 then
8166 LDSHARED="\$(CC) -shared"
8167 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
8168 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
8169echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
8170if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
8171 echo $ECHO_N "(cached) $ECHO_C" >&6
8172else
8173 ac_wine_try_cflags_saved=$CFLAGS
8174CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
8175cat >conftest.$ac_ext <<_ACEOF
7d00b050
AJ
8176/* confdefs.h. */
8177_ACEOF
8178cat confdefs.h >>conftest.$ac_ext
8179cat >>conftest.$ac_ext <<_ACEOF
8180/* end confdefs.h. */
a3097628 8181
7d00b050
AJ
8182int
8183main ()
8184{
a3097628 8185
7d00b050
AJ
8186 ;
8187 return 0;
8188}
8189_ACEOF
a3097628
AJ
8190rm -f conftest.$ac_objext conftest$ac_exeext
8191if { (ac_try="$ac_link"
7d00b050
AJ
8192case "(($ac_try" in
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8195esac
8196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 8197 (eval "$ac_link") 2>conftest.er1
7d00b050
AJ
8198 ac_status=$?
8199 grep -v '^ *+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8203 (exit $ac_status); } && {
8204 test -z "$ac_c_werror_flag" ||
8205 test ! -s conftest.err
a3097628
AJ
8206 } && test -s conftest$ac_exeext &&
8207 $as_test_x conftest$ac_exeext; then
8208 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
7d00b050
AJ
8209else
8210 echo "$as_me: failed program was:" >&5
8211sed 's/^/| /' conftest.$ac_ext >&5
8212
a3097628 8213 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
7d00b050
AJ
8214fi
8215
a3097628
AJ
8216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8217 conftest$ac_exeext conftest.$ac_ext
8218CFLAGS=$ac_wine_try_cflags_saved
8219fi
8220{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
8221echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
8222if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
8223 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
8224else
8225 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
8226echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
8227if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
6f670b13 8228 echo $ECHO_N "(cached) $ECHO_C" >&6
6f670b13 8229else
a3097628
AJ
8230 ac_wine_try_cflags_saved=$CFLAGS
8231CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
8232cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
8233/* confdefs.h. */
8234_ACEOF
8235cat confdefs.h >>conftest.$ac_ext
8236cat >>conftest.$ac_ext <<_ACEOF
8237/* end confdefs.h. */
2d6d4e96 8238
a3097628
AJ
8239int
8240main ()
8241{
8242
8243 ;
8244 return 0;
8245}
6f670b13 8246_ACEOF
a3097628
AJ
8247rm -f conftest.$ac_objext conftest$ac_exeext
8248if { (ac_try="$ac_link"
0ebeb530
JW
8249case "(($ac_try" in
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8252esac
8253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 8254 (eval "$ac_link") 2>conftest.er1
6f670b13 8255 ac_status=$?
875927f6
AJ
8256 grep -v '^ *+' conftest.er1 >conftest.err
8257 rm -f conftest.er1
8258 cat conftest.err >&5
6f670b13 8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8260 (exit $ac_status); } && {
8261 test -z "$ac_c_werror_flag" ||
8262 test ! -s conftest.err
a3097628
AJ
8263 } && test -s conftest$ac_exeext &&
8264 $as_test_x conftest$ac_exeext; then
8265 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6f670b13
FG
8266else
8267 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8268sed 's/^/| /' conftest.$ac_ext >&5
8269
a3097628 8270 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
6f670b13 8271fi
fc6ffb29 8272
a3097628
AJ
8273rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8274 conftest$ac_exeext conftest.$ac_ext
8275CFLAGS=$ac_wine_try_cflags_saved
8276fi
8277{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
8278echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
8279if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
8280 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6f670b13 8281fi
6f670b13 8282
2d6d4e96
HL
8283fi
8284
2d6d4e96 8285
a3097628
AJ
8286 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
8287echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
8288if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
6f670b13
FG
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8290else
a3097628
AJ
8291 ac_wine_try_cflags_saved=$CFLAGS
8292CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
8293cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
8294/* confdefs.h. */
8295_ACEOF
8296cat confdefs.h >>conftest.$ac_ext
8297cat >>conftest.$ac_ext <<_ACEOF
8298/* end confdefs.h. */
a3097628 8299
2d6d4e96
HL
8300int
8301main ()
8302{
a3097628 8303
2d6d4e96
HL
8304 ;
8305 return 0;
8306}
6f670b13 8307_ACEOF
a3097628
AJ
8308rm -f conftest.$ac_objext conftest$ac_exeext
8309if { (ac_try="$ac_link"
0ebeb530
JW
8310case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8313esac
8314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 8315 (eval "$ac_link") 2>conftest.er1
6f670b13 8316 ac_status=$?
875927f6
AJ
8317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
6f670b13 8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8321 (exit $ac_status); } && {
8322 test -z "$ac_c_werror_flag" ||
8323 test ! -s conftest.err
a3097628
AJ
8324 } && test -s conftest$ac_exeext &&
8325 $as_test_x conftest$ac_exeext; then
8326 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6f670b13
FG
8327else
8328 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8329sed 's/^/| /' conftest.$ac_ext >&5
8330
a3097628 8331 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
6f670b13 8332fi
fc6ffb29 8333
a3097628
AJ
8334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8335 conftest$ac_exeext conftest.$ac_ext
8336CFLAGS=$ac_wine_try_cflags_saved
8337fi
8338{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
8339echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
8340if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
8341 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6f670b13
FG
8342fi
8343
a3097628
AJ
8344
8345 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
8346echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
8347if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
6f670b13
FG
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8349else
a3097628
AJ
8350 ac_wine_try_cflags_saved=$CFLAGS
8351CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
6f670b13 8352cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
8353/* confdefs.h. */
8354_ACEOF
8355cat confdefs.h >>conftest.$ac_ext
8356cat >>conftest.$ac_ext <<_ACEOF
8357/* end confdefs.h. */
6f670b13 8358
6f670b13
FG
8359int
8360main ()
8361{
a3097628 8362
6f670b13
FG
8363 ;
8364 return 0;
8365}
8366_ACEOF
8367rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
8368if { (ac_try="$ac_link"
8369case "(($ac_try" in
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8372esac
8373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8374 (eval "$ac_link") 2>conftest.er1
6f670b13 8375 ac_status=$?
875927f6
AJ
8376 grep -v '^ *+' conftest.er1 >conftest.err
8377 rm -f conftest.er1
8378 cat conftest.err >&5
6f670b13 8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8380 (exit $ac_status); } && {
8381 test -z "$ac_c_werror_flag" ||
8382 test ! -s conftest.err
8383 } && test -s conftest$ac_exeext &&
8384 $as_test_x conftest$ac_exeext; then
a3097628 8385 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6f670b13
FG
8386else
8387 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8388sed 's/^/| /' conftest.$ac_ext >&5
8389
a3097628 8390 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
6f670b13 8391fi
fc6ffb29 8392
f0ca586f 8393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 8394 conftest$ac_exeext conftest.$ac_ext
a3097628 8395CFLAGS=$ac_wine_try_cflags_saved
6f670b13 8396fi
a3097628
AJ
8397{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
8398echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
8399if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
8400 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
c84c4784
AJ
8401fi
8402
dcc2d6c2 8403
a3097628
AJ
8404 echo '{ global: *; };' >conftest.map
8405 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
8406echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
8407if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
dcc2d6c2 8408 echo $ECHO_N "(cached) $ECHO_C" >&6
dcc2d6c2 8409else
a3097628
AJ
8410 ac_wine_try_cflags_saved=$CFLAGS
8411CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
dcc2d6c2
MM
8412cat >conftest.$ac_ext <<_ACEOF
8413/* confdefs.h. */
8414_ACEOF
8415cat confdefs.h >>conftest.$ac_ext
8416cat >>conftest.$ac_ext <<_ACEOF
8417/* end confdefs.h. */
2d6d4e96 8418
2d6d4e96
HL
8419int
8420main ()
8421{
a3097628 8422
2d6d4e96
HL
8423 ;
8424 return 0;
8425}
8426_ACEOF
8427rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
8428if { (ac_try="$ac_link"
8429case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432esac
8433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest$ac_exeext &&
8444 $as_test_x conftest$ac_exeext; then
a3097628 8445 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
2d6d4e96
HL
8446else
8447 echo "$as_me: failed program was:" >&5
8448sed 's/^/| /' conftest.$ac_ext >&5
8449
a3097628 8450 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
2d6d4e96 8451fi
fc6ffb29 8452
f0ca586f 8453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2d6d4e96 8454 conftest$ac_exeext conftest.$ac_ext
a3097628 8455CFLAGS=$ac_wine_try_cflags_saved
2d6d4e96 8456fi
a3097628
AJ
8457{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
8458echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
8459if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
8460 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
2d6d4e96
HL
8461fi
8462
a3097628 8463 rm -f conftest.map
2d6d4e96 8464
a3097628
AJ
8465 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
8466echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
8467if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
2d6d4e96 8468 echo $ECHO_N "(cached) $ECHO_C" >&6
2d6d4e96 8469else
a3097628
AJ
8470 ac_wine_try_cflags_saved=$CFLAGS
8471CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
2d6d4e96
HL
8472cat >conftest.$ac_ext <<_ACEOF
8473/* confdefs.h. */
8474_ACEOF
8475cat confdefs.h >>conftest.$ac_ext
8476cat >>conftest.$ac_ext <<_ACEOF
8477/* end confdefs.h. */
a3097628
AJ
8478
8479int
8480main ()
8481{
8482
8483 ;
8484 return 0;
8485}
2d6d4e96 8486_ACEOF
a3097628
AJ
8487rm -f conftest.$ac_objext conftest$ac_exeext
8488if { (ac_try="$ac_link"
0ebeb530
JW
8489case "(($ac_try" in
8490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491 *) ac_try_echo=$ac_try;;
8492esac
8493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 8494 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
8495 ac_status=$?
8496 grep -v '^ *+' conftest.er1 >conftest.err
8497 rm -f conftest.er1
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8500 (exit $ac_status); } && {
8501 test -z "$ac_c_werror_flag" ||
8502 test ! -s conftest.err
a3097628
AJ
8503 } && test -s conftest$ac_exeext &&
8504 $as_test_x conftest$ac_exeext; then
8505 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
dcc2d6c2
MM
8506else
8507 echo "$as_me: failed program was:" >&5
8508sed 's/^/| /' conftest.$ac_ext >&5
8509
a3097628
AJ
8510 ac_cv_cflags__fPIC__Wl___export_dynamic=no
8511fi
8512
8513rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8514 conftest$ac_exeext conftest.$ac_ext
8515CFLAGS=$ac_wine_try_cflags_saved
8516fi
8517{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
8518echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
8519if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
8520 LDEXECFLAGS="-Wl,--export-dynamic"
8521
dcc2d6c2 8522fi
fc6ffb29 8523
dcc2d6c2 8524
a3097628
AJ
8525 as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
8526{ echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
8527echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
8528if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8530else
8531 ac_wine_try_cflags_saved=$CFLAGS
8532CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
dcc2d6c2
MM
8533cat >conftest.$ac_ext <<_ACEOF
8534/* confdefs.h. */
8535_ACEOF
8536cat confdefs.h >>conftest.$ac_ext
8537cat >>conftest.$ac_ext <<_ACEOF
8538/* end confdefs.h. */
a3097628
AJ
8539
8540int
8541main ()
8542{
8543
8544 ;
8545 return 0;
8546}
dcc2d6c2 8547_ACEOF
a3097628
AJ
8548rm -f conftest.$ac_objext conftest$ac_exeext
8549if { (ac_try="$ac_link"
0ebeb530
JW
8550case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8553esac
8554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 8555 (eval "$ac_link") 2>conftest.er1
dcc2d6c2
MM
8556 ac_status=$?
8557 grep -v '^ *+' conftest.er1 >conftest.err
8558 rm -f conftest.er1
8559 cat conftest.err >&5
8560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
8561 (exit $ac_status); } && {
8562 test -z "$ac_c_werror_flag" ||
dc9f3843 8563 test ! -s conftest.err
a3097628
AJ
8564 } && test -s conftest$ac_exeext &&
8565 $as_test_x conftest$ac_exeext; then
8566 eval "$as_ac_var=yes"
dcc2d6c2
MM
8567else
8568 echo "$as_me: failed program was:" >&5
8569sed 's/^/| /' conftest.$ac_ext >&5
8570
a3097628 8571 eval "$as_ac_var=no"
dcc2d6c2 8572fi
fc6ffb29 8573
a3097628
AJ
8574rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8575 conftest$ac_exeext conftest.$ac_ext
8576CFLAGS=$ac_wine_try_cflags_saved
dcc2d6c2 8577fi
a3097628 8578ac_res=`eval echo '${'$as_ac_var'}'`
fc6ffb29
AJ
8579 { echo "$as_me:$LINENO: result: $ac_res" >&5
8580echo "${ECHO_T}$ac_res" >&6; }
a3097628
AJ
8581if test `eval echo '${'$as_ac_var'}'` = yes; then
8582 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
8583 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
8584else
8585 as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,-R,\$ORIGIN/../lib" | $as_tr_sh`
8586{ echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
8587echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... $ECHO_C" >&6; }
8588if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
dcc2d6c2
MM
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590else
a3097628
AJ
8591 ac_wine_try_cflags_saved=$CFLAGS
8592CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
8593cat >conftest.$ac_ext <<_ACEOF
dcc2d6c2
MM
8594/* confdefs.h. */
8595_ACEOF
8596cat confdefs.h >>conftest.$ac_ext
8597cat >>conftest.$ac_ext <<_ACEOF
8598/* end confdefs.h. */
8599
a3097628
AJ
8600int
8601main ()
8602{
8603
8604 ;
8605 return 0;
8606}
dcc2d6c2 8607_ACEOF
a3097628
AJ
8608rm -f conftest.$ac_objext conftest$ac_exeext
8609if { (ac_try="$ac_link"
0ebeb530
JW
8610case "(($ac_try" in
8611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612 *) ac_try_echo=$ac_try;;
8613esac
8614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 8615 (eval "$ac_link") 2>conftest.er1
dcc2d6c2
MM
8616 ac_status=$?
8617 grep -v '^ *+' conftest.er1 >conftest.err
8618 rm -f conftest.er1
8619 cat conftest.err >&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8621 (exit $ac_status); } && {
8622 test -z "$ac_c_werror_flag" ||
8623 test ! -s conftest.err
a3097628
AJ
8624 } && test -s conftest$ac_exeext &&
8625 $as_test_x conftest$ac_exeext; then
8626 eval "$as_ac_var=yes"
dcc2d6c2
MM
8627else
8628 echo "$as_me: failed program was:" >&5
8629sed 's/^/| /' conftest.$ac_ext >&5
8630
a3097628 8631 eval "$as_ac_var=no"
dcc2d6c2 8632fi
fc6ffb29 8633
a3097628
AJ
8634rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8635 conftest$ac_exeext conftest.$ac_ext
8636CFLAGS=$ac_wine_try_cflags_saved
dcc2d6c2 8637fi
a3097628 8638ac_res=`eval echo '${'$as_ac_var'}'`
fc6ffb29
AJ
8639 { echo "$as_me:$LINENO: result: $ac_res" >&5
8640echo "${ECHO_T}$ac_res" >&6; }
a3097628
AJ
8641if test `eval echo '${'$as_ac_var'}'` = yes; then
8642 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
8643 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
8644fi
dcc2d6c2 8645
dcc2d6c2
MM
8646fi
8647
2d6d4e96 8648
f4077ae5
TC
8649 { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
8650echo $ECHO_N "checking whether the compiler supports -Wl,--enable-new-dtags... $ECHO_C" >&6; }
8651if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653else
8654 ac_wine_try_cflags_saved=$CFLAGS
8655CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
8656cat >conftest.$ac_ext <<_ACEOF
8657/* confdefs.h. */
8658_ACEOF
8659cat confdefs.h >>conftest.$ac_ext
8660cat >>conftest.$ac_ext <<_ACEOF
8661/* end confdefs.h. */
8662
8663int
8664main ()
8665{
8666
8667 ;
8668 return 0;
8669}
8670_ACEOF
8671rm -f conftest.$ac_objext conftest$ac_exeext
8672if { (ac_try="$ac_link"
8673case "(($ac_try" in
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8676esac
8677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8678 (eval "$ac_link") 2>conftest.er1
8679 ac_status=$?
8680 grep -v '^ *+' conftest.er1 >conftest.err
8681 rm -f conftest.er1
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } && {
8685 test -z "$ac_c_werror_flag" ||
8686 test ! -s conftest.err
8687 } && test -s conftest$ac_exeext &&
8688 $as_test_x conftest$ac_exeext; then
8689 ac_cv_cflags__Wl___enable_new_dtags=yes
8690else
8691 echo "$as_me: failed program was:" >&5
8692sed 's/^/| /' conftest.$ac_ext >&5
8693
8694 ac_cv_cflags__Wl___enable_new_dtags=no
8695fi
8696
8697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8698 conftest$ac_exeext conftest.$ac_ext
8699CFLAGS=$ac_wine_try_cflags_saved
8700fi
8701{ echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
8702echo "${ECHO_T}$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
8703if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then
8704 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
8705fi
8706
8707
a3097628
AJ
8708 case $host_cpu in
8709 *i[3456789]86* | x86_64)
8710 { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
8711echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
8712if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
70adb8f5
MM
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8714else
a3097628
AJ
8715 ac_wine_try_cflags_saved=$CFLAGS
8716CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
70adb8f5
MM
8717cat >conftest.$ac_ext <<_ACEOF
8718/* confdefs.h. */
8719_ACEOF
8720cat confdefs.h >>conftest.$ac_ext
8721cat >>conftest.$ac_ext <<_ACEOF
8722/* end confdefs.h. */
8723
70adb8f5
MM
8724int
8725main ()
8726{
a3097628 8727
70adb8f5
MM
8728 ;
8729 return 0;
8730}
8731_ACEOF
8732rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
8733if { (ac_try="$ac_link"
8734case "(($ac_try" in
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8737esac
8738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_link") 2>conftest.er1
70adb8f5
MM
8740 ac_status=$?
8741 grep -v '^ *+' conftest.er1 >conftest.err
8742 rm -f conftest.er1
8743 cat conftest.err >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
8745 (exit $ac_status); } && {
8746 test -z "$ac_c_werror_flag" ||
8747 test ! -s conftest.err
8748 } && test -s conftest$ac_exeext &&
8749 $as_test_x conftest$ac_exeext; then
a3097628 8750 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
70adb8f5
MM
8751else
8752 echo "$as_me: failed program was:" >&5
8753sed 's/^/| /' conftest.$ac_ext >&5
8754
a3097628 8755 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
70adb8f5 8756fi
fc6ffb29 8757
f0ca586f 8758rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
70adb8f5 8759 conftest$ac_exeext conftest.$ac_ext
a3097628
AJ
8760CFLAGS=$ac_wine_try_cflags_saved
8761fi
8762{ echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
8763echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
8764if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
8765 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
70adb8f5 8766fi
70adb8f5 8767
a3097628
AJ
8768 ;;
8769 esac
70adb8f5 8770
a3097628
AJ
8771 else
8772 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
8773echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
8774if test "${ac_cv_c_dll_unixware+set}" = set; then
575d8944
GP
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8776else
a3097628
AJ
8777 ac_wine_try_cflags_saved=$CFLAGS
8778CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
575d8944 8779cat >conftest.$ac_ext <<_ACEOF
a3097628 8780void myfunc() {}
575d8944 8781_ACEOF
a3097628
AJ
8782rm -f conftest.$ac_objext conftest$ac_exeext
8783if { (ac_try="$ac_link"
8784case "(($ac_try" in
8785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786 *) ac_try_echo=$ac_try;;
8787esac
8788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789 (eval "$ac_link") 2>conftest.er1
8790 ac_status=$?
8791 grep -v '^ *+' conftest.er1 >conftest.err
8792 rm -f conftest.er1
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } && {
8796 test -z "$ac_c_werror_flag" ||
8797 test ! -s conftest.err
8798 } && test -s conftest$ac_exeext &&
8799 $as_test_x conftest$ac_exeext; then
8800 ac_cv_c_dll_unixware="yes"
8801else
8802 echo "$as_me: failed program was:" >&5
8803sed 's/^/| /' conftest.$ac_ext >&5
575d8944 8804
a3097628
AJ
8805 ac_cv_c_dll_unixware="no"
8806fi
8807
8808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8809 conftest$ac_exeext conftest.$ac_ext
8810CFLAGS=$ac_wine_try_cflags_saved
8811fi
8812{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
8813echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
8814 if test "$ac_cv_c_dll_unixware" = "yes"
8815 then
8816 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
8817 LDDLLFLAGS="-Wl,-G,-B,symbolic"
8818
8819 else
8820 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
8821echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
8822if test "${ac_cv_c_dll_hpux+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8824else
8825 ac_wine_try_cflags_saved=$CFLAGS
8826CFLAGS="$CFLAGS -shared"
8827cat >conftest.$ac_ext <<_ACEOF
8828void myfunc() {}
575d8944
GP
8829_ACEOF
8830rm -f conftest.$ac_objext conftest$ac_exeext
8831if { (ac_try="$ac_link"
8832case "(($ac_try" in
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8835esac
8836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837 (eval "$ac_link") 2>conftest.er1
8838 ac_status=$?
8839 grep -v '^ *+' conftest.er1 >conftest.err
8840 rm -f conftest.er1
8841 cat conftest.err >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } && {
8844 test -z "$ac_c_werror_flag" ||
8845 test ! -s conftest.err
8846 } && test -s conftest$ac_exeext &&
8847 $as_test_x conftest$ac_exeext; then
a3097628 8848 ac_cv_c_dll_hpux="yes"
575d8944
GP
8849else
8850 echo "$as_me: failed program was:" >&5
8851sed 's/^/| /' conftest.$ac_ext >&5
8852
a3097628 8853 ac_cv_c_dll_hpux="no"
575d8944
GP
8854fi
8855
8856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8857 conftest$ac_exeext conftest.$ac_ext
a3097628 8858CFLAGS=$ac_wine_try_cflags_saved
575d8944 8859fi
a3097628
AJ
8860{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
8861echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
8862 if test "$ac_cv_c_dll_hpux" = "yes"
8863 then
8864 LIBEXT="sl"
8865 DLLEXT=".sl"
8866 LDDLLFLAGS="-shared -fPIC"
8867 LDSHARED="\$(CC) -shared"
8868 fi
8869 fi
8870 fi
8871
8872 CROSSTEST=""
8873
8874 if test "$cross_compiling" = "no"
8875 then
cfd561f6 8876 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc
a3097628
AJ
8877do
8878 # Extract the first word of "$ac_prog", so it can be a program name with args.
8879set dummy $ac_prog; ac_word=$2
8880{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8882if test "${ac_cv_prog_CROSSCC+set}" = set; then
8883 echo $ECHO_N "(cached) $ECHO_C" >&6
575d8944 8884else
a3097628
AJ
8885 if test -n "$CROSSCC"; then
8886 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
8887else
8888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889for as_dir in $PATH
8890do
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8895 ac_cv_prog_CROSSCC="$ac_prog"
8896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8897 break 2
8898 fi
8899done
8900done
8901IFS=$as_save_IFS
8902
8903fi
8904fi
8905CROSSCC=$ac_cv_prog_CROSSCC
8906if test -n "$CROSSCC"; then
8907 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
8908echo "${ECHO_T}$CROSSCC" >&6; }
8909else
8910 { echo "$as_me:$LINENO: result: no" >&5
8911echo "${ECHO_T}no" >&6; }
575d8944
GP
8912fi
8913
8914
a3097628
AJ
8915 test -n "$CROSSCC" && break
8916done
8917test -n "$CROSSCC" || CROSSCC="false"
8918
cfd561f6 8919 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i686-mingw32-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool
a3097628
AJ
8920do
8921 # Extract the first word of "$ac_prog", so it can be a program name with args.
8922set dummy $ac_prog; ac_word=$2
8923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8925if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8926 echo $ECHO_N "(cached) $ECHO_C" >&6
8927else
8928 if test -n "$DLLTOOL"; then
8929 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8930else
8931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932for as_dir in $PATH
8933do
8934 IFS=$as_save_IFS
8935 test -z "$as_dir" && as_dir=.
8936 for ac_exec_ext in '' $ac_executable_extensions; do
8937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8938 ac_cv_prog_DLLTOOL="$ac_prog"
8939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8940 break 2
8941 fi
8942done
8943done
8944IFS=$as_save_IFS
8945
8946fi
8947fi
8948DLLTOOL=$ac_cv_prog_DLLTOOL
8949if test -n "$DLLTOOL"; then
8950 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8951echo "${ECHO_T}$DLLTOOL" >&6; }
8952else
8953 { echo "$as_me:$LINENO: result: no" >&5
8954echo "${ECHO_T}no" >&6; }
70adb8f5
MM
8955fi
8956
a3097628
AJ
8957
8958 test -n "$DLLTOOL" && break
8959done
8960test -n "$DLLTOOL" || DLLTOOL="false"
8961
cfd561f6 8962 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i686-mingw32-windres i386-mingw32-windres mingw32-windres mingw-windres
a3097628
AJ
8963do
8964 # Extract the first word of "$ac_prog", so it can be a program name with args.
8965set dummy $ac_prog; ac_word=$2
8966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8968if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8970else
8971 if test -n "$CROSSWINDRES"; then
8972 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
8973else
8974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975for as_dir in $PATH
8976do
8977 IFS=$as_save_IFS
8978 test -z "$as_dir" && as_dir=.
8979 for ac_exec_ext in '' $ac_executable_extensions; do
8980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8981 ac_cv_prog_CROSSWINDRES="$ac_prog"
8982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 break 2
8984 fi
8985done
8986done
8987IFS=$as_save_IFS
8988
8989fi
8990fi
8991CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
8992if test -n "$CROSSWINDRES"; then
8993 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
8994echo "${ECHO_T}$CROSSWINDRES" >&6; }
8995else
8996 { echo "$as_me:$LINENO: result: no" >&5
8997echo "${ECHO_T}no" >&6; }
f3719a88
MM
8998fi
8999
a3097628
AJ
9000
9001 test -n "$CROSSWINDRES" && break
f3719a88 9002done
a3097628 9003test -n "$CROSSWINDRES" || CROSSWINDRES="false"
f3719a88 9004
cfd561f6 9005 for ac_prog in i586-mingw32msvc-ar i386-mingw32msvc-ar i686-mingw32-ar i386-mingw32-ar mingw32-ar mingw-ar
a3097628
AJ
9006do
9007 # Extract the first word of "$ac_prog", so it can be a program name with args.
9008set dummy $ac_prog; ac_word=$2
9009{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9011if test "${ac_cv_prog_MINGWAR+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9013else
9014 if test -n "$MINGWAR"; then
9015 ac_cv_prog_MINGWAR="$MINGWAR" # Let the user override the test.
9016else
9017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9018for as_dir in $PATH
9019do
9020 IFS=$as_save_IFS
9021 test -z "$as_dir" && as_dir=.
9022 for ac_exec_ext in '' $ac_executable_extensions; do
9023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9024 ac_cv_prog_MINGWAR="$ac_prog"
9025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9026 break 2
9027 fi
9028done
9029done
9030IFS=$as_save_IFS
2d6d4e96 9031
a3097628
AJ
9032fi
9033fi
9034MINGWAR=$ac_cv_prog_MINGWAR
9035if test -n "$MINGWAR"; then
9036 { echo "$as_me:$LINENO: result: $MINGWAR" >&5
9037echo "${ECHO_T}$MINGWAR" >&6; }
2d6d4e96 9038else
a3097628
AJ
9039 { echo "$as_me:$LINENO: result: no" >&5
9040echo "${ECHO_T}no" >&6; }
2d6d4e96 9041fi
f3719a88
MM
9042
9043
a3097628
AJ
9044 test -n "$MINGWAR" && break
9045done
9046test -n "$MINGWAR" || MINGWAR="false"
2d6d4e96 9047
a3097628
AJ
9048 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
9049 fi
9050 ;;
9051esac
2d6d4e96 9052
a3097628
AJ
9053if test "$LIBEXT" = "a"; then
9054 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
9055It is currently not possible to build Wine without shared library
9056(.so) support to allow transparent switch between .so and .dll files.
9057If you are using Linux, you will need a newer binutils.
9058" >&5
9059echo "$as_me: error: could not find a way to build shared libraries.
9060It is currently not possible to build Wine without shared library
9061(.so) support to allow transparent switch between .so and .dll files.
9062If you are using Linux, you will need a newer binutils.
9063" >&2;}
9064 { (exit 1); exit 1; }; }
9065fi
2d6d4e96 9066
2d6d4e96 9067
a3097628 9068if test "$have_x" = "yes"
2d6d4e96 9069then
a3097628
AJ
9070 XLIB="-lXext -lX11"
9071 ac_save_CPPFLAGS="$CPPFLAGS"
9072 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2d6d4e96 9073
a851854a
AJ
9074 { echo "$as_me:$LINENO: checking for -lX11" >&5
9075echo $ECHO_N "checking for -lX11... $ECHO_C" >&6; }
9076if test "${ac_cv_lib_soname_X11+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9078else
9079 ac_check_soname_save_LIBS=$LIBS
9080LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
9081 cat >conftest.$ac_ext <<_ACEOF
9082/* confdefs.h. */
9083_ACEOF
9084cat confdefs.h >>conftest.$ac_ext
9085cat >>conftest.$ac_ext <<_ACEOF
9086/* end confdefs.h. */
9087
9088/* Override any GCC internal prototype to avoid an error.
9089 Use char because int might match the return type of a GCC
9090 builtin and then its argument prototype would still apply. */
9091#ifdef __cplusplus
9092extern "C"
9093#endif
9094char XCreateWindow ();
9095int
9096main ()
9097{
9098return XCreateWindow ();
9099 ;
9100 return 0;
9101}
9102_ACEOF
9103rm -f conftest.$ac_objext conftest$ac_exeext
9104if { (ac_try="$ac_link"
9105case "(($ac_try" in
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9108esac
9109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110 (eval "$ac_link") 2>conftest.er1
9111 ac_status=$?
9112 grep -v '^ *+' conftest.er1 >conftest.err
9113 rm -f conftest.er1
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } && {
9117 test -z "$ac_c_werror_flag" ||
9118 test ! -s conftest.err
9119 } && test -s conftest$ac_exeext &&
9120 $as_test_x conftest$ac_exeext; then
9121 case "$LIBEXT" in
9122 dll) ;;
9123 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'` ;;
9124 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9125 esac
9126else
9127 echo "$as_me: failed program was:" >&5
9128sed 's/^/| /' conftest.$ac_ext >&5
9129
9130
9131fi
9132
9133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9134 conftest$ac_exeext conftest.$ac_ext
9135 LIBS=$ac_check_soname_save_LIBS
9136fi
9137if test "x$ac_cv_lib_soname_X11" = "x"; then
9138 { echo "$as_me:$LINENO: result: not found" >&5
9139echo "${ECHO_T}not found" >&6; }
9140
9141else
9142 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
9143echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
9144
9145cat >>confdefs.h <<_ACEOF
9146#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
9147_ACEOF
9148
9149
9150fi
9151
9152 { echo "$as_me:$LINENO: checking for -lXext" >&5
9153echo $ECHO_N "checking for -lXext... $ECHO_C" >&6; }
9154if test "${ac_cv_lib_soname_Xext+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9156else
9157 ac_check_soname_save_LIBS=$LIBS
9158LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9159 cat >conftest.$ac_ext <<_ACEOF
9160/* confdefs.h. */
9161_ACEOF
9162cat confdefs.h >>conftest.$ac_ext
9163cat >>conftest.$ac_ext <<_ACEOF
9164/* end confdefs.h. */
9165
9166/* Override any GCC internal prototype to avoid an error.
9167 Use char because int might match the return type of a GCC
9168 builtin and then its argument prototype would still apply. */
9169#ifdef __cplusplus
9170extern "C"
9171#endif
9172char XextCreateExtension ();
9173int
9174main ()
9175{
9176return XextCreateExtension ();
9177 ;
9178 return 0;
9179}
9180_ACEOF
9181rm -f conftest.$ac_objext conftest$ac_exeext
9182if { (ac_try="$ac_link"
9183case "(($ac_try" in
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9186esac
9187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188 (eval "$ac_link") 2>conftest.er1
9189 ac_status=$?
9190 grep -v '^ *+' conftest.er1 >conftest.err
9191 rm -f conftest.er1
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } && {
9195 test -z "$ac_c_werror_flag" ||
9196 test ! -s conftest.err
9197 } && test -s conftest$ac_exeext &&
9198 $as_test_x conftest$ac_exeext; then
9199 case "$LIBEXT" in
9200 dll) ;;
9201 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'` ;;
9202 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9203 esac
9204else
9205 echo "$as_me: failed program was:" >&5
9206sed 's/^/| /' conftest.$ac_ext >&5
9207
9208
9209fi
9210
9211rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9212 conftest$ac_exeext conftest.$ac_ext
9213 LIBS=$ac_check_soname_save_LIBS
9214fi
9215if test "x$ac_cv_lib_soname_Xext" = "x"; then
9216 { echo "$as_me:$LINENO: result: not found" >&5
9217echo "${ECHO_T}not found" >&6; }
9218
9219else
9220 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
9221echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
9222
9223cat >>confdefs.h <<_ACEOF
9224#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
9225_ACEOF
9226
9227
9228fi
9229
9230
a3097628
AJ
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
42584658 9242
a3097628
AJ
9243for ac_header in X11/Xlib.h \
9244 X11/XKBlib.h \
9245 X11/Xutil.h \
9246 X11/Xcursor/Xcursor.h \
9247 X11/extensions/shape.h \
9248 X11/extensions/XInput.h \
9249 X11/extensions/XShm.h \
42584658 9250 X11/extensions/Xcomposite.h \
a3097628
AJ
9251 X11/extensions/Xinerama.h \
9252 X11/extensions/Xrandr.h \
9253 X11/extensions/Xrender.h \
9254 X11/extensions/xf86vmode.h
f3719a88 9255do
a3097628
AJ
9256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9257{ echo "$as_me:$LINENO: checking for $ac_header" >&5
fc6ffb29
AJ
9258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f3719a88 9260 echo $ECHO_N "(cached) $ECHO_C" >&6
f3719a88 9261else
a3097628 9262 cat >conftest.$ac_ext <<_ACEOF
f3719a88
MM
9263/* confdefs.h. */
9264_ACEOF
9265cat confdefs.h >>conftest.$ac_ext
9266cat >>conftest.$ac_ext <<_ACEOF
9267/* end confdefs.h. */
a3097628
AJ
9268#ifdef HAVE_X11_XLIB_H
9269# include <X11/Xlib.h>
9270#endif
9271#ifdef HAVE_X11_XUTIL_H
9272# include <X11/Xutil.h>
9273#endif
9274
f3719a88
MM
9275#include <$ac_header>
9276_ACEOF
9277rm -f conftest.$ac_objext
0ebeb530
JW
9278if { (ac_try="$ac_compile"
9279case "(($ac_try" in
9280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281 *) ac_try_echo=$ac_try;;
9282esac
9283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284 (eval "$ac_compile") 2>conftest.er1
f3719a88
MM
9285 ac_status=$?
9286 grep -v '^ *+' conftest.er1 >conftest.err
9287 rm -f conftest.er1
9288 cat conftest.err >&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
9290 (exit $ac_status); } && {
9291 test -z "$ac_c_werror_flag" ||
9292 test ! -s conftest.err
9293 } && test -s conftest.$ac_objext; then
a3097628 9294 eval "$as_ac_Header=yes"
f3719a88
MM
9295else
9296 echo "$as_me: failed program was:" >&5
9297sed 's/^/| /' conftest.$ac_ext >&5
9298
a3097628 9299 eval "$as_ac_Header=no"
f3719a88 9300fi
fc6ffb29 9301
0ebeb530 9302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f3719a88 9303fi
fc6ffb29
AJ
9304ac_res=`eval echo '${'$as_ac_Header'}'`
9305 { echo "$as_me:$LINENO: result: $ac_res" >&5
9306echo "${ECHO_T}$ac_res" >&6; }
f3719a88
MM
9307if test `eval echo '${'$as_ac_Header'}'` = yes; then
9308 cat >>confdefs.h <<_ACEOF
9309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9310_ACEOF
a3097628
AJ
9311
9312fi
9313
9314done
9315
9316
9317 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9318 then
9319 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
9320echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
9321if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
f3719a88
MM
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9323else
9324 ac_check_lib_save_LIBS=$LIBS
a3097628 9325LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
f3719a88
MM
9326cat >conftest.$ac_ext <<_ACEOF
9327/* confdefs.h. */
9328_ACEOF
9329cat confdefs.h >>conftest.$ac_ext
9330cat >>conftest.$ac_ext <<_ACEOF
9331/* end confdefs.h. */
9332
fc6ffb29
AJ
9333/* Override any GCC internal prototype to avoid an error.
9334 Use char because int might match the return type of a GCC
9335 builtin and then its argument prototype would still apply. */
f3719a88
MM
9336#ifdef __cplusplus
9337extern "C"
9338#endif
a3097628 9339char XkbQueryExtension ();
f3719a88
MM
9340int
9341main ()
9342{
a3097628 9343return XkbQueryExtension ();
f3719a88
MM
9344 ;
9345 return 0;
9346}
9347_ACEOF
9348rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
9349if { (ac_try="$ac_link"
9350case "(($ac_try" in
9351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352 *) ac_try_echo=$ac_try;;
9353esac
9354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9355 (eval "$ac_link") 2>conftest.er1
f3719a88
MM
9356 ac_status=$?
9357 grep -v '^ *+' conftest.er1 >conftest.err
9358 rm -f conftest.er1
9359 cat conftest.err >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
9361 (exit $ac_status); } && {
9362 test -z "$ac_c_werror_flag" ||
9363 test ! -s conftest.err
9364 } && test -s conftest$ac_exeext &&
9365 $as_test_x conftest$ac_exeext; then
a3097628 9366 ac_cv_lib_X11_XkbQueryExtension=yes
f3719a88
MM
9367else
9368 echo "$as_me: failed program was:" >&5
9369sed 's/^/| /' conftest.$ac_ext >&5
9370
a3097628 9371 ac_cv_lib_X11_XkbQueryExtension=no
f3719a88 9372fi
fc6ffb29 9373
f0ca586f 9374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
f3719a88
MM
9375 conftest$ac_exeext conftest.$ac_ext
9376LIBS=$ac_check_lib_save_LIBS
9377fi
a3097628
AJ
9378{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9379echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
9380if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
f3719a88
MM
9381
9382cat >>confdefs.h <<\_ACEOF
a3097628 9383#define HAVE_XKB 1
f3719a88
MM
9384_ACEOF
9385
19a988a2
AJ
9386fi
9387
9388 fi
9389
9390 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
9391 then
9392 { echo "$as_me:$LINENO: checking for -lXcursor" >&5
9393echo $ECHO_N "checking for -lXcursor... $ECHO_C" >&6; }
9394if test "${ac_cv_lib_soname_Xcursor+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9396else
9397 ac_check_soname_save_LIBS=$LIBS
9398LIBS="-lXcursor $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9399 cat >conftest.$ac_ext <<_ACEOF
9400/* confdefs.h. */
9401_ACEOF
9402cat confdefs.h >>conftest.$ac_ext
9403cat >>conftest.$ac_ext <<_ACEOF
9404/* end confdefs.h. */
9405
9406/* Override any GCC internal prototype to avoid an error.
9407 Use char because int might match the return type of a GCC
9408 builtin and then its argument prototype would still apply. */
9409#ifdef __cplusplus
9410extern "C"
9411#endif
9412char XcursorImageLoadCursor ();
9413int
9414main ()
9415{
9416return XcursorImageLoadCursor ();
9417 ;
9418 return 0;
9419}
9420_ACEOF
9421rm -f conftest.$ac_objext conftest$ac_exeext
9422if { (ac_try="$ac_link"
9423case "(($ac_try" in
9424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9426esac
9427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428 (eval "$ac_link") 2>conftest.er1
9429 ac_status=$?
9430 grep -v '^ *+' conftest.er1 >conftest.err
9431 rm -f conftest.er1
9432 cat conftest.err >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); } && {
9435 test -z "$ac_c_werror_flag" ||
9436 test ! -s conftest.err
9437 } && test -s conftest$ac_exeext &&
9438 $as_test_x conftest$ac_exeext; then
9439 case "$LIBEXT" in
9440 dll) ;;
9441 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'` ;;
9442 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9443 esac
9444else
9445 echo "$as_me: failed program was:" >&5
9446sed 's/^/| /' conftest.$ac_ext >&5
9447
9448
9449fi
9450
9451rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9452 conftest$ac_exeext conftest.$ac_ext
9453 LIBS=$ac_check_soname_save_LIBS
9454fi
9455if test "x$ac_cv_lib_soname_Xcursor" = "x"; then
9456 { echo "$as_me:$LINENO: result: not found" >&5
9457echo "${ECHO_T}not found" >&6; }
9458
9459else
9460 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xcursor" >&5
9461echo "${ECHO_T}$ac_cv_lib_soname_Xcursor" >&6; }
9462
9463cat >>confdefs.h <<_ACEOF
9464#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
9465_ACEOF
9466
9467
d68d4335
AJ
9468fi
9469
9470 fi
9471
9472 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
9473 then
9474 { echo "$as_me:$LINENO: checking for -lXi" >&5
9475echo $ECHO_N "checking for -lXi... $ECHO_C" >&6; }
9476if test "${ac_cv_lib_soname_Xi+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9478else
9479 ac_check_soname_save_LIBS=$LIBS
9480LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9481 cat >conftest.$ac_ext <<_ACEOF
9482/* confdefs.h. */
9483_ACEOF
9484cat confdefs.h >>conftest.$ac_ext
9485cat >>conftest.$ac_ext <<_ACEOF
9486/* end confdefs.h. */
9487
9488/* Override any GCC internal prototype to avoid an error.
9489 Use char because int might match the return type of a GCC
9490 builtin and then its argument prototype would still apply. */
9491#ifdef __cplusplus
9492extern "C"
9493#endif
9494char XOpenDevice ();
9495int
9496main ()
9497{
9498return XOpenDevice ();
9499 ;
9500 return 0;
9501}
9502_ACEOF
9503rm -f conftest.$ac_objext conftest$ac_exeext
9504if { (ac_try="$ac_link"
9505case "(($ac_try" in
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9508esac
9509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510 (eval "$ac_link") 2>conftest.er1
9511 ac_status=$?
9512 grep -v '^ *+' conftest.er1 >conftest.err
9513 rm -f conftest.er1
9514 cat conftest.err >&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } && {
9517 test -z "$ac_c_werror_flag" ||
9518 test ! -s conftest.err
9519 } && test -s conftest$ac_exeext &&
9520 $as_test_x conftest$ac_exeext; then
9521 case "$LIBEXT" in
9522 dll) ;;
9523 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'` ;;
9524 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9525 esac
9526else
9527 echo "$as_me: failed program was:" >&5
9528sed 's/^/| /' conftest.$ac_ext >&5
9529
9530
9531fi
9532
9533rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9534 conftest$ac_exeext conftest.$ac_ext
9535 LIBS=$ac_check_soname_save_LIBS
9536fi
9537if test "x$ac_cv_lib_soname_Xi" = "x"; then
9538 { echo "$as_me:$LINENO: result: not found" >&5
9539echo "${ECHO_T}not found" >&6; }
9540
9541else
9542 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
9543echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
9544
9545cat >>confdefs.h <<_ACEOF
9546#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
9547_ACEOF
9548
9549
90c75bdd 9550fi
dcc2d6c2 9551
a3097628
AJ
9552 fi
9553
9554 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9555 then
9556 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
9557echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
9558if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
daa2886c 9559 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c 9560else
73482144 9561 ac_check_lib_save_LIBS=$LIBS
a3097628 9562LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
daa2886c 9563cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
9564/* confdefs.h. */
9565_ACEOF
9566cat confdefs.h >>conftest.$ac_ext
9567cat >>conftest.$ac_ext <<_ACEOF
9568/* end confdefs.h. */
73482144 9569
fc6ffb29
AJ
9570/* Override any GCC internal prototype to avoid an error.
9571 Use char because int might match the return type of a GCC
9572 builtin and then its argument prototype would still apply. */
73482144
AJ
9573#ifdef __cplusplus
9574extern "C"
9575#endif
a3097628 9576char XShmQueryExtension ();
73482144
AJ
9577int
9578main ()
9579{
a3097628 9580return XShmQueryExtension ();
73482144
AJ
9581 ;
9582 return 0;
9583}
daa2886c 9584_ACEOF
73482144 9585rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
9586if { (ac_try="$ac_link"
9587case "(($ac_try" in
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9590esac
9591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_link") 2>conftest.er1
daa2886c 9593 ac_status=$?
875927f6
AJ
9594 grep -v '^ *+' conftest.er1 >conftest.err
9595 rm -f conftest.er1
9596 cat conftest.err >&5
daa2886c 9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
9598 (exit $ac_status); } && {
9599 test -z "$ac_c_werror_flag" ||
9600 test ! -s conftest.err
9601 } && test -s conftest$ac_exeext &&
9602 $as_test_x conftest$ac_exeext; then
a3097628 9603 ac_cv_lib_Xext_XShmQueryExtension=yes
daa2886c
AJ
9604else
9605 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9606sed 's/^/| /' conftest.$ac_ext >&5
9607
a3097628 9608 ac_cv_lib_Xext_XShmQueryExtension=no
24110288 9609fi
fc6ffb29 9610
f0ca586f 9611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73482144
AJ
9612 conftest$ac_exeext conftest.$ac_ext
9613LIBS=$ac_check_lib_save_LIBS
9614fi
a3097628
AJ
9615{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9616echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
9617if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
24110288 9618
73482144 9619cat >>confdefs.h <<\_ACEOF
a3097628 9620#define HAVE_LIBXXSHM 1
73482144
AJ
9621_ACEOF
9622
6a530aba
LZ
9623fi
9624
a3097628 9625 fi
f9dec94f
AJ
9626 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then
9627 wine_notices="$wine_notices|XShm development files not found.
9628Wine will be built without XShm support. (winex11.drv)"
9629fi
9630
a3097628
AJ
9631
9632 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9633 then
9634 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9635echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
9636if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
6a530aba
LZ
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638else
9639 ac_check_lib_save_LIBS=$LIBS
a3097628 9640LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
6a530aba
LZ
9641cat >conftest.$ac_ext <<_ACEOF
9642/* confdefs.h. */
9643_ACEOF
9644cat confdefs.h >>conftest.$ac_ext
9645cat >>conftest.$ac_ext <<_ACEOF
9646/* end confdefs.h. */
9647
9648/* Override any GCC internal prototype to avoid an error.
9649 Use char because int might match the return type of a GCC
9650 builtin and then its argument prototype would still apply. */
9651#ifdef __cplusplus
9652extern "C"
9653#endif
a3097628 9654char XShapeQueryExtension ();
6a530aba
LZ
9655int
9656main ()
9657{
a3097628 9658return XShapeQueryExtension ();
6a530aba
LZ
9659 ;
9660 return 0;
9661}
9662_ACEOF
9663rm -f conftest.$ac_objext conftest$ac_exeext
9664if { (ac_try="$ac_link"
9665case "(($ac_try" in
9666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667 *) ac_try_echo=$ac_try;;
9668esac
9669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670 (eval "$ac_link") 2>conftest.er1
9671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
9676 (exit $ac_status); } && {
9677 test -z "$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 } && test -s conftest$ac_exeext &&
9680 $as_test_x conftest$ac_exeext; then
a3097628 9681 ac_cv_lib_Xext_XShapeQueryExtension=yes
6a530aba
LZ
9682else
9683 echo "$as_me: failed program was:" >&5
9684sed 's/^/| /' conftest.$ac_ext >&5
9685
a3097628 9686 ac_cv_lib_Xext_XShapeQueryExtension=no
6a530aba
LZ
9687fi
9688
9689rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9690 conftest$ac_exeext conftest.$ac_ext
9691LIBS=$ac_check_lib_save_LIBS
9692fi
a3097628
AJ
9693{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9694echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9695if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
fc6ffb29 9696
a3097628
AJ
9697cat >>confdefs.h <<\_ACEOF
9698#define HAVE_LIBXSHAPE 1
2d6d4e96 9699_ACEOF
a3097628
AJ
9700
9701fi
9702
9703 fi
f9dec94f
AJ
9704 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then
9705 wine_notices="$wine_notices|XShape development files not found.
9706Wine will be built without XShape support. (winex11.drv)"
9707fi
9708
a3097628
AJ
9709
9710 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9711 then
9712 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9713echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
9714if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
2d6d4e96
HL
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716else
9717 ac_check_lib_save_LIBS=$LIBS
a3097628 9718LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
2d6d4e96
HL
9719cat >conftest.$ac_ext <<_ACEOF
9720/* confdefs.h. */
9721_ACEOF
9722cat confdefs.h >>conftest.$ac_ext
9723cat >>conftest.$ac_ext <<_ACEOF
9724/* end confdefs.h. */
9725
fc6ffb29
AJ
9726/* Override any GCC internal prototype to avoid an error.
9727 Use char because int might match the return type of a GCC
9728 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
9729#ifdef __cplusplus
9730extern "C"
9731#endif
a3097628 9732char XF86VidModeQueryExtension ();
2d6d4e96
HL
9733int
9734main ()
9735{
a3097628 9736return XF86VidModeQueryExtension ();
2d6d4e96
HL
9737 ;
9738 return 0;
9739}
9740_ACEOF
9741rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
9742if { (ac_try="$ac_link"
9743case "(($ac_try" in
9744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745 *) ac_try_echo=$ac_try;;
9746esac
9747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
9749 ac_status=$?
9750 grep -v '^ *+' conftest.er1 >conftest.err
9751 rm -f conftest.er1
9752 cat conftest.err >&5
9753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
9754 (exit $ac_status); } && {
9755 test -z "$ac_c_werror_flag" ||
9756 test ! -s conftest.err
9757 } && test -s conftest$ac_exeext &&
9758 $as_test_x conftest$ac_exeext; then
a3097628 9759 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
2d6d4e96
HL
9760else
9761 echo "$as_me: failed program was:" >&5
9762sed 's/^/| /' conftest.$ac_ext >&5
9763
a3097628 9764 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
2d6d4e96 9765fi
fc6ffb29 9766
f0ca586f 9767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2d6d4e96
HL
9768 conftest$ac_exeext conftest.$ac_ext
9769LIBS=$ac_check_lib_save_LIBS
9770fi
a3097628
AJ
9771{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9772echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
9773if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
2d6d4e96
HL
9774
9775cat >>confdefs.h <<\_ACEOF
a3097628 9776#define HAVE_LIBXXF86VM 1
2d6d4e96
HL
9777_ACEOF
9778
a3097628 9779 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
2d6d4e96 9780
00068989
AJ
9781fi
9782
a3097628 9783 fi
f9dec94f
AJ
9784 if test "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" != "yes"; then
9785 wine_notices="$wine_notices|Xxf86vm development files not found.
9786Wine will be built without XF86 Vidmode support. (winex11.drv)"
9787fi
9788
00068989 9789
a851854a 9790 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 9791 then
629639ee
AJ
9792 { echo "$as_me:$LINENO: checking for -lXrender" >&5
9793echo $ECHO_N "checking for -lXrender... $ECHO_C" >&6; }
9794if test "${ac_cv_lib_soname_Xrender+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9796else
9797 ac_check_soname_save_LIBS=$LIBS
9798LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9799 cat >conftest.$ac_ext <<_ACEOF
00068989
AJ
9800/* confdefs.h. */
9801_ACEOF
9802cat confdefs.h >>conftest.$ac_ext
9803cat >>conftest.$ac_ext <<_ACEOF
9804/* end confdefs.h. */
629639ee
AJ
9805
9806/* Override any GCC internal prototype to avoid an error.
9807 Use char because int might match the return type of a GCC
9808 builtin and then its argument prototype would still apply. */
9809#ifdef __cplusplus
9810extern "C"
9811#endif
9812char XRenderQueryExtension ();
a3097628
AJ
9813int
9814main ()
9815{
629639ee 9816return XRenderQueryExtension ();
a3097628
AJ
9817 ;
9818 return 0;
9819}
00068989 9820_ACEOF
629639ee
AJ
9821rm -f conftest.$ac_objext conftest$ac_exeext
9822if { (ac_try="$ac_link"
0ebeb530
JW
9823case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826esac
9827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
629639ee 9828 (eval "$ac_link") 2>conftest.er1
00068989
AJ
9829 ac_status=$?
9830 grep -v '^ *+' conftest.er1 >conftest.err
9831 rm -f conftest.er1
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
9834 (exit $ac_status); } && {
9835 test -z "$ac_c_werror_flag" ||
9836 test ! -s conftest.err
629639ee
AJ
9837 } && test -s conftest$ac_exeext &&
9838 $as_test_x conftest$ac_exeext; then
9839 case "$LIBEXT" in
9840 dll) ;;
9841 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'` ;;
9842 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9843 esac
9844else
9845 echo "$as_me: failed program was:" >&5
9846sed 's/^/| /' conftest.$ac_ext >&5
9847
9848
9849fi
9850
9851rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9852 conftest$ac_exeext conftest.$ac_ext
9853 LIBS=$ac_check_soname_save_LIBS
9854fi
9855if test "x$ac_cv_lib_soname_Xrender" = "x"; then
9856 { echo "$as_me:$LINENO: result: not found" >&5
9857echo "${ECHO_T}not found" >&6; }
9858
9859else
9860 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
9861echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
9862
9863cat >>confdefs.h <<_ACEOF
9864#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
9865_ACEOF
9866
9867 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9868echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
9869if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
af928ecb
AJ
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9871else
629639ee
AJ
9872 ac_check_lib_save_LIBS=$LIBS
9873LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9874cat >conftest.$ac_ext <<_ACEOF
af928ecb
AJ
9875/* confdefs.h. */
9876_ACEOF
9877cat confdefs.h >>conftest.$ac_ext
9878cat >>conftest.$ac_ext <<_ACEOF
9879/* end confdefs.h. */
a3097628 9880
af928ecb
AJ
9881/* Override any GCC internal prototype to avoid an error.
9882 Use char because int might match the return type of a GCC
9883 builtin and then its argument prototype would still apply. */
9884#ifdef __cplusplus
9885extern "C"
9886#endif
629639ee 9887char XRenderSetPictureTransform ();
af928ecb
AJ
9888int
9889main ()
9890{
629639ee 9891return XRenderSetPictureTransform ();
af928ecb
AJ
9892 ;
9893 return 0;
9894}
9895_ACEOF
9896rm -f conftest.$ac_objext conftest$ac_exeext
9897if { (ac_try="$ac_link"
9898case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9901esac
9902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_link") 2>conftest.er1
9904 ac_status=$?
9905 grep -v '^ *+' conftest.er1 >conftest.err
9906 rm -f conftest.er1
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } && {
9910 test -z "$ac_c_werror_flag" ||
9911 test ! -s conftest.err
9912 } && test -s conftest$ac_exeext &&
9913 $as_test_x conftest$ac_exeext; then
629639ee 9914 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
af928ecb
AJ
9915else
9916 echo "$as_me: failed program was:" >&5
9917sed 's/^/| /' conftest.$ac_ext >&5
9918
629639ee 9919 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
af928ecb
AJ
9920fi
9921
9922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9923 conftest$ac_exeext conftest.$ac_ext
629639ee 9924LIBS=$ac_check_lib_save_LIBS
af928ecb 9925fi
629639ee
AJ
9926{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9927echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
9928if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
af928ecb 9929
629639ee
AJ
9930cat >>confdefs.h <<\_ACEOF
9931#define HAVE_XRENDERSETPICTURETRANSFORM 1
a3097628
AJ
9932_ACEOF
9933
af928ecb
AJ
9934fi
9935
00068989 9936fi
fc6ffb29 9937
629639ee 9938
a3097628 9939 fi
f9dec94f
AJ
9940 if test "x$ac_cv_lib_soname_Xrender" = "x"; then
9941 wine_notices="$wine_notices|XRender development files not found.
9942Wine will be built without XRender support. (winex11.drv)"
9943fi
9944
00068989 9945
629639ee 9946 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
a3097628 9947 then
629639ee
AJ
9948 cat >conftest.$ac_ext <<_ACEOF
9949/* confdefs.h. */
9950_ACEOF
9951cat confdefs.h >>conftest.$ac_ext
9952cat >>conftest.$ac_ext <<_ACEOF
9953/* end confdefs.h. */
9954#include <X11/Xlib.h>
9955#include <X11/extensions/Xrandr.h>
9956int
9957main ()
9958{
9959static typeof(XRRSetScreenConfigAndRate) * func;
9960 ;
9961 return 0;
9962}
9963_ACEOF
9964rm -f conftest.$ac_objext
9965if { (ac_try="$ac_compile"
9966case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_compile") 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_c_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest.$ac_objext; then
9981 { echo "$as_me:$LINENO: checking for -lXrandr" >&5
9982echo $ECHO_N "checking for -lXrandr... $ECHO_C" >&6; }
9983if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
a3097628
AJ
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9985else
629639ee
AJ
9986 ac_check_soname_save_LIBS=$LIBS
9987LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9988 cat >conftest.$ac_ext <<_ACEOF
00068989
AJ
9989/* confdefs.h. */
9990_ACEOF
9991cat confdefs.h >>conftest.$ac_ext
9992cat >>conftest.$ac_ext <<_ACEOF
9993/* end confdefs.h. */
a3097628
AJ
9994
9995/* Override any GCC internal prototype to avoid an error.
9996 Use char because int might match the return type of a GCC
9997 builtin and then its argument prototype would still apply. */
9998#ifdef __cplusplus
9999extern "C"
10000#endif
629639ee 10001char XRRQueryExtension ();
a3097628
AJ
10002int
10003main ()
10004{
629639ee 10005return XRRQueryExtension ();
a3097628
AJ
10006 ;
10007 return 0;
10008}
00068989 10009_ACEOF
a3097628
AJ
10010rm -f conftest.$ac_objext conftest$ac_exeext
10011if { (ac_try="$ac_link"
0ebeb530
JW
10012case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10015esac
10016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 10017 (eval "$ac_link") 2>conftest.er1
00068989
AJ
10018 ac_status=$?
10019 grep -v '^ *+' conftest.er1 >conftest.err
10020 rm -f conftest.er1
10021 cat conftest.err >&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
10023 (exit $ac_status); } && {
10024 test -z "$ac_c_werror_flag" ||
dc9f3843 10025 test ! -s conftest.err
a3097628
AJ
10026 } && test -s conftest$ac_exeext &&
10027 $as_test_x conftest$ac_exeext; then
629639ee
AJ
10028 case "$LIBEXT" in
10029 dll) ;;
10030 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'` ;;
10031 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10032 esac
00068989
AJ
10033else
10034 echo "$as_me: failed program was:" >&5
10035sed 's/^/| /' conftest.$ac_ext >&5
10036
629639ee 10037
00068989 10038fi
fc6ffb29 10039
a3097628
AJ
10040rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10041 conftest$ac_exeext conftest.$ac_ext
629639ee 10042 LIBS=$ac_check_soname_save_LIBS
00068989 10043fi
629639ee
AJ
10044if test "x$ac_cv_lib_soname_Xrandr" = "x"; then
10045 { echo "$as_me:$LINENO: result: not found" >&5
10046echo "${ECHO_T}not found" >&6; }
00068989 10047
629639ee
AJ
10048else
10049 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
10050echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
10051
10052cat >>confdefs.h <<_ACEOF
10053#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
00068989 10054_ACEOF
b18b9f37 10055
629639ee 10056
b18b9f37
AJ
10057fi
10058
629639ee
AJ
10059else
10060 echo "$as_me: failed program was:" >&5
10061sed 's/^/| /' conftest.$ac_ext >&5
10062
10063
10064fi
10065
10066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a3097628 10067 fi
f9dec94f
AJ
10068 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then
10069 wine_notices="$wine_notices|XRandr development files not found.
10070Wine will be built without XRandr support. (winex11.drv)"
10071fi
10072
b18b9f37 10073
a3097628
AJ
10074 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
10075 then
10076 cat >conftest.$ac_ext <<_ACEOF
00068989
AJ
10077/* confdefs.h. */
10078_ACEOF
10079cat confdefs.h >>conftest.$ac_ext
10080cat >>conftest.$ac_ext <<_ACEOF
10081/* end confdefs.h. */
a3097628
AJ
10082#include <X11/Xlib.h>
10083#include <X11/extensions/Xinerama.h>
00068989
AJ
10084int
10085main ()
10086{
a3097628 10087static typeof(XineramaQueryScreens) * func;
00068989
AJ
10088 ;
10089 return 0;
10090}
10091_ACEOF
a3097628
AJ
10092rm -f conftest.$ac_objext
10093if { (ac_try="$ac_compile"
0ebeb530
JW
10094case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10097esac
10098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 10099 (eval "$ac_compile") 2>conftest.er1
00068989
AJ
10100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10105 (exit $ac_status); } && {
10106 test -z "$ac_c_werror_flag" ||
10107 test ! -s conftest.err
a3097628 10108 } && test -s conftest.$ac_objext; then
35d2fd7a
AJ
10109 { echo "$as_me:$LINENO: checking for -lXinerama" >&5
10110echo $ECHO_N "checking for -lXinerama... $ECHO_C" >&6; }
10111if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113else
10114 ac_check_soname_save_LIBS=$LIBS
10115LIBS="-lXinerama $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10116 cat >conftest.$ac_ext <<_ACEOF
10117/* confdefs.h. */
10118_ACEOF
10119cat confdefs.h >>conftest.$ac_ext
10120cat >>conftest.$ac_ext <<_ACEOF
10121/* end confdefs.h. */
a3097628 10122
35d2fd7a
AJ
10123/* Override any GCC internal prototype to avoid an error.
10124 Use char because int might match the return type of a GCC
10125 builtin and then its argument prototype would still apply. */
10126#ifdef __cplusplus
10127extern "C"
10128#endif
10129char XineramaQueryScreens ();
10130int
10131main ()
10132{
10133return XineramaQueryScreens ();
10134 ;
10135 return 0;
10136}
10137_ACEOF
10138rm -f conftest.$ac_objext conftest$ac_exeext
10139if { (ac_try="$ac_link"
10140case "(($ac_try" in
10141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142 *) ac_try_echo=$ac_try;;
10143esac
10144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145 (eval "$ac_link") 2>conftest.er1
10146 ac_status=$?
10147 grep -v '^ *+' conftest.er1 >conftest.err
10148 rm -f conftest.er1
10149 cat conftest.err >&5
10150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } && {
10152 test -z "$ac_c_werror_flag" ||
10153 test ! -s conftest.err
10154 } && test -s conftest$ac_exeext &&
10155 $as_test_x conftest$ac_exeext; then
10156 case "$LIBEXT" in
10157 dll) ;;
10158 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'` ;;
10159 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10160 esac
10161else
10162 echo "$as_me: failed program was:" >&5
10163sed 's/^/| /' conftest.$ac_ext >&5
10164
10165
10166fi
10167
10168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10169 conftest$ac_exeext conftest.$ac_ext
10170 LIBS=$ac_check_soname_save_LIBS
10171fi
10172if test "x$ac_cv_lib_soname_Xinerama" = "x"; then
10173 { echo "$as_me:$LINENO: result: not found" >&5
10174echo "${ECHO_T}not found" >&6; }
10175
10176else
10177 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xinerama" >&5
10178echo "${ECHO_T}$ac_cv_lib_soname_Xinerama" >&6; }
10179
10180cat >>confdefs.h <<_ACEOF
10181#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
a3097628
AJ
10182_ACEOF
10183
35d2fd7a
AJ
10184
10185fi
10186
00068989
AJ
10187else
10188 echo "$as_me: failed program was:" >&5
10189sed 's/^/| /' conftest.$ac_ext >&5
10190
fc6ffb29 10191
a3097628
AJ
10192fi
10193
10194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195 fi
f9dec94f
AJ
10196 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then
10197 wine_notices="$wine_notices|Xinerama development files not found.
10198Wine will be built without Xinerama support. (winex11.drv)"
10199fi
10200
a3097628 10201
42584658
CR
10202 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
10203 then
10204 { echo "$as_me:$LINENO: checking for -lXcomposite" >&5
10205echo $ECHO_N "checking for -lXcomposite... $ECHO_C" >&6; }
10206if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10208else
10209 ac_check_soname_save_LIBS=$LIBS
10210LIBS="-lXcomposite $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10211 cat >conftest.$ac_ext <<_ACEOF
10212/* confdefs.h. */
10213_ACEOF
10214cat confdefs.h >>conftest.$ac_ext
10215cat >>conftest.$ac_ext <<_ACEOF
10216/* end confdefs.h. */
10217
10218/* Override any GCC internal prototype to avoid an error.
10219 Use char because int might match the return type of a GCC
10220 builtin and then its argument prototype would still apply. */
10221#ifdef __cplusplus
10222extern "C"
10223#endif
10224char XCompositeRedirectWindow ();
10225int
10226main ()
10227{
10228return XCompositeRedirectWindow ();
10229 ;
10230 return 0;
10231}
10232_ACEOF
10233rm -f conftest.$ac_objext conftest$ac_exeext
10234if { (ac_try="$ac_link"
10235case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10238esac
10239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_link") 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } && {
10247 test -z "$ac_c_werror_flag" ||
10248 test ! -s conftest.err
10249 } && test -s conftest$ac_exeext &&
10250 $as_test_x conftest$ac_exeext; then
10251 case "$LIBEXT" in
10252 dll) ;;
10253 dylib) ac_cv_lib_soname_Xcomposite=`otool -L conftest$ac_exeext | grep "libXcomposite\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcomposite\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10254 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10255 esac
10256else
10257 echo "$as_me: failed program was:" >&5
10258sed 's/^/| /' conftest.$ac_ext >&5
10259
10260
10261fi
10262
10263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10264 conftest$ac_exeext conftest.$ac_ext
10265 LIBS=$ac_check_soname_save_LIBS
10266fi
10267if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then
10268 { echo "$as_me:$LINENO: result: not found" >&5
10269echo "${ECHO_T}not found" >&6; }
10270
10271else
10272 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xcomposite" >&5
10273echo "${ECHO_T}$ac_cv_lib_soname_Xcomposite" >&6; }
10274
10275cat >>confdefs.h <<_ACEOF
10276#define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
10277_ACEOF
10278
10279
10280fi
10281
10282 fi
10283 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then
10284 wine_notices="$wine_notices|XComposite development files not found.
10285Wine will be built without XComposite support. (winex11.drv)"
10286fi
10287
10288
a3097628
AJ
10289
10290 if test "x$with_opengl" != "xno"
10291 then
10292
10293
10294
10295
10296for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
10297do
10298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10299{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b18b9f37
AJ
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303else
a3097628 10304 cat >conftest.$ac_ext <<_ACEOF
b18b9f37
AJ
10305/* confdefs.h. */
10306_ACEOF
10307cat confdefs.h >>conftest.$ac_ext
10308cat >>conftest.$ac_ext <<_ACEOF
10309/* end confdefs.h. */
a3097628
AJ
10310#ifdef HAVE_GL_GLX_H
10311# include <GL/glx.h>
b18b9f37 10312#endif
a3097628
AJ
10313
10314#include <$ac_header>
b18b9f37 10315_ACEOF
a3097628
AJ
10316rm -f conftest.$ac_objext
10317if { (ac_try="$ac_compile"
0ebeb530
JW
10318case "(($ac_try" in
10319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320 *) ac_try_echo=$ac_try;;
10321esac
10322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 10323 (eval "$ac_compile") 2>conftest.er1
b18b9f37
AJ
10324 ac_status=$?
10325 grep -v '^ *+' conftest.er1 >conftest.err
10326 rm -f conftest.er1
10327 cat conftest.err >&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10329 (exit $ac_status); } && {
10330 test -z "$ac_c_werror_flag" ||
10331 test ! -s conftest.err
a3097628
AJ
10332 } && test -s conftest.$ac_objext; then
10333 eval "$as_ac_Header=yes"
b18b9f37
AJ
10334else
10335 echo "$as_me: failed program was:" >&5
10336sed 's/^/| /' conftest.$ac_ext >&5
10337
a3097628 10338 eval "$as_ac_Header=no"
b18b9f37 10339fi
fc6ffb29 10340
a3097628 10341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b18b9f37 10342fi
a3097628
AJ
10343ac_res=`eval echo '${'$as_ac_Header'}'`
10344 { echo "$as_me:$LINENO: result: $ac_res" >&5
10345echo "${ECHO_T}$ac_res" >&6; }
10346if test `eval echo '${'$as_ac_Header'}'` = yes; then
10347 cat >>confdefs.h <<_ACEOF
10348#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
00068989
AJ
10349_ACEOF
10350
2d6d4e96
HL
10351fi
10352
a3097628 10353done
2d6d4e96 10354
a3097628
AJ
10355 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
10356 then
10357 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
10358echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
10359if test "${wine_cv_opengl_header_version_OK+set}" = set; then
2d6d4e96
HL
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361else
a3097628 10362 cat >conftest.$ac_ext <<_ACEOF
2d6d4e96
HL
10363/* confdefs.h. */
10364_ACEOF
10365cat confdefs.h >>conftest.$ac_ext
10366cat >>conftest.$ac_ext <<_ACEOF
10367/* end confdefs.h. */
a3097628 10368#include <GL/gl.h>
2d6d4e96
HL
10369int
10370main ()
10371{
a3097628 10372GLenum test = GL_UNSIGNED_SHORT_5_6_5;
2d6d4e96
HL
10373 ;
10374 return 0;
10375}
10376_ACEOF
a3097628
AJ
10377rm -f conftest.$ac_objext
10378if { (ac_try="$ac_compile"
0ebeb530
JW
10379case "(($ac_try" in
10380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10381 *) ac_try_echo=$ac_try;;
10382esac
10383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 10384 (eval "$ac_compile") 2>conftest.er1
2d6d4e96
HL
10385 ac_status=$?
10386 grep -v '^ *+' conftest.er1 >conftest.err
10387 rm -f conftest.er1
10388 cat conftest.err >&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10390 (exit $ac_status); } && {
10391 test -z "$ac_c_werror_flag" ||
10392 test ! -s conftest.err
a3097628
AJ
10393 } && test -s conftest.$ac_objext; then
10394 wine_cv_opengl_header_version_OK="yes"
2d6d4e96
HL
10395else
10396 echo "$as_me: failed program was:" >&5
10397sed 's/^/| /' conftest.$ac_ext >&5
10398
a3097628 10399 wine_cv_opengl_header_version_OK="no"
2d6d4e96 10400fi
fc6ffb29 10401
a3097628 10402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2d6d4e96 10403fi
a3097628
AJ
10404{ echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
10405echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
2d6d4e96 10406
a3097628
AJ
10407 if test "$wine_cv_opengl_header_version_OK" = "yes"
10408 then
31353e1e
AJ
10409 { echo "$as_me:$LINENO: checking for -lGL" >&5
10410echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
10411if test "${ac_cv_lib_soname_GL+set}" = set; then
2d6d4e96
HL
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10413else
31353e1e 10414 ac_check_soname_save_LIBS=$LIBS
a3097628 10415LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
31353e1e 10416 cat >conftest.$ac_ext <<_ACEOF
2d6d4e96
HL
10417/* confdefs.h. */
10418_ACEOF
10419cat confdefs.h >>conftest.$ac_ext
10420cat >>conftest.$ac_ext <<_ACEOF
10421/* end confdefs.h. */
10422
fc6ffb29
AJ
10423/* Override any GCC internal prototype to avoid an error.
10424 Use char because int might match the return type of a GCC
10425 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
10426#ifdef __cplusplus
10427extern "C"
10428#endif
a3097628 10429char glXCreateContext ();
2d6d4e96
HL
10430int
10431main ()
10432{
a3097628 10433return glXCreateContext ();
2d6d4e96
HL
10434 ;
10435 return 0;
10436}
10437_ACEOF
10438rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
10439if { (ac_try="$ac_link"
10440case "(($ac_try" in
10441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10443esac
10444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
10446 ac_status=$?
10447 grep -v '^ *+' conftest.er1 >conftest.err
10448 rm -f conftest.er1
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10451 (exit $ac_status); } && {
10452 test -z "$ac_c_werror_flag" ||
10453 test ! -s conftest.err
10454 } && test -s conftest$ac_exeext &&
10455 $as_test_x conftest$ac_exeext; then
31353e1e
AJ
10456 case "$LIBEXT" in
10457 dll) ;;
10458 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'` ;;
10459 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10460 esac
2d6d4e96
HL
10461else
10462 echo "$as_me: failed program was:" >&5
10463sed 's/^/| /' conftest.$ac_ext >&5
10464
31353e1e 10465
2d6d4e96 10466fi
fc6ffb29 10467
f0ca586f 10468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2d6d4e96 10469 conftest$ac_exeext conftest.$ac_ext
31353e1e 10470 LIBS=$ac_check_soname_save_LIBS
2d6d4e96 10471fi
31353e1e
AJ
10472if test "x$ac_cv_lib_soname_GL" = "x"; then
10473 { echo "$as_me:$LINENO: result: not found" >&5
10474echo "${ECHO_T}not found" >&6; }
f9dec94f
AJ
10475 if test -f /usr/X11R6/lib/libGL.a
10476 then
10477 wine_warnings="$wine_warnings|/usr/X11R6/lib/libGL.a is present on your system.
10478This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
10479 else
10480 wine_warnings="$wine_warnings|No OpenGL library found on this system.
10481Wine will be build without OpenGL or Direct3D support."
10482 fi
31353e1e
AJ
10483else
10484 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
10485echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
10486
10487cat >>confdefs.h <<_ACEOF
10488#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
10489_ACEOF
10490
10491 OPENGL_LIBS="-lGL"
a3097628
AJ
10492 OPENGLFILES='$(OPENGLFILES)'
10493
10494cat >>confdefs.h <<\_ACEOF
10495#define HAVE_OPENGL 1
10496_ACEOF
10497
8f1d42eb 10498fi
f5f37a85 10499
a3097628
AJ
10500
10501 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
10502echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
10503if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
f5f37a85
AJ
10504 echo $ECHO_N "(cached) $ECHO_C" >&6
10505else
a3097628 10506 ac_check_lib_save_LIBS=$LIBS
f9dec94f 10507LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
a3097628 10508cat >conftest.$ac_ext <<_ACEOF
f5f37a85
AJ
10509/* confdefs.h. */
10510_ACEOF
10511cat confdefs.h >>conftest.$ac_ext
10512cat >>conftest.$ac_ext <<_ACEOF
10513/* end confdefs.h. */
f5f37a85
AJ
10514
10515/* Override any GCC internal prototype to avoid an error.
10516 Use char because int might match the return type of a GCC
10517 builtin and then its argument prototype would still apply. */
10518#ifdef __cplusplus
10519extern "C"
10520#endif
a3097628 10521char gluLookAt ();
f5f37a85
AJ
10522int
10523main ()
10524{
a3097628 10525return gluLookAt ();
f5f37a85
AJ
10526 ;
10527 return 0;
10528}
10529_ACEOF
10530rm -f conftest.$ac_objext conftest$ac_exeext
10531if { (ac_try="$ac_link"
10532case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535esac
10536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_link") 2>conftest.er1
10538 ac_status=$?
10539 grep -v '^ *+' conftest.er1 >conftest.err
10540 rm -f conftest.er1
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10543 (exit $ac_status); } && {
10544 test -z "$ac_c_werror_flag" ||
10545 test ! -s conftest.err
10546 } && test -s conftest$ac_exeext &&
10547 $as_test_x conftest$ac_exeext; then
a3097628
AJ
10548 ac_cv_lib_GLU_gluLookAt=yes
10549else
10550 echo "$as_me: failed program was:" >&5
10551sed 's/^/| /' conftest.$ac_ext >&5
73482144 10552
a3097628 10553 ac_cv_lib_GLU_gluLookAt=no
73482144 10554fi
a3097628
AJ
10555
10556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557 conftest$ac_exeext conftest.$ac_ext
10558LIBS=$ac_check_lib_save_LIBS
73482144 10559fi
a3097628
AJ
10560{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
10561echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
10562if test $ac_cv_lib_GLU_gluLookAt = yes; then
10563 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
10564 GLU32FILES='$(GLU32FILES)'
10565
73482144
AJ
10566fi
10567
f9dec94f
AJ
10568 else
10569 wine_warnings="$wine_warnings|Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/).
10570Wine will be build without OpenGL or Direct3D support."
a3097628
AJ
10571 fi
10572 else
f9dec94f
AJ
10573 wine_warnings="$wine_warnings|OpenGL development headers not found.
10574Wine will be build without OpenGL or Direct3D support."
a3097628
AJ
10575 fi
10576 fi
f9dec94f 10577
a3097628 10578 NASLIBS=""
fc6ffb29 10579
82776020 10580
a3097628
AJ
10581for ac_header in audio/audiolib.h
10582do
10583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 10588 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c 10589fi
a3097628
AJ
10590ac_res=`eval echo '${'$as_ac_Header'}'`
10591 { echo "$as_me:$LINENO: result: $ac_res" >&5
10592echo "${ECHO_T}$ac_res" >&6; }
f5818d2f 10593else
daa2886c 10594 # Is the header compilable?
a3097628
AJ
10595{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10596echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
daa2886c 10597cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
10598/* confdefs.h. */
10599_ACEOF
10600cat confdefs.h >>conftest.$ac_ext
10601cat >>conftest.$ac_ext <<_ACEOF
10602/* end confdefs.h. */
daa2886c 10603$ac_includes_default
a3097628 10604#include <$ac_header>
daa2886c
AJ
10605_ACEOF
10606rm -f conftest.$ac_objext
0ebeb530
JW
10607if { (ac_try="$ac_compile"
10608case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611esac
10612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_compile") 2>conftest.er1
daa2886c 10614 ac_status=$?
875927f6
AJ
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
daa2886c 10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10619 (exit $ac_status); } && {
10620 test -z "$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10622 } && test -s conftest.$ac_objext; then
daa2886c
AJ
10623 ac_header_compiler=yes
10624else
10625 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10626sed 's/^/| /' conftest.$ac_ext >&5
10627
fc6ffb29 10628 ac_header_compiler=no
daa2886c 10629fi
fc6ffb29 10630
0ebeb530 10631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
10632{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10633echo "${ECHO_T}$ac_header_compiler" >&6; }
daa2886c
AJ
10634
10635# Is the header present?
a3097628
AJ
10636{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10637echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
daa2886c 10638cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
10639/* confdefs.h. */
10640_ACEOF
10641cat confdefs.h >>conftest.$ac_ext
10642cat >>conftest.$ac_ext <<_ACEOF
10643/* end confdefs.h. */
a3097628 10644#include <$ac_header>
f5818d2f 10645_ACEOF
0ebeb530
JW
10646if { (ac_try="$ac_cpp conftest.$ac_ext"
10647case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10650esac
10651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 10653 ac_status=$?
11af04e3 10654 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
10655 rm -f conftest.er1
10656 cat conftest.err >&5
daa2886c 10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10658 (exit $ac_status); } >/dev/null && {
10659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10660 test ! -s conftest.err
10661 }; then
daa2886c 10662 ac_header_preproc=yes
f5818d2f
AJ
10663else
10664 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
daa2886c 10667 ac_header_preproc=no
24110288 10668fi
fc6ffb29 10669
f5818d2f 10670rm -f conftest.err conftest.$ac_ext
fc6ffb29
AJ
10671{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10672echo "${ECHO_T}$ac_header_preproc" >&6; }
daa2886c
AJ
10673
10674# So? What about this header?
875927f6
AJ
10675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10676 yes:no: )
a3097628
AJ
10677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10678echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10680echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
875927f6 10681 ac_header_preproc=yes
e24bcc77 10682 ;;
875927f6 10683 no:yes:* )
a3097628
AJ
10684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10685echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10687echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10689echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10691echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10693echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10695echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
fc6ffb29 10696 ( cat <<\_ASBOX
e24bcc77 10697## ------------------------------------ ##
875927f6 10698## Report this to wine-devel@winehq.org ##
e24bcc77
AJ
10699## ------------------------------------ ##
10700_ASBOX
fc6ffb29 10701 ) | sed "s/^/$as_me: WARNING: /" >&2
e24bcc77 10702 ;;
daa2886c 10703esac
a3097628
AJ
10704{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
daa2886c
AJ
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10708else
a3097628 10709 eval "$as_ac_Header=\$ac_header_preproc"
24110288 10710fi
a3097628
AJ
10711ac_res=`eval echo '${'$as_ac_Header'}'`
10712 { echo "$as_me:$LINENO: result: $ac_res" >&5
10713echo "${ECHO_T}$ac_res" >&6; }
daa2886c
AJ
10714
10715fi
a3097628
AJ
10716if test `eval echo '${'$as_ac_Header'}'` = yes; then
10717 cat >>confdefs.h <<_ACEOF
10718#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 10719_ACEOF
e884f9ca 10720
a3097628 10721for ac_header in audio/soundlib.h
40e7ef3a 10722do
a3097628
AJ
10723as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10724{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40e7ef3a 10727 echo $ECHO_N "(cached) $ECHO_C" >&6
40e7ef3a 10728else
a3097628 10729 cat >conftest.$ac_ext <<_ACEOF
40e7ef3a
MM
10730/* confdefs.h. */
10731_ACEOF
10732cat confdefs.h >>conftest.$ac_ext
10733cat >>conftest.$ac_ext <<_ACEOF
10734/* end confdefs.h. */
a3097628
AJ
10735#include <audio/audiolib.h>
10736
10737#include <$ac_header>
40e7ef3a
MM
10738_ACEOF
10739rm -f conftest.$ac_objext
0ebeb530
JW
10740if { (ac_try="$ac_compile"
10741case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10744esac
10745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_compile") 2>conftest.er1
40e7ef3a
MM
10747 ac_status=$?
10748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10752 (exit $ac_status); } && {
10753 test -z "$ac_c_werror_flag" ||
10754 test ! -s conftest.err
10755 } && test -s conftest.$ac_objext; then
a3097628 10756 eval "$as_ac_Header=yes"
40e7ef3a
MM
10757else
10758 echo "$as_me: failed program was:" >&5
10759sed 's/^/| /' conftest.$ac_ext >&5
10760
a3097628 10761 eval "$as_ac_Header=no"
40e7ef3a 10762fi
fc6ffb29 10763
0ebeb530 10764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a3097628
AJ
10765fi
10766ac_res=`eval echo '${'$as_ac_Header'}'`
10767 { echo "$as_me:$LINENO: result: $ac_res" >&5
10768echo "${ECHO_T}$ac_res" >&6; }
10769if test `eval echo '${'$as_ac_Header'}'` = yes; then
10770 cat >>confdefs.h <<_ACEOF
10771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10772_ACEOF
10773
10774fi
10775
10776done
40e7ef3a 10777
a3097628
AJ
10778 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
10779echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
10780if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10782else
10783 ac_check_lib_save_LIBS=$LIBS
10784LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
40e7ef3a
MM
10785cat >conftest.$ac_ext <<_ACEOF
10786/* confdefs.h. */
10787_ACEOF
10788cat confdefs.h >>conftest.$ac_ext
10789cat >>conftest.$ac_ext <<_ACEOF
10790/* end confdefs.h. */
a3097628
AJ
10791
10792/* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10795#ifdef __cplusplus
10796extern "C"
10797#endif
10798char AuCreateFlow ();
10799int
10800main ()
10801{
10802return AuCreateFlow ();
10803 ;
10804 return 0;
10805}
40e7ef3a 10806_ACEOF
a3097628
AJ
10807rm -f conftest.$ac_objext conftest$ac_exeext
10808if { (ac_try="$ac_link"
0ebeb530
JW
10809case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10812esac
10813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 10814 (eval "$ac_link") 2>conftest.er1
40e7ef3a
MM
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
10820 (exit $ac_status); } && {
10821 test -z "$ac_c_werror_flag" ||
dc9f3843 10822 test ! -s conftest.err
a3097628
AJ
10823 } && test -s conftest$ac_exeext &&
10824 $as_test_x conftest$ac_exeext; then
10825 ac_cv_lib_audio_AuCreateFlow=yes
40e7ef3a
MM
10826else
10827 echo "$as_me: failed program was:" >&5
10828sed 's/^/| /' conftest.$ac_ext >&5
10829
a3097628 10830 ac_cv_lib_audio_AuCreateFlow=no
40e7ef3a 10831fi
fc6ffb29 10832
a3097628
AJ
10833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10834 conftest$ac_exeext conftest.$ac_ext
10835LIBS=$ac_check_lib_save_LIBS
40e7ef3a 10836fi
a3097628
AJ
10837{ echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10838echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
10839if test $ac_cv_lib_audio_AuCreateFlow = yes; then
40e7ef3a 10840
a3097628
AJ
10841cat >>confdefs.h <<\_ACEOF
10842#define HAVE_NAS 1
10843_ACEOF
10844
10845 { echo "$as_me:$LINENO: checking for XauGetBestAuthByAddr in -lXau" >&5
10846echo $ECHO_N "checking for XauGetBestAuthByAddr in -lXau... $ECHO_C" >&6; }
10847if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then
40e7ef3a
MM
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849else
10850 ac_check_lib_save_LIBS=$LIBS
a3097628 10851LIBS="-lXau $X_LIBS $LIBS"
40e7ef3a
MM
10852cat >conftest.$ac_ext <<_ACEOF
10853/* confdefs.h. */
10854_ACEOF
10855cat confdefs.h >>conftest.$ac_ext
10856cat >>conftest.$ac_ext <<_ACEOF
10857/* end confdefs.h. */
10858
fc6ffb29
AJ
10859/* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
40e7ef3a
MM
10862#ifdef __cplusplus
10863extern "C"
10864#endif
a3097628 10865char XauGetBestAuthByAddr ();
40e7ef3a
MM
10866int
10867main ()
10868{
a3097628 10869return XauGetBestAuthByAddr ();
40e7ef3a
MM
10870 ;
10871 return 0;
10872}
10873_ACEOF
10874rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
10875if { (ac_try="$ac_link"
10876case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10879esac
10880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_link") 2>conftest.er1
40e7ef3a
MM
10882 ac_status=$?
10883 grep -v '^ *+' conftest.er1 >conftest.err
10884 rm -f conftest.er1
10885 cat conftest.err >&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
10887 (exit $ac_status); } && {
10888 test -z "$ac_c_werror_flag" ||
10889 test ! -s conftest.err
10890 } && test -s conftest$ac_exeext &&
10891 $as_test_x conftest$ac_exeext; then
a3097628 10892 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
40e7ef3a
MM
10893else
10894 echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
a3097628 10897 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
40e7ef3a 10898fi
fc6ffb29 10899
f0ca586f 10900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40e7ef3a
MM
10901 conftest$ac_exeext conftest.$ac_ext
10902LIBS=$ac_check_lib_save_LIBS
10903fi
a3097628
AJ
10904{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
10905echo "${ECHO_T}$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
10906if test $ac_cv_lib_Xau_XauGetBestAuthByAddr = yes; then
10907 NASLIBS="-lXau -laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10908else
10909 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10910fi
40e7ef3a 10911
40e7ef3a 10912
40e7ef3a
MM
10913fi
10914
40e7ef3a
MM
10915fi
10916
a3097628
AJ
10917done
10918
40e7ef3a 10919
40e7ef3a 10920 CPPFLAGS="$ac_save_CPPFLAGS"
a3097628
AJ
10921 XFILES='$(XFILES)'
10922else
10923 XLIB=""
10924 X_CFLAGS=""
10925 X_LIBS=""
f9dec94f
AJ
10926 wine_warnings="$wine_warnings|X development files not found. Wine will be built
10927without X support, which probably isn't what you want. You will need to install
10928development packages of Xlib/Xfree86 at the very least."
40e7ef3a
MM
10929fi
10930
a3097628
AJ
10931
10932XML2LIBS=""
10933
10934XML2INCL=""
10935
10936XSLTLIBS=""
10937
10938XSLTINCL=""
10939
10940ac_save_CPPFLAGS="$CPPFLAGS"
10941if test "$PKG_CONFIG" != "false"
6b0720f5 10942then
a3097628
AJ
10943 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10944 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
bb168aab 10945else
a3097628
AJ
10946 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
10947 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
10948fi
10949CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
10950
10951for ac_header in libxml/parser.h
10952do
10953as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959fi
10960ac_res=`eval echo '${'$as_ac_Header'}'`
10961 { echo "$as_me:$LINENO: result: $ac_res" >&5
10962echo "${ECHO_T}$ac_res" >&6; }
10963else
10964 # Is the header compilable?
10965{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10966echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10967cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
10968/* confdefs.h. */
10969_ACEOF
10970cat confdefs.h >>conftest.$ac_ext
10971cat >>conftest.$ac_ext <<_ACEOF
10972/* end confdefs.h. */
a3097628
AJ
10973$ac_includes_default
10974#include <$ac_header>
daa2886c 10975_ACEOF
a3097628
AJ
10976rm -f conftest.$ac_objext
10977if { (ac_try="$ac_compile"
0ebeb530
JW
10978case "(($ac_try" in
10979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980 *) ac_try_echo=$ac_try;;
10981esac
10982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 10983 (eval "$ac_compile") 2>conftest.er1
daa2886c 10984 ac_status=$?
a3097628
AJ
10985 grep -v '^ *+' conftest.er1 >conftest.err
10986 rm -f conftest.er1
10987 cat conftest.err >&5
daa2886c 10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
10989 (exit $ac_status); } && {
10990 test -z "$ac_c_werror_flag" ||
10991 test ! -s conftest.err
10992 } && test -s conftest.$ac_objext; then
10993 ac_header_compiler=yes
10994else
10995 echo "$as_me: failed program was:" >&5
10996sed 's/^/| /' conftest.$ac_ext >&5
10997
10998 ac_header_compiler=no
10999fi
11000
11001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11002{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11003echo "${ECHO_T}$ac_header_compiler" >&6; }
11004
11005# Is the header present?
11006{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11007echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11008cat >conftest.$ac_ext <<_ACEOF
11009/* confdefs.h. */
11010_ACEOF
11011cat confdefs.h >>conftest.$ac_ext
11012cat >>conftest.$ac_ext <<_ACEOF
11013/* end confdefs.h. */
11014#include <$ac_header>
11015_ACEOF
11016if { (ac_try="$ac_cpp conftest.$ac_ext"
11017case "(($ac_try" in
bb168aab
AJ
11018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11019 *) ac_try_echo=$ac_try;;
11020esac
11021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 11022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
bb168aab 11023 ac_status=$?
a3097628
AJ
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
bb168aab 11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
11028 (exit $ac_status); } >/dev/null && {
11029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11030 test ! -s conftest.err
11031 }; then
11032 ac_header_preproc=yes
6b0720f5 11033else
a3097628 11034 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11035sed 's/^/| /' conftest.$ac_ext >&5
11036
a3097628 11037 ac_header_preproc=no
6b0720f5 11038fi
fc6ffb29 11039
a3097628
AJ
11040rm -f conftest.err conftest.$ac_ext
11041{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11042echo "${ECHO_T}$ac_header_preproc" >&6; }
bb168aab 11043
a3097628
AJ
11044# So? What about this header?
11045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11046 yes:no: )
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11048echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11050echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11051 ac_header_preproc=yes
11052 ;;
11053 no:yes:* )
11054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11055echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11057echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11059echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11061echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11063echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11065echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11066 ( cat <<\_ASBOX
11067## ------------------------------------ ##
11068## Report this to wine-devel@winehq.org ##
11069## ------------------------------------ ##
11070_ASBOX
11071 ) | sed "s/^/$as_me: WARNING: /" >&2
11072 ;;
11073esac
11074{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078else
11079 eval "$as_ac_Header=\$ac_header_preproc"
6b0720f5 11080fi
a3097628
AJ
11081ac_res=`eval echo '${'$as_ac_Header'}'`
11082 { echo "$as_me:$LINENO: result: $ac_res" >&5
11083echo "${ECHO_T}$ac_res" >&6; }
daa2886c 11084
a3097628
AJ
11085fi
11086if test `eval echo '${'$as_ac_Header'}'` = yes; then
11087 cat >>confdefs.h <<_ACEOF
11088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11089_ACEOF
11090 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
11091echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
11092if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
6b0720f5
SQH
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11094else
11095 ac_check_lib_save_LIBS=$LIBS
a3097628 11096LIBS="-lxml2 $ac_xml_libs $LIBS"
6b0720f5 11097cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
11098/* confdefs.h. */
11099_ACEOF
11100cat confdefs.h >>conftest.$ac_ext
11101cat >>conftest.$ac_ext <<_ACEOF
11102/* end confdefs.h. */
6b0720f5 11103
fc6ffb29
AJ
11104/* Override any GCC internal prototype to avoid an error.
11105 Use char because int might match the return type of a GCC
11106 builtin and then its argument prototype would still apply. */
6b0720f5
SQH
11107#ifdef __cplusplus
11108extern "C"
11109#endif
a3097628 11110char xmlParseMemory ();
6b0720f5
SQH
11111int
11112main ()
11113{
a3097628 11114return xmlParseMemory ();
6b0720f5
SQH
11115 ;
11116 return 0;
11117}
11118_ACEOF
11119rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11120if { (ac_try="$ac_link"
11121case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124esac
11125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_link") 2>conftest.er1
6b0720f5 11127 ac_status=$?
875927f6
AJ
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
daa2886c 11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11132 (exit $ac_status); } && {
11133 test -z "$ac_c_werror_flag" ||
11134 test ! -s conftest.err
11135 } && test -s conftest$ac_exeext &&
11136 $as_test_x conftest$ac_exeext; then
a3097628 11137 ac_cv_lib_xml2_xmlParseMemory=yes
6b0720f5
SQH
11138else
11139 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11140sed 's/^/| /' conftest.$ac_ext >&5
11141
a3097628 11142 ac_cv_lib_xml2_xmlParseMemory=no
6b0720f5 11143fi
fc6ffb29 11144
f0ca586f 11145rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 11146 conftest$ac_exeext conftest.$ac_ext
6b0720f5
SQH
11147LIBS=$ac_check_lib_save_LIBS
11148fi
a3097628
AJ
11149{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
11150echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
11151if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
6b0720f5 11152
daa2886c 11153cat >>confdefs.h <<\_ACEOF
a3097628 11154#define HAVE_LIBXML2 1
daa2886c 11155_ACEOF
6b0720f5 11156
a3097628
AJ
11157 XML2LIBS="$ac_xml_libs"
11158 XML2INCL="$ac_xml_cflags"
6b0720f5
SQH
11159fi
11160
a3097628
AJ
11161 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
11162echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
11163if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
73482144 11164 echo $ECHO_N "(cached) $ECHO_C" >&6
4ee8290b 11165else
73482144 11166 ac_check_lib_save_LIBS=$LIBS
a3097628 11167LIBS="-lxml2 $ac_xml_libs $LIBS"
2d6d4e96
HL
11168cat >conftest.$ac_ext <<_ACEOF
11169/* confdefs.h. */
11170_ACEOF
11171cat confdefs.h >>conftest.$ac_ext
11172cat >>conftest.$ac_ext <<_ACEOF
11173/* end confdefs.h. */
11174
fc6ffb29
AJ
11175/* Override any GCC internal prototype to avoid an error.
11176 Use char because int might match the return type of a GCC
11177 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
11178#ifdef __cplusplus
11179extern "C"
11180#endif
a3097628 11181char xmlReadMemory ();
2d6d4e96
HL
11182int
11183main ()
11184{
a3097628 11185return xmlReadMemory ();
2d6d4e96
HL
11186 ;
11187 return 0;
11188}
11189_ACEOF
11190rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11191if { (ac_try="$ac_link"
11192case "(($ac_try" in
11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194 *) ac_try_echo=$ac_try;;
11195esac
11196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
11198 ac_status=$?
11199 grep -v '^ *+' conftest.er1 >conftest.err
11200 rm -f conftest.er1
11201 cat conftest.err >&5
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11203 (exit $ac_status); } && {
11204 test -z "$ac_c_werror_flag" ||
11205 test ! -s conftest.err
11206 } && test -s conftest$ac_exeext &&
11207 $as_test_x conftest$ac_exeext; then
a3097628 11208 ac_cv_lib_xml2_xmlReadMemory=yes
2d6d4e96
HL
11209else
11210 echo "$as_me: failed program was:" >&5
11211sed 's/^/| /' conftest.$ac_ext >&5
11212
a3097628 11213 ac_cv_lib_xml2_xmlReadMemory=no
2d6d4e96 11214fi
fc6ffb29 11215
f0ca586f 11216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2d6d4e96
HL
11217 conftest$ac_exeext conftest.$ac_ext
11218LIBS=$ac_check_lib_save_LIBS
11219fi
a3097628
AJ
11220{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
11221echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
11222if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
2d6d4e96
HL
11223
11224cat >>confdefs.h <<\_ACEOF
a3097628 11225#define HAVE_XMLREADMEMORY 1
2d6d4e96
HL
11226_ACEOF
11227
2d6d4e96
HL
11228fi
11229
a3097628
AJ
11230 { echo "$as_me:$LINENO: checking for xmlNewDocPI in -lxml2" >&5
11231echo $ECHO_N "checking for xmlNewDocPI in -lxml2... $ECHO_C" >&6; }
11232if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then
2d6d4e96
HL
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11234else
11235 ac_check_lib_save_LIBS=$LIBS
a3097628 11236LIBS="-lxml2 $ac_xml_libs $LIBS"
4ee8290b 11237cat >conftest.$ac_ext <<_ACEOF
4ee8290b
AJ
11238/* confdefs.h. */
11239_ACEOF
11240cat confdefs.h >>conftest.$ac_ext
11241cat >>conftest.$ac_ext <<_ACEOF
11242/* end confdefs.h. */
4ee8290b 11243
fc6ffb29
AJ
11244/* Override any GCC internal prototype to avoid an error.
11245 Use char because int might match the return type of a GCC
11246 builtin and then its argument prototype would still apply. */
73482144
AJ
11247#ifdef __cplusplus
11248extern "C"
11249#endif
a3097628 11250char xmlNewDocPI ();
4ee8290b
AJ
11251int
11252main ()
11253{
a3097628 11254return xmlNewDocPI ();
4ee8290b
AJ
11255 ;
11256 return 0;
11257}
11258_ACEOF
11259rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11260if { (ac_try="$ac_link"
11261case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11264esac
11265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266 (eval "$ac_link") 2>conftest.er1
4ee8290b 11267 ac_status=$?
875927f6
AJ
11268 grep -v '^ *+' conftest.er1 >conftest.err
11269 rm -f conftest.er1
11270 cat conftest.err >&5
4ee8290b 11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11272 (exit $ac_status); } && {
11273 test -z "$ac_c_werror_flag" ||
11274 test ! -s conftest.err
11275 } && test -s conftest$ac_exeext &&
11276 $as_test_x conftest$ac_exeext; then
a3097628 11277 ac_cv_lib_xml2_xmlNewDocPI=yes
4ee8290b
AJ
11278else
11279 echo "$as_me: failed program was:" >&5
11280sed 's/^/| /' conftest.$ac_ext >&5
11281
a3097628 11282 ac_cv_lib_xml2_xmlNewDocPI=no
4ee8290b 11283fi
fc6ffb29 11284
f0ca586f 11285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 11286 conftest$ac_exeext conftest.$ac_ext
73482144 11287LIBS=$ac_check_lib_save_LIBS
4ee8290b 11288fi
a3097628
AJ
11289{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
11290echo "${ECHO_T}$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
11291if test $ac_cv_lib_xml2_xmlNewDocPI = yes; then
11292
11293cat >>confdefs.h <<\_ACEOF
11294#define HAVE_XMLNEWDOCPI 1
11295_ACEOF
11296
11297fi
11298
11299
11300fi
11301
11302done
11303
11304CPPFLAGS="$ac_save_CPPFLAGS"
f9dec94f
AJ
11305if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then
11306 wine_notices="$wine_notices|libxml2 development files not found.
11307Wine will be built without XML support. (msxml.dll)"
11308fi
11309
11310
a3097628
AJ
11311if test "$PKG_CONFIG" != "false"
11312then
11313 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
11314 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
11315else
11316 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
11317 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
11318fi
11319CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
11320
11321
11322for ac_header in libxslt/pattern.h libxslt/transform.h
11323do
11324as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11325{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d3447022
HL
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329else
a3097628 11330 cat >conftest.$ac_ext <<_ACEOF
d3447022
HL
11331/* confdefs.h. */
11332_ACEOF
11333cat confdefs.h >>conftest.$ac_ext
11334cat >>conftest.$ac_ext <<_ACEOF
11335/* end confdefs.h. */
a3097628
AJ
11336#ifdef HAVE_LIBXSLT_PATTERN_H
11337# include <libxslt/pattern.h>
d3447022 11338#endif
a3097628
AJ
11339
11340#include <$ac_header>
d3447022 11341_ACEOF
a3097628
AJ
11342rm -f conftest.$ac_objext
11343if { (ac_try="$ac_compile"
0ebeb530
JW
11344case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11347esac
11348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 11349 (eval "$ac_compile") 2>conftest.er1
d3447022
HL
11350 ac_status=$?
11351 grep -v '^ *+' conftest.er1 >conftest.err
11352 rm -f conftest.er1
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11355 (exit $ac_status); } && {
11356 test -z "$ac_c_werror_flag" ||
11357 test ! -s conftest.err
a3097628
AJ
11358 } && test -s conftest.$ac_objext; then
11359 eval "$as_ac_Header=yes"
d3447022
HL
11360else
11361 echo "$as_me: failed program was:" >&5
11362sed 's/^/| /' conftest.$ac_ext >&5
11363
a3097628 11364 eval "$as_ac_Header=no"
d3447022
HL
11365fi
11366
a3097628 11367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d3447022 11368fi
a3097628
AJ
11369ac_res=`eval echo '${'$as_ac_Header'}'`
11370 { echo "$as_me:$LINENO: result: $ac_res" >&5
11371echo "${ECHO_T}$ac_res" >&6; }
11372if test `eval echo '${'$as_ac_Header'}'` = yes; then
11373 cat >>confdefs.h <<_ACEOF
11374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11375_ACEOF
11376 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
11377echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
11378if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
b2c62c94
HL
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11380else
a3097628
AJ
11381 ac_check_lib_save_LIBS=$LIBS
11382LIBS="-lxslt $ac_xslt_libs $LIBS"
11383cat >conftest.$ac_ext <<_ACEOF
b2c62c94
HL
11384/* confdefs.h. */
11385_ACEOF
11386cat confdefs.h >>conftest.$ac_ext
11387cat >>conftest.$ac_ext <<_ACEOF
11388/* end confdefs.h. */
b2c62c94 11389
fc6ffb29
AJ
11390/* Override any GCC internal prototype to avoid an error.
11391 Use char because int might match the return type of a GCC
11392 builtin and then its argument prototype would still apply. */
b2c62c94
HL
11393#ifdef __cplusplus
11394extern "C"
b2c62c94 11395#endif
a3097628 11396char xsltCompilePattern ();
b2c62c94
HL
11397int
11398main ()
11399{
a3097628 11400return xsltCompilePattern ();
b2c62c94
HL
11401 ;
11402 return 0;
11403}
11404_ACEOF
11405rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11406if { (ac_try="$ac_link"
11407case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11410esac
11411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_link") 2>conftest.er1
b2c62c94
HL
11413 ac_status=$?
11414 grep -v '^ *+' conftest.er1 >conftest.err
11415 rm -f conftest.er1
11416 cat conftest.err >&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11418 (exit $ac_status); } && {
11419 test -z "$ac_c_werror_flag" ||
11420 test ! -s conftest.err
11421 } && test -s conftest$ac_exeext &&
11422 $as_test_x conftest$ac_exeext; then
a3097628 11423 ac_cv_lib_xslt_xsltCompilePattern=yes
b2c62c94
HL
11424else
11425 echo "$as_me: failed program was:" >&5
11426sed 's/^/| /' conftest.$ac_ext >&5
11427
a3097628 11428 ac_cv_lib_xslt_xsltCompilePattern=no
b2c62c94 11429fi
fc6ffb29 11430
f0ca586f 11431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
b2c62c94 11432 conftest$ac_exeext conftest.$ac_ext
a3097628 11433LIBS=$ac_check_lib_save_LIBS
b2c62c94 11434fi
a3097628
AJ
11435{ echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
11436echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
11437if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
11438
11439cat >>confdefs.h <<\_ACEOF
11440#define HAVE_LIBXSLT 1
b2c62c94
HL
11441_ACEOF
11442
a3097628
AJ
11443 XSLTLIBS="$ac_xslt_libs"
11444 XSLTINCL="$ac_xslt_cflags"
b2c62c94 11445fi
b2c62c94 11446
a3097628 11447
73482144 11448fi
ea524def 11449
a3097628 11450done
82776020 11451
a3097628 11452CPPFLAGS="$ac_save_CPPFLAGS"
f9dec94f
AJ
11453if test "$ac_cv_lib_xslt_xsltCompilePattern" != "yes"; then
11454 wine_notices="$wine_notices|libxslt development files not found.
11455Wine will be built without xslt support. (msxml.dll)"
11456fi
11457
82776020 11458
a3097628
AJ
11459HALINCL=""
11460
11461if test "$PKG_CONFIG" != "false"
11462then
11463 ac_save_CPPFLAGS="$CPPFLAGS"
11464 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
11465 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
11466 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
11467
11468
11469for ac_header in dbus/dbus.h hal/libhal.h
11470do
11471as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11475if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9ef88cd 11476 echo $ECHO_N "(cached) $ECHO_C" >&6
a3097628
AJ
11477fi
11478ac_res=`eval echo '${'$as_ac_Header'}'`
11479 { echo "$as_me:$LINENO: result: $ac_res" >&5
11480echo "${ECHO_T}$ac_res" >&6; }
d9ef88cd 11481else
a3097628
AJ
11482 # Is the header compilable?
11483{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11484echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11485cat >conftest.$ac_ext <<_ACEOF
11486/* confdefs.h. */
11487_ACEOF
11488cat confdefs.h >>conftest.$ac_ext
11489cat >>conftest.$ac_ext <<_ACEOF
11490/* end confdefs.h. */
11491$ac_includes_default
11492#include <$ac_header>
11493_ACEOF
11494rm -f conftest.$ac_objext
11495if { (ac_try="$ac_compile"
11496case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499esac
11500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_compile") 2>conftest.er1
11502 ac_status=$?
11503 grep -v '^ *+' conftest.er1 >conftest.err
11504 rm -f conftest.er1
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } && {
11508 test -z "$ac_c_werror_flag" ||
11509 test ! -s conftest.err
11510 } && test -s conftest.$ac_objext; then
11511 ac_header_compiler=yes
d9ef88cd 11512else
a3097628
AJ
11513 echo "$as_me: failed program was:" >&5
11514sed 's/^/| /' conftest.$ac_ext >&5
d9ef88cd 11515
a3097628 11516 ac_header_compiler=no
d9ef88cd
MM
11517fi
11518
a3097628
AJ
11519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11520{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11521echo "${ECHO_T}$ac_header_compiler" >&6; }
d9ef88cd 11522
a3097628
AJ
11523# Is the header present?
11524{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11525echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11526cat >conftest.$ac_ext <<_ACEOF
11527/* confdefs.h. */
11528_ACEOF
11529cat confdefs.h >>conftest.$ac_ext
11530cat >>conftest.$ac_ext <<_ACEOF
11531/* end confdefs.h. */
11532#include <$ac_header>
11533_ACEOF
11534if { (ac_try="$ac_cpp conftest.$ac_ext"
11535case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538esac
11539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } >/dev/null && {
11547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11548 test ! -s conftest.err
11549 }; then
11550 ac_header_preproc=yes
d9ef88cd 11551else
a3097628
AJ
11552 echo "$as_me: failed program was:" >&5
11553sed 's/^/| /' conftest.$ac_ext >&5
d9ef88cd 11554
a3097628 11555 ac_header_preproc=no
d9ef88cd 11556fi
a3097628
AJ
11557
11558rm -f conftest.err conftest.$ac_ext
11559{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11560echo "${ECHO_T}$ac_header_preproc" >&6; }
11561
11562# So? What about this header?
11563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11564 yes:no: )
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11569 ac_header_preproc=yes
11570 ;;
11571 no:yes:* )
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11575echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11579echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11584 ( cat <<\_ASBOX
11585## ------------------------------------ ##
11586## Report this to wine-devel@winehq.org ##
11587## ------------------------------------ ##
11588_ASBOX
11589 ) | sed "s/^/$as_me: WARNING: /" >&2
11590 ;;
11591esac
11592{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
d9ef88cd 11596else
a3097628 11597 eval "$as_ac_Header=\$ac_header_preproc"
d9ef88cd 11598fi
a3097628
AJ
11599ac_res=`eval echo '${'$as_ac_Header'}'`
11600 { echo "$as_me:$LINENO: result: $ac_res" >&5
11601echo "${ECHO_T}$ac_res" >&6; }
d9ef88cd 11602
a3097628
AJ
11603fi
11604if test `eval echo '${'$as_ac_Header'}'` = yes; then
11605 cat >>confdefs.h <<_ACEOF
11606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11607_ACEOF
d9ef88cd 11608
d9ef88cd
MM
11609fi
11610
a3097628
AJ
11611done
11612
11613 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
11614 then
c1099bb7
AJ
11615 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
11616echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
11617if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
ea524def
HL
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11619else
11620 ac_check_lib_save_LIBS=$LIBS
c1099bb7 11621LIBS="-ldbus-1 $ac_hal_libs $LIBS"
ea524def
HL
11622cat >conftest.$ac_ext <<_ACEOF
11623/* confdefs.h. */
11624_ACEOF
11625cat confdefs.h >>conftest.$ac_ext
11626cat >>conftest.$ac_ext <<_ACEOF
11627/* end confdefs.h. */
11628
fc6ffb29
AJ
11629/* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
ea524def
HL
11632#ifdef __cplusplus
11633extern "C"
11634#endif
c1099bb7 11635char dbus_connection_close ();
ea524def
HL
11636int
11637main ()
11638{
c1099bb7 11639return dbus_connection_close ();
ea524def
HL
11640 ;
11641 return 0;
11642}
11643_ACEOF
11644rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11645if { (ac_try="$ac_link"
11646case "(($ac_try" in
11647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648 *) ac_try_echo=$ac_try;;
11649esac
11650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651 (eval "$ac_link") 2>conftest.er1
ea524def
HL
11652 ac_status=$?
11653 grep -v '^ *+' conftest.er1 >conftest.err
11654 rm -f conftest.er1
11655 cat conftest.err >&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11657 (exit $ac_status); } && {
11658 test -z "$ac_c_werror_flag" ||
11659 test ! -s conftest.err
11660 } && test -s conftest$ac_exeext &&
11661 $as_test_x conftest$ac_exeext; then
c1099bb7 11662 ac_cv_lib_dbus_1_dbus_connection_close=yes
ea524def
HL
11663else
11664 echo "$as_me: failed program was:" >&5
11665sed 's/^/| /' conftest.$ac_ext >&5
11666
c1099bb7 11667 ac_cv_lib_dbus_1_dbus_connection_close=no
ea524def 11668fi
fc6ffb29 11669
f0ca586f 11670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
ea524def
HL
11671 conftest$ac_exeext conftest.$ac_ext
11672LIBS=$ac_check_lib_save_LIBS
11673fi
c1099bb7
AJ
11674{ echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
11675echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
11676if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
11677 { echo "$as_me:$LINENO: checking for -lhal" >&5
11678echo $ECHO_N "checking for -lhal... $ECHO_C" >&6; }
11679if test "${ac_cv_lib_soname_hal+set}" = set; then
f5818d2f
AJ
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11681else
c1099bb7
AJ
11682 ac_check_soname_save_LIBS=$LIBS
11683LIBS="-lhal $ac_hal_libs $LIBS"
11684 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
11685/* confdefs.h. */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h. */
9c269172 11690
a3097628
AJ
11691/* Override any GCC internal prototype to avoid an error.
11692 Use char because int might match the return type of a GCC
11693 builtin and then its argument prototype would still apply. */
11694#ifdef __cplusplus
11695extern "C"
11696#endif
c1099bb7 11697char libhal_ctx_new ();
a3097628
AJ
11698int
11699main ()
11700{
c1099bb7 11701return libhal_ctx_new ();
a3097628
AJ
11702 ;
11703 return 0;
11704}
daa2886c 11705_ACEOF
a3097628
AJ
11706rm -f conftest.$ac_objext conftest$ac_exeext
11707if { (ac_try="$ac_link"
0ebeb530
JW
11708case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11711esac
11712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 11713 (eval "$ac_link") 2>conftest.er1
daa2886c 11714 ac_status=$?
875927f6
AJ
11715 grep -v '^ *+' conftest.er1 >conftest.err
11716 rm -f conftest.er1
11717 cat conftest.err >&5
daa2886c 11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11719 (exit $ac_status); } && {
11720 test -z "$ac_c_werror_flag" ||
11721 test ! -s conftest.err
a3097628
AJ
11722 } && test -s conftest$ac_exeext &&
11723 $as_test_x conftest$ac_exeext; then
c1099bb7
AJ
11724 case "$LIBEXT" in
11725 dll) ;;
11726 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'` ;;
11727 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11728 esac
daa2886c
AJ
11729else
11730 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11731sed 's/^/| /' conftest.$ac_ext >&5
11732
c1099bb7 11733
daa2886c 11734fi
fc6ffb29 11735
a3097628
AJ
11736rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11737 conftest$ac_exeext conftest.$ac_ext
c1099bb7 11738 LIBS=$ac_check_soname_save_LIBS
40432fef 11739fi
c1099bb7
AJ
11740if test "x$ac_cv_lib_soname_hal" = "x"; then
11741 { echo "$as_me:$LINENO: result: not found" >&5
11742echo "${ECHO_T}not found" >&6; }
a3097628 11743
c1099bb7
AJ
11744else
11745 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
11746echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
11747
11748cat >>confdefs.h <<_ACEOF
11749#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
daa2886c 11750_ACEOF
f5818d2f 11751
c1099bb7 11752 HALINCL="$ac_hal_cflags"
a3097628
AJ
11753fi
11754
40432fef 11755fi
daa2886c 11756
a3097628
AJ
11757 fi
11758 CPPFLAGS="$ac_save_CPPFLAGS"
11759fi
f9dec94f
AJ
11760if test "x$ac_cv_lib_soname_hal" = "x"; then
11761 wine_notices="$wine_notices|libhal development files not found.
11762Wine will be built without dynamic device support. (explorer.exe)"
11763fi
11764
40432fef 11765
a3097628
AJ
11766CURSESLIBS=""
11767if test "$ac_cv_header_ncurses_h" = "yes"
11768then
d0783774
AJ
11769 { echo "$as_me:$LINENO: checking for -lncurses" >&5
11770echo $ECHO_N "checking for -lncurses... $ECHO_C" >&6; }
11771if test "${ac_cv_lib_soname_ncurses+set}" = set; then
a3097628
AJ
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
11773else
d0783774 11774 ac_check_soname_save_LIBS=$LIBS
a3097628 11775LIBS="-lncurses $LIBS"
d0783774 11776 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
11777/* confdefs.h. */
11778_ACEOF
11779cat confdefs.h >>conftest.$ac_ext
11780cat >>conftest.$ac_ext <<_ACEOF
11781/* end confdefs.h. */
a3097628
AJ
11782
11783/* Override any GCC internal prototype to avoid an error.
11784 Use char because int might match the return type of a GCC
11785 builtin and then its argument prototype would still apply. */
11786#ifdef __cplusplus
11787extern "C"
11788#endif
11789char waddch ();
11790int
11791main ()
11792{
11793return waddch ();
11794 ;
11795 return 0;
11796}
f5818d2f 11797_ACEOF
a3097628
AJ
11798rm -f conftest.$ac_objext conftest$ac_exeext
11799if { (ac_try="$ac_link"
0ebeb530
JW
11800case "(($ac_try" in
11801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11803esac
11804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 11805 (eval "$ac_link") 2>conftest.er1
f5818d2f 11806 ac_status=$?
11af04e3 11807 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
11808 rm -f conftest.er1
11809 cat conftest.err >&5
daa2886c 11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
11811 (exit $ac_status); } && {
11812 test -z "$ac_c_werror_flag" ||
dc9f3843 11813 test ! -s conftest.err
a3097628
AJ
11814 } && test -s conftest$ac_exeext &&
11815 $as_test_x conftest$ac_exeext; then
d0783774
AJ
11816 case "$LIBEXT" in
11817 dll) ;;
11818 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'` ;;
11819 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11820 esac
18d7573c 11821else
f5818d2f 11822 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11823sed 's/^/| /' conftest.$ac_ext >&5
11824
d0783774 11825
18d7573c 11826fi
fc6ffb29 11827
a3097628
AJ
11828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11829 conftest$ac_exeext conftest.$ac_ext
d0783774 11830 LIBS=$ac_check_soname_save_LIBS
a3097628 11831fi
d0783774
AJ
11832if test "x$ac_cv_lib_soname_ncurses" = "x"; then
11833 { echo "$as_me:$LINENO: result: not found" >&5
11834echo "${ECHO_T}not found" >&6; }
11835
11836else
11837 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
11838echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
11839
11840cat >>confdefs.h <<_ACEOF
11841#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
11842_ACEOF
11843
11844 CURSESLIBS="-lncurses"
a3097628
AJ
11845fi
11846
11847elif test "$ac_cv_header_curses_h" = "yes"
11848then
d0783774
AJ
11849 { echo "$as_me:$LINENO: checking for -lcurses" >&5
11850echo $ECHO_N "checking for -lcurses... $ECHO_C" >&6; }
11851if test "${ac_cv_lib_soname_curses+set}" = set; then
d8a6c278
HD
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11853else
d0783774 11854 ac_check_soname_save_LIBS=$LIBS
a3097628 11855LIBS="-lcurses $LIBS"
d0783774 11856 cat >conftest.$ac_ext <<_ACEOF
d8a6c278
HD
11857/* confdefs.h. */
11858_ACEOF
11859cat confdefs.h >>conftest.$ac_ext
11860cat >>conftest.$ac_ext <<_ACEOF
11861/* end confdefs.h. */
d8a6c278 11862
a3097628
AJ
11863/* Override any GCC internal prototype to avoid an error.
11864 Use char because int might match the return type of a GCC
11865 builtin and then its argument prototype would still apply. */
11866#ifdef __cplusplus
11867extern "C"
11868#endif
11869char waddch ();
d8a6c278
HD
11870int
11871main ()
11872{
a3097628 11873return waddch ();
d8a6c278
HD
11874 ;
11875 return 0;
11876}
11877_ACEOF
a3097628
AJ
11878rm -f conftest.$ac_objext conftest$ac_exeext
11879if { (ac_try="$ac_link"
0ebeb530
JW
11880case "(($ac_try" in
11881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882 *) ac_try_echo=$ac_try;;
11883esac
11884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 11885 (eval "$ac_link") 2>conftest.er1
d8a6c278
HD
11886 ac_status=$?
11887 grep -v '^ *+' conftest.er1 >conftest.err
11888 rm -f conftest.er1
11889 cat conftest.err >&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11891 (exit $ac_status); } && {
11892 test -z "$ac_c_werror_flag" ||
11893 test ! -s conftest.err
a3097628
AJ
11894 } && test -s conftest$ac_exeext &&
11895 $as_test_x conftest$ac_exeext; then
d0783774
AJ
11896 case "$LIBEXT" in
11897 dll) ;;
11898 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'` ;;
11899 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11900 esac
d8a6c278
HD
11901else
11902 echo "$as_me: failed program was:" >&5
11903sed 's/^/| /' conftest.$ac_ext >&5
11904
d0783774 11905
d8a6c278 11906fi
d8a6c278 11907
a3097628
AJ
11908rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11909 conftest$ac_exeext conftest.$ac_ext
d0783774 11910 LIBS=$ac_check_soname_save_LIBS
a3097628 11911fi
d0783774
AJ
11912if test "x$ac_cv_lib_soname_curses" = "x"; then
11913 { echo "$as_me:$LINENO: result: not found" >&5
11914echo "${ECHO_T}not found" >&6; }
11915
11916else
11917 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
11918echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
11919
11920cat >>confdefs.h <<_ACEOF
11921#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
11922_ACEOF
11923
11924 CURSESLIBS="-lcurses"
d8a6c278
HD
11925fi
11926
a3097628
AJ
11927fi
11928ac_save_LIBS="$LIBS"
11929LIBS="$LIBS $CURSESLIBS"
35bca77f 11930
a3097628 11931for ac_func in mousemask
35bca77f
HD
11932do
11933as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
fc6ffb29
AJ
11934{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11935echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11936if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35bca77f
HD
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11938else
11939 cat >conftest.$ac_ext <<_ACEOF
11940/* confdefs.h. */
11941_ACEOF
11942cat confdefs.h >>conftest.$ac_ext
11943cat >>conftest.$ac_ext <<_ACEOF
11944/* end confdefs.h. */
11945/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11947#define $ac_func innocuous_$ac_func
11948
11949/* System header to define __stub macros and hopefully few prototypes,
11950 which can conflict with char $ac_func (); below.
11951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11952 <limits.h> exists even on freestanding compilers. */
11953
11954#ifdef __STDC__
11955# include <limits.h>
11956#else
11957# include <assert.h>
11958#endif
11959
11960#undef $ac_func
11961
fc6ffb29
AJ
11962/* Override any GCC internal prototype to avoid an error.
11963 Use char because int might match the return type of a GCC
11964 builtin and then its argument prototype would still apply. */
35bca77f
HD
11965#ifdef __cplusplus
11966extern "C"
35bca77f 11967#endif
35bca77f
HD
11968char $ac_func ();
11969/* The GNU C library defines this for functions which it implements
11970 to always fail with ENOSYS. Some functions are actually named
11971 something starting with __ and the normal name is an alias. */
fc6ffb29 11972#if defined __stub_$ac_func || defined __stub___$ac_func
35bca77f 11973choke me
35bca77f
HD
11974#endif
11975
11976int
11977main ()
11978{
fc6ffb29 11979return $ac_func ();
35bca77f
HD
11980 ;
11981 return 0;
11982}
11983_ACEOF
11984rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11985if { (ac_try="$ac_link"
11986case "(($ac_try" in
11987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11988 *) ac_try_echo=$ac_try;;
11989esac
11990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11991 (eval "$ac_link") 2>conftest.er1
35bca77f
HD
11992 ac_status=$?
11993 grep -v '^ *+' conftest.er1 >conftest.err
11994 rm -f conftest.er1
11995 cat conftest.err >&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
11997 (exit $ac_status); } && {
11998 test -z "$ac_c_werror_flag" ||
11999 test ! -s conftest.err
12000 } && test -s conftest$ac_exeext &&
12001 $as_test_x conftest$ac_exeext; then
35bca77f
HD
12002 eval "$as_ac_var=yes"
12003else
12004 echo "$as_me: failed program was:" >&5
12005sed 's/^/| /' conftest.$ac_ext >&5
12006
fc6ffb29 12007 eval "$as_ac_var=no"
35bca77f 12008fi
fc6ffb29 12009
f0ca586f 12010rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35bca77f
HD
12011 conftest$ac_exeext conftest.$ac_ext
12012fi
fc6ffb29
AJ
12013ac_res=`eval echo '${'$as_ac_var'}'`
12014 { echo "$as_me:$LINENO: result: $ac_res" >&5
12015echo "${ECHO_T}$ac_res" >&6; }
35bca77f
HD
12016if test `eval echo '${'$as_ac_var'}'` = yes; then
12017 cat >>confdefs.h <<_ACEOF
12018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12019_ACEOF
12020
12021fi
12022done
12023
a3097628 12024LIBS="$ac_save_LIBS"
f9dec94f
AJ
12025if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then
12026 wine_notices="$wine_notices|lib(n)curses development files not found.
12027Wine will be built without (n)curses support. (wineconsole.exe)"
12028fi
12029
f5818d2f 12030
a3097628
AJ
12031# Extract the first word of "sane-config", so it can be a program name with args.
12032set dummy sane-config; ac_word=$2
12033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12035if test "${ac_cv_prog_sane_devel+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12037else
12038 if test -n "$sane_devel"; then
12039 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
12040else
12041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042for as_dir in $PATH
12043do
12044 IFS=$as_save_IFS
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12048 ac_cv_prog_sane_devel="sane-config"
12049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12050 break 2
12051 fi
12052done
12053done
12054IFS=$as_save_IFS
9b1d3726 12055
a3097628
AJ
12056 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
12057fi
12058fi
12059sane_devel=$ac_cv_prog_sane_devel
12060if test -n "$sane_devel"; then
12061 { echo "$as_me:$LINENO: result: $sane_devel" >&5
12062echo "${ECHO_T}$sane_devel" >&6; }
12063else
12064 { echo "$as_me:$LINENO: result: no" >&5
12065echo "${ECHO_T}no" >&6; }
563598d4
IP
12066fi
12067
00acb5f7 12068
a3097628
AJ
12069if test "$sane_devel" != "no"
12070then
418e74b5 12071 ac_sane_incl="`$sane_devel --cflags`"
a3097628 12072 ac_save_CPPFLAGS="$CPPFLAGS"
418e74b5 12073 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
a3097628
AJ
12074 if test "${ac_cv_header_sane_sane_h+set}" = set; then
12075 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
12076echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
12077if test "${ac_cv_header_sane_sane_h+set}" = set; then
f5818d2f 12078 echo $ECHO_N "(cached) $ECHO_C" >&6
a3097628
AJ
12079fi
12080{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
12081echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
6509fa93 12082else
a3097628
AJ
12083 # Is the header compilable?
12084{ echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
12085echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
12086cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
12087/* confdefs.h. */
12088_ACEOF
12089cat confdefs.h >>conftest.$ac_ext
12090cat >>conftest.$ac_ext <<_ACEOF
12091/* end confdefs.h. */
a3097628
AJ
12092$ac_includes_default
12093#include <sane/sane.h>
f5818d2f
AJ
12094_ACEOF
12095rm -f conftest.$ac_objext
0ebeb530
JW
12096if { (ac_try="$ac_compile"
12097case "(($ac_try" in
12098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12099 *) ac_try_echo=$ac_try;;
12100esac
12101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102 (eval "$ac_compile") 2>conftest.er1
f5818d2f 12103 ac_status=$?
875927f6
AJ
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
daa2886c 12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12108 (exit $ac_status); } && {
12109 test -z "$ac_c_werror_flag" ||
12110 test ! -s conftest.err
12111 } && test -s conftest.$ac_objext; then
a3097628 12112 ac_header_compiler=yes
6509fa93 12113else
f5818d2f 12114 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12115sed 's/^/| /' conftest.$ac_ext >&5
12116
a3097628 12117 ac_header_compiler=no
6509fa93 12118fi
fc6ffb29 12119
0ebeb530 12120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a3097628
AJ
12121{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12122echo "${ECHO_T}$ac_header_compiler" >&6; }
12123
12124# Is the header present?
12125{ echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
12126echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
12127cat >conftest.$ac_ext <<_ACEOF
12128/* confdefs.h. */
12129_ACEOF
12130cat confdefs.h >>conftest.$ac_ext
12131cat >>conftest.$ac_ext <<_ACEOF
12132/* end confdefs.h. */
12133#include <sane/sane.h>
12134_ACEOF
12135if { (ac_try="$ac_cpp conftest.$ac_ext"
12136case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12139esac
12140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12142 ac_status=$?
12143 grep -v '^ *+' conftest.er1 >conftest.err
12144 rm -f conftest.er1
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } >/dev/null && {
12148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12149 test ! -s conftest.err
12150 }; then
12151 ac_header_preproc=yes
12152else
12153 echo "$as_me: failed program was:" >&5
12154sed 's/^/| /' conftest.$ac_ext >&5
12155
12156 ac_header_preproc=no
f5818d2f 12157fi
a3097628
AJ
12158
12159rm -f conftest.err conftest.$ac_ext
12160{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12161echo "${ECHO_T}$ac_header_preproc" >&6; }
12162
12163# So? What about this header?
12164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12165 yes:no: )
12166 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
12167echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12168 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
12169echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
12170 ac_header_preproc=yes
12171 ;;
12172 no:yes:* )
12173 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
12174echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
12175 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
12176echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
12178echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
12180echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
12182echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
12184echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
12185 ( cat <<\_ASBOX
12186## ------------------------------------ ##
12187## Report this to wine-devel@winehq.org ##
12188## ------------------------------------ ##
12189_ASBOX
12190 ) | sed "s/^/$as_me: WARNING: /" >&2
12191 ;;
12192esac
12193{ echo "$as_me:$LINENO: checking for sane/sane.h" >&5
12194echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
12195if test "${ac_cv_header_sane_sane_h+set}" = set; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12197else
12198 ac_cv_header_sane_sane_h=$ac_header_preproc
12199fi
12200{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
12201echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
12202
12203fi
12204if test $ac_cv_header_sane_sane_h = yes; then
418e74b5
AJ
12205 { echo "$as_me:$LINENO: checking for -lsane" >&5
12206echo $ECHO_N "checking for -lsane... $ECHO_C" >&6; }
12207if test "${ac_cv_lib_soname_sane+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209else
12210 ac_check_soname_save_LIBS=$LIBS
12211LIBS="-lsane $LIBS"
12212 cat >conftest.$ac_ext <<_ACEOF
12213/* confdefs.h. */
12214_ACEOF
12215cat confdefs.h >>conftest.$ac_ext
12216cat >>conftest.$ac_ext <<_ACEOF
12217/* end confdefs.h. */
f5818d2f 12218
418e74b5
AJ
12219/* Override any GCC internal prototype to avoid an error.
12220 Use char because int might match the return type of a GCC
12221 builtin and then its argument prototype would still apply. */
12222#ifdef __cplusplus
12223extern "C"
12224#endif
12225char sane_init ();
12226int
12227main ()
12228{
12229return sane_init ();
12230 ;
12231 return 0;
12232}
daa2886c 12233_ACEOF
418e74b5
AJ
12234rm -f conftest.$ac_objext conftest$ac_exeext
12235if { (ac_try="$ac_link"
12236case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12239esac
12240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_link") 2>conftest.er1
12242 ac_status=$?
12243 grep -v '^ *+' conftest.er1 >conftest.err
12244 rm -f conftest.er1
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } && {
12248 test -z "$ac_c_werror_flag" ||
12249 test ! -s conftest.err
12250 } && test -s conftest$ac_exeext &&
12251 $as_test_x conftest$ac_exeext; then
12252 case "$LIBEXT" in
12253 dll) ;;
12254 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'` ;;
12255 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
12256 esac
12257else
12258 echo "$as_me: failed program was:" >&5
12259sed 's/^/| /' conftest.$ac_ext >&5
12260
12261
12262fi
12263
12264rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12265 conftest$ac_exeext conftest.$ac_ext
12266 LIBS=$ac_check_soname_save_LIBS
12267fi
12268if test "x$ac_cv_lib_soname_sane" = "x"; then
12269 { echo "$as_me:$LINENO: result: not found" >&5
12270echo "${ECHO_T}not found" >&6; }
6509fa93 12271
a3097628 12272else
418e74b5
AJ
12273 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_sane" >&5
12274echo "${ECHO_T}$ac_cv_lib_soname_sane" >&6; }
12275
12276cat >>confdefs.h <<_ACEOF
12277#define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
12278_ACEOF
12279
12280 SANEINCL="$ac_sane_incl"
12281
12282fi
12283
a3097628
AJ
12284fi
12285
12286
12287 CPPFLAGS="$ac_save_CPPFLAGS"
12288fi
f9dec94f
AJ
12289if test "x$ac_cv_lib_soname_sane" = "x"; then
12290 wine_notices="$wine_notices|libsane development files not found.
12291Wine will be built without scanner support. (sane.ds/twain_32.dll)"
12292fi
12293
a3097628
AJ
12294
12295# Extract the first word of "gphoto2-config", so it can be a program name with args.
12296set dummy gphoto2-config; ac_word=$2
12297{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12299if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301else
12302 if test -n "$gphoto2_devel"; then
12303 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
12304else
12305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12306for as_dir in $PATH
12307do
12308 IFS=$as_save_IFS
12309 test -z "$as_dir" && as_dir=.
12310 for ac_exec_ext in '' $ac_executable_extensions; do
12311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12312 ac_cv_prog_gphoto2_devel="gphoto2-config"
12313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12314 break 2
12315 fi
12316done
12317done
12318IFS=$as_save_IFS
12319
12320 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
12321fi
12322fi
12323gphoto2_devel=$ac_cv_prog_gphoto2_devel
12324if test -n "$gphoto2_devel"; then
12325 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
12326echo "${ECHO_T}$gphoto2_devel" >&6; }
12327else
12328 { echo "$as_me:$LINENO: result: no" >&5
12329echo "${ECHO_T}no" >&6; }
12330fi
12331
12332
12333# Extract the first word of "gphoto2-port-config", so it can be a program name with args.
12334set dummy gphoto2-port-config; ac_word=$2
12335{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12337if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12339else
12340 if test -n "$gphoto2port_devel"; then
12341 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
12342else
12343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12344for as_dir in $PATH
12345do
12346 IFS=$as_save_IFS
12347 test -z "$as_dir" && as_dir=.
12348 for ac_exec_ext in '' $ac_executable_extensions; do
12349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12350 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
12351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12352 break 2
12353 fi
12354done
12355done
12356IFS=$as_save_IFS
12357
12358 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
6509fa93 12359fi
a3097628
AJ
12360fi
12361gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
12362if test -n "$gphoto2port_devel"; then
12363 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
12364echo "${ECHO_T}$gphoto2port_devel" >&6; }
5ee517ac 12365else
a3097628
AJ
12366 { echo "$as_me:$LINENO: result: no" >&5
12367echo "${ECHO_T}no" >&6; }
5ee517ac 12368fi
fc6ffb29 12369
5ee517ac 12370
a3097628
AJ
12371if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
12372then
f9dec94f
AJ
12373 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
12374 ac_gphoto2_libs=""
a3097628
AJ
12375 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
12376 do
12377 case "$i" in
12378 -L/usr/lib|-L/usr/lib64) ;;
f9dec94f 12379 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
a3097628
AJ
12380 esac
12381 done
12382 ac_save_CPPFLAGS="$CPPFLAGS"
f9dec94f 12383 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
a3097628
AJ
12384 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12385 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12386echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12387if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
5ee517ac 12388 echo $ECHO_N "(cached) $ECHO_C" >&6
a3097628
AJ
12389fi
12390{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12391echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
5ee517ac 12392else
a3097628
AJ
12393 # Is the header compilable?
12394{ echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
12395echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
12396cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
12397/* confdefs.h. */
12398_ACEOF
12399cat confdefs.h >>conftest.$ac_ext
12400cat >>conftest.$ac_ext <<_ACEOF
12401/* end confdefs.h. */
a3097628
AJ
12402$ac_includes_default
12403#include <gphoto2-camera.h>
5ee517ac 12404_ACEOF
a3097628
AJ
12405rm -f conftest.$ac_objext
12406if { (ac_try="$ac_compile"
0ebeb530
JW
12407case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410esac
12411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 12412 (eval "$ac_compile") 2>conftest.er1
5ee517ac 12413 ac_status=$?
875927f6
AJ
12414 grep -v '^ *+' conftest.er1 >conftest.err
12415 rm -f conftest.er1
12416 cat conftest.err >&5
5ee517ac 12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12418 (exit $ac_status); } && {
12419 test -z "$ac_c_werror_flag" ||
12420 test ! -s conftest.err
a3097628
AJ
12421 } && test -s conftest.$ac_objext; then
12422 ac_header_compiler=yes
5ee517ac
MM
12423else
12424 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12425sed 's/^/| /' conftest.$ac_ext >&5
12426
a3097628 12427 ac_header_compiler=no
5ee517ac 12428fi
5ee517ac 12429
a3097628
AJ
12430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12431{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12432echo "${ECHO_T}$ac_header_compiler" >&6; }
5ee517ac 12433
a3097628
AJ
12434# Is the header present?
12435{ echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
12436echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
12437cat >conftest.$ac_ext <<_ACEOF
b2d937d5
AJ
12438/* confdefs.h. */
12439_ACEOF
12440cat confdefs.h >>conftest.$ac_ext
12441cat >>conftest.$ac_ext <<_ACEOF
12442/* end confdefs.h. */
a3097628 12443#include <gphoto2-camera.h>
b2d937d5 12444_ACEOF
a3097628 12445if { (ac_try="$ac_cpp conftest.$ac_ext"
0ebeb530
JW
12446case "(($ac_try" in
12447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12448 *) ac_try_echo=$ac_try;;
12449esac
12450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 12451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
b2d937d5 12452 ac_status=$?
875927f6
AJ
12453 grep -v '^ *+' conftest.er1 >conftest.err
12454 rm -f conftest.er1
12455 cat conftest.err >&5
b2d937d5 12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
12457 (exit $ac_status); } >/dev/null && {
12458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dc9f3843 12459 test ! -s conftest.err
a3097628
AJ
12460 }; then
12461 ac_header_preproc=yes
b2d937d5
AJ
12462else
12463 echo "$as_me: failed program was:" >&5
12464sed 's/^/| /' conftest.$ac_ext >&5
12465
a3097628 12466 ac_header_preproc=no
b2d937d5 12467fi
fc6ffb29 12468
a3097628
AJ
12469rm -f conftest.err conftest.$ac_ext
12470{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12471echo "${ECHO_T}$ac_header_preproc" >&6; }
b2d937d5 12472
a3097628
AJ
12473# So? What about this header?
12474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12475 yes:no: )
12476 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
12477echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12478 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
12479echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
12480 ac_header_preproc=yes
12481 ;;
12482 no:yes:* )
12483 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
12484echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
12486echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
12487 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
12488echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
12489 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
12490echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
12491 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
12492echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
12493 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
12494echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
12495 ( cat <<\_ASBOX
12496## ------------------------------------ ##
12497## Report this to wine-devel@winehq.org ##
12498## ------------------------------------ ##
12499_ASBOX
12500 ) | sed "s/^/$as_me: WARNING: /" >&2
12501 ;;
12502esac
12503{ echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12504echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
12505if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12506 echo $ECHO_N "(cached) $ECHO_C" >&6
12507else
12508 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
b2d937d5 12509fi
a3097628
AJ
12510{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12511echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
b2d937d5
AJ
12512
12513fi
a3097628
AJ
12514if test $ac_cv_header_gphoto2_camera_h = yes; then
12515 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
12516echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
12517if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
80e34dbb
AJ
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519else
a3097628 12520 ac_check_lib_save_LIBS=$LIBS
f9dec94f 12521LIBS="-lgphoto2 $GPHOTO2LIBS $LIBS"
a3097628 12522cat >conftest.$ac_ext <<_ACEOF
80e34dbb
AJ
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
80e34dbb 12528
a3097628
AJ
12529/* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532#ifdef __cplusplus
12533extern "C"
12534#endif
12535char gp_camera_new ();
80e34dbb
AJ
12536int
12537main ()
12538{
a3097628 12539return gp_camera_new ();
80e34dbb
AJ
12540 ;
12541 return 0;
12542}
12543_ACEOF
a3097628
AJ
12544rm -f conftest.$ac_objext 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>conftest.er1
80e34dbb 12552 ac_status=$?
875927f6
AJ
12553 grep -v '^ *+' conftest.er1 >conftest.err
12554 rm -f conftest.er1
12555 cat conftest.err >&5
80e34dbb 12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12557 (exit $ac_status); } && {
12558 test -z "$ac_c_werror_flag" ||
12559 test ! -s conftest.err
a3097628
AJ
12560 } && test -s conftest$ac_exeext &&
12561 $as_test_x conftest$ac_exeext; then
12562 ac_cv_lib_gphoto2_gp_camera_new=yes
80e34dbb
AJ
12563else
12564 echo "$as_me: failed program was:" >&5
12565sed 's/^/| /' conftest.$ac_ext >&5
12566
a3097628 12567 ac_cv_lib_gphoto2_gp_camera_new=no
80e34dbb 12568fi
fc6ffb29 12569
a3097628
AJ
12570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12571 conftest$ac_exeext conftest.$ac_ext
12572LIBS=$ac_check_lib_save_LIBS
80e34dbb 12573fi
a3097628
AJ
12574{ echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
12575echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
12576if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
80e34dbb 12577
a3097628
AJ
12578cat >>confdefs.h <<\_ACEOF
12579#define HAVE_GPHOTO2 1
80e34dbb
AJ
12580_ACEOF
12581
f9dec94f
AJ
12582 GPHOTO2LIBS="$ac_gphoto2_libs"
12583
12584 GPHOTO2INCL="$ac_gphoto2_incl"
12585
a3097628
AJ
12586fi
12587
a3097628
AJ
12588fi
12589
80e34dbb 12590
a3097628 12591 CPPFLAGS="$ac_save_CPPFLAGS"
80e34dbb 12592fi
f9dec94f
AJ
12593if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then
12594 wine_notices="$wine_notices|libgphoto2 development files not found.
12595Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)"
12596fi
12597
12598
a3097628 12599
a3097628 12600RESOLVLIBS=""
80e34dbb 12601
a3097628
AJ
12602if test "$ac_cv_header_resolv_h" = "yes"
12603then
12604 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
12605echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
12606if test "${ac_cv_lib_resolv_res_query+set}" = set; then
821ab863
AJ
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12608else
a3097628
AJ
12609 ac_check_lib_save_LIBS=$LIBS
12610LIBS="-lresolv $LIBS"
12611cat >conftest.$ac_ext <<_ACEOF
821ab863
AJ
12612/* confdefs.h. */
12613_ACEOF
12614cat confdefs.h >>conftest.$ac_ext
12615cat >>conftest.$ac_ext <<_ACEOF
12616/* end confdefs.h. */
875927f6 12617
fc6ffb29
AJ
12618/* Override any GCC internal prototype to avoid an error.
12619 Use char because int might match the return type of a GCC
12620 builtin and then its argument prototype would still apply. */
821ab863
AJ
12621#ifdef __cplusplus
12622extern "C"
821ab863 12623#endif
a3097628 12624char res_query ();
821ab863
AJ
12625int
12626main ()
12627{
a3097628 12628return res_query ();
821ab863
AJ
12629 ;
12630 return 0;
12631}
12632_ACEOF
12633rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
12634if { (ac_try="$ac_link"
12635case "(($ac_try" in
12636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12638esac
12639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_link") 2>conftest.er1
821ab863 12641 ac_status=$?
875927f6
AJ
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
821ab863 12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12646 (exit $ac_status); } && {
12647 test -z "$ac_c_werror_flag" ||
12648 test ! -s conftest.err
12649 } && test -s conftest$ac_exeext &&
12650 $as_test_x conftest$ac_exeext; then
a3097628 12651 ac_cv_lib_resolv_res_query=yes
821ab863
AJ
12652else
12653 echo "$as_me: failed program was:" >&5
12654sed 's/^/| /' conftest.$ac_ext >&5
12655
a3097628 12656 ac_cv_lib_resolv_res_query=no
821ab863 12657fi
fc6ffb29 12658
f0ca586f 12659rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 12660 conftest$ac_exeext conftest.$ac_ext
a3097628 12661LIBS=$ac_check_lib_save_LIBS
821ab863 12662fi
a3097628
AJ
12663{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12664echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
12665if test $ac_cv_lib_resolv_res_query = yes; then
12666
12667cat >>confdefs.h <<\_ACEOF
12668#define HAVE_RESOLV 1
821ab863
AJ
12669_ACEOF
12670
a3097628 12671 RESOLVLIBS="-lresolv"
821ab863 12672fi
daa2886c 12673
73482144 12674fi
2a91e3f9 12675
a3097628 12676LCMSLIBS=""
fc6ffb29 12677
a3097628 12678if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
73482144 12679then
a3097628
AJ
12680 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12681echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
12682if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
2a91e3f9 12683 echo $ECHO_N "(cached) $ECHO_C" >&6
2a91e3f9 12684else
73482144 12685 ac_check_lib_save_LIBS=$LIBS
a3097628 12686LIBS="-llcms $LIBS"
2a91e3f9 12687cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
12688/* confdefs.h. */
12689_ACEOF
12690cat confdefs.h >>conftest.$ac_ext
12691cat >>conftest.$ac_ext <<_ACEOF
12692/* end confdefs.h. */
73482144 12693
fc6ffb29
AJ
12694/* Override any GCC internal prototype to avoid an error.
12695 Use char because int might match the return type of a GCC
12696 builtin and then its argument prototype would still apply. */
73482144
AJ
12697#ifdef __cplusplus
12698extern "C"
12699#endif
a3097628 12700char cmsOpenProfileFromFile ();
73482144
AJ
12701int
12702main ()
12703{
a3097628 12704return cmsOpenProfileFromFile ();
73482144
AJ
12705 ;
12706 return 0;
12707}
2a91e3f9 12708_ACEOF
73482144 12709rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
12710if { (ac_try="$ac_link"
12711case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12714esac
12715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_link") 2>conftest.er1
2a91e3f9 12717 ac_status=$?
875927f6
AJ
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
2a91e3f9 12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12722 (exit $ac_status); } && {
12723 test -z "$ac_c_werror_flag" ||
12724 test ! -s conftest.err
12725 } && test -s conftest$ac_exeext &&
12726 $as_test_x conftest$ac_exeext; then
a3097628 12727 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
2a91e3f9
RL
12728else
12729 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
a3097628 12732 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
2a91e3f9 12733fi
fc6ffb29 12734
f0ca586f 12735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73482144
AJ
12736 conftest$ac_exeext conftest.$ac_ext
12737LIBS=$ac_check_lib_save_LIBS
12738fi
a3097628
AJ
12739{ echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12740echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
12741if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
73482144
AJ
12742
12743cat >>confdefs.h <<\_ACEOF
a3097628 12744#define HAVE_LCMS 1
2a91e3f9 12745_ACEOF
e24bcc77 12746
a3097628 12747 LCMSLIBS="-llcms"
2a91e3f9 12748fi
875927f6 12749
2a91e3f9 12750fi
82e06804 12751if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then
f9dec94f
AJ
12752 wine_notices="$wine_notices|liblcms development files not found.
12753Wine will be built without Color Management support. (mscms.dll)"
12754fi
12755
2a91e3f9 12756
a3097628 12757LDAPLIBS=""
73482144 12758
a3097628 12759if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
73482144 12760then
a3097628
AJ
12761 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12762echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
12763if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
2a91e3f9
RL
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12765else
12766 ac_check_lib_save_LIBS=$LIBS
a3097628 12767LIBS="-lldap_r $LIBPTHREAD $LIBS"
2a91e3f9 12768cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
12769/* confdefs.h. */
12770_ACEOF
12771cat confdefs.h >>conftest.$ac_ext
12772cat >>conftest.$ac_ext <<_ACEOF
12773/* end confdefs.h. */
2a91e3f9 12774
fc6ffb29
AJ
12775/* Override any GCC internal prototype to avoid an error.
12776 Use char because int might match the return type of a GCC
12777 builtin and then its argument prototype would still apply. */
2a91e3f9
RL
12778#ifdef __cplusplus
12779extern "C"
12780#endif
a3097628 12781char ldap_initialize ();
2a91e3f9
RL
12782int
12783main ()
12784{
a3097628 12785return ldap_initialize ();
2a91e3f9
RL
12786 ;
12787 return 0;
12788}
12789_ACEOF
12790rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
12791if { (ac_try="$ac_link"
12792case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12795esac
12796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_link") 2>conftest.er1
2a91e3f9 12798 ac_status=$?
875927f6
AJ
12799 grep -v '^ *+' conftest.er1 >conftest.err
12800 rm -f conftest.er1
12801 cat conftest.err >&5
2a91e3f9 12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12803 (exit $ac_status); } && {
12804 test -z "$ac_c_werror_flag" ||
12805 test ! -s conftest.err
12806 } && test -s conftest$ac_exeext &&
12807 $as_test_x conftest$ac_exeext; then
a3097628 12808 ac_cv_lib_ldap_r_ldap_initialize=yes
2a91e3f9
RL
12809else
12810 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12811sed 's/^/| /' conftest.$ac_ext >&5
12812
a3097628 12813 ac_cv_lib_ldap_r_ldap_initialize=no
2a91e3f9 12814fi
fc6ffb29 12815
f0ca586f 12816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 12817 conftest$ac_exeext conftest.$ac_ext
2a91e3f9
RL
12818LIBS=$ac_check_lib_save_LIBS
12819fi
a3097628
AJ
12820{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12821echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
12822if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
12823 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12824echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
12825if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12827else
12828 ac_check_lib_save_LIBS=$LIBS
12829LIBS="-llber $LIBPTHREAD $LIBS"
12830cat >conftest.$ac_ext <<_ACEOF
00fdd9fc
AJ
12831/* confdefs.h. */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h. */
a3097628
AJ
12836
12837/* Override any GCC internal prototype to avoid an error.
12838 Use char because int might match the return type of a GCC
12839 builtin and then its argument prototype would still apply. */
12840#ifdef __cplusplus
12841extern "C"
73482144 12842#endif
a3097628 12843char ber_init ();
73482144
AJ
12844int
12845main ()
12846{
a3097628 12847return ber_init ();
73482144
AJ
12848 ;
12849 return 0;
12850}
00fdd9fc 12851_ACEOF
a3097628
AJ
12852rm -f conftest.$ac_objext conftest$ac_exeext
12853if { (ac_try="$ac_link"
0ebeb530
JW
12854case "(($ac_try" in
12855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12856 *) ac_try_echo=$ac_try;;
12857esac
12858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 12859 (eval "$ac_link") 2>conftest.er1
00fdd9fc 12860 ac_status=$?
875927f6
AJ
12861 grep -v '^ *+' conftest.er1 >conftest.err
12862 rm -f conftest.er1
12863 cat conftest.err >&5
00fdd9fc 12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12865 (exit $ac_status); } && {
12866 test -z "$ac_c_werror_flag" ||
12867 test ! -s conftest.err
a3097628
AJ
12868 } && test -s conftest$ac_exeext &&
12869 $as_test_x conftest$ac_exeext; then
12870 ac_cv_lib_lber_ber_init=yes
00fdd9fc
AJ
12871else
12872 echo "$as_me: failed program was:" >&5
12873sed 's/^/| /' conftest.$ac_ext >&5
12874
a3097628
AJ
12875 ac_cv_lib_lber_ber_init=no
12876fi
fc6ffb29 12877
a3097628
AJ
12878rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12879 conftest$ac_exeext conftest.$ac_ext
12880LIBS=$ac_check_lib_save_LIBS
00fdd9fc 12881fi
a3097628
AJ
12882{ echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12883echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
12884if test $ac_cv_lib_lber_ber_init = yes; then
fc6ffb29 12885
a3097628
AJ
12886cat >>confdefs.h <<\_ACEOF
12887#define HAVE_LDAP 1
12888_ACEOF
12889
12890 LDAPLIBS="-lldap_r -llber"
00fdd9fc 12891fi
00fdd9fc
AJ
12892
12893fi
00fdd9fc 12894
a3097628
AJ
12895 ac_wine_check_funcs_save_LIBS="$LIBS"
12896LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
00fdd9fc 12897
73482144 12898
a3097628
AJ
12899
12900
12901for ac_func in \
12902 ldap_count_references \
12903 ldap_first_reference \
12904 ldap_next_reference \
12905 ldap_parse_reference
12906do
12907as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12908{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12909echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12910if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
00fdd9fc 12911 echo $ECHO_N "(cached) $ECHO_C" >&6
00fdd9fc 12912else
a3097628 12913 cat >conftest.$ac_ext <<_ACEOF
00fdd9fc
AJ
12914/* confdefs.h. */
12915_ACEOF
12916cat confdefs.h >>conftest.$ac_ext
12917cat >>conftest.$ac_ext <<_ACEOF
12918/* end confdefs.h. */
a3097628
AJ
12919/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12921#define $ac_func innocuous_$ac_func
12922
12923/* System header to define __stub macros and hopefully few prototypes,
12924 which can conflict with char $ac_func (); below.
12925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12926 <limits.h> exists even on freestanding compilers. */
12927
12928#ifdef __STDC__
12929# include <limits.h>
12930#else
12931# include <assert.h>
12932#endif
12933
12934#undef $ac_func
73482144 12935
fc6ffb29
AJ
12936/* Override any GCC internal prototype to avoid an error.
12937 Use char because int might match the return type of a GCC
12938 builtin and then its argument prototype would still apply. */
73482144
AJ
12939#ifdef __cplusplus
12940extern "C"
12941#endif
a3097628
AJ
12942char $ac_func ();
12943/* The GNU C library defines this for functions which it implements
12944 to always fail with ENOSYS. Some functions are actually named
12945 something starting with __ and the normal name is an alias. */
12946#if defined __stub_$ac_func || defined __stub___$ac_func
12947choke me
12948#endif
12949
73482144
AJ
12950int
12951main ()
12952{
a3097628 12953return $ac_func ();
73482144
AJ
12954 ;
12955 return 0;
12956}
00fdd9fc 12957_ACEOF
73482144 12958rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
12959if { (ac_try="$ac_link"
12960case "(($ac_try" in
12961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12962 *) ac_try_echo=$ac_try;;
12963esac
12964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12965 (eval "$ac_link") 2>conftest.er1
00fdd9fc 12966 ac_status=$?
875927f6
AJ
12967 grep -v '^ *+' conftest.er1 >conftest.err
12968 rm -f conftest.er1
12969 cat conftest.err >&5
00fdd9fc 12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
12971 (exit $ac_status); } && {
12972 test -z "$ac_c_werror_flag" ||
12973 test ! -s conftest.err
12974 } && test -s conftest$ac_exeext &&
12975 $as_test_x conftest$ac_exeext; then
a3097628 12976 eval "$as_ac_var=yes"
00fdd9fc
AJ
12977else
12978 echo "$as_me: failed program was:" >&5
12979sed 's/^/| /' conftest.$ac_ext >&5
12980
a3097628 12981 eval "$as_ac_var=no"
00fdd9fc 12982fi
fc6ffb29 12983
f0ca586f 12984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
73482144 12985 conftest$ac_exeext conftest.$ac_ext
73482144 12986fi
a3097628
AJ
12987ac_res=`eval echo '${'$as_ac_var'}'`
12988 { echo "$as_me:$LINENO: result: $ac_res" >&5
12989echo "${ECHO_T}$ac_res" >&6; }
12990if test `eval echo '${'$as_ac_var'}'` = yes; then
12991 cat >>confdefs.h <<_ACEOF
12992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
73482144 12993_ACEOF
00fdd9fc 12994
00fdd9fc 12995fi
a3097628 12996done
00fdd9fc 12997
a3097628 12998LIBS="$ac_wine_check_funcs_save_LIBS"
00fdd9fc 12999fi
f9dec94f
AJ
13000if test "x$LDAPLIBS" = "x"; then
13001 wine_notices="$wine_notices|libldap (OpenLDAP) development files not found.
13002Wine will be built without LDAP support. (wldap32.dll)"
13003fi
13004
00fdd9fc 13005
24a55f38
AJ
13006for ac_prog in freetype-config freetype2-config
13007do
13008 # Extract the first word of "$ac_prog", so it can be a program name with args.
13009set dummy $ac_prog; ac_word=$2
a3097628
AJ
13010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13012if test "${ac_cv_prog_ft_devel+set}" = set; then
13013 echo $ECHO_N "(cached) $ECHO_C" >&6
13014else
13015 if test -n "$ft_devel"; then
13016 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
13017else
13018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019for as_dir in $PATH
13020do
13021 IFS=$as_save_IFS
13022 test -z "$as_dir" && as_dir=.
13023 for ac_exec_ext in '' $ac_executable_extensions; do
13024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24a55f38 13025 ac_cv_prog_ft_devel="$ac_prog"
a3097628
AJ
13026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13027 break 2
13028 fi
13029done
13030done
13031IFS=$as_save_IFS
13032
a3097628
AJ
13033fi
13034fi
13035ft_devel=$ac_cv_prog_ft_devel
13036if test -n "$ft_devel"; then
13037 { echo "$as_me:$LINENO: result: $ft_devel" >&5
13038echo "${ECHO_T}$ft_devel" >&6; }
13039else
13040 { echo "$as_me:$LINENO: result: no" >&5
13041echo "${ECHO_T}no" >&6; }
13042fi
13043
13044
24a55f38 13045 test -n "$ft_devel" && break
a3097628 13046done
24a55f38 13047test -n "$ft_devel" || ft_devel="false"
a3097628 13048
24a55f38 13049if test "$ft_devel" != "false"
a3097628 13050then
24a55f38
AJ
13051 ac_freetype_libs=`$ft_devel --libs`
13052 ac_freetype_incl=`$ft_devel --cflags`
13053 { echo "$as_me:$LINENO: checking for -lfreetype" >&5
13054echo $ECHO_N "checking for -lfreetype... $ECHO_C" >&6; }
13055if test "${ac_cv_lib_soname_freetype+set}" = set; then
00fdd9fc
AJ
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13057else
24a55f38
AJ
13058 ac_check_soname_save_LIBS=$LIBS
13059LIBS="-lfreetype $ac_freetype_libs $LIBS"
13060 cat >conftest.$ac_ext <<_ACEOF
00fdd9fc
AJ
13061/* confdefs.h. */
13062_ACEOF
13063cat confdefs.h >>conftest.$ac_ext
13064cat >>conftest.$ac_ext <<_ACEOF
13065/* end confdefs.h. */
13066
fc6ffb29
AJ
13067/* Override any GCC internal prototype to avoid an error.
13068 Use char because int might match the return type of a GCC
13069 builtin and then its argument prototype would still apply. */
00fdd9fc
AJ
13070#ifdef __cplusplus
13071extern "C"
13072#endif
a3097628 13073char FT_Init_FreeType ();
00fdd9fc
AJ
13074int
13075main ()
13076{
a3097628 13077return FT_Init_FreeType ();
00fdd9fc
AJ
13078 ;
13079 return 0;
13080}
13081_ACEOF
13082rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
13083if { (ac_try="$ac_link"
13084case "(($ac_try" in
13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086 *) ac_try_echo=$ac_try;;
13087esac
13088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089 (eval "$ac_link") 2>conftest.er1
00fdd9fc 13090 ac_status=$?
875927f6
AJ
13091 grep -v '^ *+' conftest.er1 >conftest.err
13092 rm -f conftest.er1
13093 cat conftest.err >&5
00fdd9fc 13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13095 (exit $ac_status); } && {
13096 test -z "$ac_c_werror_flag" ||
13097 test ! -s conftest.err
13098 } && test -s conftest$ac_exeext &&
13099 $as_test_x conftest$ac_exeext; then
24a55f38
AJ
13100 case "$LIBEXT" in
13101 dll) ;;
13102 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'` ;;
13103 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
13104 esac
00fdd9fc
AJ
13105else
13106 echo "$as_me: failed program was:" >&5
13107sed 's/^/| /' conftest.$ac_ext >&5
13108
24a55f38 13109
00fdd9fc 13110fi
fc6ffb29 13111
f0ca586f 13112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 13113 conftest$ac_exeext conftest.$ac_ext
24a55f38 13114 LIBS=$ac_check_soname_save_LIBS
00fdd9fc 13115fi
24a55f38
AJ
13116if test "x$ac_cv_lib_soname_freetype" = "x"; then
13117 { echo "$as_me:$LINENO: result: not found" >&5
13118echo "${ECHO_T}not found" >&6; }
13119 ft_lib=no
a3097628 13120else
24a55f38
AJ
13121 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
13122echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
13123
13124cat >>confdefs.h <<_ACEOF
13125#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
13126_ACEOF
13127
13128 ft_lib=yes
a3097628 13129fi
00fdd9fc 13130
24a55f38 13131 if test "$ft_lib" = "yes"
a3097628 13132 then
a3097628 13133 ac_save_CPPFLAGS="$CPPFLAGS"
24a55f38 13134 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
00fdd9fc 13135
00fdd9fc 13136
00fdd9fc 13137
00fdd9fc 13138
fc09423d 13139
c509bc4d 13140
f41c2b21 13141
fc6ffb29
AJ
13142
13143
f41c2b21 13144
182d150a 13145
b0d1590d 13146
a3097628
AJ
13147for ac_header in ft2build.h \
13148 freetype/freetype.h \
13149 freetype/ftglyph.h \
b0d1590d 13150 freetype/fttypes.h \
a3097628
AJ
13151 freetype/tttables.h \
13152 freetype/ftnames.h \
13153 freetype/ftsnames.h \
13154 freetype/ttnameid.h \
13155 freetype/ftoutln.h \
13156 freetype/ftwinfnt.h \
13157 freetype/ftmodapi.h \
13158 freetype/internal/sfnt.h
13159do
13160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13161{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f41c2b21
DP
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13165else
a3097628 13166 cat >conftest.$ac_ext <<_ACEOF
f41c2b21
DP
13167/* confdefs.h. */
13168_ACEOF
13169cat confdefs.h >>conftest.$ac_ext
13170cat >>conftest.$ac_ext <<_ACEOF
13171/* end confdefs.h. */
a3097628
AJ
13172#if HAVE_FT2BUILD_H
13173 #include <ft2build.h>
13174 #endif
f41c2b21 13175
a3097628 13176#include <$ac_header>
f5818d2f 13177_ACEOF
a3097628
AJ
13178rm -f conftest.$ac_objext
13179if { (ac_try="$ac_compile"
0ebeb530
JW
13180case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13183esac
13184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 13185 (eval "$ac_compile") 2>conftest.er1
f5818d2f 13186 ac_status=$?
f41c2b21
DP
13187 grep -v '^ *+' conftest.er1 >conftest.err
13188 rm -f conftest.er1
13189 cat conftest.err >&5
daa2886c 13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13191 (exit $ac_status); } && {
13192 test -z "$ac_c_werror_flag" ||
13193 test ! -s conftest.err
a3097628
AJ
13194 } && test -s conftest.$ac_objext; then
13195 eval "$as_ac_Header=yes"
4f8c37b4 13196else
f41c2b21 13197 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13198sed 's/^/| /' conftest.$ac_ext >&5
13199
a3097628 13200 eval "$as_ac_Header=no"
4f8c37b4 13201fi
fc6ffb29 13202
a3097628 13203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4f8c37b4 13204fi
a3097628
AJ
13205ac_res=`eval echo '${'$as_ac_Header'}'`
13206 { echo "$as_me:$LINENO: result: $ac_res" >&5
13207echo "${ECHO_T}$ac_res" >&6; }
13208if test `eval echo '${'$as_ac_Header'}'` = yes; then
13209 cat >>confdefs.h <<_ACEOF
13210#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
f41c2b21
DP
13211_ACEOF
13212
182d150a 13213fi
f9b94cb9 13214
a3097628
AJ
13215done
13216
13217 cat >conftest.$ac_ext <<_ACEOF
efca0f6a
AJ
13218/* confdefs.h. */
13219_ACEOF
13220cat confdefs.h >>conftest.$ac_ext
13221cat >>conftest.$ac_ext <<_ACEOF
13222/* end confdefs.h. */
a3097628
AJ
13223#include <ft2build.h>
13224 #include <freetype/fttrigon.h>
efca0f6a 13225_ACEOF
a3097628 13226if { (ac_try="$ac_cpp conftest.$ac_ext"
0ebeb530
JW
13227case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13230esac
13231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 13232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
efca0f6a 13233 ac_status=$?
875927f6
AJ
13234 grep -v '^ *+' conftest.er1 >conftest.err
13235 rm -f conftest.er1
13236 cat conftest.err >&5
efca0f6a 13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
13238 (exit $ac_status); } >/dev/null && {
13239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dc9f3843 13240 test ! -s conftest.err
a3097628
AJ
13241 }; then
13242
13243cat >>confdefs.h <<\_ACEOF
13244#define HAVE_FREETYPE_FTTRIGON_H 1
13245_ACEOF
13246
13247 wine_cv_fttrigon=yes
efca0f6a
AJ
13248else
13249 echo "$as_me: failed program was:" >&5
13250sed 's/^/| /' conftest.$ac_ext >&5
13251
a3097628 13252 wine_cv_fttrigon=no
182d150a 13253fi
efca0f6a 13254
a3097628
AJ
13255rm -f conftest.err conftest.$ac_ext
13256 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
13257echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
13258if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
f8cb48b5
AJ
13259 echo $ECHO_N "(cached) $ECHO_C" >&6
13260else
a3097628 13261 cat >conftest.$ac_ext <<_ACEOF
f8cb48b5
AJ
13262/* confdefs.h. */
13263_ACEOF
13264cat confdefs.h >>conftest.$ac_ext
13265cat >>conftest.$ac_ext <<_ACEOF
13266/* end confdefs.h. */
a3097628 13267#include <freetype/ftmodapi.h>
f8cb48b5 13268
a3097628 13269typedef FT_TrueTypeEngineType ac__type_new_;
f8cb48b5
AJ
13270int
13271main ()
13272{
a3097628
AJ
13273if ((ac__type_new_ *) 0)
13274 return 0;
13275if (sizeof (ac__type_new_))
13276 return 0;
f8cb48b5
AJ
13277 ;
13278 return 0;
13279}
13280_ACEOF
a3097628
AJ
13281rm -f conftest.$ac_objext
13282if { (ac_try="$ac_compile"
0ebeb530
JW
13283case "(($ac_try" in
13284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285 *) ac_try_echo=$ac_try;;
13286esac
13287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 13288 (eval "$ac_compile") 2>conftest.er1
f8cb48b5
AJ
13289 ac_status=$?
13290 grep -v '^ *+' conftest.er1 >conftest.err
13291 rm -f conftest.er1
13292 cat conftest.err >&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13294 (exit $ac_status); } && {
13295 test -z "$ac_c_werror_flag" ||
13296 test ! -s conftest.err
a3097628
AJ
13297 } && test -s conftest.$ac_objext; then
13298 ac_cv_type_FT_TrueTypeEngineType=yes
f8cb48b5
AJ
13299else
13300 echo "$as_me: failed program was:" >&5
13301sed 's/^/| /' conftest.$ac_ext >&5
13302
a3097628 13303 ac_cv_type_FT_TrueTypeEngineType=no
f8cb48b5 13304fi
fc6ffb29 13305
a3097628 13306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f8cb48b5 13307fi
a3097628
AJ
13308{ echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
13309echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
13310if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
13311
13312cat >>confdefs.h <<_ACEOF
13313#define HAVE_FT_TRUETYPEENGINETYPE 1
13314_ACEOF
13315
13316
182d150a 13317fi
f8cb48b5 13318
a3097628 13319 ac_save_CFLAGS="$CFLAGS"
24a55f38 13320 CFLAGS="$CFLAGS $ac_freetype_libs"
a3097628
AJ
13321
13322for ac_func in FT_Load_Sfnt_Table
13323do
13324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13325{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13327if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d75cc5aa
AJ
13328 echo $ECHO_N "(cached) $ECHO_C" >&6
13329else
a3097628 13330 cat >conftest.$ac_ext <<_ACEOF
d75cc5aa
AJ
13331/* confdefs.h. */
13332_ACEOF
13333cat confdefs.h >>conftest.$ac_ext
13334cat >>conftest.$ac_ext <<_ACEOF
13335/* end confdefs.h. */
a3097628
AJ
13336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13338#define $ac_func innocuous_$ac_func
13339
13340/* System header to define __stub macros and hopefully few prototypes,
13341 which can conflict with char $ac_func (); below.
13342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13343 <limits.h> exists even on freestanding compilers. */
13344
13345#ifdef __STDC__
13346# include <limits.h>
13347#else
13348# include <assert.h>
13349#endif
13350
13351#undef $ac_func
13352
13353/* Override any GCC internal prototype to avoid an error.
13354 Use char because int might match the return type of a GCC
13355 builtin and then its argument prototype would still apply. */
13356#ifdef __cplusplus
13357extern "C"
13358#endif
13359char $ac_func ();
13360/* The GNU C library defines this for functions which it implements
13361 to always fail with ENOSYS. Some functions are actually named
13362 something starting with __ and the normal name is an alias. */
13363#if defined __stub_$ac_func || defined __stub___$ac_func
13364choke me
13365#endif
d75cc5aa
AJ
13366
13367int
13368main ()
13369{
a3097628 13370return $ac_func ();
d75cc5aa
AJ
13371 ;
13372 return 0;
13373}
13374_ACEOF
13375rm -f conftest.$ac_objext conftest$ac_exeext
13376if { (ac_try="$ac_link"
13377case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13380esac
13381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382 (eval "$ac_link") 2>conftest.er1
13383 ac_status=$?
13384 grep -v '^ *+' conftest.er1 >conftest.err
13385 rm -f conftest.er1
13386 cat conftest.err >&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13388 (exit $ac_status); } && {
13389 test -z "$ac_c_werror_flag" ||
13390 test ! -s conftest.err
13391 } && test -s conftest$ac_exeext &&
13392 $as_test_x conftest$ac_exeext; then
a3097628 13393 eval "$as_ac_var=yes"
d75cc5aa
AJ
13394else
13395 echo "$as_me: failed program was:" >&5
13396sed 's/^/| /' conftest.$ac_ext >&5
13397
a3097628 13398 eval "$as_ac_var=no"
d75cc5aa
AJ
13399fi
13400
f0ca586f 13401rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d75cc5aa 13402 conftest$ac_exeext conftest.$ac_ext
d75cc5aa 13403fi
a3097628
AJ
13404ac_res=`eval echo '${'$as_ac_var'}'`
13405 { echo "$as_me:$LINENO: result: $ac_res" >&5
13406echo "${ECHO_T}$ac_res" >&6; }
13407if test `eval echo '${'$as_ac_var'}'` = yes; then
13408 cat >>confdefs.h <<_ACEOF
13409#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13410_ACEOF
13411
182d150a 13412fi
a3097628 13413done
182d150a 13414
a3097628
AJ
13415 CFLAGS="$ac_save_CFLAGS"
13416 CPPFLAGS="$ac_save_CPPFLAGS"
13417 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
13418 then
d75cc5aa 13419
a3097628
AJ
13420cat >>confdefs.h <<\_ACEOF
13421#define HAVE_FREETYPE 1
13422_ACEOF
13423
24a55f38
AJ
13424 FREETYPELIBS="$ac_freetype_libs"
13425
13426 FREETYPEINCL="$ac_freetype_incl"
13427
a3097628
AJ
13428 fi
13429 fi
13430fi
13431
f9dec94f
AJ
13432if test "$FONTFORGE" = "false"
13433then
13434 wine_warnings="$wine_warnings|FontForge is missing.
13435Fonts will not be built. Dialog text may be invisible or unaligned."
13436elif test "x$FREETYPELIBS" = "x"
a3097628 13437then
f9dec94f
AJ
13438 wine_warnings="$wine_warnings|FreeType development files not found.
13439Fonts will not be built. Dialog text may be invisible or unaligned."
13440else
a3097628
AJ
13441 FONTSSUBDIRS="fonts"
13442
13443fi
13444
13445{ echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
13446echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
13447if test "${ac_cv_c_ppdev+set}" = set; then
c509bc4d
MM
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449else
13450 cat >conftest.$ac_ext <<_ACEOF
c509bc4d
MM
13451/* confdefs.h. */
13452_ACEOF
13453cat confdefs.h >>conftest.$ac_ext
13454cat >>conftest.$ac_ext <<_ACEOF
13455/* end confdefs.h. */
a3097628 13456#include <linux/ppdev.h>
c509bc4d
MM
13457int
13458main ()
13459{
a3097628 13460ioctl (1,PPCLAIM,0)
c509bc4d
MM
13461 ;
13462 return 0;
13463}
13464_ACEOF
13465rm -f conftest.$ac_objext
0ebeb530
JW
13466if { (ac_try="$ac_compile"
13467case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13470esac
13471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_compile") 2>conftest.er1
c509bc4d 13473 ac_status=$?
875927f6
AJ
13474 grep -v '^ *+' conftest.er1 >conftest.err
13475 rm -f conftest.er1
13476 cat conftest.err >&5
c509bc4d 13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13478 (exit $ac_status); } && {
13479 test -z "$ac_c_werror_flag" ||
13480 test ! -s conftest.err
13481 } && test -s conftest.$ac_objext; then
a3097628 13482 ac_cv_c_ppdev="yes"
c509bc4d
MM
13483else
13484 echo "$as_me: failed program was:" >&5
13485sed 's/^/| /' conftest.$ac_ext >&5
13486
a3097628 13487 ac_cv_c_ppdev="no"
c509bc4d 13488fi
fc6ffb29 13489
0ebeb530 13490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c509bc4d 13491fi
a3097628
AJ
13492{ echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13493echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
13494if test "$ac_cv_c_ppdev" = "yes"
13495then
b7443722 13496
a3097628
AJ
13497cat >>confdefs.h <<\_ACEOF
13498#define HAVE_PPDEV 1
13499_ACEOF
b7443722 13500
a3097628
AJ
13501fi
13502
13503{ echo "$as_me:$LINENO: checking for va_copy" >&5
13504echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
13505if test "${ac_cv_c_va_copy+set}" = set; then
b7443722
MM
13506 echo $ECHO_N "(cached) $ECHO_C" >&6
13507else
13508 cat >conftest.$ac_ext <<_ACEOF
13509/* confdefs.h. */
13510_ACEOF
13511cat confdefs.h >>conftest.$ac_ext
13512cat >>conftest.$ac_ext <<_ACEOF
13513/* end confdefs.h. */
a3097628 13514#include <stdarg.h>
b7443722
MM
13515int
13516main ()
13517{
a3097628 13518va_list ap1, ap2; va_copy(ap1,ap2);
b7443722
MM
13519 ;
13520 return 0;
13521}
13522_ACEOF
a3097628
AJ
13523rm -f conftest.$ac_objext conftest$ac_exeext
13524if { (ac_try="$ac_link"
0ebeb530
JW
13525case "(($ac_try" in
13526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13527 *) ac_try_echo=$ac_try;;
13528esac
13529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 13530 (eval "$ac_link") 2>conftest.er1
b7443722
MM
13531 ac_status=$?
13532 grep -v '^ *+' conftest.er1 >conftest.err
13533 rm -f conftest.er1
13534 cat conftest.err >&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13536 (exit $ac_status); } && {
13537 test -z "$ac_c_werror_flag" ||
13538 test ! -s conftest.err
a3097628
AJ
13539 } && test -s conftest$ac_exeext &&
13540 $as_test_x conftest$ac_exeext; then
13541 ac_cv_c_va_copy="yes"
b7443722
MM
13542else
13543 echo "$as_me: failed program was:" >&5
13544sed 's/^/| /' conftest.$ac_ext >&5
13545
a3097628 13546 ac_cv_c_va_copy="no"
b7443722 13547fi
fc6ffb29 13548
a3097628
AJ
13549rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13550 conftest$ac_exeext conftest.$ac_ext
13551
4f8c37b4 13552fi
a3097628
AJ
13553{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13554echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
13555if test "$ac_cv_c_va_copy" = "yes"
13556then
4f8c37b4 13557
a3097628
AJ
13558cat >>confdefs.h <<\_ACEOF
13559#define HAVE_VA_COPY 1
13560_ACEOF
daa2886c 13561
a3097628
AJ
13562fi
13563{ echo "$as_me:$LINENO: checking for __va_copy" >&5
13564echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
13565if test "${ac_cv_c___va_copy+set}" = set; then
84555cc7
AJ
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13567else
13568 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
13569/* confdefs.h. */
13570_ACEOF
13571cat confdefs.h >>conftest.$ac_ext
13572cat >>conftest.$ac_ext <<_ACEOF
13573/* end confdefs.h. */
a3097628 13574#include <stdarg.h>
f5818d2f
AJ
13575int
13576main ()
13577{
a3097628 13578va_list ap1, ap2; __va_copy(ap1,ap2);
f5818d2f
AJ
13579 ;
13580 return 0;
13581}
13582_ACEOF
13583rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
13584if { (ac_try="$ac_link"
13585case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13588esac
13589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_link") 2>conftest.er1
f5818d2f 13591 ac_status=$?
875927f6
AJ
13592 grep -v '^ *+' conftest.er1 >conftest.err
13593 rm -f conftest.er1
13594 cat conftest.err >&5
daa2886c 13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13596 (exit $ac_status); } && {
13597 test -z "$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13599 } && test -s conftest$ac_exeext &&
13600 $as_test_x conftest$ac_exeext; then
a3097628 13601 ac_cv_c___va_copy="yes"
c77cbbcd 13602else
f5818d2f 13603 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13604sed 's/^/| /' conftest.$ac_ext >&5
13605
a3097628
AJ
13606 ac_cv_c___va_copy="no"
13607fi
13608
13609rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13610 conftest$ac_exeext conftest.$ac_ext
13611
13612fi
13613{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13614echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
13615if test "$ac_cv_c___va_copy" = "yes"
13616then
13617
13618cat >>confdefs.h <<\_ACEOF
13619#define HAVE___VA_COPY 1
13620_ACEOF
13621
13622fi
13623
13624{ echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13625echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
13626if test "${ac_cv_c_sigsetjmp+set}" = set; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13628else
13629 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
13630/* confdefs.h. */
13631_ACEOF
13632cat confdefs.h >>conftest.$ac_ext
13633cat >>conftest.$ac_ext <<_ACEOF
13634/* end confdefs.h. */
a3097628 13635#include <setjmp.h>
84555cc7
AJ
13636int
13637main ()
13638{
a3097628
AJ
13639sigjmp_buf buf;
13640 sigsetjmp( buf, 1 );
13641 siglongjmp( buf, 1 );
84555cc7
AJ
13642 ;
13643 return 0;
13644}
13645_ACEOF
13646rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
13647if { (ac_try="$ac_link"
13648case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13651esac
13652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_link") 2>conftest.er1
84555cc7 13654 ac_status=$?
875927f6
AJ
13655 grep -v '^ *+' conftest.er1 >conftest.err
13656 rm -f conftest.er1
13657 cat conftest.err >&5
84555cc7 13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13659 (exit $ac_status); } && {
13660 test -z "$ac_c_werror_flag" ||
13661 test ! -s conftest.err
13662 } && test -s conftest$ac_exeext &&
13663 $as_test_x conftest$ac_exeext; then
a3097628 13664 ac_cv_c_sigsetjmp="yes"
57807fa1 13665else
84555cc7 13666 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13667sed 's/^/| /' conftest.$ac_ext >&5
13668
a3097628
AJ
13669 ac_cv_c_sigsetjmp="no"
13670fi
13671
13672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13673 conftest$ac_exeext conftest.$ac_ext
13674
13675fi
13676{ echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13677echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
13678if test "$ac_cv_c_sigsetjmp" = "yes"
13679then
13680
13681cat >>confdefs.h <<\_ACEOF
13682#define HAVE_SIGSETJMP 1
13683_ACEOF
13684
13685fi
13686
13687{ echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13688echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
13689if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13691else
13692 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
13693/* confdefs.h. */
13694_ACEOF
13695cat confdefs.h >>conftest.$ac_ext
13696cat >>conftest.$ac_ext <<_ACEOF
13697/* end confdefs.h. */
a3097628
AJ
13698#define _GNU_SOURCE
13699#include <pthread.h>
57807fa1 13700
a3097628 13701typedef pthread_rwlock_t ac__type_new_;
57807fa1
GM
13702int
13703main ()
13704{
a3097628
AJ
13705if ((ac__type_new_ *) 0)
13706 return 0;
13707if (sizeof (ac__type_new_))
13708 return 0;
57807fa1
GM
13709 ;
13710 return 0;
13711}
13712_ACEOF
a3097628
AJ
13713rm -f conftest.$ac_objext
13714if { (ac_try="$ac_compile"
0ebeb530
JW
13715case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13718esac
13719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 13720 (eval "$ac_compile") 2>conftest.er1
57807fa1 13721 ac_status=$?
875927f6
AJ
13722 grep -v '^ *+' conftest.er1 >conftest.err
13723 rm -f conftest.er1
13724 cat conftest.err >&5
57807fa1 13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13726 (exit $ac_status); } && {
13727 test -z "$ac_c_werror_flag" ||
13728 test ! -s conftest.err
a3097628
AJ
13729 } && test -s conftest.$ac_objext; then
13730 ac_cv_type_pthread_rwlock_t=yes
57807fa1
GM
13731else
13732 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13733sed 's/^/| /' conftest.$ac_ext >&5
13734
a3097628 13735 ac_cv_type_pthread_rwlock_t=no
84555cc7 13736fi
fc6ffb29 13737
a3097628 13738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84555cc7 13739fi
a3097628
AJ
13740{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
13741echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
13742if test $ac_cv_type_pthread_rwlock_t = yes; then
84555cc7 13743
a3097628
AJ
13744cat >>confdefs.h <<_ACEOF
13745#define HAVE_PTHREAD_RWLOCK_T 1
84555cc7 13746_ACEOF
57807fa1
GM
13747
13748
a3097628
AJ
13749fi
13750{ echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
13751echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
13752if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
f5818d2f 13753 echo $ECHO_N "(cached) $ECHO_C" >&6
8cc3a5e4 13754else
84555cc7 13755 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
13756/* confdefs.h. */
13757_ACEOF
13758cat confdefs.h >>conftest.$ac_ext
13759cat >>conftest.$ac_ext <<_ACEOF
13760/* end confdefs.h. */
a3097628
AJ
13761#define _GNU_SOURCE
13762#include <pthread.h>
13763
13764typedef pthread_rwlockattr_t ac__type_new_;
f5818d2f
AJ
13765int
13766main ()
13767{
a3097628
AJ
13768if ((ac__type_new_ *) 0)
13769 return 0;
13770if (sizeof (ac__type_new_))
13771 return 0;
f5818d2f
AJ
13772 ;
13773 return 0;
13774}
13775_ACEOF
a3097628
AJ
13776rm -f conftest.$ac_objext
13777if { (ac_try="$ac_compile"
0ebeb530
JW
13778case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781esac
13782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 13783 (eval "$ac_compile") 2>conftest.er1
fa3a5360 13784 ac_status=$?
875927f6
AJ
13785 grep -v '^ *+' conftest.er1 >conftest.err
13786 rm -f conftest.er1
13787 cat conftest.err >&5
fa3a5360 13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
13789 (exit $ac_status); } && {
13790 test -z "$ac_c_werror_flag" ||
13791 test ! -s conftest.err
a3097628
AJ
13792 } && test -s conftest.$ac_objext; then
13793 ac_cv_type_pthread_rwlockattr_t=yes
fa3a5360
AJ
13794else
13795 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13796sed 's/^/| /' conftest.$ac_ext >&5
13797
a3097628 13798 ac_cv_type_pthread_rwlockattr_t=no
fa3a5360 13799fi
fc6ffb29 13800
a3097628 13801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fa3a5360 13802fi
a3097628
AJ
13803{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
13804echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
13805if test $ac_cv_type_pthread_rwlockattr_t = yes; then
84555cc7 13806
a3097628
AJ
13807cat >>confdefs.h <<_ACEOF
13808#define HAVE_PTHREAD_RWLOCKATTR_T 1
84555cc7 13809_ACEOF
fa3a5360 13810
fa3a5360
AJ
13811
13812fi
13813
13814
a3097628
AJ
13815ac_wine_check_funcs_save_LIBS="$LIBS"
13816LIBS="$LIBS $LIBPTHREAD"
ada5e652 13817
1f11333c 13818
13a93b4a 13819
7bf07d15 13820
a3097628
AJ
13821for ac_func in \
13822 pthread_attr_get_np \
13823 pthread_getattr_np \
13824 pthread_get_stackaddr_np \
13825 pthread_get_stacksize_np
ada5e652 13826do
a3097628
AJ
13827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13828{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13830if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13831 echo $ECHO_N "(cached) $ECHO_C" >&6
ada5e652 13832else
a3097628
AJ
13833 cat >conftest.$ac_ext <<_ACEOF
13834/* confdefs.h. */
13835_ACEOF
13836cat confdefs.h >>conftest.$ac_ext
13837cat >>conftest.$ac_ext <<_ACEOF
13838/* end confdefs.h. */
13839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13841#define $ac_func innocuous_$ac_func
ada5e652 13842
a3097628
AJ
13843/* System header to define __stub macros and hopefully few prototypes,
13844 which can conflict with char $ac_func (); below.
13845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13846 <limits.h> exists even on freestanding compilers. */
fc6ffb29 13847
a3097628
AJ
13848#ifdef __STDC__
13849# include <limits.h>
13850#else
13851# include <assert.h>
13852#endif
ada5e652 13853
a3097628 13854#undef $ac_func
ada5e652 13855
a3097628
AJ
13856/* Override any GCC internal prototype to avoid an error.
13857 Use char because int might match the return type of a GCC
13858 builtin and then its argument prototype would still apply. */
13859#ifdef __cplusplus
13860extern "C"
13861#endif
13862char $ac_func ();
13863/* The GNU C library defines this for functions which it implements
13864 to always fail with ENOSYS. Some functions are actually named
13865 something starting with __ and the normal name is an alias. */
13866#if defined __stub_$ac_func || defined __stub___$ac_func
13867choke me
13868#endif
73482144 13869
a3097628
AJ
13870int
13871main ()
13872{
13873return $ac_func ();
13874 ;
13875 return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext conftest$ac_exeext
13879if { (ac_try="$ac_link"
13880case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13883esac
13884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_link") 2>conftest.er1
13886 ac_status=$?
13887 grep -v '^ *+' conftest.er1 >conftest.err
13888 rm -f conftest.er1
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } && {
13892 test -z "$ac_c_werror_flag" ||
13893 test ! -s conftest.err
13894 } && test -s conftest$ac_exeext &&
13895 $as_test_x conftest$ac_exeext; then
13896 eval "$as_ac_var=yes"
73482144 13897else
a3097628
AJ
13898 echo "$as_me: failed program was:" >&5
13899sed 's/^/| /' conftest.$ac_ext >&5
e24bcc77 13900
a3097628 13901 eval "$as_ac_var=no"
fa3a5360 13902fi
a3097628
AJ
13903
13904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13905 conftest$ac_exeext conftest.$ac_ext
73482144 13906fi
a3097628
AJ
13907ac_res=`eval echo '${'$as_ac_var'}'`
13908 { echo "$as_me:$LINENO: result: $ac_res" >&5
13909echo "${ECHO_T}$ac_res" >&6; }
13910if test `eval echo '${'$as_ac_var'}'` = yes; then
13911 cat >>confdefs.h <<_ACEOF
13912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13913_ACEOF
13914
73482144 13915fi
a3097628 13916done
8cc3a5e4 13917
a3097628 13918LIBS="$ac_wine_check_funcs_save_LIBS"
fc6ffb29 13919
a3097628
AJ
13920# Extract the first word of "esd-config", so it can be a program name with args.
13921set dummy esd-config; ac_word=$2
fc6ffb29
AJ
13922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a3097628 13924if test "${ac_cv_path_ESDCONFIG+set}" = set; then
fa3a5360
AJ
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13926else
a3097628
AJ
13927 case $ESDCONFIG in
13928 [\\/]* | ?:[\\/]*)
13929 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
13930 ;;
13931 *)
13932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73482144
AJ
13933for as_dir in $PATH
13934do
13935 IFS=$as_save_IFS
13936 test -z "$as_dir" && as_dir=.
13937 for ac_exec_ext in '' $ac_executable_extensions; do
dc9f3843 13938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a3097628 13939 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
73482144
AJ
13940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13941 break 2
13942 fi
13943done
13944done
fc6ffb29 13945IFS=$as_save_IFS
73482144 13946
a3097628
AJ
13947 ;;
13948esac
73482144 13949fi
a3097628
AJ
13950ESDCONFIG=$ac_cv_path_ESDCONFIG
13951if test -n "$ESDCONFIG"; then
13952 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
13953echo "${ECHO_T}$ESDCONFIG" >&6; }
73482144 13954else
fc6ffb29
AJ
13955 { echo "$as_me:$LINENO: result: no" >&5
13956echo "${ECHO_T}no" >&6; }
8cc3a5e4
AJ
13957fi
13958
e533e972 13959
a3097628
AJ
13960if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
13961then
13962 ESD_CFLAGS=""
13963 for i in `$ESDCONFIG --cflags`
13964 do
13965 case "$i" in
13966 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
13967 esac
13968 done
13969 ESD_LIBS=`$ESDCONFIG --libs`
13970 save_CFLAGS="$CFLAGS"
13971 CFLAGS="$CFLAGS $ESD_CFLAGS"
13972 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
13973echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
13974if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
2ffc7e2c
AJ
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13976else
a3097628
AJ
13977 ac_check_lib_save_LIBS=$LIBS
13978LIBS="-lesd $LIBS"
13979cat >conftest.$ac_ext <<_ACEOF
13980/* confdefs.h. */
13981_ACEOF
13982cat confdefs.h >>conftest.$ac_ext
13983cat >>conftest.$ac_ext <<_ACEOF
13984/* end confdefs.h. */
13985
13986/* Override any GCC internal prototype to avoid an error.
13987 Use char because int might match the return type of a GCC
13988 builtin and then its argument prototype would still apply. */
13989#ifdef __cplusplus
13990extern "C"
13991#endif
13992char esd_open_sound ();
13993int
13994main ()
13995{
13996return esd_open_sound ();
13997 ;
13998 return 0;
13999}
14000_ACEOF
14001rm -f conftest.$ac_objext conftest$ac_exeext
14002if { (ac_try="$ac_link"
14003case "(($ac_try" in
14004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005 *) ac_try_echo=$ac_try;;
14006esac
14007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008 (eval "$ac_link") 2>conftest.er1
14009 ac_status=$?
14010 grep -v '^ *+' conftest.er1 >conftest.err
14011 rm -f conftest.er1
14012 cat conftest.err >&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } && {
14015 test -z "$ac_c_werror_flag" ||
14016 test ! -s conftest.err
14017 } && test -s conftest$ac_exeext &&
14018 $as_test_x conftest$ac_exeext; then
14019 ac_cv_lib_esd_esd_open_sound=yes
2ffc7e2c 14020else
a3097628
AJ
14021 echo "$as_me: failed program was:" >&5
14022sed 's/^/| /' conftest.$ac_ext >&5
2ffc7e2c 14023
a3097628 14024 ac_cv_lib_esd_esd_open_sound=no
2ffc7e2c 14025fi
a3097628
AJ
14026
14027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14028 conftest$ac_exeext conftest.$ac_ext
14029LIBS=$ac_check_lib_save_LIBS
2ffc7e2c 14030fi
a3097628
AJ
14031{ echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
14032echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
14033if test $ac_cv_lib_esd_esd_open_sound = yes; then
14034 ESDLIBS=$ESD_LIBS
2ffc7e2c 14035
a3097628 14036 ESDINCL=$ESD_CFLAGS
2ffc7e2c 14037
a3097628
AJ
14038
14039cat >>confdefs.h <<\_ACEOF
14040#define HAVE_ESD 1
14041_ACEOF
2ffc7e2c
AJ
14042
14043fi
a3097628
AJ
14044
14045 CFLAGS="$save_CFLAGS"
2ffc7e2c 14046fi
a3097628
AJ
14047
14048ALSALIBS=""
14049
14050if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
14051then
14052 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
14053echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
14054if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
2ffc7e2c 14056else
a3097628
AJ
14057 ac_check_lib_save_LIBS=$LIBS
14058LIBS="-lasound $LIBS"
14059cat >conftest.$ac_ext <<_ACEOF
14060/* confdefs.h. */
14061_ACEOF
14062cat confdefs.h >>conftest.$ac_ext
14063cat >>conftest.$ac_ext <<_ACEOF
14064/* end confdefs.h. */
2ffc7e2c 14065
a3097628
AJ
14066/* Override any GCC internal prototype to avoid an error.
14067 Use char because int might match the return type of a GCC
14068 builtin and then its argument prototype would still apply. */
14069#ifdef __cplusplus
14070extern "C"
14071#endif
14072char snd_pcm_hw_params_get_access ();
14073int
14074main ()
14075{
14076return snd_pcm_hw_params_get_access ();
14077 ;
14078 return 0;
14079}
14080_ACEOF
14081rm -f conftest.$ac_objext conftest$ac_exeext
14082if { (ac_try="$ac_link"
14083case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
2ffc7e2c 14086esac
a3097628
AJ
14087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_link") 2>conftest.er1
14089 ac_status=$?
14090 grep -v '^ *+' conftest.er1 >conftest.err
14091 rm -f conftest.er1
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } && {
14095 test -z "$ac_c_werror_flag" ||
14096 test ! -s conftest.err
14097 } && test -s conftest$ac_exeext &&
14098 $as_test_x conftest$ac_exeext; then
14099 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
2ffc7e2c 14100else
a3097628
AJ
14101 echo "$as_me: failed program was:" >&5
14102sed 's/^/| /' conftest.$ac_ext >&5
14103
14104 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
2ffc7e2c
AJ
14105fi
14106
a3097628
AJ
14107rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14108 conftest$ac_exeext conftest.$ac_ext
14109LIBS=$ac_check_lib_save_LIBS
14110fi
14111{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
14112echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
14113if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
14114 cat >conftest.$ac_ext <<_ACEOF
14115/* confdefs.h. */
14116_ACEOF
14117cat confdefs.h >>conftest.$ac_ext
14118cat >>conftest.$ac_ext <<_ACEOF
14119/* end confdefs.h. */
14120#ifdef HAVE_ALSA_ASOUNDLIB_H
14121#include <alsa/asoundlib.h>
14122#elif defined(HAVE_SYS_ASOUNDLIB_H)
14123#include <sys/asoundlib.h>
14124#endif
14125int
14126main ()
14127{
14128int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14129 ;
14130 return 0;
14131}
14132_ACEOF
14133rm -f conftest.$ac_objext
14134if { (ac_try="$ac_compile"
14135case "(($ac_try" in
14136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14138esac
14139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140 (eval "$ac_compile") 2>conftest.er1
14141 ac_status=$?
14142 grep -v '^ *+' conftest.er1 >conftest.err
14143 rm -f conftest.er1
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } && {
14147 test -z "$ac_c_werror_flag" ||
14148 test ! -s conftest.err
14149 } && test -s conftest.$ac_objext; then
42b81ea0 14150
a3097628
AJ
14151cat >>confdefs.h <<\_ACEOF
14152#define HAVE_ALSA 1
14153_ACEOF
42b81ea0 14154
a3097628
AJ
14155 ALSALIBS="-lasound"
14156else
14157 echo "$as_me: failed program was:" >&5
14158sed 's/^/| /' conftest.$ac_ext >&5
42b81ea0 14159
f0ca586f 14160
a3097628 14161fi
42b81ea0 14162
a3097628
AJ
14163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14164fi
4e686043 14165
a3097628
AJ
14166fi
14167
a3097628
AJ
14168AUDIOIOLIBS=""
14169
14170if test "$ac_cv_header_libaudioio_h" = "yes"
14171then
14172 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14173echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
14174if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
e533e972
AJ
14175 echo $ECHO_N "(cached) $ECHO_C" >&6
14176else
a3097628
AJ
14177 ac_check_lib_save_LIBS=$LIBS
14178LIBS="-laudioio $LIBS"
e533e972 14179cat >conftest.$ac_ext <<_ACEOF
a3097628
AJ
14180/* confdefs.h. */
14181_ACEOF
14182cat confdefs.h >>conftest.$ac_ext
14183cat >>conftest.$ac_ext <<_ACEOF
14184/* end confdefs.h. */
14185
14186/* Override any GCC internal prototype to avoid an error.
14187 Use char because int might match the return type of a GCC
14188 builtin and then its argument prototype would still apply. */
14189#ifdef __cplusplus
14190extern "C"
14191#endif
14192char AudioIOGetVersion ();
14193int
14194main ()
14195{
14196return AudioIOGetVersion ();
14197 ;
14198 return 0;
14199}
e533e972
AJ
14200_ACEOF
14201rm -f conftest.$ac_objext conftest$ac_exeext
14202if { (ac_try="$ac_link"
14203case "(($ac_try" in
14204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205 *) ac_try_echo=$ac_try;;
14206esac
14207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208 (eval "$ac_link") 2>conftest.er1
14209 ac_status=$?
14210 grep -v '^ *+' conftest.er1 >conftest.err
14211 rm -f conftest.er1
14212 cat conftest.err >&5
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
14214 (exit $ac_status); } && {
14215 test -z "$ac_c_werror_flag" ||
14216 test ! -s conftest.err
14217 } && test -s conftest$ac_exeext &&
14218 $as_test_x conftest$ac_exeext; then
a3097628 14219 ac_cv_lib_audioio_AudioIOGetVersion=yes
73482144 14220else
e533e972
AJ
14221 echo "$as_me: failed program was:" >&5
14222sed 's/^/| /' conftest.$ac_ext >&5
73482144 14223
a3097628 14224 ac_cv_lib_audioio_AudioIOGetVersion=no
e533e972 14225fi
daa2886c 14226
f0ca586f 14227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
e533e972 14228 conftest$ac_exeext conftest.$ac_ext
a3097628 14229LIBS=$ac_check_lib_save_LIBS
e533e972 14230fi
a3097628
AJ
14231{ echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14232echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
14233if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14234 AUDIOIOLIBS="-laudioio"
14235
14236cat >>confdefs.h <<\_ACEOF
14237#define HAVE_LIBAUDIOIO 1
14238_ACEOF
14239
14240fi
14241
14242fi
14243
14244
14245if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14246then
3336e9bf
AJ
14247 { echo "$as_me:$LINENO: checking for -lcapi20" >&5
14248echo $ECHO_N "checking for -lcapi20... $ECHO_C" >&6; }
14249if test "${ac_cv_lib_soname_capi20+set}" = set; then
f5818d2f 14250 echo $ECHO_N "(cached) $ECHO_C" >&6
93a5b868 14251else
3336e9bf 14252 ac_check_soname_save_LIBS=$LIBS
a3097628 14253LIBS="-lcapi20 $LIBS"
3336e9bf 14254 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
14255/* confdefs.h. */
14256_ACEOF
14257cat confdefs.h >>conftest.$ac_ext
14258cat >>conftest.$ac_ext <<_ACEOF
14259/* end confdefs.h. */
fa3a5360 14260
a3097628
AJ
14261/* Override any GCC internal prototype to avoid an error.
14262 Use char because int might match the return type of a GCC
14263 builtin and then its argument prototype would still apply. */
14264#ifdef __cplusplus
14265extern "C"
14266#endif
14267char capi20_register ();
e24bcc77
AJ
14268int
14269main ()
14270{
a3097628 14271return capi20_register ();
f5818d2f
AJ
14272 ;
14273 return 0;
14274}
14275_ACEOF
14276rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
14277if { (ac_try="$ac_link"
14278case "(($ac_try" in
14279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280 *) ac_try_echo=$ac_try;;
14281esac
14282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283 (eval "$ac_link") 2>conftest.er1
f5818d2f 14284 ac_status=$?
875927f6
AJ
14285 grep -v '^ *+' conftest.er1 >conftest.err
14286 rm -f conftest.er1
14287 cat conftest.err >&5
daa2886c 14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
14289 (exit $ac_status); } && {
14290 test -z "$ac_c_werror_flag" ||
14291 test ! -s conftest.err
14292 } && test -s conftest$ac_exeext &&
14293 $as_test_x conftest$ac_exeext; then
3336e9bf
AJ
14294 case "$LIBEXT" in
14295 dll) ;;
14296 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'` ;;
14297 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
14298 esac
93a5b868 14299else
f5818d2f 14300 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14301sed 's/^/| /' conftest.$ac_ext >&5
14302
3336e9bf 14303
93a5b868 14304fi
fc6ffb29 14305
f0ca586f 14306rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 14307 conftest$ac_exeext conftest.$ac_ext
3336e9bf 14308 LIBS=$ac_check_soname_save_LIBS
93a5b868 14309fi
3336e9bf
AJ
14310if test "x$ac_cv_lib_soname_capi20" = "x"; then
14311 { echo "$as_me:$LINENO: result: not found" >&5
14312echo "${ECHO_T}not found" >&6; }
a3097628 14313
3336e9bf
AJ
14314else
14315 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
14316echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
14317
14318cat >>confdefs.h <<_ACEOF
14319#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
a3097628
AJ
14320_ACEOF
14321
3336e9bf 14322
702d3556
AJ
14323fi
14324
14325fi
f9dec94f
AJ
14326if test "x$ac_cv_lib_soname_capi20" = "x"; then
14327 wine_notices="$wine_notices|libcapi20 development files not found.
14328Wine will be built without ISDN support. (capi2032.dll)"
14329fi
14330
702d3556
AJ
14331
14332if test "$ac_cv_header_cups_cups_h" = "yes"
14333then
14334 { echo "$as_me:$LINENO: checking for -lcups" >&5
14335echo $ECHO_N "checking for -lcups... $ECHO_C" >&6; }
14336if test "${ac_cv_lib_soname_cups+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14338else
14339 ac_check_soname_save_LIBS=$LIBS
14340LIBS="-lcups $LIBS"
14341 cat >conftest.$ac_ext <<_ACEOF
14342/* confdefs.h. */
14343_ACEOF
14344cat confdefs.h >>conftest.$ac_ext
14345cat >>conftest.$ac_ext <<_ACEOF
14346/* end confdefs.h. */
14347
14348/* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply. */
14351#ifdef __cplusplus
14352extern "C"
14353#endif
14354char cupsGetDefault ();
14355int
14356main ()
14357{
14358return cupsGetDefault ();
14359 ;
14360 return 0;
14361}
14362_ACEOF
14363rm -f conftest.$ac_objext conftest$ac_exeext
14364if { (ac_try="$ac_link"
14365case "(($ac_try" in
14366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14367 *) ac_try_echo=$ac_try;;
14368esac
14369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14370 (eval "$ac_link") 2>conftest.er1
14371 ac_status=$?
14372 grep -v '^ *+' conftest.er1 >conftest.err
14373 rm -f conftest.er1
14374 cat conftest.err >&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } && {
14377 test -z "$ac_c_werror_flag" ||
14378 test ! -s conftest.err
14379 } && test -s conftest$ac_exeext &&
14380 $as_test_x conftest$ac_exeext; then
14381 case "$LIBEXT" in
14382 dll) ;;
14383 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'` ;;
14384 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
14385 esac
14386else
14387 echo "$as_me: failed program was:" >&5
14388sed 's/^/| /' conftest.$ac_ext >&5
14389
14390
14391fi
14392
14393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14394 conftest$ac_exeext conftest.$ac_ext
14395 LIBS=$ac_check_soname_save_LIBS
14396fi
14397if test "x$ac_cv_lib_soname_cups" = "x"; then
14398 { echo "$as_me:$LINENO: result: not found" >&5
14399echo "${ECHO_T}not found" >&6; }
14400
14401else
14402 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14403echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
14404
14405cat >>confdefs.h <<_ACEOF
14406#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14407_ACEOF
14408
14409
34200c35
AJ
14410fi
14411
14412fi
f9dec94f
AJ
14413if test "x$ac_cv_lib_soname_cups" = "x"; then
14414 wine_notices="$wine_notices|libcups development files not found.
14415Wine will be built without CUPS support."
14416fi
14417
34200c35
AJ
14418
14419if test "$ac_cv_header_jack_jack_h" = "yes"
14420then
14421 { echo "$as_me:$LINENO: checking for -ljack" >&5
14422echo $ECHO_N "checking for -ljack... $ECHO_C" >&6; }
14423if test "${ac_cv_lib_soname_jack+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14425else
14426 ac_check_soname_save_LIBS=$LIBS
14427LIBS="-ljack $LIBS"
14428 cat >conftest.$ac_ext <<_ACEOF
14429/* confdefs.h. */
14430_ACEOF
14431cat confdefs.h >>conftest.$ac_ext
14432cat >>conftest.$ac_ext <<_ACEOF
14433/* end confdefs.h. */
14434
14435/* Override any GCC internal prototype to avoid an error.
14436 Use char because int might match the return type of a GCC
14437 builtin and then its argument prototype would still apply. */
14438#ifdef __cplusplus
14439extern "C"
14440#endif
14441char jack_client_new ();
14442int
14443main ()
14444{
14445return jack_client_new ();
14446 ;
14447 return 0;
14448}
14449_ACEOF
14450rm -f conftest.$ac_objext conftest$ac_exeext
14451if { (ac_try="$ac_link"
14452case "(($ac_try" in
14453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14454 *) ac_try_echo=$ac_try;;
14455esac
14456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457 (eval "$ac_link") 2>conftest.er1
14458 ac_status=$?
14459 grep -v '^ *+' conftest.er1 >conftest.err
14460 rm -f conftest.er1
14461 cat conftest.err >&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } && {
14464 test -z "$ac_c_werror_flag" ||
14465 test ! -s conftest.err
14466 } && test -s conftest$ac_exeext &&
14467 $as_test_x conftest$ac_exeext; then
14468 case "$LIBEXT" in
14469 dll) ;;
14470 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'` ;;
14471 *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack\\.$LIBEXT" | sed -e "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
14472 esac
14473else
14474 echo "$as_me: failed program was:" >&5
14475sed 's/^/| /' conftest.$ac_ext >&5
14476
14477
14478fi
14479
14480rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14481 conftest$ac_exeext conftest.$ac_ext
14482 LIBS=$ac_check_soname_save_LIBS
14483fi
14484if test "x$ac_cv_lib_soname_jack" = "x"; then
14485 { echo "$as_me:$LINENO: result: not found" >&5
14486echo "${ECHO_T}not found" >&6; }
14487
14488else
14489 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
14490echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
14491
14492cat >>confdefs.h <<_ACEOF
14493#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
14494_ACEOF
14495
14496
ccd5f284
AJ
14497fi
14498
14499fi
14500
14501if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
14502then
14503 { echo "$as_me:$LINENO: checking for -lfontconfig" >&5
14504echo $ECHO_N "checking for -lfontconfig... $ECHO_C" >&6; }
14505if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14507else
14508 ac_check_soname_save_LIBS=$LIBS
14509LIBS="-lfontconfig $LIBS"
14510 cat >conftest.$ac_ext <<_ACEOF
14511/* confdefs.h. */
14512_ACEOF
14513cat confdefs.h >>conftest.$ac_ext
14514cat >>conftest.$ac_ext <<_ACEOF
14515/* end confdefs.h. */
14516
14517/* Override any GCC internal prototype to avoid an error.
14518 Use char because int might match the return type of a GCC
14519 builtin and then its argument prototype would still apply. */
14520#ifdef __cplusplus
14521extern "C"
14522#endif
14523char FcInit ();
14524int
14525main ()
14526{
14527return FcInit ();
14528 ;
14529 return 0;
14530}
14531_ACEOF
14532rm -f conftest.$ac_objext conftest$ac_exeext
14533if { (ac_try="$ac_link"
14534case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14537esac
14538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_link") 2>conftest.er1
14540 ac_status=$?
14541 grep -v '^ *+' conftest.er1 >conftest.err
14542 rm -f conftest.er1
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } && {
14546 test -z "$ac_c_werror_flag" ||
14547 test ! -s conftest.err
14548 } && test -s conftest$ac_exeext &&
14549 $as_test_x conftest$ac_exeext; then
14550 case "$LIBEXT" in
14551 dll) ;;
14552 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'` ;;
14553 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
14554 esac
14555else
14556 echo "$as_me: failed program was:" >&5
14557sed 's/^/| /' conftest.$ac_ext >&5
14558
14559
14560fi
14561
14562rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14563 conftest$ac_exeext conftest.$ac_ext
14564 LIBS=$ac_check_soname_save_LIBS
14565fi
14566if test "x$ac_cv_lib_soname_fontconfig" = "x"; then
14567 { echo "$as_me:$LINENO: result: not found" >&5
14568echo "${ECHO_T}not found" >&6; }
14569
14570else
14571 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
14572echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
14573
14574cat >>confdefs.h <<_ACEOF
14575#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
14576_ACEOF
14577
14578
f91909b3
AJ
14579fi
14580
14581fi
7f674966
AJ
14582if test "x$ac_cv_lib_soname_fontconfig" = "x"; then
14583 wine_notices="$wine_notices|fontconfig development files not found.
14584Wine will be built without fontconfig support."
14585fi
14586
f91909b3
AJ
14587
14588if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
14589then
14590 { echo "$as_me:$LINENO: checking for -lssl" >&5
14591echo $ECHO_N "checking for -lssl... $ECHO_C" >&6; }
14592if test "${ac_cv_lib_soname_ssl+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14594else
14595 ac_check_soname_save_LIBS=$LIBS
14596LIBS="-lssl $LIBS"
14597 cat >conftest.$ac_ext <<_ACEOF
14598/* confdefs.h. */
14599_ACEOF
14600cat confdefs.h >>conftest.$ac_ext
14601cat >>conftest.$ac_ext <<_ACEOF
14602/* end confdefs.h. */
14603
14604/* Override any GCC internal prototype to avoid an error.
14605 Use char because int might match the return type of a GCC
14606 builtin and then its argument prototype would still apply. */
14607#ifdef __cplusplus
14608extern "C"
14609#endif
14610char SSL_library_init ();
14611int
14612main ()
14613{
14614return SSL_library_init ();
14615 ;
14616 return 0;
14617}
14618_ACEOF
14619rm -f conftest.$ac_objext conftest$ac_exeext
14620if { (ac_try="$ac_link"
14621case "(($ac_try" in
14622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623 *) ac_try_echo=$ac_try;;
14624esac
14625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626 (eval "$ac_link") 2>conftest.er1
14627 ac_status=$?
14628 grep -v '^ *+' conftest.er1 >conftest.err
14629 rm -f conftest.er1
14630 cat conftest.err >&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } && {
14633 test -z "$ac_c_werror_flag" ||
14634 test ! -s conftest.err
14635 } && test -s conftest$ac_exeext &&
14636 $as_test_x conftest$ac_exeext; then
14637 case "$LIBEXT" in
14638 dll) ;;
14639 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'` ;;
14640 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
14641 esac
14642else
14643 echo "$as_me: failed program was:" >&5
14644sed 's/^/| /' conftest.$ac_ext >&5
14645
14646
14647fi
14648
14649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14650 conftest$ac_exeext conftest.$ac_ext
14651 LIBS=$ac_check_soname_save_LIBS
14652fi
14653if test "x$ac_cv_lib_soname_ssl" = "x"; then
14654 { echo "$as_me:$LINENO: result: not found" >&5
14655echo "${ECHO_T}not found" >&6; }
14656
14657else
14658 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
14659echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
14660
14661cat >>confdefs.h <<_ACEOF
14662#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
14663_ACEOF
14664
14665
14666fi
14667
14668 { echo "$as_me:$LINENO: checking for -lcrypto" >&5
14669echo $ECHO_N "checking for -lcrypto... $ECHO_C" >&6; }
14670if test "${ac_cv_lib_soname_crypto+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672else
14673 ac_check_soname_save_LIBS=$LIBS
14674LIBS="-lcrypto $LIBS"
14675 cat >conftest.$ac_ext <<_ACEOF
14676/* confdefs.h. */
14677_ACEOF
14678cat confdefs.h >>conftest.$ac_ext
14679cat >>conftest.$ac_ext <<_ACEOF
14680/* end confdefs.h. */
14681
14682/* Override any GCC internal prototype to avoid an error.
14683 Use char because int might match the return type of a GCC
14684 builtin and then its argument prototype would still apply. */
14685#ifdef __cplusplus
14686extern "C"
14687#endif
14688char BIO_new_socket ();
14689int
14690main ()
14691{
14692return BIO_new_socket ();
14693 ;
14694 return 0;
14695}
14696_ACEOF
14697rm -f conftest.$ac_objext conftest$ac_exeext
14698if { (ac_try="$ac_link"
14699case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14702esac
14703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_link") 2>conftest.er1
14705 ac_status=$?
14706 grep -v '^ *+' conftest.er1 >conftest.err
14707 rm -f conftest.er1
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } && {
14711 test -z "$ac_c_werror_flag" ||
14712 test ! -s conftest.err
14713 } && test -s conftest$ac_exeext &&
14714 $as_test_x conftest$ac_exeext; then
14715 case "$LIBEXT" in
14716 dll) ;;
14717 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'` ;;
14718 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
14719 esac
14720else
14721 echo "$as_me: failed program was:" >&5
14722sed 's/^/| /' conftest.$ac_ext >&5
14723
14724
14725fi
14726
14727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14728 conftest$ac_exeext conftest.$ac_ext
14729 LIBS=$ac_check_soname_save_LIBS
14730fi
14731if test "x$ac_cv_lib_soname_crypto" = "x"; then
14732 { echo "$as_me:$LINENO: result: not found" >&5
14733echo "${ECHO_T}not found" >&6; }
14734
14735else
14736 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
14737echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
14738
14739cat >>confdefs.h <<_ACEOF
14740#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
14741_ACEOF
14742
14743
d0fddf4f
AJ
14744fi
14745
14746fi
7f674966
AJ
14747if test "x$ac_cv_lib_soname_ssl" = "x"; then
14748 wine_notices="$wine_notices|OpenSSL development files not found.
14749Wine will be built without SSL support. (wininet.dll)"
14750fi
14751
d0fddf4f
AJ
14752
14753if test "$ac_cv_header_jpeglib_h" = "yes"
14754then
14755 { echo "$as_me:$LINENO: checking for -ljpeg" >&5
14756echo $ECHO_N "checking for -ljpeg... $ECHO_C" >&6; }
14757if test "${ac_cv_lib_soname_jpeg+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14759else
14760 ac_check_soname_save_LIBS=$LIBS
14761LIBS="-ljpeg $LIBS"
14762 cat >conftest.$ac_ext <<_ACEOF
14763/* confdefs.h. */
14764_ACEOF
14765cat confdefs.h >>conftest.$ac_ext
14766cat >>conftest.$ac_ext <<_ACEOF
14767/* end confdefs.h. */
14768
14769/* Override any GCC internal prototype to avoid an error.
14770 Use char because int might match the return type of a GCC
14771 builtin and then its argument prototype would still apply. */
14772#ifdef __cplusplus
14773extern "C"
14774#endif
14775char jpeg_start_decompress ();
14776int
14777main ()
14778{
14779return jpeg_start_decompress ();
14780 ;
14781 return 0;
14782}
14783_ACEOF
14784rm -f conftest.$ac_objext conftest$ac_exeext
14785if { (ac_try="$ac_link"
14786case "(($ac_try" in
14787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 *) ac_try_echo=$ac_try;;
14789esac
14790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791 (eval "$ac_link") 2>conftest.er1
14792 ac_status=$?
14793 grep -v '^ *+' conftest.er1 >conftest.err
14794 rm -f conftest.er1
14795 cat conftest.err >&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } && {
14798 test -z "$ac_c_werror_flag" ||
14799 test ! -s conftest.err
14800 } && test -s conftest$ac_exeext &&
14801 $as_test_x conftest$ac_exeext; then
14802 case "$LIBEXT" in
14803 dll) ;;
14804 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'` ;;
14805 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
14806 esac
14807else
14808 echo "$as_me: failed program was:" >&5
14809sed 's/^/| /' conftest.$ac_ext >&5
14810
14811
14812fi
14813
14814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14815 conftest$ac_exeext conftest.$ac_ext
14816 LIBS=$ac_check_soname_save_LIBS
14817fi
14818if test "x$ac_cv_lib_soname_jpeg" = "x"; then
14819 { echo "$as_me:$LINENO: result: not found" >&5
14820echo "${ECHO_T}not found" >&6; }
14821
14822else
14823 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
14824echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
14825
14826cat >>confdefs.h <<_ACEOF
14827#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
14828_ACEOF
14829
14830
00302152
AJ
14831fi
14832
14833fi
7f674966
AJ
14834if test "x$ac_cv_lib_soname_jpeg" = "x"; then
14835 wine_notices="$wine_notices|libjpeg development files not found.
14836Wine will be built without JPEG support. (oleaut32.dll)"
14837fi
14838
00302152
AJ
14839
14840if test "$ac_cv_header_png_h" = "yes"
14841then
14842 { echo "$as_me:$LINENO: checking for -lpng" >&5
14843echo $ECHO_N "checking for -lpng... $ECHO_C" >&6; }
14844if test "${ac_cv_lib_soname_png+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14846else
14847 ac_check_soname_save_LIBS=$LIBS
14848LIBS="-lpng $LIBS"
14849 cat >conftest.$ac_ext <<_ACEOF
14850/* confdefs.h. */
14851_ACEOF
14852cat confdefs.h >>conftest.$ac_ext
14853cat >>conftest.$ac_ext <<_ACEOF
14854/* end confdefs.h. */
14855
14856/* Override any GCC internal prototype to avoid an error.
14857 Use char because int might match the return type of a GCC
14858 builtin and then its argument prototype would still apply. */
14859#ifdef __cplusplus
14860extern "C"
14861#endif
14862char png_create_read_struct ();
14863int
14864main ()
14865{
14866return png_create_read_struct ();
14867 ;
14868 return 0;
14869}
14870_ACEOF
14871rm -f conftest.$ac_objext conftest$ac_exeext
14872if { (ac_try="$ac_link"
14873case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14876esac
14877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878 (eval "$ac_link") 2>conftest.er1
14879 ac_status=$?
14880 grep -v '^ *+' conftest.er1 >conftest.err
14881 rm -f conftest.er1
14882 cat conftest.err >&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && {
14885 test -z "$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 } && test -s conftest$ac_exeext &&
14888 $as_test_x conftest$ac_exeext; then
14889 case "$LIBEXT" in
14890 dll) ;;
14891 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'` ;;
14892 *) 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'` ;;
14893 esac
14894else
14895 echo "$as_me: failed program was:" >&5
14896sed 's/^/| /' conftest.$ac_ext >&5
14897
14898
14899fi
14900
14901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14902 conftest$ac_exeext conftest.$ac_ext
14903 LIBS=$ac_check_soname_save_LIBS
14904fi
14905if test "x$ac_cv_lib_soname_png" = "x"; then
14906 { echo "$as_me:$LINENO: result: not found" >&5
14907echo "${ECHO_T}not found" >&6; }
14908
14909else
14910 { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_png" >&5
14911echo "${ECHO_T}$ac_cv_lib_soname_png" >&6; }
14912
14913cat >>confdefs.h <<_ACEOF
14914#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
14915_ACEOF
14916
14917
a3097628
AJ
14918fi
14919
14920fi
7f674966
AJ
14921if test "x$ac_cv_lib_soname_png" = "x"; then
14922 wine_notices="$wine_notices|libpng development files not found.
14923Wine will be built without PNG support. (oleaut32.dll)"
14924fi
14925
a3097628 14926
f9dec94f
AJ
14927if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESD_LIBS$ac_cv_lib_soname_jack" = "x" -a \
14928 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
14929 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
14930 "$ac_cv_header_soundcard_h" != "yes"; then
14931 wine_warnings="$wine_warnings|No sound system was found. Windows applications will be silent."
14932fi
14933
14934
a3097628
AJ
14935
14936EXTRACFLAGS=""
14937
14938if test "x${GCC}" = "xyes"
14939then
14940 EXTRACFLAGS="-Wall -pipe"
14941
14942 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14943echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
14944if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
f5818d2f 14945 echo $ECHO_N "(cached) $ECHO_C" >&6
0623a6f3 14946else
a3097628
AJ
14947 if test "$cross_compiling" = yes; then
14948 ac_cv_c_gcc_strength_bug="yes"
14949else
14950 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
14951/* confdefs.h. */
14952_ACEOF
14953cat confdefs.h >>conftest.$ac_ext
14954cat >>conftest.$ac_ext <<_ACEOF
14955/* end confdefs.h. */
a3097628 14956int L[4] = {0,1,2,3};
f5818d2f
AJ
14957int
14958main ()
14959{
a3097628
AJ
14960static int Array[3];
14961 unsigned int B = 3;
14962 int i;
14963 for(i=0; i<B; i++) Array[i] = i - 3;
14964 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14965 L[i] = 4;
14966 exit( Array[1] != -2 || L[2] != 3)
f5818d2f
AJ
14967 ;
14968 return 0;
14969}
14970_ACEOF
a3097628 14971rm -f conftest$ac_exeext
0ebeb530
JW
14972if { (ac_try="$ac_link"
14973case "(($ac_try" in
14974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14976esac
14977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 14978 (eval "$ac_link") 2>&5
f5818d2f 14979 ac_status=$?
daa2886c 14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3097628
AJ
14981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14982 { (case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14985esac
14986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_try") 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }; then
14991 ac_cv_c_gcc_strength_bug="no"
0623a6f3 14992else
a3097628
AJ
14993 echo "$as_me: program exited with status $ac_status" >&5
14994echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14995sed 's/^/| /' conftest.$ac_ext >&5
14996
a3097628
AJ
14997( exit $ac_status )
14998ac_cv_c_gcc_strength_bug="yes"
fa3a5360 14999fi
a3097628 15000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
182d150a
AJ
15001fi
15002
a3097628 15003
182d150a 15004fi
a3097628
AJ
15005{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
15006echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
15007 if test "$ac_cv_c_gcc_strength_bug" = "yes"
15008 then
15009 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
15010 fi
182d150a 15011
266c609d 15012
a3097628
AJ
15013 { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
15014echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
15015if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
266c609d
AJ
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15017else
e533e972 15018 ac_wine_try_cflags_saved=$CFLAGS
a3097628 15019CFLAGS="$CFLAGS -fshort-wchar"
e533e972 15020cat >conftest.$ac_ext <<_ACEOF
266c609d
AJ
15021/* confdefs.h. */
15022_ACEOF
15023cat confdefs.h >>conftest.$ac_ext
15024cat >>conftest.$ac_ext <<_ACEOF
15025/* end confdefs.h. */
266c609d
AJ
15026
15027int
15028main ()
15029{
e533e972 15030
266c609d
AJ
15031 ;
15032 return 0;
15033}
15034_ACEOF
15035rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15036if { (ac_try="$ac_link"
15037case "(($ac_try" in
15038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15039 *) ac_try_echo=$ac_try;;
15040esac
15041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15042 (eval "$ac_link") 2>conftest.er1
266c609d
AJ
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15048 (exit $ac_status); } && {
15049 test -z "$ac_c_werror_flag" ||
15050 test ! -s conftest.err
15051 } && test -s conftest$ac_exeext &&
15052 $as_test_x conftest$ac_exeext; then
a3097628 15053 ac_cv_cflags__fshort_wchar=yes
266c609d
AJ
15054else
15055 echo "$as_me: failed program was:" >&5
15056sed 's/^/| /' conftest.$ac_ext >&5
15057
a3097628 15058 ac_cv_cflags__fshort_wchar=no
266c609d 15059fi
fc6ffb29 15060
f0ca586f 15061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
266c609d 15062 conftest$ac_exeext conftest.$ac_ext
e533e972 15063CFLAGS=$ac_wine_try_cflags_saved
266c609d 15064fi
a3097628
AJ
15065{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
15066echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
15067if test $ac_cv_cflags__fshort_wchar = yes; then
fa3a5360 15068
a3097628
AJ
15069cat >>confdefs.h <<\_ACEOF
15070#define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
15071_ACEOF
182d150a 15072
a3097628
AJ
15073fi
15074
15075 { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
15076echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
15077if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
f5818d2f 15078 echo $ECHO_N "(cached) $ECHO_C" >&6
7e6ae4ba 15079else
67e8dc68 15080 ac_wine_try_cflags_saved=$CFLAGS
a3097628 15081CFLAGS="$CFLAGS -fno-strict-aliasing"
67e8dc68 15082cat >conftest.$ac_ext <<_ACEOF
e533e972
AJ
15083/* confdefs.h. */
15084_ACEOF
15085cat confdefs.h >>conftest.$ac_ext
15086cat >>conftest.$ac_ext <<_ACEOF
15087/* end confdefs.h. */
15088
15089int
15090main ()
15091{
15092
15093 ;
15094 return 0;
15095}
f5818d2f
AJ
15096_ACEOF
15097rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15098if { (ac_try="$ac_link"
15099case "(($ac_try" in
15100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15101 *) ac_try_echo=$ac_try;;
15102esac
15103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15104 (eval "$ac_link") 2>conftest.er1
f5818d2f 15105 ac_status=$?
875927f6
AJ
15106 grep -v '^ *+' conftest.er1 >conftest.err
15107 rm -f conftest.er1
15108 cat conftest.err >&5
daa2886c 15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15110 (exit $ac_status); } && {
15111 test -z "$ac_c_werror_flag" ||
15112 test ! -s conftest.err
15113 } && test -s conftest$ac_exeext &&
15114 $as_test_x conftest$ac_exeext; then
a3097628 15115 ac_cv_cflags__fno_strict_aliasing=yes
7e6ae4ba 15116else
f5818d2f 15117 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15118sed 's/^/| /' conftest.$ac_ext >&5
15119
a3097628 15120 ac_cv_cflags__fno_strict_aliasing=no
7e6ae4ba 15121fi
fc6ffb29 15122
f0ca586f 15123rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 15124 conftest$ac_exeext conftest.$ac_ext
67e8dc68 15125CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 15126fi
a3097628
AJ
15127{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
15128echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
15129if test $ac_cv_cflags__fno_strict_aliasing = yes; then
15130 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
182d150a
AJ
15131fi
15132
a3097628
AJ
15133 { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
15134echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
15135if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
0ebeb530
JW
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15137else
182d150a 15138 ac_wine_try_cflags_saved=$CFLAGS
a3097628 15139CFLAGS="$CFLAGS -Wdeclaration-after-statement"
0ebeb530
JW
15140cat >conftest.$ac_ext <<_ACEOF
15141/* confdefs.h. */
15142_ACEOF
15143cat confdefs.h >>conftest.$ac_ext
15144cat >>conftest.$ac_ext <<_ACEOF
15145/* end confdefs.h. */
15146
15147int
15148main ()
15149{
15150
15151 ;
15152 return 0;
15153}
15154_ACEOF
15155rm -f conftest.$ac_objext conftest$ac_exeext
15156if { (ac_try="$ac_link"
15157case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15160esac
15161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_link") 2>conftest.er1
15163 ac_status=$?
15164 grep -v '^ *+' conftest.er1 >conftest.err
15165 rm -f conftest.er1
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15168 (exit $ac_status); } && {
15169 test -z "$ac_c_werror_flag" ||
15170 test ! -s conftest.err
15171 } && test -s conftest$ac_exeext &&
15172 $as_test_x conftest$ac_exeext; then
a3097628 15173 ac_cv_cflags__Wdeclaration_after_statement=yes
0ebeb530
JW
15174else
15175 echo "$as_me: failed program was:" >&5
15176sed 's/^/| /' conftest.$ac_ext >&5
15177
a3097628 15178 ac_cv_cflags__Wdeclaration_after_statement=no
0ebeb530
JW
15179fi
15180
f0ca586f 15181rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0ebeb530
JW
15182 conftest$ac_exeext conftest.$ac_ext
15183CFLAGS=$ac_wine_try_cflags_saved
15184fi
a3097628
AJ
15185{ echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
15186echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
15187if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
15188 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
182d150a
AJ
15189fi
15190
a3097628
AJ
15191 { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
15192echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
15193if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
0ebeb530
JW
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195else
15196 ac_wine_try_cflags_saved=$CFLAGS
a3097628 15197CFLAGS="$CFLAGS -Wwrite-strings"
0ebeb530
JW
15198cat >conftest.$ac_ext <<_ACEOF
15199/* confdefs.h. */
15200_ACEOF
15201cat confdefs.h >>conftest.$ac_ext
15202cat >>conftest.$ac_ext <<_ACEOF
15203/* end confdefs.h. */
15204
15205int
15206main ()
15207{
15208
15209 ;
15210 return 0;
15211}
15212_ACEOF
15213rm -f conftest.$ac_objext conftest$ac_exeext
15214if { (ac_try="$ac_link"
15215case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15218esac
15219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220 (eval "$ac_link") 2>conftest.er1
15221 ac_status=$?
15222 grep -v '^ *+' conftest.er1 >conftest.err
15223 rm -f conftest.er1
15224 cat conftest.err >&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15226 (exit $ac_status); } && {
15227 test -z "$ac_c_werror_flag" ||
15228 test ! -s conftest.err
15229 } && test -s conftest$ac_exeext &&
15230 $as_test_x conftest$ac_exeext; then
a3097628 15231 ac_cv_cflags__Wwrite_strings=yes
0ebeb530
JW
15232else
15233 echo "$as_me: failed program was:" >&5
15234sed 's/^/| /' conftest.$ac_ext >&5
15235
a3097628 15236 ac_cv_cflags__Wwrite_strings=no
0ebeb530
JW
15237fi
15238
f0ca586f 15239rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
0ebeb530
JW
15240 conftest$ac_exeext conftest.$ac_ext
15241CFLAGS=$ac_wine_try_cflags_saved
15242fi
a3097628
AJ
15243{ echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
15244echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
15245if test $ac_cv_cflags__Wwrite_strings = yes; then
15246 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
182d150a 15247fi
e533e972 15248
0ebeb530 15249
a3097628
AJ
15250 saved_CFLAGS="$CFLAGS"
15251 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
15252 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
15253echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
15254if test "${ac_cv_c_string_h_warnings+set}" = set; then
f2abe47d
AJ
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256else
a3097628 15257 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
15258/* confdefs.h. */
15259_ACEOF
15260cat confdefs.h >>conftest.$ac_ext
15261cat >>conftest.$ac_ext <<_ACEOF
15262/* end confdefs.h. */
a3097628 15263#include <string.h>
f2abe47d
AJ
15264int
15265main ()
15266{
15267
15268 ;
15269 return 0;
15270}
15271_ACEOF
a3097628
AJ
15272rm -f conftest.$ac_objext
15273if { (ac_try="$ac_compile"
0ebeb530
JW
15274case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277esac
15278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 15279 (eval "$ac_compile") 2>conftest.er1
f2abe47d 15280 ac_status=$?
875927f6
AJ
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
f2abe47d 15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15285 (exit $ac_status); } && {
15286 test -z "$ac_c_werror_flag" ||
15287 test ! -s conftest.err
a3097628
AJ
15288 } && test -s conftest.$ac_objext; then
15289 ac_cv_c_string_h_warnings=no
f2abe47d
AJ
15290else
15291 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15292sed 's/^/| /' conftest.$ac_ext >&5
15293
a3097628 15294 ac_cv_c_string_h_warnings=yes
f2abe47d 15295fi
fc6ffb29 15296
a3097628 15297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f2abe47d 15298fi
a3097628
AJ
15299{ echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
15300echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
15301 CFLAGS="$saved_CFLAGS"
15302 if test "$ac_cv_c_string_h_warnings" = "no"
15303 then
15304 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
15305 fi
15306
15307 BUILTINFLAG=""
15308
15309 saved_CFLAGS="$CFLAGS"
15310 CFLAGS="$CFLAGS -Werror"
15311 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
15312echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
15313if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315else
15316 cat >conftest.$ac_ext <<_ACEOF
46d82c56
AJ
15317/* confdefs.h. */
15318_ACEOF
15319cat confdefs.h >>conftest.$ac_ext
15320cat >>conftest.$ac_ext <<_ACEOF
15321/* end confdefs.h. */
15322
15323int
15324main ()
15325{
a3097628 15326int iswlower(unsigned short);
46d82c56
AJ
15327 ;
15328 return 0;
15329}
15330_ACEOF
a3097628
AJ
15331rm -f conftest.$ac_objext
15332if { (ac_try="$ac_compile"
46d82c56
AJ
15333case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15336esac
15337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
a3097628 15338 (eval "$ac_compile") 2>conftest.er1
46d82c56
AJ
15339 ac_status=$?
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } && {
15345 test -z "$ac_c_werror_flag" ||
15346 test ! -s conftest.err
a3097628
AJ
15347 } && test -s conftest.$ac_objext; then
15348 ac_cv_c_builtin_wchar_ctype=no
46d82c56
AJ
15349else
15350 echo "$as_me: failed program was:" >&5
15351sed 's/^/| /' conftest.$ac_ext >&5
15352
a3097628 15353 ac_cv_c_builtin_wchar_ctype=yes
46d82c56
AJ
15354fi
15355
a3097628 15356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46d82c56 15357fi
a3097628
AJ
15358{ echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
15359echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
15360 CFLAGS="$saved_CFLAGS"
15361 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
15362 then
15363 BUILTINFLAG="-fno-builtin"
15364 fi
182d150a 15365fi
e533e972 15366
4d52d379 15367
a3097628
AJ
15368{ echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
15369echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
15370if test "${ac_cv_asm_func_def+set}" = set; then
36048242
AJ
15371 echo $ECHO_N "(cached) $ECHO_C" >&6
15372else
a3097628 15373 cat >conftest.$ac_ext <<_ACEOF
36048242
AJ
15374/* confdefs.h. */
15375_ACEOF
15376cat confdefs.h >>conftest.$ac_ext
15377cat >>conftest.$ac_ext <<_ACEOF
15378/* end confdefs.h. */
15379
15380int
15381main ()
15382{
a3097628 15383asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
36048242
AJ
15384 ;
15385 return 0;
15386}
15387_ACEOF
15388rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15389if { (ac_try="$ac_link"
15390case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15393esac
15394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395 (eval "$ac_link") 2>conftest.er1
36048242
AJ
15396 ac_status=$?
15397 grep -v '^ *+' conftest.er1 >conftest.err
15398 rm -f conftest.er1
15399 cat conftest.err >&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15401 (exit $ac_status); } && {
15402 test -z "$ac_c_werror_flag" ||
15403 test ! -s conftest.err
15404 } && test -s conftest$ac_exeext &&
15405 $as_test_x conftest$ac_exeext; then
a3097628 15406 ac_cv_asm_func_def=".def"
36048242
AJ
15407else
15408 echo "$as_me: failed program was:" >&5
15409sed 's/^/| /' conftest.$ac_ext >&5
15410
a3097628
AJ
15411 cat >conftest.$ac_ext <<_ACEOF
15412/* confdefs.h. */
15413_ACEOF
15414cat confdefs.h >>conftest.$ac_ext
15415cat >>conftest.$ac_ext <<_ACEOF
15416/* end confdefs.h. */
36048242 15417
a3097628
AJ
15418int
15419main ()
15420{
15421asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
15422 ;
15423 return 0;
15424}
440ff6db
AJ
15425_ACEOF
15426rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15427if { (ac_try="$ac_link"
15428case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15431esac
15432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_link") 2>conftest.er1
440ff6db
AJ
15434 ac_status=$?
15435 grep -v '^ *+' conftest.er1 >conftest.err
15436 rm -f conftest.er1
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15439 (exit $ac_status); } && {
15440 test -z "$ac_c_werror_flag" ||
15441 test ! -s conftest.err
15442 } && test -s conftest$ac_exeext &&
15443 $as_test_x conftest$ac_exeext; then
a3097628 15444 ac_cv_asm_func_def=".type @function"
440ff6db
AJ
15445else
15446 echo "$as_me: failed program was:" >&5
15447sed 's/^/| /' conftest.$ac_ext >&5
15448
a3097628
AJ
15449 cat >conftest.$ac_ext <<_ACEOF
15450/* confdefs.h. */
15451_ACEOF
15452cat confdefs.h >>conftest.$ac_ext
15453cat >>conftest.$ac_ext <<_ACEOF
15454/* end confdefs.h. */
e533e972 15455
a3097628
AJ
15456int
15457main ()
15458{
15459asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
15460 ;
15461 return 0;
15462}
ef2d04d4
AJ
15463_ACEOF
15464rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15465if { (ac_try="$ac_link"
15466case "(($ac_try" in
15467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468 *) ac_try_echo=$ac_try;;
15469esac
15470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15471 (eval "$ac_link") 2>conftest.er1
ef2d04d4 15472 ac_status=$?
875927f6
AJ
15473 grep -v '^ *+' conftest.er1 >conftest.err
15474 rm -f conftest.er1
15475 cat conftest.err >&5
ef2d04d4 15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15477 (exit $ac_status); } && {
15478 test -z "$ac_c_werror_flag" ||
15479 test ! -s conftest.err
a3097628
AJ
15480 } && test -s conftest$ac_exeext &&
15481 $as_test_x conftest$ac_exeext; then
15482 ac_cv_asm_func_def=".type 2"
e533e972 15483else
a3097628
AJ
15484 echo "$as_me: failed program was:" >&5
15485sed 's/^/| /' conftest.$ac_ext >&5
e533e972 15486
a3097628 15487 ac_cv_asm_func_def="unknown"
e533e972 15488fi
a3097628
AJ
15489
15490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15491 conftest$ac_exeext conftest.$ac_ext
e533e972 15492fi
a3097628
AJ
15493
15494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15495 conftest$ac_exeext conftest.$ac_ext
e533e972
AJ
15496fi
15497
a3097628
AJ
15498rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15499 conftest$ac_exeext conftest.$ac_ext
15500fi
15501{ echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15502echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
e533e972 15503
e533e972 15504
a3097628
AJ
15505
15506case "$ac_cv_asm_func_def" in
15507 ".def")
15508 cat >>confdefs.h <<\_ACEOF
15509#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
15510_ACEOF
15511 ;;
15512 ".type @function")
15513 cat >>confdefs.h <<\_ACEOF
15514#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15515_ACEOF
15516 ;;
15517 ".type 2")
15518 cat >>confdefs.h <<\_ACEOF
15519#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15520_ACEOF
15521 ;;
15522 *)
15523 cat >>confdefs.h <<\_ACEOF
15524#define __ASM_FUNC(name) ""
15525_ACEOF
15526 ;;
15527esac
15528
15529
15530{ echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15531echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
15532if test "${ac_cv_c_extern_prefix+set}" = set; then
2ffc7e2c
AJ
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15534else
a3097628
AJ
15535 cat >conftest.$ac_ext <<_ACEOF
15536/* confdefs.h. */
15537_ACEOF
15538cat confdefs.h >>conftest.$ac_ext
15539cat >>conftest.$ac_ext <<_ACEOF
15540/* end confdefs.h. */
15541extern int ac_test;
15542int
15543main ()
15544{
15545asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
15546 ;
15547 return 0;
15548}
15549_ACEOF
15550rm -f conftest.$ac_objext conftest$ac_exeext
15551if { (ac_try="$ac_link"
15552case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555esac
15556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_link") 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } && {
15564 test -z "$ac_c_werror_flag" ||
15565 test ! -s conftest.err
15566 } && test -s conftest$ac_exeext &&
15567 $as_test_x conftest$ac_exeext; then
15568 ac_cv_c_extern_prefix="yes"
2ffc7e2c 15569else
a3097628
AJ
15570 echo "$as_me: failed program was:" >&5
15571sed 's/^/| /' conftest.$ac_ext >&5
2ffc7e2c 15572
a3097628 15573 ac_cv_c_extern_prefix="no"
2ffc7e2c 15574fi
a3097628
AJ
15575
15576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15577 conftest$ac_exeext conftest.$ac_ext
2ffc7e2c 15578fi
a3097628
AJ
15579{ echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15580echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
2ffc7e2c
AJ
15581
15582
2ffc7e2c 15583
a3097628
AJ
15584if test "$ac_cv_c_extern_prefix" = "yes"
15585then
15586 cat >>confdefs.h <<\_ACEOF
15587#define __ASM_NAME(name) "_" name
15588_ACEOF
15589
15590else
15591 cat >>confdefs.h <<\_ACEOF
15592#define __ASM_NAME(name) name
15593_ACEOF
e533e972 15594
e533e972
AJ
15595fi
15596
a3097628 15597
3a0233d6
AJ
15598LDPATH=""
15599
e533e972
AJ
15600case $build_os in
15601 cygwin*|mingw32*)
15602 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
3a0233d6 15603 ;;
e533e972 15604 darwin*|macosx*)
3a0233d6
AJ
15605 ;;
15606 linux*|solaris*) if test -z "$LDRPATH_LOCAL"
15607 then
15608 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
15609 fi
15610 ;;
e533e972
AJ
15611 *)
15612 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
3a0233d6 15613 ;;
e533e972
AJ
15614esac
15615
15616case $host_os in
15617 mingw32*)
15618 CRTLIBS="-lmsvcrt"
15619
15620 SOCKETLIBS="-lws2_32"
15621
15622 ;;
15623esac
15624
15625MAIN_BINARY="wine-pthread"
15626 case $host_cpu in
15627 *i[3456789]86*)
15628 case $host_os in
15629 linux* | k*bsd*-gnu)
15630 MAIN_BINARY="wine-glibc"
15631
15632 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
9f5c69c9
TC
15633 ;;
15634 freebsd*)
15635 MAIN_BINARY="wine-freebsd"
15636
15637 EXTRA_BINARIES="wine-pthread"
e533e972
AJ
15638 ;;
15639 esac
15640 ;;
15641esac
15642
15643
5a95cfbd 15644
e533e972
AJ
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
15690
15691
15692
15693
15694
15695
15696
15697
e533e972
AJ
15698
15699
a9f214cb 15700
6c04a187 15701
fd133237 15702
ff96bd6a
BJ
15703
15704
0c4f152e 15705
e533e972
AJ
15706
15707
15708for ac_func in \
e533e972
AJ
15709 _pclose \
15710 _popen \
15711 _snprintf \
15712 _spawnvp \
ff96bd6a 15713 _strdup \
e533e972
AJ
15714 _stricmp \
15715 _strnicmp \
15716 _vsnprintf \
15717 asctime_r \
15718 chsize \
15719 clone \
e533e972
AJ
15720 dlopen \
15721 epoll_create \
15722 ffs \
15723 finite \
15724 fork \
15725 fpclass \
15726 fstatfs \
15727 fstatvfs \
15728 ftruncate \
15729 futimes \
15730 futimesat \
a9f214cb 15731 getdirentries \
e533e972
AJ
15732 getopt_long \
15733 getpagesize \
e533e972 15734 getpwuid \
e533e972
AJ
15735 gettid \
15736 gettimeofday \
15737 getuid \
fd133237 15738 inet_pton \
e533e972
AJ
15739 kqueue \
15740 lstat \
15741 memmove \
15742 mmap \
15743 pclose \
15744 poll \
15745 popen \
15746 prctl \
15747 pread \
15748 pwrite \
15749 readlink \
15750 rfork \
15751 sched_yield \
15752 select \
e533e972
AJ
15753 setrlimit \
15754 settimeofday \
15755 sigaltstack \
15756 sigprocmask \
15757 snprintf \
15758 spawnvp \
15759 statfs \
15760 statvfs \
15761 strcasecmp \
ff96bd6a 15762 strdup \
e533e972
AJ
15763 strerror \
15764 strncasecmp \
6c04a187 15765 strtold \
e533e972 15766 tcgetattr \
0c4f152e 15767 thr_kill2 \
e533e972
AJ
15768 timegm \
15769 usleep \
15770 vsnprintf \
15771 wait4 \
15772 waitpid \
15773
15774do
15775as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15776{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15777echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15778if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9557d1bf
MM
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15780else
9557d1bf 15781 cat >conftest.$ac_ext <<_ACEOF
9557d1bf
MM
15782/* confdefs.h. */
15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
e533e972
AJ
15787/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15789#define $ac_func innocuous_$ac_func
15790
15791/* System header to define __stub macros and hopefully few prototypes,
15792 which can conflict with char $ac_func (); below.
15793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15794 <limits.h> exists even on freestanding compilers. */
15795
15796#ifdef __STDC__
15797# include <limits.h>
15798#else
15799# include <assert.h>
15800#endif
15801
15802#undef $ac_func
9557d1bf 15803
fc6ffb29
AJ
15804/* Override any GCC internal prototype to avoid an error.
15805 Use char because int might match the return type of a GCC
15806 builtin and then its argument prototype would still apply. */
9557d1bf
MM
15807#ifdef __cplusplus
15808extern "C"
15809#endif
e533e972
AJ
15810char $ac_func ();
15811/* The GNU C library defines this for functions which it implements
15812 to always fail with ENOSYS. Some functions are actually named
15813 something starting with __ and the normal name is an alias. */
15814#if defined __stub_$ac_func || defined __stub___$ac_func
15815choke me
15816#endif
15817
9557d1bf
MM
15818int
15819main ()
15820{
e533e972 15821return $ac_func ();
9557d1bf
MM
15822 ;
15823 return 0;
15824}
15825_ACEOF
15826rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15827if { (ac_try="$ac_link"
15828case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15831esac
15832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_link") 2>conftest.er1
9557d1bf 15834 ac_status=$?
875927f6
AJ
15835 grep -v '^ *+' conftest.er1 >conftest.err
15836 rm -f conftest.er1
15837 cat conftest.err >&5
9557d1bf 15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15839 (exit $ac_status); } && {
15840 test -z "$ac_c_werror_flag" ||
15841 test ! -s conftest.err
15842 } && test -s conftest$ac_exeext &&
15843 $as_test_x conftest$ac_exeext; then
e533e972 15844 eval "$as_ac_var=yes"
9557d1bf
MM
15845else
15846 echo "$as_me: failed program was:" >&5
15847sed 's/^/| /' conftest.$ac_ext >&5
15848
e533e972 15849 eval "$as_ac_var=no"
9557d1bf 15850fi
fc6ffb29 15851
f0ca586f 15852rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 15853 conftest$ac_exeext conftest.$ac_ext
9557d1bf 15854fi
e533e972
AJ
15855ac_res=`eval echo '${'$as_ac_var'}'`
15856 { echo "$as_me:$LINENO: result: $ac_res" >&5
15857echo "${ECHO_T}$ac_res" >&6; }
15858if test `eval echo '${'$as_ac_var'}'` = yes; then
15859 cat >>confdefs.h <<_ACEOF
15860#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9557d1bf 15861_ACEOF
30de3e8e 15862
9557d1bf 15863fi
e533e972 15864done
e82dfab2 15865
e533e972
AJ
15866
15867if test "$ac_cv_func_dlopen" = no
15868then
15869 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15870echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15871if test "${ac_cv_lib_dl_dlopen+set}" = set; then
e82dfab2
HD
15872 echo $ECHO_N "(cached) $ECHO_C" >&6
15873else
e533e972
AJ
15874 ac_check_lib_save_LIBS=$LIBS
15875LIBS="-ldl $LIBS"
15876cat >conftest.$ac_ext <<_ACEOF
e82dfab2
HD
15877/* confdefs.h. */
15878_ACEOF
15879cat confdefs.h >>conftest.$ac_ext
15880cat >>conftest.$ac_ext <<_ACEOF
15881/* end confdefs.h. */
15882
fc6ffb29
AJ
15883/* Override any GCC internal prototype to avoid an error.
15884 Use char because int might match the return type of a GCC
15885 builtin and then its argument prototype would still apply. */
e82dfab2
HD
15886#ifdef __cplusplus
15887extern "C"
15888#endif
e533e972 15889char dlopen ();
e82dfab2
HD
15890int
15891main ()
15892{
e533e972 15893return dlopen ();
e82dfab2
HD
15894 ;
15895 return 0;
15896}
15897_ACEOF
15898rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15899if { (ac_try="$ac_link"
15900case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903esac
15904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_link") 2>conftest.er1
e82dfab2
HD
15906 ac_status=$?
15907 grep -v '^ *+' conftest.er1 >conftest.err
15908 rm -f conftest.er1
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
15911 (exit $ac_status); } && {
15912 test -z "$ac_c_werror_flag" ||
15913 test ! -s conftest.err
15914 } && test -s conftest$ac_exeext &&
15915 $as_test_x conftest$ac_exeext; then
e533e972 15916 ac_cv_lib_dl_dlopen=yes
e82dfab2
HD
15917else
15918 echo "$as_me: failed program was:" >&5
15919sed 's/^/| /' conftest.$ac_ext >&5
15920
e533e972 15921 ac_cv_lib_dl_dlopen=no
e82dfab2 15922fi
fc6ffb29 15923
f0ca586f 15924rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
e82dfab2 15925 conftest$ac_exeext conftest.$ac_ext
e533e972 15926LIBS=$ac_check_lib_save_LIBS
e82dfab2 15927fi
e533e972
AJ
15928{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15929echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15930if test $ac_cv_lib_dl_dlopen = yes; then
15931 cat >>confdefs.h <<\_ACEOF
15932#define HAVE_DLOPEN 1
e82dfab2 15933_ACEOF
e533e972 15934 LIBDL="-ldl"
30de3e8e 15935
e82dfab2
HD
15936fi
15937
e533e972
AJ
15938fi
15939ac_wine_check_funcs_save_LIBS="$LIBS"
15940LIBS="$LIBS $LIBDL"
15941
15942for ac_func in dladdr
15943do
15944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15945{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15947if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 15948 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039 15949else
f5818d2f 15950 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
15951/* confdefs.h. */
15952_ACEOF
15953cat confdefs.h >>conftest.$ac_ext
15954cat >>conftest.$ac_ext <<_ACEOF
15955/* end confdefs.h. */
e533e972
AJ
15956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15958#define $ac_func innocuous_$ac_func
15959
15960/* System header to define __stub macros and hopefully few prototypes,
15961 which can conflict with char $ac_func (); below.
15962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15963 <limits.h> exists even on freestanding compilers. */
15964
15965#ifdef __STDC__
15966# include <limits.h>
15967#else
15968# include <assert.h>
15969#endif
15970
15971#undef $ac_func
82776020 15972
fc6ffb29
AJ
15973/* Override any GCC internal prototype to avoid an error.
15974 Use char because int might match the return type of a GCC
15975 builtin and then its argument prototype would still apply. */
82776020
AJ
15976#ifdef __cplusplus
15977extern "C"
15978#endif
e533e972
AJ
15979char $ac_func ();
15980/* The GNU C library defines this for functions which it implements
15981 to always fail with ENOSYS. Some functions are actually named
15982 something starting with __ and the normal name is an alias. */
15983#if defined __stub_$ac_func || defined __stub___$ac_func
15984choke me
15985#endif
15986
f5818d2f
AJ
15987int
15988main ()
15989{
e533e972 15990return $ac_func ();
f5818d2f
AJ
15991 ;
15992 return 0;
15993}
15994_ACEOF
15995rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15996if { (ac_try="$ac_link"
15997case "(($ac_try" in
15998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999 *) ac_try_echo=$ac_try;;
16000esac
16001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002 (eval "$ac_link") 2>conftest.er1
f5818d2f 16003 ac_status=$?
875927f6
AJ
16004 grep -v '^ *+' conftest.er1 >conftest.err
16005 rm -f conftest.er1
16006 cat conftest.err >&5
daa2886c 16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16008 (exit $ac_status); } && {
16009 test -z "$ac_c_werror_flag" ||
16010 test ! -s conftest.err
16011 } && test -s conftest$ac_exeext &&
16012 $as_test_x conftest$ac_exeext; then
e533e972 16013 eval "$as_ac_var=yes"
f5818d2f
AJ
16014else
16015 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16016sed 's/^/| /' conftest.$ac_ext >&5
16017
e533e972 16018 eval "$as_ac_var=no"
f5818d2f 16019fi
fc6ffb29 16020
f0ca586f 16021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 16022 conftest$ac_exeext conftest.$ac_ext
f5818d2f 16023fi
e533e972
AJ
16024ac_res=`eval echo '${'$as_ac_var'}'`
16025 { echo "$as_me:$LINENO: result: $ac_res" >&5
16026echo "${ECHO_T}$ac_res" >&6; }
16027if test `eval echo '${'$as_ac_var'}'` = yes; then
16028 cat >>confdefs.h <<_ACEOF
16029#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 16030_ACEOF
30de3e8e 16031
1bb94039 16032fi
e533e972 16033done
1bb94039 16034
e533e972
AJ
16035LIBS="$ac_wine_check_funcs_save_LIBS"
16036
16037if test "$ac_cv_func_poll" = no
16038then
16039 { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
16040echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
16041if test "${ac_cv_lib_poll_poll+set}" = set; then
f5818d2f 16042 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039 16043else
e533e972
AJ
16044 ac_check_lib_save_LIBS=$LIBS
16045LIBS="-lpoll $LIBS"
16046cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16047/* confdefs.h. */
16048_ACEOF
16049cat confdefs.h >>conftest.$ac_ext
16050cat >>conftest.$ac_ext <<_ACEOF
16051/* end confdefs.h. */
1bb94039 16052
fc6ffb29
AJ
16053/* Override any GCC internal prototype to avoid an error.
16054 Use char because int might match the return type of a GCC
16055 builtin and then its argument prototype would still apply. */
82776020
AJ
16056#ifdef __cplusplus
16057extern "C"
16058#endif
e533e972 16059char poll ();
f5818d2f
AJ
16060int
16061main ()
16062{
e533e972 16063return poll ();
f5818d2f
AJ
16064 ;
16065 return 0;
16066}
16067_ACEOF
16068rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
16069if { (ac_try="$ac_link"
16070case "(($ac_try" in
16071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16072 *) ac_try_echo=$ac_try;;
16073esac
16074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16075 (eval "$ac_link") 2>conftest.er1
f5818d2f 16076 ac_status=$?
875927f6
AJ
16077 grep -v '^ *+' conftest.er1 >conftest.err
16078 rm -f conftest.er1
16079 cat conftest.err >&5
daa2886c 16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16081 (exit $ac_status); } && {
16082 test -z "$ac_c_werror_flag" ||
16083 test ! -s conftest.err
16084 } && test -s conftest$ac_exeext &&
16085 $as_test_x conftest$ac_exeext; then
e533e972 16086 ac_cv_lib_poll_poll=yes
1bb94039 16087else
f5818d2f 16088 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16089sed 's/^/| /' conftest.$ac_ext >&5
16090
e533e972 16091 ac_cv_lib_poll_poll=no
1bb94039 16092fi
fc6ffb29 16093
f0ca586f 16094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
875927f6 16095 conftest$ac_exeext conftest.$ac_ext
e533e972 16096LIBS=$ac_check_lib_save_LIBS
1bb94039 16097fi
e533e972
AJ
16098{ echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
16099echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
16100if test $ac_cv_lib_poll_poll = yes; then
16101 cat >>confdefs.h <<\_ACEOF
16102#define HAVE_POLL 1
f5818d2f 16103_ACEOF
e533e972 16104 LIBPOLL="-lpoll"
30de3e8e 16105
1bb94039 16106fi
1bb94039 16107
e533e972
AJ
16108fi
16109
28710419
AJ
16110{ echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
16111echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
16112if test "${ac_cv_search_gethostbyname+set}" = set; then
f5818d2f
AJ
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16114else
28710419 16115 ac_func_search_save_LIBS=$LIBS
e533e972 16116cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16117/* confdefs.h. */
16118_ACEOF
16119cat confdefs.h >>conftest.$ac_ext
16120cat >>conftest.$ac_ext <<_ACEOF
16121/* end confdefs.h. */
875927f6 16122
fc6ffb29
AJ
16123/* Override any GCC internal prototype to avoid an error.
16124 Use char because int might match the return type of a GCC
16125 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
16126#ifdef __cplusplus
16127extern "C"
16128#endif
e533e972 16129char gethostbyname ();
e24bcc77
AJ
16130int
16131main ()
16132{
e533e972 16133return gethostbyname ();
f5818d2f
AJ
16134 ;
16135 return 0;
16136}
16137_ACEOF
28710419
AJ
16138for ac_lib in '' nsl; do
16139 if test -z "$ac_lib"; then
16140 ac_res="none required"
16141 else
16142 ac_res=-l$ac_lib
16143 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16144 fi
16145 rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
16146if { (ac_try="$ac_link"
16147case "(($ac_try" in
16148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149 *) ac_try_echo=$ac_try;;
16150esac
16151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16152 (eval "$ac_link") 2>conftest.er1
f5818d2f 16153 ac_status=$?
875927f6
AJ
16154 grep -v '^ *+' conftest.er1 >conftest.err
16155 rm -f conftest.er1
16156 cat conftest.err >&5
daa2886c 16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16158 (exit $ac_status); } && {
16159 test -z "$ac_c_werror_flag" ||
16160 test ! -s conftest.err
16161 } && test -s conftest$ac_exeext &&
16162 $as_test_x conftest$ac_exeext; then
28710419 16163 ac_cv_search_gethostbyname=$ac_res
f5818d2f
AJ
16164else
16165 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16166sed 's/^/| /' conftest.$ac_ext >&5
16167
28710419 16168
f5818d2f 16169fi
fc6ffb29 16170
f0ca586f 16171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28710419
AJ
16172 conftest$ac_exeext
16173 if test "${ac_cv_search_gethostbyname+set}" = set; then
16174 break
f5818d2f 16175fi
28710419
AJ
16176done
16177if test "${ac_cv_search_gethostbyname+set}" = set; then
16178 :
16179else
16180 ac_cv_search_gethostbyname=no
16181fi
16182rm conftest.$ac_ext
16183LIBS=$ac_func_search_save_LIBS
1bb94039 16184fi
28710419
AJ
16185{ echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
16186echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
16187ac_res=$ac_cv_search_gethostbyname
16188if test "$ac_res" != no; then
16189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
daa2886c 16190
e533e972 16191fi
1bb94039 16192
1bb94039 16193
28710419
AJ
16194{ echo "$as_me:$LINENO: checking for library containing connect" >&5
16195echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6; }
16196if test "${ac_cv_search_connect+set}" = set; then
f5818d2f
AJ
16197 echo $ECHO_N "(cached) $ECHO_C" >&6
16198else
28710419 16199 ac_func_search_save_LIBS=$LIBS
e533e972 16200cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16201/* confdefs.h. */
16202_ACEOF
16203cat confdefs.h >>conftest.$ac_ext
16204cat >>conftest.$ac_ext <<_ACEOF
16205/* end confdefs.h. */
875927f6 16206
fc6ffb29
AJ
16207/* Override any GCC internal prototype to avoid an error.
16208 Use char because int might match the return type of a GCC
16209 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
16210#ifdef __cplusplus
16211extern "C"
16212#endif
e533e972 16213char connect ();
e24bcc77
AJ
16214int
16215main ()
16216{
e533e972 16217return connect ();
f5818d2f
AJ
16218 ;
16219 return 0;
16220}
16221_ACEOF
28710419
AJ
16222for ac_lib in '' socket; do
16223 if test -z "$ac_lib"; then
16224 ac_res="none required"
16225 else
16226 ac_res=-l$ac_lib
16227 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16228 fi
16229 rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
16230if { (ac_try="$ac_link"
16231case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16234esac
16235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_link") 2>conftest.er1
f5818d2f 16237 ac_status=$?
875927f6
AJ
16238 grep -v '^ *+' conftest.er1 >conftest.err
16239 rm -f conftest.er1
16240 cat conftest.err >&5
daa2886c 16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16242 (exit $ac_status); } && {
16243 test -z "$ac_c_werror_flag" ||
16244 test ! -s conftest.err
16245 } && test -s conftest$ac_exeext &&
16246 $as_test_x conftest$ac_exeext; then
28710419 16247 ac_cv_search_connect=$ac_res
f5818d2f
AJ
16248else
16249 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16250sed 's/^/| /' conftest.$ac_ext >&5
16251
28710419 16252
f5818d2f 16253fi
fc6ffb29 16254
f0ca586f 16255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28710419
AJ
16256 conftest$ac_exeext
16257 if test "${ac_cv_search_connect+set}" = set; then
16258 break
f5818d2f 16259fi
28710419
AJ
16260done
16261if test "${ac_cv_search_connect+set}" = set; then
16262 :
16263else
16264 ac_cv_search_connect=no
e2991ea7 16265fi
28710419
AJ
16266rm conftest.$ac_ext
16267LIBS=$ac_func_search_save_LIBS
16268fi
16269{ echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
16270echo "${ECHO_T}$ac_cv_search_connect" >&6; }
16271ac_res=$ac_cv_search_connect
16272if test "$ac_res" != no; then
16273 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2991ea7 16274
e533e972 16275fi
daa2886c 16276
e533e972 16277
28710419
AJ
16278{ echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
16279echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; }
16280if test "${ac_cv_search_inet_aton+set}" = set; then
1089260f
AJ
16281 echo $ECHO_N "(cached) $ECHO_C" >&6
16282else
28710419 16283 ac_func_search_save_LIBS=$LIBS
1089260f
AJ
16284cat >conftest.$ac_ext <<_ACEOF
16285/* confdefs.h. */
16286_ACEOF
16287cat confdefs.h >>conftest.$ac_ext
16288cat >>conftest.$ac_ext <<_ACEOF
16289/* end confdefs.h. */
16290
16291/* Override any GCC internal prototype to avoid an error.
16292 Use char because int might match the return type of a GCC
16293 builtin and then its argument prototype would still apply. */
16294#ifdef __cplusplus
16295extern "C"
16296#endif
e533e972 16297char inet_aton ();
1089260f
AJ
16298int
16299main ()
16300{
e533e972 16301return inet_aton ();
1089260f
AJ
16302 ;
16303 return 0;
16304}
16305_ACEOF
28710419
AJ
16306for ac_lib in '' resolv; do
16307 if test -z "$ac_lib"; then
16308 ac_res="none required"
16309 else
16310 ac_res=-l$ac_lib
16311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16312 fi
16313 rm -f conftest.$ac_objext conftest$ac_exeext
1089260f
AJ
16314if { (ac_try="$ac_link"
16315case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16318esac
16319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_link") 2>conftest.er1
16321 ac_status=$?
16322 grep -v '^ *+' conftest.er1 >conftest.err
16323 rm -f conftest.er1
16324 cat conftest.err >&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16326 (exit $ac_status); } && {
16327 test -z "$ac_c_werror_flag" ||
16328 test ! -s conftest.err
16329 } && test -s conftest$ac_exeext &&
16330 $as_test_x conftest$ac_exeext; then
28710419 16331 ac_cv_search_inet_aton=$ac_res
1089260f
AJ
16332else
16333 echo "$as_me: failed program was:" >&5
16334sed 's/^/| /' conftest.$ac_ext >&5
16335
28710419 16336
1089260f
AJ
16337fi
16338
f0ca586f 16339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28710419
AJ
16340 conftest$ac_exeext
16341 if test "${ac_cv_search_inet_aton+set}" = set; then
16342 break
1089260f 16343fi
28710419
AJ
16344done
16345if test "${ac_cv_search_inet_aton+set}" = set; then
16346 :
16347else
16348 ac_cv_search_inet_aton=no
1089260f 16349fi
28710419
AJ
16350rm conftest.$ac_ext
16351LIBS=$ac_func_search_save_LIBS
16352fi
16353{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
16354echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; }
16355ac_res=$ac_cv_search_inet_aton
16356if test "$ac_res" != no; then
16357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1089260f
AJ
16358
16359fi
daa2886c
AJ
16360
16361
41c59964
BT
16362
16363
16364
16365
16366
16367
16368
28710419 16369
41c59964
BT
16370for ac_func in \
16371 getaddrinfo \
16372 getnameinfo \
16373 getnetbyname \
16374 getprotobyname \
16375 getprotobynumber \
16376 getservbyport \
16377 inet_network \
16378 sendmsg \
16379
16380do
16381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16382{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16384if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16385 echo $ECHO_N "(cached) $ECHO_C" >&6
16386else
16387 cat >conftest.$ac_ext <<_ACEOF
16388/* confdefs.h. */
16389_ACEOF
16390cat confdefs.h >>conftest.$ac_ext
16391cat >>conftest.$ac_ext <<_ACEOF
16392/* end confdefs.h. */
16393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16395#define $ac_func innocuous_$ac_func
16396
16397/* System header to define __stub macros and hopefully few prototypes,
16398 which can conflict with char $ac_func (); below.
16399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16400 <limits.h> exists even on freestanding compilers. */
16401
16402#ifdef __STDC__
16403# include <limits.h>
16404#else
16405# include <assert.h>
16406#endif
16407
16408#undef $ac_func
16409
16410/* Override any GCC internal prototype to avoid an error.
16411 Use char because int might match the return type of a GCC
16412 builtin and then its argument prototype would still apply. */
16413#ifdef __cplusplus
16414extern "C"
16415#endif
16416char $ac_func ();
16417/* The GNU C library defines this for functions which it implements
16418 to always fail with ENOSYS. Some functions are actually named
16419 something starting with __ and the normal name is an alias. */
16420#if defined __stub_$ac_func || defined __stub___$ac_func
16421choke me
16422#endif
16423
16424int
16425main ()
16426{
16427return $ac_func ();
16428 ;
16429 return 0;
16430}
16431_ACEOF
16432rm -f conftest.$ac_objext conftest$ac_exeext
16433if { (ac_try="$ac_link"
16434case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16437esac
16438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_link") 2>conftest.er1
16440 ac_status=$?
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } && {
16446 test -z "$ac_c_werror_flag" ||
16447 test ! -s conftest.err
16448 } && test -s conftest$ac_exeext &&
16449 $as_test_x conftest$ac_exeext; then
16450 eval "$as_ac_var=yes"
16451else
16452 echo "$as_me: failed program was:" >&5
16453sed 's/^/| /' conftest.$ac_ext >&5
16454
16455 eval "$as_ac_var=no"
16456fi
16457
16458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16459 conftest$ac_exeext conftest.$ac_ext
16460fi
16461ac_res=`eval echo '${'$as_ac_var'}'`
16462 { echo "$as_me:$LINENO: result: $ac_res" >&5
16463echo "${ECHO_T}$ac_res" >&6; }
16464if test `eval echo '${'$as_ac_var'}'` = yes; then
16465 cat >>confdefs.h <<_ACEOF
16466#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16467_ACEOF
16468
16469fi
16470done
16471
16472
16473
fc6ffb29
AJ
16474{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16475echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
f41c2b21 16476if test "${ac_cv_c_const+set}" = set; then
f5818d2f
AJ
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16478else
16479 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16480/* confdefs.h. */
16481_ACEOF
16482cat confdefs.h >>conftest.$ac_ext
16483cat >>conftest.$ac_ext <<_ACEOF
16484/* end confdefs.h. */
f41c2b21 16485
f5818d2f
AJ
16486int
16487main ()
16488{
f41c2b21
DP
16489/* FIXME: Include the comments suggested by Paul. */
16490#ifndef __cplusplus
16491 /* Ultrix mips cc rejects this. */
16492 typedef int charset[2];
f0ca586f 16493 const charset cs;
f41c2b21 16494 /* SunOS 4.1.1 cc rejects this. */
f0ca586f
PK
16495 char const *const *pcpcc;
16496 char **ppc;
f41c2b21
DP
16497 /* NEC SVR4.0.2 mips cc rejects this. */
16498 struct point {int x, y;};
16499 static struct point const zero = {0,0};
16500 /* AIX XL C 1.02.0.0 rejects this.
16501 It does not let you subtract one const X* pointer from another in
16502 an arm of an if-expression whose if-part is not a constant
16503 expression */
16504 const char *g = "string";
f0ca586f 16505 pcpcc = &g + (g ? g-g : 0);
f41c2b21 16506 /* HPUX 7.0 cc rejects these. */
f0ca586f
PK
16507 ++pcpcc;
16508 ppc = (char**) pcpcc;
16509 pcpcc = (char const *const *) ppc;
f41c2b21
DP
16510 { /* SCO 3.2v4 cc rejects this. */
16511 char *t;
16512 char const *s = 0 ? (char *) 0 : (char const *) 0;
16513
16514 *t++ = 0;
fc6ffb29 16515 if (s) return 0;
f41c2b21
DP
16516 }
16517 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16518 int x[] = {25, 17};
16519 const int *foo = &x[0];
16520 ++foo;
16521 }
16522 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16523 typedef const int *iptr;
16524 iptr p = 0;
16525 ++p;
16526 }
16527 { /* AIX XL C 1.02.0.0 rejects this saying
16528 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16529 struct s { int j; const int *ap[3]; };
16530 struct s *b; b->j = 5;
16531 }
16532 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16533 const int foo = 10;
fc6ffb29 16534 if (!foo) return 0;
f41c2b21 16535 }
f0ca586f 16536 return !cs[0] && !zero.x;
f41c2b21
DP
16537#endif
16538
f5818d2f
AJ
16539 ;
16540 return 0;
16541}
16542_ACEOF
16543rm -f conftest.$ac_objext
0ebeb530
JW
16544if { (ac_try="$ac_compile"
16545case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16548esac
16549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550 (eval "$ac_compile") 2>conftest.er1
f5818d2f 16551 ac_status=$?
875927f6
AJ
16552 grep -v '^ *+' conftest.er1 >conftest.err
16553 rm -f conftest.er1
16554 cat conftest.err >&5
daa2886c 16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16556 (exit $ac_status); } && {
16557 test -z "$ac_c_werror_flag" ||
16558 test ! -s conftest.err
16559 } && test -s conftest.$ac_objext; then
f41c2b21 16560 ac_cv_c_const=yes
f5818d2f
AJ
16561else
16562 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16563sed 's/^/| /' conftest.$ac_ext >&5
16564
fc6ffb29 16565 ac_cv_c_const=no
c7c217b3 16566fi
fc6ffb29 16567
0ebeb530 16568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 16569fi
fc6ffb29
AJ
16570{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16571echo "${ECHO_T}$ac_cv_c_const" >&6; }
f41c2b21 16572if test $ac_cv_c_const = no; then
5769d1de 16573
f41c2b21
DP
16574cat >>confdefs.h <<\_ACEOF
16575#define const
5769d1de
AJ
16576_ACEOF
16577
5769d1de 16578fi
f41c2b21 16579
fc6ffb29
AJ
16580{ echo "$as_me:$LINENO: checking for inline" >&5
16581echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
f41c2b21 16582if test "${ac_cv_c_inline+set}" = set; then
5769d1de
AJ
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16584else
f41c2b21
DP
16585 ac_cv_c_inline=no
16586for ac_kw in inline __inline__ __inline; do
5769d1de 16587 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16588/* confdefs.h. */
16589_ACEOF
16590cat confdefs.h >>conftest.$ac_ext
f41c2b21
DP
16591cat >>conftest.$ac_ext <<_ACEOF
16592/* end confdefs.h. */
16593#ifndef __cplusplus
16594typedef int foo_t;
16595static $ac_kw foo_t static_foo () {return 0; }
16596$ac_kw foo_t foo () {return 0; }
16597#endif
16598
5769d1de
AJ
16599_ACEOF
16600rm -f conftest.$ac_objext
0ebeb530
JW
16601if { (ac_try="$ac_compile"
16602case "(($ac_try" in
16603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16604 *) ac_try_echo=$ac_try;;
16605esac
16606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16607 (eval "$ac_compile") 2>conftest.er1
5769d1de 16608 ac_status=$?
875927f6
AJ
16609 grep -v '^ *+' conftest.er1 >conftest.err
16610 rm -f conftest.er1
16611 cat conftest.err >&5
5769d1de 16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16613 (exit $ac_status); } && {
16614 test -z "$ac_c_werror_flag" ||
16615 test ! -s conftest.err
16616 } && test -s conftest.$ac_objext; then
fc6ffb29 16617 ac_cv_c_inline=$ac_kw
f5818d2f 16618else
5769d1de 16619 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16620sed 's/^/| /' conftest.$ac_ext >&5
16621
fc6ffb29 16622
5769d1de 16623fi
fc6ffb29 16624
0ebeb530 16625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 16626 test "$ac_cv_c_inline" != no && break
f41c2b21 16627done
f5818d2f 16628
f41c2b21 16629fi
fc6ffb29
AJ
16630{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16631echo "${ECHO_T}$ac_cv_c_inline" >&6; }
c7c217b3 16632
5769d1de 16633
f41c2b21
DP
16634case $ac_cv_c_inline in
16635 inline | yes) ;;
16636 *)
16637 case $ac_cv_c_inline in
16638 no) ac_val=;;
16639 *) ac_val=$ac_cv_c_inline;;
16640 esac
16641 cat >>confdefs.h <<_ACEOF
16642#ifndef __cplusplus
16643#define inline $ac_val
16644#endif
16645_ACEOF
16646 ;;
16647esac
c7c217b3 16648
fc6ffb29
AJ
16649{ echo "$as_me:$LINENO: checking for mode_t" >&5
16650echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
f41c2b21 16651if test "${ac_cv_type_mode_t+set}" = set; then
f5818d2f
AJ
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16653else
16654 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16655/* confdefs.h. */
16656_ACEOF
16657cat confdefs.h >>conftest.$ac_ext
16658cat >>conftest.$ac_ext <<_ACEOF
16659/* end confdefs.h. */
f5818d2f 16660$ac_includes_default
fc6ffb29 16661typedef mode_t ac__type_new_;
f5818d2f
AJ
16662int
16663main ()
16664{
fc6ffb29 16665if ((ac__type_new_ *) 0)
f5818d2f 16666 return 0;
fc6ffb29 16667if (sizeof (ac__type_new_))
f5818d2f
AJ
16668 return 0;
16669 ;
16670 return 0;
16671}
16672_ACEOF
16673rm -f conftest.$ac_objext
0ebeb530
JW
16674if { (ac_try="$ac_compile"
16675case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678esac
16679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_compile") 2>conftest.er1
f5818d2f 16681 ac_status=$?
875927f6
AJ
16682 grep -v '^ *+' conftest.er1 >conftest.err
16683 rm -f conftest.er1
16684 cat conftest.err >&5
daa2886c 16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16686 (exit $ac_status); } && {
16687 test -z "$ac_c_werror_flag" ||
16688 test ! -s conftest.err
16689 } && test -s conftest.$ac_objext; then
f41c2b21 16690 ac_cv_type_mode_t=yes
f5818d2f
AJ
16691else
16692 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16693sed 's/^/| /' conftest.$ac_ext >&5
16694
fc6ffb29 16695 ac_cv_type_mode_t=no
f5818d2f 16696fi
fc6ffb29 16697
0ebeb530 16698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 16699fi
fc6ffb29
AJ
16700{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
16701echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
f41c2b21 16702if test $ac_cv_type_mode_t = yes; then
f5818d2f 16703
f41c2b21
DP
16704cat >>confdefs.h <<_ACEOF
16705#define HAVE_MODE_T 1
16706_ACEOF
16707
16708
16709fi
fc6ffb29
AJ
16710{ echo "$as_me:$LINENO: checking for off_t" >&5
16711echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
f41c2b21 16712if test "${ac_cv_type_off_t+set}" = set; then
f5818d2f
AJ
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16714else
f41c2b21 16715 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16716/* confdefs.h. */
16717_ACEOF
16718cat confdefs.h >>conftest.$ac_ext
16719cat >>conftest.$ac_ext <<_ACEOF
16720/* end confdefs.h. */
f5818d2f 16721$ac_includes_default
fc6ffb29 16722typedef off_t ac__type_new_;
f5818d2f
AJ
16723int
16724main ()
16725{
fc6ffb29 16726if ((ac__type_new_ *) 0)
f41c2b21 16727 return 0;
fc6ffb29 16728if (sizeof (ac__type_new_))
f41c2b21 16729 return 0;
f5818d2f
AJ
16730 ;
16731 return 0;
16732}
16733_ACEOF
16734rm -f conftest.$ac_objext
0ebeb530
JW
16735if { (ac_try="$ac_compile"
16736case "(($ac_try" in
16737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738 *) ac_try_echo=$ac_try;;
16739esac
16740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16741 (eval "$ac_compile") 2>conftest.er1
f5818d2f 16742 ac_status=$?
875927f6
AJ
16743 grep -v '^ *+' conftest.er1 >conftest.err
16744 rm -f conftest.er1
16745 cat conftest.err >&5
daa2886c 16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16747 (exit $ac_status); } && {
16748 test -z "$ac_c_werror_flag" ||
16749 test ! -s conftest.err
16750 } && test -s conftest.$ac_objext; then
f41c2b21
DP
16751 ac_cv_type_off_t=yes
16752else
16753 echo "$as_me: failed program was:" >&5
16754sed 's/^/| /' conftest.$ac_ext >&5
16755
fc6ffb29 16756 ac_cv_type_off_t=no
f41c2b21 16757fi
fc6ffb29 16758
0ebeb530 16759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21 16760fi
fc6ffb29
AJ
16761{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
16762echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
f41c2b21
DP
16763if test $ac_cv_type_off_t = yes; then
16764
16765cat >>confdefs.h <<_ACEOF
16766#define HAVE_OFF_T 1
16767_ACEOF
16768
16769
16770fi
fc6ffb29
AJ
16771{ echo "$as_me:$LINENO: checking for pid_t" >&5
16772echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
f41c2b21
DP
16773if test "${ac_cv_type_pid_t+set}" = set; then
16774 echo $ECHO_N "(cached) $ECHO_C" >&6
16775else
16776 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16777/* confdefs.h. */
16778_ACEOF
16779cat confdefs.h >>conftest.$ac_ext
16780cat >>conftest.$ac_ext <<_ACEOF
16781/* end confdefs.h. */
f5818d2f 16782$ac_includes_default
fc6ffb29 16783typedef pid_t ac__type_new_;
f5818d2f
AJ
16784int
16785main ()
16786{
fc6ffb29 16787if ((ac__type_new_ *) 0)
f41c2b21 16788 return 0;
fc6ffb29 16789if (sizeof (ac__type_new_))
f41c2b21 16790 return 0;
f5818d2f
AJ
16791 ;
16792 return 0;
16793}
16794_ACEOF
16795rm -f conftest.$ac_objext
0ebeb530
JW
16796if { (ac_try="$ac_compile"
16797case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16800esac
16801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_compile") 2>conftest.er1
f5818d2f 16803 ac_status=$?
875927f6
AJ
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
daa2886c 16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16808 (exit $ac_status); } && {
16809 test -z "$ac_c_werror_flag" ||
16810 test ! -s conftest.err
16811 } && test -s conftest.$ac_objext; then
f41c2b21 16812 ac_cv_type_pid_t=yes
f5818d2f
AJ
16813else
16814 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16815sed 's/^/| /' conftest.$ac_ext >&5
16816
fc6ffb29 16817 ac_cv_type_pid_t=no
f5818d2f 16818fi
fc6ffb29 16819
0ebeb530 16820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21 16821fi
fc6ffb29
AJ
16822{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16823echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
f41c2b21 16824if test $ac_cv_type_pid_t = yes; then
e24bcc77 16825
f41c2b21
DP
16826cat >>confdefs.h <<_ACEOF
16827#define HAVE_PID_T 1
16828_ACEOF
16829
16830
16831fi
fc6ffb29
AJ
16832{ echo "$as_me:$LINENO: checking for size_t" >&5
16833echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
f41c2b21
DP
16834if test "${ac_cv_type_size_t+set}" = set; then
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16836else
16837 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16838/* confdefs.h. */
16839_ACEOF
16840cat confdefs.h >>conftest.$ac_ext
16841cat >>conftest.$ac_ext <<_ACEOF
16842/* end confdefs.h. */
daa2886c 16843$ac_includes_default
fc6ffb29 16844typedef size_t ac__type_new_;
daa2886c
AJ
16845int
16846main ()
16847{
fc6ffb29 16848if ((ac__type_new_ *) 0)
f41c2b21 16849 return 0;
fc6ffb29 16850if (sizeof (ac__type_new_))
f41c2b21 16851 return 0;
daa2886c
AJ
16852 ;
16853 return 0;
16854}
16855_ACEOF
16856rm -f conftest.$ac_objext
0ebeb530
JW
16857if { (ac_try="$ac_compile"
16858case "(($ac_try" in
16859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860 *) ac_try_echo=$ac_try;;
16861esac
16862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_compile") 2>conftest.er1
daa2886c 16864 ac_status=$?
875927f6
AJ
16865 grep -v '^ *+' conftest.er1 >conftest.err
16866 rm -f conftest.er1
16867 cat conftest.err >&5
daa2886c 16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16869 (exit $ac_status); } && {
16870 test -z "$ac_c_werror_flag" ||
16871 test ! -s conftest.err
16872 } && test -s conftest.$ac_objext; then
f41c2b21
DP
16873 ac_cv_type_size_t=yes
16874else
16875 echo "$as_me: failed program was:" >&5
16876sed 's/^/| /' conftest.$ac_ext >&5
16877
fc6ffb29 16878 ac_cv_type_size_t=no
f41c2b21 16879fi
fc6ffb29 16880
0ebeb530 16881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21 16882fi
fc6ffb29
AJ
16883{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16884echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
f41c2b21
DP
16885if test $ac_cv_type_size_t = yes; then
16886
16887cat >>confdefs.h <<_ACEOF
16888#define HAVE_SIZE_T 1
16889_ACEOF
16890
16891
16892fi
fc6ffb29
AJ
16893{ echo "$as_me:$LINENO: checking for ssize_t" >&5
16894echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
f41c2b21
DP
16895if test "${ac_cv_type_ssize_t+set}" = set; then
16896 echo $ECHO_N "(cached) $ECHO_C" >&6
16897else
16898 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16899/* confdefs.h. */
16900_ACEOF
16901cat confdefs.h >>conftest.$ac_ext
16902cat >>conftest.$ac_ext <<_ACEOF
16903/* end confdefs.h. */
f5818d2f 16904$ac_includes_default
fc6ffb29 16905typedef ssize_t ac__type_new_;
f5818d2f
AJ
16906int
16907main ()
16908{
fc6ffb29 16909if ((ac__type_new_ *) 0)
f41c2b21 16910 return 0;
fc6ffb29 16911if (sizeof (ac__type_new_))
f41c2b21 16912 return 0;
f5818d2f
AJ
16913 ;
16914 return 0;
16915}
16916_ACEOF
16917rm -f conftest.$ac_objext
0ebeb530
JW
16918if { (ac_try="$ac_compile"
16919case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16922esac
16923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924 (eval "$ac_compile") 2>conftest.er1
f5818d2f 16925 ac_status=$?
875927f6
AJ
16926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
daa2886c 16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16930 (exit $ac_status); } && {
16931 test -z "$ac_c_werror_flag" ||
16932 test ! -s conftest.err
16933 } && test -s conftest.$ac_objext; then
f41c2b21 16934 ac_cv_type_ssize_t=yes
f5818d2f
AJ
16935else
16936 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16937sed 's/^/| /' conftest.$ac_ext >&5
16938
fc6ffb29 16939 ac_cv_type_ssize_t=no
f5818d2f 16940fi
fc6ffb29 16941
0ebeb530 16942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
daa2886c 16943fi
fc6ffb29
AJ
16944{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16945echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
f41c2b21
DP
16946if test $ac_cv_type_ssize_t = yes; then
16947
16948cat >>confdefs.h <<_ACEOF
16949#define HAVE_SSIZE_T 1
16950_ACEOF
16951
16952
f5818d2f 16953fi
fc6ffb29
AJ
16954{ echo "$as_me:$LINENO: checking for long long" >&5
16955echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
f41c2b21
DP
16956if test "${ac_cv_type_long_long+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16958else
f5818d2f 16959 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16960/* confdefs.h. */
16961_ACEOF
16962cat confdefs.h >>conftest.$ac_ext
16963cat >>conftest.$ac_ext <<_ACEOF
16964/* end confdefs.h. */
f5818d2f 16965$ac_includes_default
fc6ffb29 16966typedef long long ac__type_new_;
f5818d2f
AJ
16967int
16968main ()
16969{
fc6ffb29 16970if ((ac__type_new_ *) 0)
f41c2b21 16971 return 0;
fc6ffb29 16972if (sizeof (ac__type_new_))
f41c2b21 16973 return 0;
f5818d2f
AJ
16974 ;
16975 return 0;
16976}
16977_ACEOF
16978rm -f conftest.$ac_objext
0ebeb530
JW
16979if { (ac_try="$ac_compile"
16980case "(($ac_try" in
16981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16982 *) ac_try_echo=$ac_try;;
16983esac
16984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16985 (eval "$ac_compile") 2>conftest.er1
f5818d2f 16986 ac_status=$?
875927f6
AJ
16987 grep -v '^ *+' conftest.er1 >conftest.err
16988 rm -f conftest.er1
16989 cat conftest.err >&5
daa2886c 16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
16991 (exit $ac_status); } && {
16992 test -z "$ac_c_werror_flag" ||
16993 test ! -s conftest.err
16994 } && test -s conftest.$ac_objext; then
f41c2b21 16995 ac_cv_type_long_long=yes
f5818d2f
AJ
16996else
16997 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16998sed 's/^/| /' conftest.$ac_ext >&5
16999
fc6ffb29 17000 ac_cv_type_long_long=no
f5818d2f 17001fi
fc6ffb29 17002
0ebeb530 17003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 17004fi
fc6ffb29
AJ
17005{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17006echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
f41c2b21
DP
17007if test $ac_cv_type_long_long = yes; then
17008
daa2886c 17009cat >>confdefs.h <<_ACEOF
f41c2b21 17010#define HAVE_LONG_LONG 1
daa2886c
AJ
17011_ACEOF
17012
17013
13af4891 17014fi
fc6ffb29
AJ
17015{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17016echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
13af4891
AJ
17017if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17019else
17020 cat >conftest.$ac_ext <<_ACEOF
17021/* confdefs.h. */
17022_ACEOF
17023cat confdefs.h >>conftest.$ac_ext
17024cat >>conftest.$ac_ext <<_ACEOF
17025/* end confdefs.h. */
17026$ac_includes_default
fc6ffb29 17027typedef fsblkcnt_t ac__type_new_;
13af4891
AJ
17028int
17029main ()
17030{
fc6ffb29 17031if ((ac__type_new_ *) 0)
13af4891 17032 return 0;
fc6ffb29 17033if (sizeof (ac__type_new_))
13af4891
AJ
17034 return 0;
17035 ;
17036 return 0;
17037}
17038_ACEOF
17039rm -f conftest.$ac_objext
0ebeb530
JW
17040if { (ac_try="$ac_compile"
17041case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17044esac
17045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
17047 ac_status=$?
17048 grep -v '^ *+' conftest.er1 >conftest.err
17049 rm -f conftest.er1
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17052 (exit $ac_status); } && {
17053 test -z "$ac_c_werror_flag" ||
17054 test ! -s conftest.err
17055 } && test -s conftest.$ac_objext; then
13af4891
AJ
17056 ac_cv_type_fsblkcnt_t=yes
17057else
17058 echo "$as_me: failed program was:" >&5
17059sed 's/^/| /' conftest.$ac_ext >&5
17060
fc6ffb29 17061 ac_cv_type_fsblkcnt_t=no
13af4891 17062fi
fc6ffb29 17063
0ebeb530 17064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 17065fi
fc6ffb29
AJ
17066{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17067echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
13af4891
AJ
17068if test $ac_cv_type_fsblkcnt_t = yes; then
17069
17070cat >>confdefs.h <<_ACEOF
17071#define HAVE_FSBLKCNT_T 1
17072_ACEOF
17073
17074
17075fi
fc6ffb29
AJ
17076{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17077echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
13af4891
AJ
17078if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17080else
17081 cat >conftest.$ac_ext <<_ACEOF
17082/* confdefs.h. */
17083_ACEOF
17084cat confdefs.h >>conftest.$ac_ext
17085cat >>conftest.$ac_ext <<_ACEOF
17086/* end confdefs.h. */
17087$ac_includes_default
fc6ffb29 17088typedef fsfilcnt_t ac__type_new_;
13af4891
AJ
17089int
17090main ()
17091{
fc6ffb29 17092if ((ac__type_new_ *) 0)
13af4891 17093 return 0;
fc6ffb29 17094if (sizeof (ac__type_new_))
13af4891
AJ
17095 return 0;
17096 ;
17097 return 0;
17098}
17099_ACEOF
17100rm -f conftest.$ac_objext
0ebeb530
JW
17101if { (ac_try="$ac_compile"
17102case "(($ac_try" in
17103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17104 *) ac_try_echo=$ac_try;;
17105esac
17106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17107 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
17108 ac_status=$?
17109 grep -v '^ *+' conftest.er1 >conftest.err
17110 rm -f conftest.er1
17111 cat conftest.err >&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17113 (exit $ac_status); } && {
17114 test -z "$ac_c_werror_flag" ||
17115 test ! -s conftest.err
17116 } && test -s conftest.$ac_objext; then
13af4891
AJ
17117 ac_cv_type_fsfilcnt_t=yes
17118else
17119 echo "$as_me: failed program was:" >&5
17120sed 's/^/| /' conftest.$ac_ext >&5
17121
fc6ffb29 17122 ac_cv_type_fsfilcnt_t=no
13af4891 17123fi
fc6ffb29 17124
0ebeb530 17125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 17126fi
fc6ffb29
AJ
17127{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17128echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
13af4891
AJ
17129if test $ac_cv_type_fsfilcnt_t = yes; then
17130
17131cat >>confdefs.h <<_ACEOF
17132#define HAVE_FSFILCNT_T 1
17133_ACEOF
17134
17135
10a6c560
PM
17136fi
17137
fc6ffb29
AJ
17138{ echo "$as_me:$LINENO: checking for sigset_t" >&5
17139echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
10a6c560
PM
17140if test "${ac_cv_type_sigset_t+set}" = set; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17142else
17143 cat >conftest.$ac_ext <<_ACEOF
17144/* confdefs.h. */
17145_ACEOF
17146cat confdefs.h >>conftest.$ac_ext
17147cat >>conftest.$ac_ext <<_ACEOF
17148/* end confdefs.h. */
17149#include <signal.h>
17150
fc6ffb29 17151typedef sigset_t ac__type_new_;
10a6c560
PM
17152int
17153main ()
17154{
fc6ffb29 17155if ((ac__type_new_ *) 0)
10a6c560 17156 return 0;
fc6ffb29 17157if (sizeof (ac__type_new_))
10a6c560
PM
17158 return 0;
17159 ;
17160 return 0;
17161}
17162_ACEOF
17163rm -f conftest.$ac_objext
0ebeb530
JW
17164if { (ac_try="$ac_compile"
17165case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168esac
17169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_compile") 2>conftest.er1
10a6c560
PM
17171 ac_status=$?
17172 grep -v '^ *+' conftest.er1 >conftest.err
17173 rm -f conftest.er1
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17176 (exit $ac_status); } && {
17177 test -z "$ac_c_werror_flag" ||
17178 test ! -s conftest.err
17179 } && test -s conftest.$ac_objext; then
10a6c560
PM
17180 ac_cv_type_sigset_t=yes
17181else
17182 echo "$as_me: failed program was:" >&5
17183sed 's/^/| /' conftest.$ac_ext >&5
17184
fc6ffb29 17185 ac_cv_type_sigset_t=no
10a6c560 17186fi
fc6ffb29 17187
0ebeb530 17188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10a6c560 17189fi
fc6ffb29
AJ
17190{ echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17191echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
10a6c560
PM
17192if test $ac_cv_type_sigset_t = yes; then
17193
17194cat >>confdefs.h <<_ACEOF
17195#define HAVE_SIGSET_T 1
17196_ACEOF
17197
17198
b8b15f3e
GP
17199fi
17200
fc6ffb29
AJ
17201{ echo "$as_me:$LINENO: checking for request_sense" >&5
17202echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
b8b15f3e
GP
17203if test "${ac_cv_type_request_sense+set}" = set; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17205else
17206 cat >conftest.$ac_ext <<_ACEOF
17207/* confdefs.h. */
17208_ACEOF
17209cat confdefs.h >>conftest.$ac_ext
17210cat >>conftest.$ac_ext <<_ACEOF
17211/* end confdefs.h. */
17212#include <linux/cdrom.h>
17213
fc6ffb29 17214typedef request_sense ac__type_new_;
b8b15f3e
GP
17215int
17216main ()
17217{
fc6ffb29 17218if ((ac__type_new_ *) 0)
b8b15f3e 17219 return 0;
fc6ffb29 17220if (sizeof (ac__type_new_))
b8b15f3e
GP
17221 return 0;
17222 ;
17223 return 0;
17224}
17225_ACEOF
17226rm -f conftest.$ac_objext
0ebeb530
JW
17227if { (ac_try="$ac_compile"
17228case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17231esac
17232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_compile") 2>conftest.er1
b8b15f3e
GP
17234 ac_status=$?
17235 grep -v '^ *+' conftest.er1 >conftest.err
17236 rm -f conftest.er1
17237 cat conftest.err >&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17239 (exit $ac_status); } && {
17240 test -z "$ac_c_werror_flag" ||
17241 test ! -s conftest.err
17242 } && test -s conftest.$ac_objext; then
b8b15f3e
GP
17243 ac_cv_type_request_sense=yes
17244else
17245 echo "$as_me: failed program was:" >&5
17246sed 's/^/| /' conftest.$ac_ext >&5
17247
fc6ffb29 17248 ac_cv_type_request_sense=no
b8b15f3e 17249fi
fc6ffb29 17250
0ebeb530 17251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b8b15f3e 17252fi
fc6ffb29
AJ
17253{ echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
17254echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
b8b15f3e
GP
17255if test $ac_cv_type_request_sense = yes; then
17256
17257cat >>confdefs.h <<_ACEOF
17258#define HAVE_REQUEST_SENSE 1
17259_ACEOF
17260
17261
f41c2b21
DP
17262fi
17263
c7c217b3 17264
fc6ffb29
AJ
17265{ echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
17266echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
e491e8f8
DR
17267if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
17268 echo $ECHO_N "(cached) $ECHO_C" >&6
17269else
17270 cat >conftest.$ac_ext <<_ACEOF
17271/* confdefs.h. */
17272_ACEOF
17273cat confdefs.h >>conftest.$ac_ext
17274cat >>conftest.$ac_ext <<_ACEOF
17275/* end confdefs.h. */
17276#ifdef HAVE_LINUX_INPUT_H
17277#include <linux/input.h>
17278#endif
17279
17280int
17281main ()
17282{
17283static struct ff_effect ac_aggr;
17284if (ac_aggr.direction)
17285return 0;
17286 ;
17287 return 0;
17288}
17289_ACEOF
17290rm -f conftest.$ac_objext
0ebeb530
JW
17291if { (ac_try="$ac_compile"
17292case "(($ac_try" in
17293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17294 *) ac_try_echo=$ac_try;;
17295esac
17296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17297 (eval "$ac_compile") 2>conftest.er1
e491e8f8
DR
17298 ac_status=$?
17299 grep -v '^ *+' conftest.er1 >conftest.err
17300 rm -f conftest.er1
17301 cat conftest.err >&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17303 (exit $ac_status); } && {
17304 test -z "$ac_c_werror_flag" ||
17305 test ! -s conftest.err
17306 } && test -s conftest.$ac_objext; then
e491e8f8
DR
17307 ac_cv_member_struct_ff_effect_direction=yes
17308else
17309 echo "$as_me: failed program was:" >&5
17310sed 's/^/| /' conftest.$ac_ext >&5
17311
fc6ffb29 17312 cat >conftest.$ac_ext <<_ACEOF
e491e8f8
DR
17313/* confdefs.h. */
17314_ACEOF
17315cat confdefs.h >>conftest.$ac_ext
17316cat >>conftest.$ac_ext <<_ACEOF
17317/* end confdefs.h. */
17318#ifdef HAVE_LINUX_INPUT_H
17319#include <linux/input.h>
17320#endif
17321
17322int
17323main ()
17324{
17325static struct ff_effect ac_aggr;
17326if (sizeof ac_aggr.direction)
17327return 0;
17328 ;
17329 return 0;
17330}
17331_ACEOF
17332rm -f conftest.$ac_objext
0ebeb530
JW
17333if { (ac_try="$ac_compile"
17334case "(($ac_try" in
17335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336 *) ac_try_echo=$ac_try;;
17337esac
17338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339 (eval "$ac_compile") 2>conftest.er1
e491e8f8
DR
17340 ac_status=$?
17341 grep -v '^ *+' conftest.er1 >conftest.err
17342 rm -f conftest.er1
17343 cat conftest.err >&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17345 (exit $ac_status); } && {
17346 test -z "$ac_c_werror_flag" ||
17347 test ! -s conftest.err
17348 } && test -s conftest.$ac_objext; then
e491e8f8
DR
17349 ac_cv_member_struct_ff_effect_direction=yes
17350else
17351 echo "$as_me: failed program was:" >&5
17352sed 's/^/| /' conftest.$ac_ext >&5
17353
fc6ffb29 17354 ac_cv_member_struct_ff_effect_direction=no
e491e8f8 17355fi
fc6ffb29 17356
0ebeb530 17357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e491e8f8 17358fi
fc6ffb29 17359
0ebeb530 17360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e491e8f8 17361fi
fc6ffb29
AJ
17362{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
17363echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
e491e8f8
DR
17364if test $ac_cv_member_struct_ff_effect_direction = yes; then
17365
17366cat >>confdefs.h <<_ACEOF
17367#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
17368_ACEOF
17369
17370
17371fi
17372
17373
fc6ffb29
AJ
17374{ echo "$as_me:$LINENO: checking for sigaddset" >&5
17375echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
10a6c560
PM
17376if test "${wine_cv_have_sigaddset+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17378else
17379 cat >conftest.$ac_ext <<_ACEOF
17380/* confdefs.h. */
17381_ACEOF
17382cat confdefs.h >>conftest.$ac_ext
17383cat >>conftest.$ac_ext <<_ACEOF
17384/* end confdefs.h. */
17385#include <signal.h>
17386int
17387main ()
17388{
17389sigset_t set; sigaddset(&set,SIGTERM);
17390 ;
17391 return 0;
17392}
17393_ACEOF
17394rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
17395if { (ac_try="$ac_link"
17396case "(($ac_try" in
17397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17398 *) ac_try_echo=$ac_try;;
17399esac
17400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17401 (eval "$ac_link") 2>conftest.er1
10a6c560
PM
17402 ac_status=$?
17403 grep -v '^ *+' conftest.er1 >conftest.err
17404 rm -f conftest.er1
17405 cat conftest.err >&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17407 (exit $ac_status); } && {
17408 test -z "$ac_c_werror_flag" ||
17409 test ! -s conftest.err
17410 } && test -s conftest$ac_exeext &&
17411 $as_test_x conftest$ac_exeext; then
10a6c560
PM
17412 wine_cv_have_sigaddset=yes
17413else
17414 echo "$as_me: failed program was:" >&5
17415sed 's/^/| /' conftest.$ac_ext >&5
17416
fc6ffb29 17417 wine_cv_have_sigaddset=no
10a6c560 17418fi
fc6ffb29 17419
f0ca586f 17420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10a6c560
PM
17421 conftest$ac_exeext conftest.$ac_ext
17422fi
fc6ffb29
AJ
17423{ echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17424echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
10a6c560
PM
17425if test "$wine_cv_have_sigaddset" = "yes"
17426then
17427
17428cat >>confdefs.h <<\_ACEOF
17429#define HAVE_SIGADDSET 1
17430_ACEOF
17431
17432fi
17433
daa2886c 17434
fc6ffb29
AJ
17435{ echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
17436echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
f5818d2f
AJ
17437if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17438 echo $ECHO_N "(cached) $ECHO_C" >&6
ff7a61f8 17439else
f5818d2f 17440 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
17441/* confdefs.h. */
17442_ACEOF
17443cat confdefs.h >>conftest.$ac_ext
17444cat >>conftest.$ac_ext <<_ACEOF
17445/* end confdefs.h. */
ff7a61f8 17446#include <netdb.h>
f5818d2f
AJ
17447int
17448main ()
17449{
ff7a61f8
RK
17450
17451 char *name=NULL;
17452 struct hostent he;
17453 struct hostent *result;
17454 char *buf=NULL;
17455 int bufsize=0;
17456 int res,errnr;
17457 char *addr=NULL;
17458 int addrlen=0;
17459 int addrtype=0;
17460 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17461 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
f5818d2f
AJ
17462
17463 ;
17464 return 0;
17465}
17466_ACEOF
dfd315b4 17467rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
17468if { (ac_try="$ac_link"
17469case "(($ac_try" in
17470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471 *) ac_try_echo=$ac_try;;
17472esac
17473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474 (eval "$ac_link") 2>conftest.er1
f5818d2f 17475 ac_status=$?
875927f6
AJ
17476 grep -v '^ *+' conftest.er1 >conftest.err
17477 rm -f conftest.er1
17478 cat conftest.err >&5
daa2886c 17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17480 (exit $ac_status); } && {
17481 test -z "$ac_c_werror_flag" ||
17482 test ! -s conftest.err
17483 } && test -s conftest$ac_exeext &&
17484 $as_test_x conftest$ac_exeext; then
ff7a61f8
RK
17485 wine_cv_linux_gethostbyname_r_6=yes
17486else
f5818d2f 17487 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
17488sed 's/^/| /' conftest.$ac_ext >&5
17489
fc6ffb29 17490 wine_cv_linux_gethostbyname_r_6=no
f5818d2f 17491
ff7a61f8 17492fi
fc6ffb29 17493
f0ca586f 17494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
dfd315b4 17495 conftest$ac_exeext conftest.$ac_ext
ff7a61f8 17496
f5818d2f 17497fi
fc6ffb29
AJ
17498{ echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
17499echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
ff7a61f8
RK
17500 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17501 then
f5818d2f 17502
daa2886c 17503cat >>confdefs.h <<\_ACEOF
ff7a61f8 17504#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
daa2886c 17505_ACEOF
ff7a61f8
RK
17506
17507 fi
17508
028e9a17
MM
17509if test "$ac_cv_header_linux_joystick_h" = "yes"
17510then
fc6ffb29
AJ
17511 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
17512echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
f5818d2f
AJ
17513if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17514 echo $ECHO_N "(cached) $ECHO_C" >&6
028e9a17 17515else
f5818d2f 17516 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
17517/* confdefs.h. */
17518_ACEOF
17519cat confdefs.h >>conftest.$ac_ext
17520cat >>conftest.$ac_ext <<_ACEOF
17521/* end confdefs.h. */
028e9a17
MM
17522
17523 #include <sys/ioctl.h>
7c434992 17524 #include <sys/types.h>
028e9a17
MM
17525 #include <linux/joystick.h>
17526
17527 struct js_event blub;
605a9c39
MM
17528 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17529 #error "no 2.2 header"
17530 #endif
f5818d2f
AJ
17531
17532int
17533main ()
17534{
028e9a17 17535/*empty*/
f5818d2f
AJ
17536 ;
17537 return 0;
17538}
17539_ACEOF
17540rm -f conftest.$ac_objext
0ebeb530
JW
17541if { (ac_try="$ac_compile"
17542case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17545esac
17546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547 (eval "$ac_compile") 2>conftest.er1
f5818d2f 17548 ac_status=$?
875927f6
AJ
17549 grep -v '^ *+' conftest.er1 >conftest.err
17550 rm -f conftest.er1
17551 cat conftest.err >&5
daa2886c 17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17553 (exit $ac_status); } && {
17554 test -z "$ac_c_werror_flag" ||
17555 test ! -s conftest.err
17556 } && test -s conftest.$ac_objext; then
028e9a17
MM
17557 wine_cv_linux_joystick_22_api=yes
17558else
f5818d2f 17559 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
17560sed 's/^/| /' conftest.$ac_ext >&5
17561
fc6ffb29 17562 wine_cv_linux_joystick_22_api=no
028e9a17 17563fi
fc6ffb29 17564
0ebeb530 17565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
028e9a17 17566
f5818d2f 17567fi
fc6ffb29
AJ
17568{ echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
17569echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
87d224ac 17570 if test "$wine_cv_linux_joystick_22_api" = "yes"
028e9a17 17571 then
f5818d2f 17572
daa2886c 17573cat >>confdefs.h <<\_ACEOF
028e9a17 17574#define HAVE_LINUX_22_JOYSTICK_API 1
daa2886c 17575_ACEOF
028e9a17
MM
17576
17577 fi
17578fi
17579
daa2886c 17580
fc6ffb29
AJ
17581{ echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
17582echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
5537dbbf 17583if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
f5818d2f 17584 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3 17585else
f5818d2f 17586 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
17587/* confdefs.h. */
17588_ACEOF
17589cat confdefs.h >>conftest.$ac_ext
17590cat >>conftest.$ac_ext <<_ACEOF
17591/* end confdefs.h. */
f5818d2f
AJ
17592#include <sys/types.h>
17593#ifdef HAVE_SYS_PARAM_H
17594# include <sys/param.h>
17595#endif
55b74483 17596#ifdef HAVE_SYS_MOUNT_H
f5818d2f 17597# include <sys/mount.h>
55b74483
RM
17598#endif
17599#ifdef HAVE_SYS_VFS_H
17600# include <sys/vfs.h>
17601#endif
17602#ifdef HAVE_SYS_STATFS_H
17603# include <sys/statfs.h>
f5818d2f 17604#endif
5537dbbf 17605
f5818d2f
AJ
17606int
17607main ()
17608{
5537dbbf
AJ
17609static struct statfs ac_aggr;
17610if (ac_aggr.f_bfree)
17611return 0;
f5818d2f
AJ
17612 ;
17613 return 0;
17614}
17615_ACEOF
17616rm -f conftest.$ac_objext
0ebeb530
JW
17617if { (ac_try="$ac_compile"
17618case "(($ac_try" in
17619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620 *) ac_try_echo=$ac_try;;
17621esac
17622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17623 (eval "$ac_compile") 2>conftest.er1
f5818d2f 17624 ac_status=$?
875927f6
AJ
17625 grep -v '^ *+' conftest.er1 >conftest.err
17626 rm -f conftest.er1
17627 cat conftest.err >&5
daa2886c 17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17629 (exit $ac_status); } && {
17630 test -z "$ac_c_werror_flag" ||
17631 test ! -s conftest.err
17632 } && test -s conftest.$ac_objext; then
5537dbbf 17633 ac_cv_member_struct_statfs_f_bfree=yes
f5818d2f
AJ
17634else
17635 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
17636sed 's/^/| /' conftest.$ac_ext >&5
17637
fc6ffb29 17638 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
17639/* confdefs.h. */
17640_ACEOF
17641cat confdefs.h >>conftest.$ac_ext
17642cat >>conftest.$ac_ext <<_ACEOF
17643/* end confdefs.h. */
17644#include <sys/types.h>
17645#ifdef HAVE_SYS_PARAM_H
17646# include <sys/param.h>
17647#endif
55b74483 17648#ifdef HAVE_SYS_MOUNT_H
5537dbbf 17649# include <sys/mount.h>
55b74483
RM
17650#endif
17651#ifdef HAVE_SYS_VFS_H
17652# include <sys/vfs.h>
17653#endif
17654#ifdef HAVE_SYS_STATFS_H
17655# include <sys/statfs.h>
5537dbbf 17656#endif
f5818d2f 17657
5537dbbf
AJ
17658int
17659main ()
17660{
17661static struct statfs ac_aggr;
17662if (sizeof ac_aggr.f_bfree)
17663return 0;
17664 ;
17665 return 0;
17666}
daa2886c 17667_ACEOF
5537dbbf 17668rm -f conftest.$ac_objext
0ebeb530
JW
17669if { (ac_try="$ac_compile"
17670case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17673esac
17674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_compile") 2>conftest.er1
5537dbbf 17676 ac_status=$?
875927f6
AJ
17677 grep -v '^ *+' conftest.er1 >conftest.err
17678 rm -f conftest.er1
17679 cat conftest.err >&5
5537dbbf 17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17681 (exit $ac_status); } && {
17682 test -z "$ac_c_werror_flag" ||
17683 test ! -s conftest.err
17684 } && test -s conftest.$ac_objext; then
5537dbbf
AJ
17685 ac_cv_member_struct_statfs_f_bfree=yes
17686else
17687 echo "$as_me: failed program was:" >&5
17688sed 's/^/| /' conftest.$ac_ext >&5
c7c217b3 17689
fc6ffb29 17690 ac_cv_member_struct_statfs_f_bfree=no
c7c217b3 17691fi
fc6ffb29 17692
0ebeb530 17693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 17694fi
fc6ffb29 17695
0ebeb530 17696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 17697fi
fc6ffb29
AJ
17698{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
17699echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
5537dbbf 17700if test $ac_cv_member_struct_statfs_f_bfree = yes; then
c7c217b3 17701
5537dbbf
AJ
17702cat >>confdefs.h <<_ACEOF
17703#define HAVE_STRUCT_STATFS_F_BFREE 1
17704_ACEOF
daa2886c
AJ
17705
17706
5537dbbf 17707fi
fc6ffb29
AJ
17708{ echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
17709echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
5537dbbf 17710if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
f5818d2f 17711 echo $ECHO_N "(cached) $ECHO_C" >&6
dadf78ff 17712else
f5818d2f 17713 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
17714/* confdefs.h. */
17715_ACEOF
17716cat confdefs.h >>conftest.$ac_ext
17717cat >>conftest.$ac_ext <<_ACEOF
17718/* end confdefs.h. */
f5818d2f
AJ
17719#include <sys/types.h>
17720#ifdef HAVE_SYS_PARAM_H
17721# include <sys/param.h>
17722#endif
55b74483 17723#ifdef HAVE_SYS_MOUNT_H
f5818d2f 17724# include <sys/mount.h>
55b74483
RM
17725#endif
17726#ifdef HAVE_SYS_VFS_H
17727# include <sys/vfs.h>
17728#endif
17729#ifdef HAVE_SYS_STATFS_H
17730# include <sys/statfs.h>
f5818d2f 17731#endif
5537dbbf 17732
f5818d2f
AJ
17733int
17734main ()
17735{
5537dbbf
AJ
17736static struct statfs ac_aggr;
17737if (ac_aggr.f_bavail)
17738return 0;
f5818d2f
AJ
17739 ;
17740 return 0;
17741}
17742_ACEOF
17743rm -f conftest.$ac_objext
0ebeb530
JW
17744if { (ac_try="$ac_compile"
17745case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17748esac
17749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_compile") 2>conftest.er1
f5818d2f 17751 ac_status=$?
875927f6
AJ
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
daa2886c 17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17756 (exit $ac_status); } && {
17757 test -z "$ac_c_werror_flag" ||
17758 test ! -s conftest.err
17759 } && test -s conftest.$ac_objext; then
5537dbbf 17760 ac_cv_member_struct_statfs_f_bavail=yes
f5818d2f
AJ
17761else
17762 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
17763sed 's/^/| /' conftest.$ac_ext >&5
17764
fc6ffb29 17765 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
17766/* confdefs.h. */
17767_ACEOF
17768cat confdefs.h >>conftest.$ac_ext
17769cat >>conftest.$ac_ext <<_ACEOF
17770/* end confdefs.h. */
17771#include <sys/types.h>
17772#ifdef HAVE_SYS_PARAM_H
17773# include <sys/param.h>
17774#endif
55b74483 17775#ifdef HAVE_SYS_MOUNT_H
5537dbbf 17776# include <sys/mount.h>
55b74483
RM
17777#endif
17778#ifdef HAVE_SYS_VFS_H
17779# include <sys/vfs.h>
17780#endif
17781#ifdef HAVE_SYS_STATFS_H
17782# include <sys/statfs.h>
5537dbbf
AJ
17783#endif
17784
17785int
17786main ()
17787{
17788static struct statfs ac_aggr;
17789if (sizeof ac_aggr.f_bavail)
17790return 0;
17791 ;
17792 return 0;
17793}
17794_ACEOF
17795rm -f conftest.$ac_objext
0ebeb530
JW
17796if { (ac_try="$ac_compile"
17797case "(($ac_try" in
17798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799 *) ac_try_echo=$ac_try;;
17800esac
17801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17802 (eval "$ac_compile") 2>conftest.er1
5537dbbf 17803 ac_status=$?
875927f6
AJ
17804 grep -v '^ *+' conftest.er1 >conftest.err
17805 rm -f conftest.er1
17806 cat conftest.err >&5
5537dbbf 17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17808 (exit $ac_status); } && {
17809 test -z "$ac_c_werror_flag" ||
17810 test ! -s conftest.err
17811 } && test -s conftest.$ac_objext; then
5537dbbf
AJ
17812 ac_cv_member_struct_statfs_f_bavail=yes
17813else
17814 echo "$as_me: failed program was:" >&5
17815sed 's/^/| /' conftest.$ac_ext >&5
17816
fc6ffb29 17817 ac_cv_member_struct_statfs_f_bavail=no
5537dbbf 17818fi
fc6ffb29 17819
0ebeb530 17820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 17821fi
fc6ffb29 17822
0ebeb530 17823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 17824fi
fc6ffb29
AJ
17825{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
17826echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
5537dbbf 17827if test $ac_cv_member_struct_statfs_f_bavail = yes; then
f5818d2f 17828
5537dbbf
AJ
17829cat >>confdefs.h <<_ACEOF
17830#define HAVE_STRUCT_STATFS_F_BAVAIL 1
daa2886c 17831_ACEOF
dadf78ff 17832
dadf78ff 17833
13af4891 17834fi
fc6ffb29
AJ
17835{ echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
17836echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
13af4891
AJ
17837if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17839else
17840 cat >conftest.$ac_ext <<_ACEOF
17841/* confdefs.h. */
17842_ACEOF
17843cat confdefs.h >>conftest.$ac_ext
17844cat >>conftest.$ac_ext <<_ACEOF
17845/* end confdefs.h. */
17846#include <sys/types.h>
17847#ifdef HAVE_SYS_PARAM_H
17848# include <sys/param.h>
17849#endif
55b74483 17850#ifdef HAVE_SYS_MOUNT_H
13af4891 17851# include <sys/mount.h>
55b74483
RM
17852#endif
17853#ifdef HAVE_SYS_VFS_H
17854# include <sys/vfs.h>
17855#endif
17856#ifdef HAVE_SYS_STATFS_H
17857# include <sys/statfs.h>
13af4891
AJ
17858#endif
17859
17860int
17861main ()
17862{
17863static struct statfs ac_aggr;
17864if (ac_aggr.f_frsize)
17865return 0;
17866 ;
17867 return 0;
17868}
17869_ACEOF
17870rm -f conftest.$ac_objext
0ebeb530
JW
17871if { (ac_try="$ac_compile"
17872case "(($ac_try" in
17873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17874 *) ac_try_echo=$ac_try;;
17875esac
17876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17877 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
17878 ac_status=$?
17879 grep -v '^ *+' conftest.er1 >conftest.err
17880 rm -f conftest.er1
17881 cat conftest.err >&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17883 (exit $ac_status); } && {
17884 test -z "$ac_c_werror_flag" ||
17885 test ! -s conftest.err
17886 } && test -s conftest.$ac_objext; then
13af4891
AJ
17887 ac_cv_member_struct_statfs_f_frsize=yes
17888else
17889 echo "$as_me: failed program was:" >&5
17890sed 's/^/| /' conftest.$ac_ext >&5
17891
fc6ffb29 17892 cat >conftest.$ac_ext <<_ACEOF
13af4891
AJ
17893/* confdefs.h. */
17894_ACEOF
17895cat confdefs.h >>conftest.$ac_ext
17896cat >>conftest.$ac_ext <<_ACEOF
17897/* end confdefs.h. */
17898#include <sys/types.h>
17899#ifdef HAVE_SYS_PARAM_H
17900# include <sys/param.h>
17901#endif
55b74483 17902#ifdef HAVE_SYS_MOUNT_H
13af4891 17903# include <sys/mount.h>
55b74483
RM
17904#endif
17905#ifdef HAVE_SYS_VFS_H
17906# include <sys/vfs.h>
17907#endif
17908#ifdef HAVE_SYS_STATFS_H
17909# include <sys/statfs.h>
13af4891
AJ
17910#endif
17911
17912int
17913main ()
17914{
17915static struct statfs ac_aggr;
17916if (sizeof ac_aggr.f_frsize)
17917return 0;
17918 ;
17919 return 0;
17920}
17921_ACEOF
17922rm -f conftest.$ac_objext
0ebeb530
JW
17923if { (ac_try="$ac_compile"
17924case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17927esac
17928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
17930 ac_status=$?
17931 grep -v '^ *+' conftest.er1 >conftest.err
17932 rm -f conftest.er1
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
17935 (exit $ac_status); } && {
17936 test -z "$ac_c_werror_flag" ||
17937 test ! -s conftest.err
17938 } && test -s conftest.$ac_objext; then
13af4891
AJ
17939 ac_cv_member_struct_statfs_f_frsize=yes
17940else
17941 echo "$as_me: failed program was:" >&5
17942sed 's/^/| /' conftest.$ac_ext >&5
17943
fc6ffb29 17944 ac_cv_member_struct_statfs_f_frsize=no
13af4891 17945fi
fc6ffb29 17946
0ebeb530 17947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 17948fi
fc6ffb29 17949
0ebeb530 17950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 17951fi
fc6ffb29
AJ
17952{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
17953echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
13af4891
AJ
17954if test $ac_cv_member_struct_statfs_f_frsize = yes; then
17955
17956cat >>confdefs.h <<_ACEOF
17957#define HAVE_STRUCT_STATFS_F_FRSIZE 1
17958_ACEOF
17959
17960
17961fi
fc6ffb29
AJ
17962{ echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
17963echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
13af4891
AJ
17964if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
17965 echo $ECHO_N "(cached) $ECHO_C" >&6
17966else
17967 cat >conftest.$ac_ext <<_ACEOF
17968/* confdefs.h. */
17969_ACEOF
17970cat confdefs.h >>conftest.$ac_ext
17971cat >>conftest.$ac_ext <<_ACEOF
17972/* end confdefs.h. */
17973#include <sys/types.h>
17974#ifdef HAVE_SYS_PARAM_H
17975# include <sys/param.h>
17976#endif
55b74483 17977#ifdef HAVE_SYS_MOUNT_H
13af4891 17978# include <sys/mount.h>
55b74483
RM
17979#endif
17980#ifdef HAVE_SYS_VFS_H
17981# include <sys/vfs.h>
17982#endif
17983#ifdef HAVE_SYS_STATFS_H
17984# include <sys/statfs.h>
13af4891
AJ
17985#endif
17986
17987int
17988main ()
17989{
17990static struct statfs ac_aggr;
17991if (ac_aggr.f_ffree)
17992return 0;
17993 ;
17994 return 0;
17995}
17996_ACEOF
17997rm -f conftest.$ac_objext
0ebeb530
JW
17998if { (ac_try="$ac_compile"
17999case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18002esac
18003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
18005 ac_status=$?
18006 grep -v '^ *+' conftest.er1 >conftest.err
18007 rm -f conftest.er1
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18010 (exit $ac_status); } && {
18011 test -z "$ac_c_werror_flag" ||
18012 test ! -s conftest.err
18013 } && test -s conftest.$ac_objext; then
13af4891
AJ
18014 ac_cv_member_struct_statfs_f_ffree=yes
18015else
18016 echo "$as_me: failed program was:" >&5
18017sed 's/^/| /' conftest.$ac_ext >&5
18018
fc6ffb29 18019 cat >conftest.$ac_ext <<_ACEOF
13af4891
AJ
18020/* confdefs.h. */
18021_ACEOF
18022cat confdefs.h >>conftest.$ac_ext
18023cat >>conftest.$ac_ext <<_ACEOF
18024/* end confdefs.h. */
18025#include <sys/types.h>
18026#ifdef HAVE_SYS_PARAM_H
18027# include <sys/param.h>
18028#endif
55b74483 18029#ifdef HAVE_SYS_MOUNT_H
13af4891 18030# include <sys/mount.h>
55b74483
RM
18031#endif
18032#ifdef HAVE_SYS_VFS_H
18033# include <sys/vfs.h>
18034#endif
18035#ifdef HAVE_SYS_STATFS_H
18036# include <sys/statfs.h>
13af4891
AJ
18037#endif
18038
18039int
18040main ()
18041{
18042static struct statfs ac_aggr;
18043if (sizeof ac_aggr.f_ffree)
18044return 0;
18045 ;
18046 return 0;
18047}
18048_ACEOF
18049rm -f conftest.$ac_objext
0ebeb530
JW
18050if { (ac_try="$ac_compile"
18051case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054esac
18055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
18057 ac_status=$?
18058 grep -v '^ *+' conftest.er1 >conftest.err
18059 rm -f conftest.er1
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18062 (exit $ac_status); } && {
18063 test -z "$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 } && test -s conftest.$ac_objext; then
13af4891
AJ
18066 ac_cv_member_struct_statfs_f_ffree=yes
18067else
18068 echo "$as_me: failed program was:" >&5
18069sed 's/^/| /' conftest.$ac_ext >&5
18070
fc6ffb29 18071 ac_cv_member_struct_statfs_f_ffree=no
13af4891 18072fi
fc6ffb29 18073
0ebeb530 18074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 18075fi
fc6ffb29 18076
0ebeb530 18077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 18078fi
fc6ffb29
AJ
18079{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18080echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
13af4891
AJ
18081if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18082
18083cat >>confdefs.h <<_ACEOF
18084#define HAVE_STRUCT_STATFS_F_FFREE 1
18085_ACEOF
18086
18087
18088fi
fc6ffb29
AJ
18089{ echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18090echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
13af4891
AJ
18091if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18093else
18094 cat >conftest.$ac_ext <<_ACEOF
18095/* confdefs.h. */
18096_ACEOF
18097cat confdefs.h >>conftest.$ac_ext
18098cat >>conftest.$ac_ext <<_ACEOF
18099/* end confdefs.h. */
18100#include <sys/types.h>
18101#ifdef HAVE_SYS_PARAM_H
18102# include <sys/param.h>
18103#endif
55b74483 18104#ifdef HAVE_SYS_MOUNT_H
13af4891 18105# include <sys/mount.h>
55b74483
RM
18106#endif
18107#ifdef HAVE_SYS_VFS_H
18108# include <sys/vfs.h>
18109#endif
18110#ifdef HAVE_SYS_STATFS_H
18111# include <sys/statfs.h>
13af4891
AJ
18112#endif
18113
18114int
18115main ()
18116{
18117static struct statfs ac_aggr;
18118if (ac_aggr.f_favail)
18119return 0;
18120 ;
18121 return 0;
18122}
18123_ACEOF
18124rm -f conftest.$ac_objext
0ebeb530
JW
18125if { (ac_try="$ac_compile"
18126case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18129esac
18130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
18132 ac_status=$?
18133 grep -v '^ *+' conftest.er1 >conftest.err
18134 rm -f conftest.er1
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18137 (exit $ac_status); } && {
18138 test -z "$ac_c_werror_flag" ||
18139 test ! -s conftest.err
18140 } && test -s conftest.$ac_objext; then
13af4891
AJ
18141 ac_cv_member_struct_statfs_f_favail=yes
18142else
18143 echo "$as_me: failed program was:" >&5
18144sed 's/^/| /' conftest.$ac_ext >&5
18145
fc6ffb29 18146 cat >conftest.$ac_ext <<_ACEOF
13af4891
AJ
18147/* confdefs.h. */
18148_ACEOF
18149cat confdefs.h >>conftest.$ac_ext
18150cat >>conftest.$ac_ext <<_ACEOF
18151/* end confdefs.h. */
18152#include <sys/types.h>
18153#ifdef HAVE_SYS_PARAM_H
18154# include <sys/param.h>
18155#endif
55b74483 18156#ifdef HAVE_SYS_MOUNT_H
13af4891 18157# include <sys/mount.h>
55b74483
RM
18158#endif
18159#ifdef HAVE_SYS_VFS_H
18160# include <sys/vfs.h>
18161#endif
18162#ifdef HAVE_SYS_STATFS_H
18163# include <sys/statfs.h>
13af4891
AJ
18164#endif
18165
18166int
18167main ()
18168{
18169static struct statfs ac_aggr;
18170if (sizeof ac_aggr.f_favail)
18171return 0;
18172 ;
18173 return 0;
18174}
18175_ACEOF
18176rm -f conftest.$ac_objext
0ebeb530
JW
18177if { (ac_try="$ac_compile"
18178case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18181esac
18182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
18184 ac_status=$?
18185 grep -v '^ *+' conftest.er1 >conftest.err
18186 rm -f conftest.er1
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18189 (exit $ac_status); } && {
18190 test -z "$ac_c_werror_flag" ||
18191 test ! -s conftest.err
18192 } && test -s conftest.$ac_objext; then
13af4891
AJ
18193 ac_cv_member_struct_statfs_f_favail=yes
18194else
18195 echo "$as_me: failed program was:" >&5
18196sed 's/^/| /' conftest.$ac_ext >&5
18197
fc6ffb29 18198 ac_cv_member_struct_statfs_f_favail=no
13af4891 18199fi
fc6ffb29 18200
0ebeb530 18201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 18202fi
fc6ffb29 18203
0ebeb530 18204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 18205fi
fc6ffb29
AJ
18206{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18207echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
13af4891
AJ
18208if test $ac_cv_member_struct_statfs_f_favail = yes; then
18209
18210cat >>confdefs.h <<_ACEOF
18211#define HAVE_STRUCT_STATFS_F_FAVAIL 1
18212_ACEOF
18213
18214
b859a686 18215fi
fc6ffb29
AJ
18216{ echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18217echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
b859a686
AJ
18218if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18219 echo $ECHO_N "(cached) $ECHO_C" >&6
18220else
18221 cat >conftest.$ac_ext <<_ACEOF
18222/* confdefs.h. */
18223_ACEOF
18224cat confdefs.h >>conftest.$ac_ext
18225cat >>conftest.$ac_ext <<_ACEOF
18226/* end confdefs.h. */
18227#include <sys/types.h>
18228#ifdef HAVE_SYS_PARAM_H
18229# include <sys/param.h>
18230#endif
55b74483 18231#ifdef HAVE_SYS_MOUNT_H
b859a686 18232# include <sys/mount.h>
55b74483
RM
18233#endif
18234#ifdef HAVE_SYS_VFS_H
18235# include <sys/vfs.h>
18236#endif
18237#ifdef HAVE_SYS_STATFS_H
18238# include <sys/statfs.h>
b859a686
AJ
18239#endif
18240
18241int
18242main ()
18243{
18244static struct statfs ac_aggr;
18245if (ac_aggr.f_namelen)
18246return 0;
18247 ;
18248 return 0;
18249}
18250_ACEOF
18251rm -f conftest.$ac_objext
0ebeb530
JW
18252if { (ac_try="$ac_compile"
18253case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18256esac
18257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_compile") 2>conftest.er1
b859a686
AJ
18259 ac_status=$?
18260 grep -v '^ *+' conftest.er1 >conftest.err
18261 rm -f conftest.er1
18262 cat conftest.err >&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18264 (exit $ac_status); } && {
18265 test -z "$ac_c_werror_flag" ||
18266 test ! -s conftest.err
18267 } && test -s conftest.$ac_objext; then
b859a686
AJ
18268 ac_cv_member_struct_statfs_f_namelen=yes
18269else
18270 echo "$as_me: failed program was:" >&5
18271sed 's/^/| /' conftest.$ac_ext >&5
18272
fc6ffb29 18273 cat >conftest.$ac_ext <<_ACEOF
b859a686
AJ
18274/* confdefs.h. */
18275_ACEOF
18276cat confdefs.h >>conftest.$ac_ext
18277cat >>conftest.$ac_ext <<_ACEOF
18278/* end confdefs.h. */
18279#include <sys/types.h>
18280#ifdef HAVE_SYS_PARAM_H
18281# include <sys/param.h>
18282#endif
55b74483 18283#ifdef HAVE_SYS_MOUNT_H
b859a686 18284# include <sys/mount.h>
55b74483
RM
18285#endif
18286#ifdef HAVE_SYS_VFS_H
18287# include <sys/vfs.h>
18288#endif
18289#ifdef HAVE_SYS_STATFS_H
18290# include <sys/statfs.h>
b859a686
AJ
18291#endif
18292
18293int
18294main ()
18295{
18296static struct statfs ac_aggr;
18297if (sizeof ac_aggr.f_namelen)
18298return 0;
18299 ;
18300 return 0;
18301}
18302_ACEOF
18303rm -f conftest.$ac_objext
0ebeb530
JW
18304if { (ac_try="$ac_compile"
18305case "(($ac_try" in
18306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307 *) ac_try_echo=$ac_try;;
18308esac
18309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18310 (eval "$ac_compile") 2>conftest.er1
b859a686
AJ
18311 ac_status=$?
18312 grep -v '^ *+' conftest.er1 >conftest.err
18313 rm -f conftest.er1
18314 cat conftest.err >&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18316 (exit $ac_status); } && {
18317 test -z "$ac_c_werror_flag" ||
18318 test ! -s conftest.err
18319 } && test -s conftest.$ac_objext; then
b859a686
AJ
18320 ac_cv_member_struct_statfs_f_namelen=yes
18321else
18322 echo "$as_me: failed program was:" >&5
18323sed 's/^/| /' conftest.$ac_ext >&5
18324
fc6ffb29 18325 ac_cv_member_struct_statfs_f_namelen=no
b859a686 18326fi
fc6ffb29 18327
0ebeb530 18328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b859a686 18329fi
fc6ffb29 18330
0ebeb530 18331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b859a686 18332fi
fc6ffb29
AJ
18333{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18334echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
b859a686
AJ
18335if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18336
18337cat >>confdefs.h <<_ACEOF
18338#define HAVE_STRUCT_STATFS_F_NAMELEN 1
18339_ACEOF
18340
18341
13af4891
AJ
18342fi
18343
18344
fc6ffb29
AJ
18345{ echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18346echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
13af4891
AJ
18347if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18348 echo $ECHO_N "(cached) $ECHO_C" >&6
18349else
18350 cat >conftest.$ac_ext <<_ACEOF
18351/* confdefs.h. */
18352_ACEOF
18353cat confdefs.h >>conftest.$ac_ext
18354cat >>conftest.$ac_ext <<_ACEOF
18355/* end confdefs.h. */
18356#ifdef HAVE_SYS_STATVFS_H
18357#include <sys/statvfs.h>
18358#endif
18359
18360int
18361main ()
18362{
18363static struct statvfs ac_aggr;
18364if (ac_aggr.f_blocks)
18365return 0;
18366 ;
18367 return 0;
18368}
18369_ACEOF
18370rm -f conftest.$ac_objext
0ebeb530
JW
18371if { (ac_try="$ac_compile"
18372case "(($ac_try" in
18373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374 *) ac_try_echo=$ac_try;;
18375esac
18376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
18378 ac_status=$?
18379 grep -v '^ *+' conftest.er1 >conftest.err
18380 rm -f conftest.er1
18381 cat conftest.err >&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18383 (exit $ac_status); } && {
18384 test -z "$ac_c_werror_flag" ||
18385 test ! -s conftest.err
18386 } && test -s conftest.$ac_objext; then
13af4891
AJ
18387 ac_cv_member_struct_statvfs_f_blocks=yes
18388else
18389 echo "$as_me: failed program was:" >&5
18390sed 's/^/| /' conftest.$ac_ext >&5
18391
fc6ffb29 18392 cat >conftest.$ac_ext <<_ACEOF
13af4891
AJ
18393/* confdefs.h. */
18394_ACEOF
18395cat confdefs.h >>conftest.$ac_ext
18396cat >>conftest.$ac_ext <<_ACEOF
18397/* end confdefs.h. */
18398#ifdef HAVE_SYS_STATVFS_H
18399#include <sys/statvfs.h>
18400#endif
18401
18402int
18403main ()
18404{
18405static struct statvfs ac_aggr;
18406if (sizeof ac_aggr.f_blocks)
18407return 0;
18408 ;
18409 return 0;
18410}
18411_ACEOF
18412rm -f conftest.$ac_objext
0ebeb530
JW
18413if { (ac_try="$ac_compile"
18414case "(($ac_try" in
18415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416 *) ac_try_echo=$ac_try;;
18417esac
18418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
18420 ac_status=$?
18421 grep -v '^ *+' conftest.er1 >conftest.err
18422 rm -f conftest.er1
18423 cat conftest.err >&5
18424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18425 (exit $ac_status); } && {
18426 test -z "$ac_c_werror_flag" ||
18427 test ! -s conftest.err
18428 } && test -s conftest.$ac_objext; then
13af4891
AJ
18429 ac_cv_member_struct_statvfs_f_blocks=yes
18430else
18431 echo "$as_me: failed program was:" >&5
18432sed 's/^/| /' conftest.$ac_ext >&5
18433
fc6ffb29 18434 ac_cv_member_struct_statvfs_f_blocks=no
13af4891 18435fi
fc6ffb29 18436
0ebeb530 18437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 18438fi
fc6ffb29 18439
0ebeb530 18440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 18441fi
fc6ffb29
AJ
18442{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
18443echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
13af4891
AJ
18444if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
18445
18446cat >>confdefs.h <<_ACEOF
18447#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18448_ACEOF
18449
18450
5537dbbf 18451fi
daa2886c
AJ
18452
18453
fc6ffb29
AJ
18454{ echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18455echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
5537dbbf 18456if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
f5818d2f 18457 echo $ECHO_N "(cached) $ECHO_C" >&6
829fe323 18458else
f5818d2f 18459 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
18460/* confdefs.h. */
18461_ACEOF
18462cat confdefs.h >>conftest.$ac_ext
18463cat >>conftest.$ac_ext <<_ACEOF
18464/* end confdefs.h. */
829fe323 18465#include <sys/types.h>
63ae7fee
PS
18466#ifdef HAVE_SYS_SOCKET_H
18467# include <sys/socket.h>
18468#endif
5537dbbf
AJ
18469#ifdef HAVE_SYS_UN_H
18470# include <sys/un.h>
18471#endif
18472
f5818d2f
AJ
18473int
18474main ()
18475{
5537dbbf
AJ
18476static struct msghdr ac_aggr;
18477if (ac_aggr.msg_accrights)
18478return 0;
f5818d2f
AJ
18479 ;
18480 return 0;
18481}
18482_ACEOF
18483rm -f conftest.$ac_objext
0ebeb530
JW
18484if { (ac_try="$ac_compile"
18485case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18488esac
18489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_compile") 2>conftest.er1
f5818d2f 18491 ac_status=$?
875927f6
AJ
18492 grep -v '^ *+' conftest.er1 >conftest.err
18493 rm -f conftest.er1
18494 cat conftest.err >&5
daa2886c 18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18496 (exit $ac_status); } && {
18497 test -z "$ac_c_werror_flag" ||
18498 test ! -s conftest.err
18499 } && test -s conftest.$ac_objext; then
5537dbbf 18500 ac_cv_member_struct_msghdr_msg_accrights=yes
f5818d2f
AJ
18501else
18502 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
18503sed 's/^/| /' conftest.$ac_ext >&5
18504
fc6ffb29 18505 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
18506/* confdefs.h. */
18507_ACEOF
18508cat confdefs.h >>conftest.$ac_ext
18509cat >>conftest.$ac_ext <<_ACEOF
18510/* end confdefs.h. */
18511#include <sys/types.h>
18512#ifdef HAVE_SYS_SOCKET_H
18513# include <sys/socket.h>
18514#endif
18515#ifdef HAVE_SYS_UN_H
18516# include <sys/un.h>
18517#endif
f5818d2f 18518
5537dbbf
AJ
18519int
18520main ()
18521{
18522static struct msghdr ac_aggr;
18523if (sizeof ac_aggr.msg_accrights)
18524return 0;
18525 ;
18526 return 0;
18527}
daa2886c 18528_ACEOF
5537dbbf 18529rm -f conftest.$ac_objext
0ebeb530
JW
18530if { (ac_try="$ac_compile"
18531case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18534esac
18535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_compile") 2>conftest.er1
5537dbbf 18537 ac_status=$?
875927f6
AJ
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
5537dbbf 18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18542 (exit $ac_status); } && {
18543 test -z "$ac_c_werror_flag" ||
18544 test ! -s conftest.err
18545 } && test -s conftest.$ac_objext; then
5537dbbf
AJ
18546 ac_cv_member_struct_msghdr_msg_accrights=yes
18547else
18548 echo "$as_me: failed program was:" >&5
18549sed 's/^/| /' conftest.$ac_ext >&5
829fe323 18550
fc6ffb29 18551 ac_cv_member_struct_msghdr_msg_accrights=no
5537dbbf 18552fi
fc6ffb29 18553
0ebeb530 18554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 18555fi
fc6ffb29 18556
0ebeb530 18557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
829fe323 18558fi
fc6ffb29
AJ
18559{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
18560echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
5537dbbf 18561if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
829fe323 18562
5537dbbf
AJ
18563cat >>confdefs.h <<_ACEOF
18564#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
18565_ACEOF
daa2886c
AJ
18566
18567
5537dbbf 18568fi
fc6ffb29
AJ
18569{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
18570echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
5537dbbf 18571if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
f5818d2f 18572 echo $ECHO_N "(cached) $ECHO_C" >&6
2d33ab91 18573else
f5818d2f 18574 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
18575/* confdefs.h. */
18576_ACEOF
18577cat confdefs.h >>conftest.$ac_ext
18578cat >>conftest.$ac_ext <<_ACEOF
18579/* end confdefs.h. */
2d33ab91 18580#include <sys/types.h>
63ae7fee
PS
18581#ifdef HAVE_SYS_SOCKET_H
18582# include <sys/socket.h>
18583#endif
5537dbbf
AJ
18584#ifdef HAVE_SYS_UN_H
18585# include <sys/un.h>
18586#endif
18587
f5818d2f
AJ
18588int
18589main ()
18590{
5537dbbf
AJ
18591static struct sockaddr ac_aggr;
18592if (ac_aggr.sa_len)
18593return 0;
f5818d2f
AJ
18594 ;
18595 return 0;
18596}
18597_ACEOF
18598rm -f conftest.$ac_objext
0ebeb530
JW
18599if { (ac_try="$ac_compile"
18600case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18603esac
18604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_compile") 2>conftest.er1
f5818d2f 18606 ac_status=$?
875927f6
AJ
18607 grep -v '^ *+' conftest.er1 >conftest.err
18608 rm -f conftest.er1
18609 cat conftest.err >&5
daa2886c 18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18611 (exit $ac_status); } && {
18612 test -z "$ac_c_werror_flag" ||
18613 test ! -s conftest.err
18614 } && test -s conftest.$ac_objext; then
5537dbbf 18615 ac_cv_member_struct_sockaddr_sa_len=yes
09da966c 18616else
f5818d2f 18617 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
18618sed 's/^/| /' conftest.$ac_ext >&5
18619
fc6ffb29 18620 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
18621/* confdefs.h. */
18622_ACEOF
18623cat confdefs.h >>conftest.$ac_ext
18624cat >>conftest.$ac_ext <<_ACEOF
18625/* end confdefs.h. */
18626#include <sys/types.h>
18627#ifdef HAVE_SYS_SOCKET_H
18628# include <sys/socket.h>
18629#endif
18630#ifdef HAVE_SYS_UN_H
18631# include <sys/un.h>
18632#endif
09da966c 18633
5537dbbf
AJ
18634int
18635main ()
18636{
18637static struct sockaddr ac_aggr;
18638if (sizeof ac_aggr.sa_len)
18639return 0;
18640 ;
18641 return 0;
18642}
daa2886c 18643_ACEOF
5537dbbf 18644rm -f conftest.$ac_objext
0ebeb530
JW
18645if { (ac_try="$ac_compile"
18646case "(($ac_try" in
18647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18648 *) ac_try_echo=$ac_try;;
18649esac
18650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18651 (eval "$ac_compile") 2>conftest.er1
5537dbbf 18652 ac_status=$?
875927f6
AJ
18653 grep -v '^ *+' conftest.er1 >conftest.err
18654 rm -f conftest.er1
18655 cat conftest.err >&5
5537dbbf 18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18657 (exit $ac_status); } && {
18658 test -z "$ac_c_werror_flag" ||
18659 test ! -s conftest.err
18660 } && test -s conftest.$ac_objext; then
5537dbbf
AJ
18661 ac_cv_member_struct_sockaddr_sa_len=yes
18662else
18663 echo "$as_me: failed program was:" >&5
18664sed 's/^/| /' conftest.$ac_ext >&5
09da966c 18665
fc6ffb29 18666 ac_cv_member_struct_sockaddr_sa_len=no
5537dbbf 18667fi
fc6ffb29 18668
0ebeb530 18669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 18670fi
fc6ffb29 18671
0ebeb530 18672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
09da966c 18673fi
fc6ffb29
AJ
18674{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
18675echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
5537dbbf 18676if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
09da966c 18677
5537dbbf
AJ
18678cat >>confdefs.h <<_ACEOF
18679#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
18680_ACEOF
daa2886c
AJ
18681
18682
5537dbbf 18683fi
fc6ffb29
AJ
18684{ echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
18685echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
5537dbbf 18686if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
f5818d2f 18687 echo $ECHO_N "(cached) $ECHO_C" >&6
09da966c 18688else
f5818d2f 18689 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
18690/* confdefs.h. */
18691_ACEOF
18692cat confdefs.h >>conftest.$ac_ext
18693cat >>conftest.$ac_ext <<_ACEOF
18694/* end confdefs.h. */
09da966c 18695#include <sys/types.h>
63ae7fee
PS
18696#ifdef HAVE_SYS_SOCKET_H
18697# include <sys/socket.h>
18698#endif
18699#ifdef HAVE_SYS_UN_H
18700# include <sys/un.h>
18701#endif
5537dbbf 18702
f5818d2f
AJ
18703int
18704main ()
18705{
5537dbbf
AJ
18706static struct sockaddr_un ac_aggr;
18707if (ac_aggr.sun_len)
18708return 0;
f5818d2f
AJ
18709 ;
18710 return 0;
18711}
18712_ACEOF
18713rm -f conftest.$ac_objext
0ebeb530
JW
18714if { (ac_try="$ac_compile"
18715case "(($ac_try" in
18716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18717 *) ac_try_echo=$ac_try;;
18718esac
18719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18720 (eval "$ac_compile") 2>conftest.er1
f5818d2f 18721 ac_status=$?
875927f6
AJ
18722 grep -v '^ *+' conftest.er1 >conftest.err
18723 rm -f conftest.er1
18724 cat conftest.err >&5
daa2886c 18725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18726 (exit $ac_status); } && {
18727 test -z "$ac_c_werror_flag" ||
18728 test ! -s conftest.err
18729 } && test -s conftest.$ac_objext; then
5537dbbf 18730 ac_cv_member_struct_sockaddr_un_sun_len=yes
f5818d2f
AJ
18731else
18732 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
18733sed 's/^/| /' conftest.$ac_ext >&5
18734
fc6ffb29 18735 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
18736/* confdefs.h. */
18737_ACEOF
18738cat confdefs.h >>conftest.$ac_ext
18739cat >>conftest.$ac_ext <<_ACEOF
18740/* end confdefs.h. */
18741#include <sys/types.h>
18742#ifdef HAVE_SYS_SOCKET_H
18743# include <sys/socket.h>
18744#endif
18745#ifdef HAVE_SYS_UN_H
18746# include <sys/un.h>
18747#endif
18748
18749int
18750main ()
18751{
18752static struct sockaddr_un ac_aggr;
18753if (sizeof ac_aggr.sun_len)
18754return 0;
18755 ;
18756 return 0;
18757}
18758_ACEOF
18759rm -f conftest.$ac_objext
0ebeb530
JW
18760if { (ac_try="$ac_compile"
18761case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18764esac
18765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_compile") 2>conftest.er1
5537dbbf 18767 ac_status=$?
875927f6
AJ
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
5537dbbf 18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest.$ac_objext; then
5537dbbf
AJ
18776 ac_cv_member_struct_sockaddr_un_sun_len=yes
18777else
18778 echo "$as_me: failed program was:" >&5
18779sed 's/^/| /' conftest.$ac_ext >&5
18780
fc6ffb29 18781 ac_cv_member_struct_sockaddr_un_sun_len=no
f5818d2f 18782fi
fc6ffb29 18783
0ebeb530 18784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 18785fi
fc6ffb29 18786
0ebeb530 18787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 18788fi
fc6ffb29
AJ
18789{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
18790echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
5537dbbf 18791if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
f5818d2f 18792
5537dbbf
AJ
18793cat >>confdefs.h <<_ACEOF
18794#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
18795_ACEOF
18796
18797
18798fi
18799
18800
fc6ffb29
AJ
18801{ echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
18802echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
ea64a36a
DT
18803if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
18805else
18806 cat >conftest.$ac_ext <<_ACEOF
18807/* confdefs.h. */
18808_ACEOF
18809cat confdefs.h >>conftest.$ac_ext
18810cat >>conftest.$ac_ext <<_ACEOF
18811/* end confdefs.h. */
18812#include <sys/types.h>
18813#ifdef HAVE_SCSI_SG_H
18814#include <scsi/sg.h>
18815#endif
18816
18817int
18818main ()
18819{
18820static scsireq_t ac_aggr;
18821if (ac_aggr.cmd)
18822return 0;
18823 ;
18824 return 0;
18825}
18826_ACEOF
18827rm -f conftest.$ac_objext
0ebeb530
JW
18828if { (ac_try="$ac_compile"
18829case "(($ac_try" in
18830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18831 *) ac_try_echo=$ac_try;;
18832esac
18833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18834 (eval "$ac_compile") 2>conftest.er1
ea64a36a
DT
18835 ac_status=$?
18836 grep -v '^ *+' conftest.er1 >conftest.err
18837 rm -f conftest.er1
18838 cat conftest.err >&5
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18840 (exit $ac_status); } && {
18841 test -z "$ac_c_werror_flag" ||
18842 test ! -s conftest.err
18843 } && test -s conftest.$ac_objext; then
ea64a36a
DT
18844 ac_cv_member_scsireq_t_cmd=yes
18845else
18846 echo "$as_me: failed program was:" >&5
18847sed 's/^/| /' conftest.$ac_ext >&5
18848
fc6ffb29 18849 cat >conftest.$ac_ext <<_ACEOF
ea64a36a
DT
18850/* confdefs.h. */
18851_ACEOF
18852cat confdefs.h >>conftest.$ac_ext
18853cat >>conftest.$ac_ext <<_ACEOF
18854/* end confdefs.h. */
18855#include <sys/types.h>
18856#ifdef HAVE_SCSI_SG_H
18857#include <scsi/sg.h>
18858#endif
18859
18860int
18861main ()
18862{
18863static scsireq_t ac_aggr;
18864if (sizeof ac_aggr.cmd)
18865return 0;
18866 ;
18867 return 0;
18868}
18869_ACEOF
18870rm -f conftest.$ac_objext
0ebeb530
JW
18871if { (ac_try="$ac_compile"
18872case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18875esac
18876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_compile") 2>conftest.er1
ea64a36a
DT
18878 ac_status=$?
18879 grep -v '^ *+' conftest.er1 >conftest.err
18880 rm -f conftest.er1
18881 cat conftest.err >&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18883 (exit $ac_status); } && {
18884 test -z "$ac_c_werror_flag" ||
18885 test ! -s conftest.err
18886 } && test -s conftest.$ac_objext; then
ea64a36a
DT
18887 ac_cv_member_scsireq_t_cmd=yes
18888else
18889 echo "$as_me: failed program was:" >&5
18890sed 's/^/| /' conftest.$ac_ext >&5
18891
fc6ffb29 18892 ac_cv_member_scsireq_t_cmd=no
ea64a36a 18893fi
fc6ffb29 18894
0ebeb530 18895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea64a36a 18896fi
fc6ffb29 18897
0ebeb530 18898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea64a36a 18899fi
fc6ffb29
AJ
18900{ echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
18901echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
ea64a36a
DT
18902if test $ac_cv_member_scsireq_t_cmd = yes; then
18903
18904cat >>confdefs.h <<_ACEOF
18905#define HAVE_SCSIREQ_T_CMD 1
18906_ACEOF
18907
18908
18909fi
fc6ffb29
AJ
18910{ echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
18911echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
ea64a36a
DT
18912if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
18913 echo $ECHO_N "(cached) $ECHO_C" >&6
18914else
18915 cat >conftest.$ac_ext <<_ACEOF
18916/* confdefs.h. */
18917_ACEOF
18918cat confdefs.h >>conftest.$ac_ext
18919cat >>conftest.$ac_ext <<_ACEOF
18920/* end confdefs.h. */
18921#include <sys/types.h>
18922#ifdef HAVE_SCSI_SG_H
18923#include <scsi/sg.h>
18924#endif
18925
18926int
18927main ()
18928{
18929static sg_io_hdr_t ac_aggr;
18930if (ac_aggr.interface_id)
18931return 0;
18932 ;
18933 return 0;
18934}
18935_ACEOF
18936rm -f conftest.$ac_objext
0ebeb530
JW
18937if { (ac_try="$ac_compile"
18938case "(($ac_try" in
18939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940 *) ac_try_echo=$ac_try;;
18941esac
18942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943 (eval "$ac_compile") 2>conftest.er1
ea64a36a
DT
18944 ac_status=$?
18945 grep -v '^ *+' conftest.er1 >conftest.err
18946 rm -f conftest.er1
18947 cat conftest.err >&5
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18949 (exit $ac_status); } && {
18950 test -z "$ac_c_werror_flag" ||
18951 test ! -s conftest.err
18952 } && test -s conftest.$ac_objext; then
ea64a36a
DT
18953 ac_cv_member_sg_io_hdr_t_interface_id=yes
18954else
18955 echo "$as_me: failed program was:" >&5
18956sed 's/^/| /' conftest.$ac_ext >&5
18957
fc6ffb29 18958 cat >conftest.$ac_ext <<_ACEOF
ea64a36a
DT
18959/* confdefs.h. */
18960_ACEOF
18961cat confdefs.h >>conftest.$ac_ext
18962cat >>conftest.$ac_ext <<_ACEOF
18963/* end confdefs.h. */
18964#include <sys/types.h>
18965#ifdef HAVE_SCSI_SG_H
18966#include <scsi/sg.h>
18967#endif
18968
18969int
18970main ()
18971{
18972static sg_io_hdr_t ac_aggr;
18973if (sizeof ac_aggr.interface_id)
18974return 0;
18975 ;
18976 return 0;
18977}
18978_ACEOF
18979rm -f conftest.$ac_objext
0ebeb530
JW
18980if { (ac_try="$ac_compile"
18981case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18984esac
18985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_compile") 2>conftest.er1
ea64a36a
DT
18987 ac_status=$?
18988 grep -v '^ *+' conftest.er1 >conftest.err
18989 rm -f conftest.er1
18990 cat conftest.err >&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
18992 (exit $ac_status); } && {
18993 test -z "$ac_c_werror_flag" ||
18994 test ! -s conftest.err
18995 } && test -s conftest.$ac_objext; then
ea64a36a
DT
18996 ac_cv_member_sg_io_hdr_t_interface_id=yes
18997else
18998 echo "$as_me: failed program was:" >&5
18999sed 's/^/| /' conftest.$ac_ext >&5
19000
fc6ffb29 19001 ac_cv_member_sg_io_hdr_t_interface_id=no
ea64a36a 19002fi
fc6ffb29 19003
0ebeb530 19004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea64a36a 19005fi
fc6ffb29 19006
0ebeb530 19007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea64a36a 19008fi
fc6ffb29
AJ
19009{ echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
19010echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
ea64a36a
DT
19011if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
19012
19013cat >>confdefs.h <<_ACEOF
19014#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
19015_ACEOF
19016
19017
19018fi
19019
19020
fc6ffb29
AJ
19021{ echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19022echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
5537dbbf
AJ
19023if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19024 echo $ECHO_N "(cached) $ECHO_C" >&6
19025else
19026 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
19027/* confdefs.h. */
19028_ACEOF
19029cat confdefs.h >>conftest.$ac_ext
19030cat >>conftest.$ac_ext <<_ACEOF
19031/* end confdefs.h. */
19032#include <signal.h>
19033
19034int
19035main ()
19036{
19037static siginfo_t ac_aggr;
19038if (ac_aggr.si_fd)
19039return 0;
19040 ;
19041 return 0;
19042}
19043_ACEOF
19044rm -f conftest.$ac_objext
0ebeb530
JW
19045if { (ac_try="$ac_compile"
19046case "(($ac_try" in
19047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048 *) ac_try_echo=$ac_try;;
19049esac
19050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051 (eval "$ac_compile") 2>conftest.er1
5537dbbf 19052 ac_status=$?
875927f6
AJ
19053 grep -v '^ *+' conftest.er1 >conftest.err
19054 rm -f conftest.er1
19055 cat conftest.err >&5
5537dbbf 19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19057 (exit $ac_status); } && {
19058 test -z "$ac_c_werror_flag" ||
19059 test ! -s conftest.err
19060 } && test -s conftest.$ac_objext; then
5537dbbf
AJ
19061 ac_cv_member_siginfo_t_si_fd=yes
19062else
19063 echo "$as_me: failed program was:" >&5
19064sed 's/^/| /' conftest.$ac_ext >&5
19065
fc6ffb29 19066 cat >conftest.$ac_ext <<_ACEOF
5537dbbf 19067/* confdefs.h. */
daa2886c 19068_ACEOF
5537dbbf
AJ
19069cat confdefs.h >>conftest.$ac_ext
19070cat >>conftest.$ac_ext <<_ACEOF
19071/* end confdefs.h. */
19072#include <signal.h>
2d33ab91 19073
5537dbbf
AJ
19074int
19075main ()
19076{
19077static siginfo_t ac_aggr;
19078if (sizeof ac_aggr.si_fd)
19079return 0;
19080 ;
19081 return 0;
19082}
19083_ACEOF
19084rm -f conftest.$ac_objext
0ebeb530
JW
19085if { (ac_try="$ac_compile"
19086case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19089esac
19090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_compile") 2>conftest.er1
5537dbbf 19092 ac_status=$?
875927f6
AJ
19093 grep -v '^ *+' conftest.er1 >conftest.err
19094 rm -f conftest.er1
19095 cat conftest.err >&5
5537dbbf 19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19097 (exit $ac_status); } && {
19098 test -z "$ac_c_werror_flag" ||
19099 test ! -s conftest.err
19100 } && test -s conftest.$ac_objext; then
5537dbbf
AJ
19101 ac_cv_member_siginfo_t_si_fd=yes
19102else
19103 echo "$as_me: failed program was:" >&5
19104sed 's/^/| /' conftest.$ac_ext >&5
19105
fc6ffb29 19106 ac_cv_member_siginfo_t_si_fd=no
5537dbbf 19107fi
fc6ffb29 19108
0ebeb530 19109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 19110fi
fc6ffb29 19111
0ebeb530 19112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2d33ab91 19113fi
fc6ffb29
AJ
19114{ echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19115echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
5537dbbf 19116if test $ac_cv_member_siginfo_t_si_fd = yes; then
2d33ab91 19117
5537dbbf
AJ
19118cat >>confdefs.h <<_ACEOF
19119#define HAVE_SIGINFO_T_SI_FD 1
19120_ACEOF
19121
19122
19123fi
daa2886c
AJ
19124
19125
fc6ffb29
AJ
19126{ echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
19127echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
36bdc64e
GP
19128if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
19129 echo $ECHO_N "(cached) $ECHO_C" >&6
19130else
19131 cat >conftest.$ac_ext <<_ACEOF
19132/* confdefs.h. */
19133_ACEOF
19134cat confdefs.h >>conftest.$ac_ext
19135cat >>conftest.$ac_ext <<_ACEOF
19136/* end confdefs.h. */
368dab37 19137#include <sys/types.h>
36bdc64e
GP
19138#ifdef HAVE_SYS_MTIO_H
19139#include <sys/mtio.h>
19140#endif
19141
19142int
19143main ()
19144{
19145static struct mtget ac_aggr;
19146if (ac_aggr.mt_blksiz)
19147return 0;
19148 ;
19149 return 0;
19150}
19151_ACEOF
19152rm -f conftest.$ac_objext
0ebeb530
JW
19153if { (ac_try="$ac_compile"
19154case "(($ac_try" in
19155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156 *) ac_try_echo=$ac_try;;
19157esac
19158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159 (eval "$ac_compile") 2>conftest.er1
36bdc64e
GP
19160 ac_status=$?
19161 grep -v '^ *+' conftest.er1 >conftest.err
19162 rm -f conftest.er1
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19165 (exit $ac_status); } && {
19166 test -z "$ac_c_werror_flag" ||
19167 test ! -s conftest.err
19168 } && test -s conftest.$ac_objext; then
36bdc64e
GP
19169 ac_cv_member_struct_mtget_mt_blksiz=yes
19170else
19171 echo "$as_me: failed program was:" >&5
19172sed 's/^/| /' conftest.$ac_ext >&5
19173
fc6ffb29 19174 cat >conftest.$ac_ext <<_ACEOF
36bdc64e
GP
19175/* confdefs.h. */
19176_ACEOF
19177cat confdefs.h >>conftest.$ac_ext
19178cat >>conftest.$ac_ext <<_ACEOF
19179/* end confdefs.h. */
368dab37 19180#include <sys/types.h>
36bdc64e
GP
19181#ifdef HAVE_SYS_MTIO_H
19182#include <sys/mtio.h>
19183#endif
19184
19185int
19186main ()
19187{
19188static struct mtget ac_aggr;
19189if (sizeof ac_aggr.mt_blksiz)
19190return 0;
19191 ;
19192 return 0;
19193}
19194_ACEOF
19195rm -f conftest.$ac_objext
0ebeb530 19196if { (ac_try="$ac_compile"
dc9f3843 19197case "(($ac_try" in
0ebeb530
JW
19198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199 *) ac_try_echo=$ac_try;;
19200esac
19201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
dc9f3843 19202 (eval "$ac_compile") 2>conftest.er1
36bdc64e 19203 ac_status=$?
dc9f3843
AJ
19204 grep -v '^ *+' conftest.er1 >conftest.err
19205 rm -f conftest.er1
19206 cat conftest.err >&5
36bdc64e 19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19208 (exit $ac_status); } && {
19209 test -z "$ac_c_werror_flag" ||
19210 test ! -s conftest.err
19211 } && test -s conftest.$ac_objext; then
36bdc64e
GP
19212 ac_cv_member_struct_mtget_mt_blksiz=yes
19213else
19214 echo "$as_me: failed program was:" >&5
19215sed 's/^/| /' conftest.$ac_ext >&5
19216
fc6ffb29 19217 ac_cv_member_struct_mtget_mt_blksiz=no
36bdc64e 19218fi
fc6ffb29 19219
0ebeb530 19220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36bdc64e 19221fi
fc6ffb29 19222
0ebeb530 19223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36bdc64e 19224fi
fc6ffb29
AJ
19225{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
19226echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
36bdc64e
GP
19227if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
19228
19229cat >>confdefs.h <<_ACEOF
19230#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
19231_ACEOF
19232
19233
19234fi
fc6ffb29
AJ
19235{ echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
19236echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
36bdc64e
GP
19237if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
19238 echo $ECHO_N "(cached) $ECHO_C" >&6
19239else
19240 cat >conftest.$ac_ext <<_ACEOF
19241/* confdefs.h. */
19242_ACEOF
19243cat confdefs.h >>conftest.$ac_ext
19244cat >>conftest.$ac_ext <<_ACEOF
19245/* end confdefs.h. */
368dab37 19246#include <sys/types.h>
36bdc64e
GP
19247#ifdef HAVE_SYS_MTIO_H
19248#include <sys/mtio.h>
19249#endif
19250
19251int
19252main ()
19253{
19254static struct mtget ac_aggr;
19255if (ac_aggr.mt_gstat)
19256return 0;
19257 ;
19258 return 0;
19259}
19260_ACEOF
19261rm -f conftest.$ac_objext
0ebeb530
JW
19262if { (ac_try="$ac_compile"
19263case "(($ac_try" in
19264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265 *) ac_try_echo=$ac_try;;
19266esac
19267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268 (eval "$ac_compile") 2>conftest.er1
36bdc64e
GP
19269 ac_status=$?
19270 grep -v '^ *+' conftest.er1 >conftest.err
19271 rm -f conftest.er1
19272 cat conftest.err >&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19274 (exit $ac_status); } && {
19275 test -z "$ac_c_werror_flag" ||
19276 test ! -s conftest.err
19277 } && test -s conftest.$ac_objext; then
36bdc64e
GP
19278 ac_cv_member_struct_mtget_mt_gstat=yes
19279else
19280 echo "$as_me: failed program was:" >&5
19281sed 's/^/| /' conftest.$ac_ext >&5
19282
fc6ffb29 19283 cat >conftest.$ac_ext <<_ACEOF
36bdc64e
GP
19284/* confdefs.h. */
19285_ACEOF
19286cat confdefs.h >>conftest.$ac_ext
19287cat >>conftest.$ac_ext <<_ACEOF
19288/* end confdefs.h. */
368dab37 19289#include <sys/types.h>
36bdc64e
GP
19290#ifdef HAVE_SYS_MTIO_H
19291#include <sys/mtio.h>
19292#endif
19293
19294int
19295main ()
19296{
19297static struct mtget ac_aggr;
19298if (sizeof ac_aggr.mt_gstat)
19299return 0;
19300 ;
19301 return 0;
19302}
19303_ACEOF
19304rm -f conftest.$ac_objext
0ebeb530
JW
19305if { (ac_try="$ac_compile"
19306case "(($ac_try" in
19307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19308 *) ac_try_echo=$ac_try;;
19309esac
19310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19311 (eval "$ac_compile") 2>conftest.er1
36bdc64e
GP
19312 ac_status=$?
19313 grep -v '^ *+' conftest.er1 >conftest.err
19314 rm -f conftest.er1
19315 cat conftest.err >&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19317 (exit $ac_status); } && {
19318 test -z "$ac_c_werror_flag" ||
19319 test ! -s conftest.err
19320 } && test -s conftest.$ac_objext; then
36bdc64e
GP
19321 ac_cv_member_struct_mtget_mt_gstat=yes
19322else
19323 echo "$as_me: failed program was:" >&5
19324sed 's/^/| /' conftest.$ac_ext >&5
19325
fc6ffb29 19326 ac_cv_member_struct_mtget_mt_gstat=no
36bdc64e 19327fi
fc6ffb29 19328
0ebeb530 19329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36bdc64e 19330fi
fc6ffb29 19331
0ebeb530 19332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36bdc64e 19333fi
fc6ffb29
AJ
19334{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
19335echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
36bdc64e
GP
19336if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
19337
19338cat >>confdefs.h <<_ACEOF
19339#define HAVE_STRUCT_MTGET_MT_GSTAT 1
19340_ACEOF
19341
19342
571d9fb0 19343fi
fc6ffb29
AJ
19344{ echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
19345echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
571d9fb0
GP
19346if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19348else
19349 cat >conftest.$ac_ext <<_ACEOF
19350/* confdefs.h. */
19351_ACEOF
19352cat confdefs.h >>conftest.$ac_ext
19353cat >>conftest.$ac_ext <<_ACEOF
19354/* end confdefs.h. */
368dab37 19355#include <sys/types.h>
571d9fb0
GP
19356#ifdef HAVE_SYS_MTIO_H
19357#include <sys/mtio.h>
19358#endif
19359
19360int
19361main ()
19362{
19363static struct mtget ac_aggr;
19364if (ac_aggr.mt_blkno)
19365return 0;
19366 ;
19367 return 0;
19368}
19369_ACEOF
19370rm -f conftest.$ac_objext
0ebeb530
JW
19371if { (ac_try="$ac_compile"
19372case "(($ac_try" in
19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374 *) ac_try_echo=$ac_try;;
19375esac
19376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377 (eval "$ac_compile") 2>conftest.er1
571d9fb0
GP
19378 ac_status=$?
19379 grep -v '^ *+' conftest.er1 >conftest.err
19380 rm -f conftest.er1
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19383 (exit $ac_status); } && {
19384 test -z "$ac_c_werror_flag" ||
19385 test ! -s conftest.err
19386 } && test -s conftest.$ac_objext; then
571d9fb0
GP
19387 ac_cv_member_struct_mtget_mt_blkno=yes
19388else
19389 echo "$as_me: failed program was:" >&5
19390sed 's/^/| /' conftest.$ac_ext >&5
19391
fc6ffb29 19392 cat >conftest.$ac_ext <<_ACEOF
571d9fb0
GP
19393/* confdefs.h. */
19394_ACEOF
19395cat confdefs.h >>conftest.$ac_ext
19396cat >>conftest.$ac_ext <<_ACEOF
19397/* end confdefs.h. */
368dab37 19398#include <sys/types.h>
571d9fb0
GP
19399#ifdef HAVE_SYS_MTIO_H
19400#include <sys/mtio.h>
19401#endif
19402
19403int
19404main ()
19405{
19406static struct mtget ac_aggr;
19407if (sizeof ac_aggr.mt_blkno)
19408return 0;
19409 ;
19410 return 0;
19411}
19412_ACEOF
19413rm -f conftest.$ac_objext
0ebeb530
JW
19414if { (ac_try="$ac_compile"
19415case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19418esac
19419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_compile") 2>conftest.er1
571d9fb0
GP
19421 ac_status=$?
19422 grep -v '^ *+' conftest.er1 >conftest.err
19423 rm -f conftest.er1
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19426 (exit $ac_status); } && {
19427 test -z "$ac_c_werror_flag" ||
19428 test ! -s conftest.err
19429 } && test -s conftest.$ac_objext; then
571d9fb0
GP
19430 ac_cv_member_struct_mtget_mt_blkno=yes
19431else
19432 echo "$as_me: failed program was:" >&5
19433sed 's/^/| /' conftest.$ac_ext >&5
19434
fc6ffb29 19435 ac_cv_member_struct_mtget_mt_blkno=no
571d9fb0 19436fi
fc6ffb29 19437
0ebeb530 19438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
571d9fb0 19439fi
fc6ffb29 19440
0ebeb530 19441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
571d9fb0 19442fi
fc6ffb29
AJ
19443{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
19444echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
571d9fb0
GP
19445if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
19446
19447cat >>confdefs.h <<_ACEOF
19448#define HAVE_STRUCT_MTGET_MT_BLKNO 1
19449_ACEOF
19450
19451
36bdc64e
GP
19452fi
19453
19454
fc6ffb29
AJ
19455{ echo "$as_me:$LINENO: checking for struct option.name" >&5
19456echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
db89a54b
AJ
19457if test "${ac_cv_member_struct_option_name+set}" = set; then
19458 echo $ECHO_N "(cached) $ECHO_C" >&6
19459else
19460 cat >conftest.$ac_ext <<_ACEOF
db89a54b
AJ
19461/* confdefs.h. */
19462_ACEOF
19463cat confdefs.h >>conftest.$ac_ext
19464cat >>conftest.$ac_ext <<_ACEOF
19465/* end confdefs.h. */
19466#ifdef HAVE_GETOPT_H
19467#include <getopt.h>
19468#endif
19469
19470int
19471main ()
19472{
19473static struct option ac_aggr;
19474if (ac_aggr.name)
19475return 0;
19476 ;
19477 return 0;
19478}
19479_ACEOF
19480rm -f conftest.$ac_objext
0ebeb530
JW
19481if { (ac_try="$ac_compile"
19482case "(($ac_try" in
19483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484 *) ac_try_echo=$ac_try;;
19485esac
19486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19487 (eval "$ac_compile") 2>conftest.er1
db89a54b 19488 ac_status=$?
875927f6
AJ
19489 grep -v '^ *+' conftest.er1 >conftest.err
19490 rm -f conftest.er1
19491 cat conftest.err >&5
db89a54b 19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19493 (exit $ac_status); } && {
19494 test -z "$ac_c_werror_flag" ||
19495 test ! -s conftest.err
19496 } && test -s conftest.$ac_objext; then
db89a54b
AJ
19497 ac_cv_member_struct_option_name=yes
19498else
19499 echo "$as_me: failed program was:" >&5
19500sed 's/^/| /' conftest.$ac_ext >&5
19501
fc6ffb29 19502 cat >conftest.$ac_ext <<_ACEOF
db89a54b
AJ
19503/* confdefs.h. */
19504_ACEOF
19505cat confdefs.h >>conftest.$ac_ext
19506cat >>conftest.$ac_ext <<_ACEOF
19507/* end confdefs.h. */
19508#ifdef HAVE_GETOPT_H
19509#include <getopt.h>
19510#endif
19511
19512int
19513main ()
19514{
19515static struct option ac_aggr;
19516if (sizeof ac_aggr.name)
19517return 0;
19518 ;
19519 return 0;
19520}
19521_ACEOF
19522rm -f conftest.$ac_objext
0ebeb530
JW
19523if { (ac_try="$ac_compile"
19524case "(($ac_try" in
19525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526 *) ac_try_echo=$ac_try;;
19527esac
19528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529 (eval "$ac_compile") 2>conftest.er1
db89a54b 19530 ac_status=$?
875927f6
AJ
19531 grep -v '^ *+' conftest.er1 >conftest.err
19532 rm -f conftest.er1
19533 cat conftest.err >&5
db89a54b 19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19535 (exit $ac_status); } && {
19536 test -z "$ac_c_werror_flag" ||
19537 test ! -s conftest.err
19538 } && test -s conftest.$ac_objext; then
db89a54b
AJ
19539 ac_cv_member_struct_option_name=yes
19540else
19541 echo "$as_me: failed program was:" >&5
19542sed 's/^/| /' conftest.$ac_ext >&5
19543
fc6ffb29 19544 ac_cv_member_struct_option_name=no
db89a54b 19545fi
fc6ffb29 19546
0ebeb530 19547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
db89a54b 19548fi
fc6ffb29 19549
0ebeb530 19550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
db89a54b 19551fi
fc6ffb29
AJ
19552{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19553echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
db89a54b
AJ
19554if test $ac_cv_member_struct_option_name = yes; then
19555
19556cat >>confdefs.h <<_ACEOF
19557#define HAVE_STRUCT_OPTION_NAME 1
19558_ACEOF
19559
19560
19561fi
19562
19563
fc6ffb29
AJ
19564{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19565echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
d6507196
PR
19566if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
19568else
19569 cat >conftest.$ac_ext <<_ACEOF
d6507196
PR
19570/* confdefs.h. */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h. */
19575$ac_includes_default
19576int
19577main ()
19578{
19579static struct stat ac_aggr;
19580if (ac_aggr.st_blocks)
19581return 0;
19582 ;
19583 return 0;
19584}
19585_ACEOF
19586rm -f conftest.$ac_objext
0ebeb530
JW
19587if { (ac_try="$ac_compile"
19588case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19591esac
19592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19593 (eval "$ac_compile") 2>conftest.er1
d6507196 19594 ac_status=$?
875927f6
AJ
19595 grep -v '^ *+' conftest.er1 >conftest.err
19596 rm -f conftest.er1
19597 cat conftest.err >&5
d6507196 19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19599 (exit $ac_status); } && {
19600 test -z "$ac_c_werror_flag" ||
19601 test ! -s conftest.err
19602 } && test -s conftest.$ac_objext; then
d6507196
PR
19603 ac_cv_member_struct_stat_st_blocks=yes
19604else
19605 echo "$as_me: failed program was:" >&5
19606sed 's/^/| /' conftest.$ac_ext >&5
19607
fc6ffb29 19608 cat >conftest.$ac_ext <<_ACEOF
d6507196
PR
19609/* confdefs.h. */
19610_ACEOF
19611cat confdefs.h >>conftest.$ac_ext
19612cat >>conftest.$ac_ext <<_ACEOF
19613/* end confdefs.h. */
19614$ac_includes_default
19615int
19616main ()
19617{
19618static struct stat ac_aggr;
19619if (sizeof ac_aggr.st_blocks)
19620return 0;
19621 ;
19622 return 0;
19623}
19624_ACEOF
19625rm -f conftest.$ac_objext
0ebeb530
JW
19626if { (ac_try="$ac_compile"
19627case "(($ac_try" in
19628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629 *) ac_try_echo=$ac_try;;
19630esac
19631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632 (eval "$ac_compile") 2>conftest.er1
d6507196 19633 ac_status=$?
875927f6
AJ
19634 grep -v '^ *+' conftest.er1 >conftest.err
19635 rm -f conftest.er1
19636 cat conftest.err >&5
d6507196 19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19638 (exit $ac_status); } && {
19639 test -z "$ac_c_werror_flag" ||
19640 test ! -s conftest.err
19641 } && test -s conftest.$ac_objext; then
d6507196
PR
19642 ac_cv_member_struct_stat_st_blocks=yes
19643else
19644 echo "$as_me: failed program was:" >&5
19645sed 's/^/| /' conftest.$ac_ext >&5
19646
fc6ffb29 19647 ac_cv_member_struct_stat_st_blocks=no
d6507196 19648fi
fc6ffb29 19649
0ebeb530 19650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6507196 19651fi
fc6ffb29 19652
0ebeb530 19653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6507196 19654fi
fc6ffb29
AJ
19655{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19656echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
d6507196
PR
19657if test $ac_cv_member_struct_stat_st_blocks = yes; then
19658
19659cat >>confdefs.h <<_ACEOF
19660#define HAVE_STRUCT_STAT_ST_BLOCKS 1
19661_ACEOF
19662
19663
19664fi
19665
19666
fc6ffb29
AJ
19667{ echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
19668echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
40a6a74a
VL
19669if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
19670 echo $ECHO_N "(cached) $ECHO_C" >&6
19671else
19672 cat >conftest.$ac_ext <<_ACEOF
19673/* confdefs.h. */
19674_ACEOF
19675cat confdefs.h >>conftest.$ac_ext
19676cat >>conftest.$ac_ext <<_ACEOF
19677/* end confdefs.h. */
19678#ifdef HAVE_SYS_TYPES_H
19679#include <sys/types.h>
19680#endif
19681#ifdef HAVE_NETINET_IN_H
19682#include <netinet/in.h>
19683#endif
19684
19685int
19686main ()
19687{
19688static struct sockaddr_in6 ac_aggr;
19689if (ac_aggr.sin6_scope_id)
19690return 0;
19691 ;
19692 return 0;
19693}
19694_ACEOF
19695rm -f conftest.$ac_objext
0ebeb530
JW
19696if { (ac_try="$ac_compile"
19697case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19700esac
19701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_compile") 2>conftest.er1
40a6a74a
VL
19703 ac_status=$?
19704 grep -v '^ *+' conftest.er1 >conftest.err
19705 rm -f conftest.er1
19706 cat conftest.err >&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19708 (exit $ac_status); } && {
19709 test -z "$ac_c_werror_flag" ||
19710 test ! -s conftest.err
19711 } && test -s conftest.$ac_objext; then
40a6a74a
VL
19712 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19713else
19714 echo "$as_me: failed program was:" >&5
19715sed 's/^/| /' conftest.$ac_ext >&5
19716
fc6ffb29 19717 cat >conftest.$ac_ext <<_ACEOF
40a6a74a
VL
19718/* confdefs.h. */
19719_ACEOF
19720cat confdefs.h >>conftest.$ac_ext
19721cat >>conftest.$ac_ext <<_ACEOF
19722/* end confdefs.h. */
19723#ifdef HAVE_SYS_TYPES_H
19724#include <sys/types.h>
19725#endif
19726#ifdef HAVE_NETINET_IN_H
19727#include <netinet/in.h>
19728#endif
19729
19730int
19731main ()
19732{
19733static struct sockaddr_in6 ac_aggr;
19734if (sizeof ac_aggr.sin6_scope_id)
19735return 0;
19736 ;
19737 return 0;
19738}
19739_ACEOF
19740rm -f conftest.$ac_objext
0ebeb530
JW
19741if { (ac_try="$ac_compile"
19742case "(($ac_try" in
19743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19744 *) ac_try_echo=$ac_try;;
19745esac
19746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19747 (eval "$ac_compile") 2>conftest.er1
40a6a74a
VL
19748 ac_status=$?
19749 grep -v '^ *+' conftest.er1 >conftest.err
19750 rm -f conftest.er1
19751 cat conftest.err >&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19753 (exit $ac_status); } && {
19754 test -z "$ac_c_werror_flag" ||
19755 test ! -s conftest.err
19756 } && test -s conftest.$ac_objext; then
40a6a74a
VL
19757 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
19758else
19759 echo "$as_me: failed program was:" >&5
19760sed 's/^/| /' conftest.$ac_ext >&5
19761
fc6ffb29 19762 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
40a6a74a 19763fi
fc6ffb29 19764
0ebeb530 19765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40a6a74a 19766fi
fc6ffb29 19767
0ebeb530 19768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40a6a74a 19769fi
fc6ffb29
AJ
19770{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
19771echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
40a6a74a
VL
19772if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
19773
19774cat >>confdefs.h <<_ACEOF
19775#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
19776_ACEOF
19777
19778
19779fi
19780
19781
788e30f1
AJ
19782{ echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
19783echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
19784if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19786else
19787 cat >conftest.$ac_ext <<_ACEOF
19788/* confdefs.h. */
19789_ACEOF
19790cat confdefs.h >>conftest.$ac_ext
19791cat >>conftest.$ac_ext <<_ACEOF
19792/* end confdefs.h. */
19793#ifdef HAVE_SYS_TYPES_H
19794#include <sys/types.h>
19795#endif
19796#ifdef HAVE_NETINET_IN_H
19797# include <netinet/in.h>
19798#endif
19799#ifdef HAVE_ARPA_NAMESER_H
19800# include <arpa/nameser.h>
19801#endif
19802
19803int
19804main ()
19805{
19806static ns_msg ac_aggr;
19807if (ac_aggr._msg_ptr)
19808return 0;
19809 ;
19810 return 0;
19811}
19812_ACEOF
19813rm -f conftest.$ac_objext
0ebeb530
JW
19814if { (ac_try="$ac_compile"
19815case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19818esac
19819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_compile") 2>conftest.er1
788e30f1
AJ
19821 ac_status=$?
19822 grep -v '^ *+' conftest.er1 >conftest.err
19823 rm -f conftest.er1
19824 cat conftest.err >&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19826 (exit $ac_status); } && {
19827 test -z "$ac_c_werror_flag" ||
19828 test ! -s conftest.err
19829 } && test -s conftest.$ac_objext; then
788e30f1
AJ
19830 ac_cv_member_ns_msg__msg_ptr=yes
19831else
19832 echo "$as_me: failed program was:" >&5
19833sed 's/^/| /' conftest.$ac_ext >&5
19834
19835 cat >conftest.$ac_ext <<_ACEOF
19836/* confdefs.h. */
19837_ACEOF
19838cat confdefs.h >>conftest.$ac_ext
19839cat >>conftest.$ac_ext <<_ACEOF
19840/* end confdefs.h. */
19841#ifdef HAVE_SYS_TYPES_H
19842#include <sys/types.h>
19843#endif
19844#ifdef HAVE_NETINET_IN_H
19845# include <netinet/in.h>
19846#endif
19847#ifdef HAVE_ARPA_NAMESER_H
19848# include <arpa/nameser.h>
19849#endif
19850
19851int
19852main ()
19853{
19854static ns_msg ac_aggr;
19855if (sizeof ac_aggr._msg_ptr)
19856return 0;
19857 ;
19858 return 0;
19859}
19860_ACEOF
19861rm -f conftest.$ac_objext
0ebeb530
JW
19862if { (ac_try="$ac_compile"
19863case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19866esac
19867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_compile") 2>conftest.er1
788e30f1
AJ
19869 ac_status=$?
19870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19874 (exit $ac_status); } && {
19875 test -z "$ac_c_werror_flag" ||
19876 test ! -s conftest.err
19877 } && test -s conftest.$ac_objext; then
788e30f1
AJ
19878 ac_cv_member_ns_msg__msg_ptr=yes
19879else
19880 echo "$as_me: failed program was:" >&5
19881sed 's/^/| /' conftest.$ac_ext >&5
19882
19883 ac_cv_member_ns_msg__msg_ptr=no
19884fi
19885
0ebeb530 19886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
788e30f1
AJ
19887fi
19888
0ebeb530 19889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
788e30f1
AJ
19890fi
19891{ echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
19892echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
19893if test $ac_cv_member_ns_msg__msg_ptr = yes; then
19894
19895cat >>confdefs.h <<_ACEOF
19896#define HAVE_NS_MSG__MSG_PTR 1
19897_ACEOF
19898
19899
19900fi
19901
19902
fc6ffb29
AJ
19903{ echo "$as_me:$LINENO: checking for timezone variable" >&5
19904echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
6618b035
PK
19905if test "${ac_cv_have_timezone+set}" = set; then
19906 echo $ECHO_N "(cached) $ECHO_C" >&6
19907else
19908 cat >conftest.$ac_ext <<_ACEOF
19909/* confdefs.h. */
19910_ACEOF
19911cat confdefs.h >>conftest.$ac_ext
19912cat >>conftest.$ac_ext <<_ACEOF
19913/* end confdefs.h. */
19914#include <time.h>
19915int
19916main ()
19917{
ff2bd661 19918timezone = 1
6618b035
PK
19919 ;
19920 return 0;
19921}
19922_ACEOF
19923rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
19924if { (ac_try="$ac_link"
19925case "(($ac_try" in
19926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19927 *) ac_try_echo=$ac_try;;
19928esac
19929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19930 (eval "$ac_link") 2>conftest.er1
6618b035
PK
19931 ac_status=$?
19932 grep -v '^ *+' conftest.er1 >conftest.err
19933 rm -f conftest.er1
19934 cat conftest.err >&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19936 (exit $ac_status); } && {
19937 test -z "$ac_c_werror_flag" ||
19938 test ! -s conftest.err
19939 } && test -s conftest$ac_exeext &&
19940 $as_test_x conftest$ac_exeext; then
6618b035
PK
19941 ac_cv_have_timezone="yes"
19942else
19943 echo "$as_me: failed program was:" >&5
19944sed 's/^/| /' conftest.$ac_ext >&5
19945
fc6ffb29 19946 ac_cv_have_timezone="no"
6618b035 19947fi
fc6ffb29 19948
f0ca586f 19949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6618b035
PK
19950 conftest$ac_exeext conftest.$ac_ext
19951fi
fc6ffb29
AJ
19952{ echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
19953echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
6618b035
PK
19954if test "$ac_cv_have_timezone" = "yes"
19955then
19956
19957cat >>confdefs.h <<\_ACEOF
19958#define HAVE_TIMEZONE 1
19959_ACEOF
19960
19961fi
fc6ffb29
AJ
19962{ echo "$as_me:$LINENO: checking for daylight variable" >&5
19963echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
6618b035
PK
19964if test "${ac_cv_have_daylight+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19966else
19967 cat >conftest.$ac_ext <<_ACEOF
19968/* confdefs.h. */
19969_ACEOF
19970cat confdefs.h >>conftest.$ac_ext
19971cat >>conftest.$ac_ext <<_ACEOF
19972/* end confdefs.h. */
19973#include <time.h>
19974int
19975main ()
19976{
ff2bd661 19977daylight = 1
6618b035
PK
19978 ;
19979 return 0;
19980}
19981_ACEOF
19982rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
19983if { (ac_try="$ac_link"
19984case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19987esac
19988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_link") 2>conftest.er1
6618b035
PK
19990 ac_status=$?
19991 grep -v '^ *+' conftest.er1 >conftest.err
19992 rm -f conftest.er1
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dc9f3843
AJ
19995 (exit $ac_status); } && {
19996 test -z "$ac_c_werror_flag" ||
19997 test ! -s conftest.err
19998 } && test -s conftest$ac_exeext &&
19999 $as_test_x conftest$ac_exeext; then
6618b035
PK
20000 ac_cv_have_daylight="yes"
20001else
20002 echo "$as_me: failed program was:" >&5
20003sed 's/^/| /' conftest.$ac_ext >&5
20004
fc6ffb29 20005 ac_cv_have_daylight="no"
6618b035 20006fi
fc6ffb29 20007
f0ca586f 20008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6618b035
PK
20009 conftest$ac_exeext conftest.$ac_ext
20010fi
fc6ffb29
AJ
20011{ echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
20012echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
6618b035
PK
20013if test "$ac_cv_have_daylight" = "yes"
20014then
20015
20016cat >>confdefs.h <<\_ACEOF
20017#define HAVE_DAYLIGHT 1
20018_ACEOF
20019
20020fi
20021
daa2886c 20022
fc01b729 20023case $host_cpu in
fc6ffb29
AJ
20024 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
20025echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
05783b55 20026if test "${ac_cv_cpp_def___i386__+set}" = set; then
f5818d2f 20027 echo $ECHO_N "(cached) $ECHO_C" >&6
51d46ba9 20028else
f5818d2f 20029 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
20030/* confdefs.h. */
20031_ACEOF
20032cat confdefs.h >>conftest.$ac_ext
20033cat >>conftest.$ac_ext <<_ACEOF
20034/* end confdefs.h. */
f5818d2f 20035#ifndef __i386__
51d46ba9
AJ
20036yes
20037#endif
f5818d2f 20038_ACEOF
51d46ba9 20039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 20040 $EGREP "yes" >/dev/null 2>&1; then
05783b55 20041 ac_cv_cpp_def___i386__=yes
51d46ba9 20042else
05783b55 20043 ac_cv_cpp_def___i386__=no
51d46ba9
AJ
20044fi
20045rm -f conftest*
20046
20047fi
fc6ffb29
AJ
20048{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20049echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
05783b55
AJ
20050if test $ac_cv_cpp_def___i386__ = yes; then
20051 CFLAGS="$CFLAGS -D__i386__"
20052 LINTFLAGS="$LINTFLAGS -D__i386__"
e3be5642
AJ
20053fi
20054 ;;
fc6ffb29
AJ
20055 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
20056echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
e3be5642
AJ
20057if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20059else
20060 cat >conftest.$ac_ext <<_ACEOF
20061/* confdefs.h. */
20062_ACEOF
20063cat confdefs.h >>conftest.$ac_ext
20064cat >>conftest.$ac_ext <<_ACEOF
20065/* end confdefs.h. */
20066#ifndef __x86_64__
20067yes
20068#endif
20069_ACEOF
20070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20071 $EGREP "yes" >/dev/null 2>&1; then
20072 ac_cv_cpp_def___x86_64__=yes
20073else
20074 ac_cv_cpp_def___x86_64__=no
20075fi
20076rm -f conftest*
20077
20078fi
fc6ffb29
AJ
20079{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
20080echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
e3be5642
AJ
20081if test $ac_cv_cpp_def___x86_64__ = yes; then
20082 CFLAGS="$CFLAGS -D__x86_64__"
20083 LINTFLAGS="$LINTFLAGS -D__x86_64__"
51d46ba9 20084fi
05783b55 20085 ;;
fc6ffb29
AJ
20086 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
20087echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
05783b55 20088if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
69b67861
SE
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20090else
20091 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
20092/* confdefs.h. */
20093_ACEOF
20094cat confdefs.h >>conftest.$ac_ext
20095cat >>conftest.$ac_ext <<_ACEOF
20096/* end confdefs.h. */
69b67861
SE
20097#ifndef __ALPHA__
20098yes
20099#endif
20100_ACEOF
20101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20102 $EGREP "yes" >/dev/null 2>&1; then
05783b55 20103 ac_cv_cpp_def___ALPHA__=yes
69b67861 20104else
05783b55 20105 ac_cv_cpp_def___ALPHA__=no
69b67861
SE
20106fi
20107rm -f conftest*
20108
20109fi
fc6ffb29
AJ
20110{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20111echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
05783b55
AJ
20112if test $ac_cv_cpp_def___ALPHA__ = yes; then
20113 CFLAGS="$CFLAGS -D__ALPHA__"
20114 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
69b67861 20115fi
05783b55 20116 ;;
fc6ffb29
AJ
20117 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
20118echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
05783b55 20119if test "${ac_cv_cpp_def___sparc__+set}" = set; then
57807fa1
GM
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20121else
20122 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
20123/* confdefs.h. */
20124_ACEOF
20125cat confdefs.h >>conftest.$ac_ext
20126cat >>conftest.$ac_ext <<_ACEOF
20127/* end confdefs.h. */
57807fa1
GM
20128#ifndef __sparc__
20129yes
20130#endif
20131_ACEOF
20132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 20133 $EGREP "yes" >/dev/null 2>&1; then
05783b55 20134 ac_cv_cpp_def___sparc__=yes
57807fa1 20135else
05783b55 20136 ac_cv_cpp_def___sparc__=no
57807fa1
GM
20137fi
20138rm -f conftest*
20139
20140fi
fc6ffb29
AJ
20141{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20142echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
05783b55
AJ
20143if test $ac_cv_cpp_def___sparc__ = yes; then
20144 CFLAGS="$CFLAGS -D__sparc__"
20145 LINTFLAGS="$LINTFLAGS -D__sparc__"
b64b7deb
PH
20146fi
20147 ;;
fc6ffb29
AJ
20148 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20149echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
b64b7deb
PH
20150if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20151 echo $ECHO_N "(cached) $ECHO_C" >&6
20152else
20153 cat >conftest.$ac_ext <<_ACEOF
b64b7deb
PH
20154/* confdefs.h. */
20155_ACEOF
20156cat confdefs.h >>conftest.$ac_ext
20157cat >>conftest.$ac_ext <<_ACEOF
20158/* end confdefs.h. */
20159#ifndef __powerpc__
20160yes
20161#endif
20162_ACEOF
20163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20164 $EGREP "yes" >/dev/null 2>&1; then
20165 ac_cv_cpp_def___powerpc__=yes
20166else
20167 ac_cv_cpp_def___powerpc__=no
20168fi
20169rm -f conftest*
20170
20171fi
fc6ffb29
AJ
20172{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20173echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
b64b7deb
PH
20174if test $ac_cv_cpp_def___powerpc__ = yes; then
20175 CFLAGS="$CFLAGS -D__powerpc__"
20176 LINTFLAGS="$LINTFLAGS -D__powerpc__"
57807fa1 20177fi
05783b55
AJ
20178 ;;
20179esac
57807fa1
GM
20180
20181case $host_vendor in
fc6ffb29
AJ
20182 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
20183echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
05783b55 20184if test "${ac_cv_cpp_def___sun__+set}" = set; then
57807fa1
GM
20185 echo $ECHO_N "(cached) $ECHO_C" >&6
20186else
20187 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
20188/* confdefs.h. */
20189_ACEOF
20190cat confdefs.h >>conftest.$ac_ext
20191cat >>conftest.$ac_ext <<_ACEOF
20192/* end confdefs.h. */
57807fa1
GM
20193#ifndef __sun__
20194yes
20195#endif
20196_ACEOF
20197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 20198 $EGREP "yes" >/dev/null 2>&1; then
05783b55 20199 ac_cv_cpp_def___sun__=yes
57807fa1 20200else
05783b55 20201 ac_cv_cpp_def___sun__=no
57807fa1
GM
20202fi
20203rm -f conftest*
20204
20205fi
fc6ffb29
AJ
20206{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20207echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
05783b55
AJ
20208if test $ac_cv_cpp_def___sun__ = yes; then
20209 CFLAGS="$CFLAGS -D__sun__"
20210 LINTFLAGS="$LINTFLAGS -D__sun__"
57807fa1 20211fi
05783b55
AJ
20212 ;;
20213esac
57807fa1
GM
20214
20215
32ab895e
AJ
20216DEPENDENCIES="### Dependencies:
20217
8598a4c6
AJ
20218.INIT: Makefile
20219.BEGIN: Makefile
20220Makefile: dummy
20221 -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS)
20222
a4b6ee36 20223\$(OBJS): \$(IDL_GEN_HEADERS)
12c19620 20224\$(IDL_GEN_C_SRCS:.c=.o): \$(IDL_GEN_C_SRCS)
32ab895e
AJ
20225\$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
20226\$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"
20227
20228
daa2886c
AJ
20229
20230
20231
c4704c2d
AJ
20232ac_config_commands="$ac_config_commands include/stamp-h"
20233
20234
7dfc4477 20235ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
89118568 20236
7dfc4477 20237ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
89118568 20238
1c60e3bf 20239ac_config_commands="$ac_config_commands dlls/kernel32/nls"
f5818d2f 20240
b8a2e3b8 20241ac_config_commands="$ac_config_commands dlls/user32/resources"
f5818d2f 20242
fc6ffb29 20243ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
f5818d2f 20244
fc6ffb29 20245ac_config_commands="$ac_config_commands include/wine"
f5818d2f 20246
f5818d2f
AJ
20247
20248MAKE_RULES=Make.rules
20249
daa2886c 20250
f5818d2f 20251MAKE_DLL_RULES=dlls/Makedll.rules
d0edc5fe 20252
daa2886c 20253
633b12d5
AJ
20254MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
20255
20256
edeee89c
AJ
20257MAKE_TEST_RULES=dlls/Maketest.rules
20258
20259
626f425b
AJ
20260MAKE_PROG_RULES=programs/Makeprog.rules
20261
daa2886c 20262
fbc80d79
MM
20263ac_config_files="$ac_config_files Make.rules"
20264
20265ac_config_files="$ac_config_files dlls/Makedll.rules"
20266
20267ac_config_files="$ac_config_files dlls/Makeimplib.rules"
20268
20269ac_config_files="$ac_config_files dlls/Maketest.rules"
20270
20271ac_config_files="$ac_config_files programs/Makeprog.rules"
20272
20273ac_config_files="$ac_config_files Makefile"
20274
20275ac_config_files="$ac_config_files dlls/Makefile"
20276
0da02fb2
EP
20277ac_config_files="$ac_config_files dlls/acledit/Makefile"
20278
fbc80d79
MM
20279ac_config_files="$ac_config_files dlls/activeds/Makefile"
20280
20281ac_config_files="$ac_config_files dlls/advapi32/Makefile"
20282
20283ac_config_files="$ac_config_files dlls/advapi32/tests/Makefile"
20284
20285ac_config_files="$ac_config_files dlls/advpack/Makefile"
20286
20287ac_config_files="$ac_config_files dlls/advpack/tests/Makefile"
20288
20289ac_config_files="$ac_config_files dlls/amstream/Makefile"
20290
20291ac_config_files="$ac_config_files dlls/atl/Makefile"
20292
20293ac_config_files="$ac_config_files dlls/avicap32/Makefile"
20294
20295ac_config_files="$ac_config_files dlls/avifil32/Makefile"
20296
20297ac_config_files="$ac_config_files dlls/browseui/Makefile"
20298
20299ac_config_files="$ac_config_files dlls/browseui/tests/Makefile"
20300
20301ac_config_files="$ac_config_files dlls/cabinet/Makefile"
20302
20303ac_config_files="$ac_config_files dlls/cabinet/tests/Makefile"
20304
20305ac_config_files="$ac_config_files dlls/capi2032/Makefile"
20306
20307ac_config_files="$ac_config_files dlls/cards/Makefile"
20308
20309ac_config_files="$ac_config_files dlls/cfgmgr32/Makefile"
20310
20311ac_config_files="$ac_config_files dlls/clusapi/Makefile"
20312
20313ac_config_files="$ac_config_files dlls/comcat/Makefile"
20314
20315ac_config_files="$ac_config_files dlls/comcat/tests/Makefile"
20316
20317ac_config_files="$ac_config_files dlls/comctl32/Makefile"
20318
20319ac_config_files="$ac_config_files dlls/comctl32/tests/Makefile"
20320
20321ac_config_files="$ac_config_files dlls/comdlg32/Makefile"
20322
20323ac_config_files="$ac_config_files dlls/comdlg32/tests/Makefile"
20324
20325ac_config_files="$ac_config_files dlls/compstui/Makefile"
20326
20327ac_config_files="$ac_config_files dlls/credui/Makefile"
20328
20329ac_config_files="$ac_config_files dlls/crtdll/Makefile"
20330
20331ac_config_files="$ac_config_files dlls/crypt32/Makefile"
20332
20333ac_config_files="$ac_config_files dlls/crypt32/tests/Makefile"
20334
20335ac_config_files="$ac_config_files dlls/cryptdll/Makefile"
20336
20337ac_config_files="$ac_config_files dlls/cryptnet/Makefile"
20338
20339ac_config_files="$ac_config_files dlls/ctl3d32/Makefile"
20340
0db109ff
KA
20341ac_config_files="$ac_config_files dlls/d3d10/Makefile"
20342
fbc80d79
MM
20343ac_config_files="$ac_config_files dlls/d3d8/Makefile"
20344
20345ac_config_files="$ac_config_files dlls/d3d8/tests/Makefile"
20346
20347ac_config_files="$ac_config_files dlls/d3d9/Makefile"
20348
20349ac_config_files="$ac_config_files dlls/d3d9/tests/Makefile"
20350
20351ac_config_files="$ac_config_files dlls/d3dim/Makefile"
20352
20353ac_config_files="$ac_config_files dlls/d3drm/Makefile"
20354
f50800b2
DA
20355ac_config_files="$ac_config_files dlls/d3drm/tests/Makefile"
20356
fbc80d79
MM
20357ac_config_files="$ac_config_files dlls/d3dx8/Makefile"
20358
20359ac_config_files="$ac_config_files dlls/d3dxof/Makefile"
20360
20361ac_config_files="$ac_config_files dlls/dbghelp/Makefile"
20362
20363ac_config_files="$ac_config_files dlls/dciman32/Makefile"
20364
20365ac_config_files="$ac_config_files dlls/ddraw/Makefile"
20366
20367ac_config_files="$ac_config_files dlls/ddraw/tests/Makefile"
20368
20369ac_config_files="$ac_config_files dlls/ddrawex/Makefile"
20370
20371ac_config_files="$ac_config_files dlls/devenum/Makefile"
20372
20373ac_config_files="$ac_config_files dlls/dinput/Makefile"
20374
20375ac_config_files="$ac_config_files dlls/dinput/tests/Makefile"
20376
20377ac_config_files="$ac_config_files dlls/dinput8/Makefile"
20378
20379ac_config_files="$ac_config_files dlls/dmband/Makefile"
20380
20381ac_config_files="$ac_config_files dlls/dmcompos/Makefile"
20382
20383ac_config_files="$ac_config_files dlls/dmime/Makefile"
20384
20385ac_config_files="$ac_config_files dlls/dmloader/Makefile"
20386
20387ac_config_files="$ac_config_files dlls/dmscript/Makefile"
20388
20389ac_config_files="$ac_config_files dlls/dmstyle/Makefile"
20390
20391ac_config_files="$ac_config_files dlls/dmsynth/Makefile"
20392
20393ac_config_files="$ac_config_files dlls/dmusic/Makefile"
20394
20395ac_config_files="$ac_config_files dlls/dmusic32/Makefile"
20396
20397ac_config_files="$ac_config_files dlls/dnsapi/Makefile"
20398
20399ac_config_files="$ac_config_files dlls/dnsapi/tests/Makefile"
20400
20401ac_config_files="$ac_config_files dlls/dplay/Makefile"
20402
20403ac_config_files="$ac_config_files dlls/dplayx/Makefile"
20404
d1331e62
AP
20405ac_config_files="$ac_config_files dlls/dplayx/tests/Makefile"
20406
8caf0787
LCBP
20407ac_config_files="$ac_config_files dlls/dpnaddr/Makefile"
20408
fbc80d79
MM
20409ac_config_files="$ac_config_files dlls/dpnet/Makefile"
20410
20411ac_config_files="$ac_config_files dlls/dpnhpast/Makefile"
20412
5996c132
LBP
20413ac_config_files="$ac_config_files dlls/dpnlobby/Makefile"
20414
fbc80d79
MM
20415ac_config_files="$ac_config_files dlls/dsound/Makefile"
20416
20417ac_config_files="$ac_config_files dlls/dsound/tests/Makefile"
20418
20419ac_config_files="$ac_config_files dlls/dswave/Makefile"
20420
c0ddd5e3
KA
20421ac_config_files="$ac_config_files dlls/dwmapi/Makefile"
20422
fbc80d79
MM
20423ac_config_files="$ac_config_files dlls/dxdiagn/Makefile"
20424
20425ac_config_files="$ac_config_files dlls/dxerr8/Makefile"
20426
20427ac_config_files="$ac_config_files dlls/dxerr9/Makefile"
20428
20429ac_config_files="$ac_config_files dlls/dxguid/Makefile"
20430
a2cd6430
PDT
20431ac_config_files="$ac_config_files dlls/faultrep/Makefile"
20432
fbc80d79
MM
20433ac_config_files="$ac_config_files dlls/gdi32/Makefile"
20434
20435ac_config_files="$ac_config_files dlls/gdi32/tests/Makefile"
20436
bed761c9
ES
20437ac_config_files="$ac_config_files dlls/gdiplus/Makefile"
20438
fcd7a62e
ES
20439ac_config_files="$ac_config_files dlls/gdiplus/tests/Makefile"
20440
fbc80d79
MM
20441ac_config_files="$ac_config_files dlls/glu32/Makefile"
20442
20443ac_config_files="$ac_config_files dlls/gphoto2.ds/Makefile"
20444
d2d68702
AJ
20445ac_config_files="$ac_config_files dlls/hal/Makefile"
20446
fbc80d79
MM
20447ac_config_files="$ac_config_files dlls/hhctrl.ocx/Makefile"
20448
20449ac_config_files="$ac_config_files dlls/hid/Makefile"
20450
20451ac_config_files="$ac_config_files dlls/hlink/Makefile"
20452
20453ac_config_files="$ac_config_files dlls/hlink/tests/Makefile"
20454
a00aa039
JL
20455ac_config_files="$ac_config_files dlls/hnetcfg/Makefile"
20456
fbc80d79
MM
20457ac_config_files="$ac_config_files dlls/iccvid/Makefile"
20458
20459ac_config_files="$ac_config_files dlls/icmp/Makefile"
20460
20461ac_config_files="$ac_config_files dlls/ifsmgr.vxd/Makefile"
20462
20463ac_config_files="$ac_config_files dlls/imaadp32.acm/Makefile"
20464
20465ac_config_files="$ac_config_files dlls/imagehlp/Makefile"
20466
20467ac_config_files="$ac_config_files dlls/imm32/Makefile"
20468
20469ac_config_files="$ac_config_files dlls/infosoft/Makefile"
20470
20471ac_config_files="$ac_config_files dlls/infosoft/tests/Makefile"
20472
e9252251
JK
20473ac_config_files="$ac_config_files dlls/inkobj/Makefile"
20474
fbc80d79
MM
20475ac_config_files="$ac_config_files dlls/inseng/Makefile"
20476
20477ac_config_files="$ac_config_files dlls/iphlpapi/Makefile"
20478
20479ac_config_files="$ac_config_files dlls/iphlpapi/tests/Makefile"
20480
20481ac_config_files="$ac_config_files dlls/itss/Makefile"
20482
20483ac_config_files="$ac_config_files dlls/itss/tests/Makefile"
20484
20485ac_config_files="$ac_config_files dlls/kernel32/Makefile"
20486
20487ac_config_files="$ac_config_files dlls/kernel32/tests/Makefile"
20488
20489ac_config_files="$ac_config_files dlls/localspl/Makefile"
20490
20491ac_config_files="$ac_config_files dlls/localspl/tests/Makefile"
20492
d24bc087
DR
20493ac_config_files="$ac_config_files dlls/localui/Makefile"
20494
62e92795
DR
20495ac_config_files="$ac_config_files dlls/localui/tests/Makefile"
20496
fbc80d79
MM
20497ac_config_files="$ac_config_files dlls/lz32/Makefile"
20498
20499ac_config_files="$ac_config_files dlls/lz32/tests/Makefile"
20500
20501ac_config_files="$ac_config_files dlls/mapi32/Makefile"
20502
20503ac_config_files="$ac_config_files dlls/mapi32/tests/Makefile"
20504
20505ac_config_files="$ac_config_files dlls/mciavi32/Makefile"
20506
20507ac_config_files="$ac_config_files dlls/mcicda/Makefile"
20508
20509ac_config_files="$ac_config_files dlls/mciseq/Makefile"
20510
20511ac_config_files="$ac_config_files dlls/mciwave/Makefile"
20512
20513ac_config_files="$ac_config_files dlls/midimap/Makefile"
20514
20515ac_config_files="$ac_config_files dlls/mlang/Makefile"
20516
20517ac_config_files="$ac_config_files dlls/mlang/tests/Makefile"
20518
20519ac_config_files="$ac_config_files dlls/mmdevldr.vxd/Makefile"
20520
20521ac_config_files="$ac_config_files dlls/monodebg.vxd/Makefile"
20522
20523ac_config_files="$ac_config_files dlls/mpr/Makefile"
20524
20525ac_config_files="$ac_config_files dlls/mprapi/Makefile"
20526
20527ac_config_files="$ac_config_files dlls/msacm32.drv/Makefile"
20528
20529ac_config_files="$ac_config_files dlls/msacm32/Makefile"
20530
20531ac_config_files="$ac_config_files dlls/msacm32/tests/Makefile"
20532
20533ac_config_files="$ac_config_files dlls/msadp32.acm/Makefile"
20534
20535ac_config_files="$ac_config_files dlls/mscms/Makefile"
20536
20537ac_config_files="$ac_config_files dlls/mscms/tests/Makefile"
20538
20539ac_config_files="$ac_config_files dlls/mscoree/Makefile"
20540
20541ac_config_files="$ac_config_files dlls/msdmo/Makefile"
20542
20543ac_config_files="$ac_config_files dlls/msftedit/Makefile"
20544
20545ac_config_files="$ac_config_files dlls/msg711.acm/Makefile"
20546
021d06a4
JC
20547ac_config_files="$ac_config_files dlls/mshtml.tlb/Makefile"
20548
fbc80d79
MM
20549ac_config_files="$ac_config_files dlls/mshtml/Makefile"
20550
20551ac_config_files="$ac_config_files dlls/mshtml/tests/Makefile"
20552
20553ac_config_files="$ac_config_files dlls/msi/Makefile"
20554
20555ac_config_files="$ac_config_files dlls/msi/tests/Makefile"
20556
20557ac_config_files="$ac_config_files dlls/msimg32/Makefile"
20558
44a808fb
JC
20559ac_config_files="$ac_config_files dlls/msimtf/Makefile"
20560
fbc80d79
MM
20561ac_config_files="$ac_config_files dlls/msisys.ocx/Makefile"
20562
20563ac_config_files="$ac_config_files dlls/msnet32/Makefile"
20564
20565ac_config_files="$ac_config_files dlls/msrle32/Makefile"
20566
455a4994
AJ
20567ac_config_files="$ac_config_files dlls/msvcirt/Makefile"
20568
fbc80d79
MM
20569ac_config_files="$ac_config_files dlls/msvcrt/Makefile"
20570
20571ac_config_files="$ac_config_files dlls/msvcrt/tests/Makefile"
20572
20573ac_config_files="$ac_config_files dlls/msvcrt20/Makefile"
20574
20575ac_config_files="$ac_config_files dlls/msvcrt40/Makefile"
20576
20577ac_config_files="$ac_config_files dlls/msvcrtd/Makefile"
20578
20579ac_config_files="$ac_config_files dlls/msvcrtd/tests/Makefile"
20580
20581ac_config_files="$ac_config_files dlls/msvfw32/Makefile"
20582
20583ac_config_files="$ac_config_files dlls/msvidc32/Makefile"
20584
20585ac_config_files="$ac_config_files dlls/mswsock/Makefile"
20586
20587ac_config_files="$ac_config_files dlls/msxml3/Makefile"
20588
20589ac_config_files="$ac_config_files dlls/msxml3/tests/Makefile"
20590
20591ac_config_files="$ac_config_files dlls/nddeapi/Makefile"
20592
20593ac_config_files="$ac_config_files dlls/netapi32/Makefile"
20594
20595ac_config_files="$ac_config_files dlls/netapi32/tests/Makefile"
20596
20597ac_config_files="$ac_config_files dlls/newdev/Makefile"
20598
20599ac_config_files="$ac_config_files dlls/ntdll/Makefile"
20600
20601ac_config_files="$ac_config_files dlls/ntdll/tests/Makefile"
20602
20603ac_config_files="$ac_config_files dlls/ntdsapi/Makefile"
20604
12c169d2
AJ
20605ac_config_files="$ac_config_files dlls/ntoskrnl.exe/Makefile"
20606
a8697b58
DR
20607ac_config_files="$ac_config_files dlls/ntprint/Makefile"
20608
a114483e
DR
20609ac_config_files="$ac_config_files dlls/ntprint/tests/Makefile"
20610
fbc80d79
MM
20611ac_config_files="$ac_config_files dlls/objsel/Makefile"
20612
20613ac_config_files="$ac_config_files dlls/odbc32/Makefile"
20614
20615ac_config_files="$ac_config_files dlls/odbccp32/Makefile"
20616
20617ac_config_files="$ac_config_files dlls/odbccp32/tests/Makefile"
20618
20619ac_config_files="$ac_config_files dlls/ole32/Makefile"
20620
20621ac_config_files="$ac_config_files dlls/ole32/tests/Makefile"
20622
20623ac_config_files="$ac_config_files dlls/oleacc/Makefile"
20624
20625ac_config_files="$ac_config_files dlls/oleaut32/Makefile"
20626
20627ac_config_files="$ac_config_files dlls/oleaut32/tests/Makefile"
20628
20629ac_config_files="$ac_config_files dlls/olecli32/Makefile"
20630
20631ac_config_files="$ac_config_files dlls/oledlg/Makefile"
20632
20633ac_config_files="$ac_config_files dlls/olepro32/Makefile"
20634
20635ac_config_files="$ac_config_files dlls/olesvr32/Makefile"
20636
7db1bd9f
SL
20637ac_config_files="$ac_config_files dlls/olethk32/Makefile"
20638
fbc80d79
MM
20639ac_config_files="$ac_config_files dlls/opengl32/Makefile"
20640
219269c0
RC
20641ac_config_files="$ac_config_files dlls/opengl32/tests/Makefile"
20642
41f15a76
AT
20643ac_config_files="$ac_config_files dlls/pdh/Makefile"
20644
0a6f6874
HL
20645ac_config_files="$ac_config_files dlls/pdh/tests/Makefile"
20646
fbc80d79
MM
20647ac_config_files="$ac_config_files dlls/powrprof/Makefile"
20648
3fd4a536
DR
20649ac_config_files="$ac_config_files dlls/printui/Makefile"
20650
fbc80d79
MM
20651ac_config_files="$ac_config_files dlls/psapi/Makefile"
20652
20653ac_config_files="$ac_config_files dlls/psapi/tests/Makefile"
20654
20655ac_config_files="$ac_config_files dlls/pstorec/Makefile"
20656
20657ac_config_files="$ac_config_files dlls/qcap/Makefile"
20658
2b0255f6
RS
20659ac_config_files="$ac_config_files dlls/qmgr/Makefile"
20660
fbc80d79
MM
20661ac_config_files="$ac_config_files dlls/quartz/Makefile"
20662
20663ac_config_files="$ac_config_files dlls/quartz/tests/Makefile"
20664
20665ac_config_files="$ac_config_files dlls/query/Makefile"
20666
20667ac_config_files="$ac_config_files dlls/rasapi32/Makefile"
20668
20669ac_config_files="$ac_config_files dlls/resutils/Makefile"
20670
20671ac_config_files="$ac_config_files dlls/riched20/Makefile"
20672
20673ac_config_files="$ac_config_files dlls/riched20/tests/Makefile"
20674
20675ac_config_files="$ac_config_files dlls/riched32/Makefile"
20676
20677ac_config_files="$ac_config_files dlls/rpcrt4/Makefile"
20678
20679ac_config_files="$ac_config_files dlls/rpcrt4/tests/Makefile"
20680
20681ac_config_files="$ac_config_files dlls/rsabase/Makefile"
20682
20683ac_config_files="$ac_config_files dlls/rsabase/tests/Makefile"
20684
20685ac_config_files="$ac_config_files dlls/rsaenh/Makefile"
20686
20687ac_config_files="$ac_config_files dlls/rsaenh/tests/Makefile"
20688
20689ac_config_files="$ac_config_files dlls/sane.ds/Makefile"
20690
361c6f20
RS
20691ac_config_files="$ac_config_files dlls/schannel/Makefile"
20692
735df246
YF
20693ac_config_files="$ac_config_files dlls/schannel/tests/Makefile"
20694
fbc80d79
MM
20695ac_config_files="$ac_config_files dlls/secur32/Makefile"
20696
20697ac_config_files="$ac_config_files dlls/secur32/tests/Makefile"
20698
20699ac_config_files="$ac_config_files dlls/security/Makefile"
20700
20701ac_config_files="$ac_config_files dlls/sensapi/Makefile"
20702
20703ac_config_files="$ac_config_files dlls/serialui/Makefile"
20704
20705ac_config_files="$ac_config_files dlls/serialui/tests/Makefile"
20706
20707ac_config_files="$ac_config_files dlls/setupapi/Makefile"
20708
20709ac_config_files="$ac_config_files dlls/setupapi/tests/Makefile"
20710
20711ac_config_files="$ac_config_files dlls/sfc/Makefile"
20712
20713ac_config_files="$ac_config_files dlls/sfc_os/Makefile"
20714
20715ac_config_files="$ac_config_files dlls/shdoclc/Makefile"
20716
20717ac_config_files="$ac_config_files dlls/shdocvw/Makefile"
20718
20719ac_config_files="$ac_config_files dlls/shdocvw/tests/Makefile"
20720
20721ac_config_files="$ac_config_files dlls/shell32/Makefile"
20722
20723ac_config_files="$ac_config_files dlls/shell32/tests/Makefile"
20724
20725ac_config_files="$ac_config_files dlls/shfolder/Makefile"
20726
20727ac_config_files="$ac_config_files dlls/shlwapi/Makefile"
20728
20729ac_config_files="$ac_config_files dlls/shlwapi/tests/Makefile"
20730
20731ac_config_files="$ac_config_files dlls/snmpapi/Makefile"
20732
20733ac_config_files="$ac_config_files dlls/snmpapi/tests/Makefile"
20734
20735ac_config_files="$ac_config_files dlls/spoolss/Makefile"
20736
cf122bab
DR
20737ac_config_files="$ac_config_files dlls/spoolss/tests/Makefile"
20738
fbc80d79
MM
20739ac_config_files="$ac_config_files dlls/stdole2.tlb/Makefile"
20740
20741ac_config_files="$ac_config_files dlls/stdole32.tlb/Makefile"
20742
20743ac_config_files="$ac_config_files dlls/sti/Makefile"
20744
20745ac_config_files="$ac_config_files dlls/strmiids/Makefile"
20746
20747ac_config_files="$ac_config_files dlls/svrapi/Makefile"
20748
74977dae
ED
20749ac_config_files="$ac_config_files dlls/sxs/Makefile"
20750
fbc80d79
MM
20751ac_config_files="$ac_config_files dlls/tapi32/Makefile"
20752
20753ac_config_files="$ac_config_files dlls/twain_32/Makefile"
20754
20755ac_config_files="$ac_config_files dlls/unicows/Makefile"
20756
20757ac_config_files="$ac_config_files dlls/url/Makefile"
20758
20759ac_config_files="$ac_config_files dlls/urlmon/Makefile"
20760
20761ac_config_files="$ac_config_files dlls/urlmon/tests/Makefile"
20762
20763ac_config_files="$ac_config_files dlls/user32/Makefile"
20764
20765ac_config_files="$ac_config_files dlls/user32/tests/Makefile"
20766
20767ac_config_files="$ac_config_files dlls/userenv/Makefile"
20768
20769ac_config_files="$ac_config_files dlls/usp10/Makefile"
20770
20771ac_config_files="$ac_config_files dlls/usp10/tests/Makefile"
20772
20773ac_config_files="$ac_config_files dlls/uuid/Makefile"
20774
20775ac_config_files="$ac_config_files dlls/uxtheme/Makefile"
20776
20777ac_config_files="$ac_config_files dlls/uxtheme/tests/Makefile"
20778
20779ac_config_files="$ac_config_files dlls/vdhcp.vxd/Makefile"
20780
20781ac_config_files="$ac_config_files dlls/vdmdbg/Makefile"
20782
20783ac_config_files="$ac_config_files dlls/version/Makefile"
20784
20785ac_config_files="$ac_config_files dlls/version/tests/Makefile"
20786
20787ac_config_files="$ac_config_files dlls/vmm.vxd/Makefile"
20788
20789ac_config_files="$ac_config_files dlls/vnbt.vxd/Makefile"
20790
20791ac_config_files="$ac_config_files dlls/vnetbios.vxd/Makefile"
20792
20793ac_config_files="$ac_config_files dlls/vtdapi.vxd/Makefile"
20794
20795ac_config_files="$ac_config_files dlls/vwin32.vxd/Makefile"
20796
20797ac_config_files="$ac_config_files dlls/w32skrnl/Makefile"
20798
20799ac_config_files="$ac_config_files dlls/winealsa.drv/Makefile"
20800
fbc80d79
MM
20801ac_config_files="$ac_config_files dlls/wineaudioio.drv/Makefile"
20802
20803ac_config_files="$ac_config_files dlls/winecoreaudio.drv/Makefile"
20804
20805ac_config_files="$ac_config_files dlls/winecrt0/Makefile"
20806
20807ac_config_files="$ac_config_files dlls/wined3d/Makefile"
20808
20809ac_config_files="$ac_config_files dlls/winedos/Makefile"
20810
20811ac_config_files="$ac_config_files dlls/wineesd.drv/Makefile"
20812
20813ac_config_files="$ac_config_files dlls/winejack.drv/Makefile"
20814
20815ac_config_files="$ac_config_files dlls/winejoystick.drv/Makefile"
20816
20817ac_config_files="$ac_config_files dlls/winemp3.acm/Makefile"
20818
20819ac_config_files="$ac_config_files dlls/winenas.drv/Makefile"
20820
20821ac_config_files="$ac_config_files dlls/wineoss.drv/Makefile"
20822
20823ac_config_files="$ac_config_files dlls/wineps.drv/Makefile"
20824
20825ac_config_files="$ac_config_files dlls/winequartz.drv/Makefile"
20826
20827ac_config_files="$ac_config_files dlls/winex11.drv/Makefile"
20828
20829ac_config_files="$ac_config_files dlls/wing32/Makefile"
20830
21572967
JC
20831ac_config_files="$ac_config_files dlls/winhttp/Makefile"
20832
fbc80d79
MM
20833ac_config_files="$ac_config_files dlls/wininet/Makefile"
20834
20835ac_config_files="$ac_config_files dlls/wininet/tests/Makefile"
20836
20837ac_config_files="$ac_config_files dlls/winmm/Makefile"
20838
20839ac_config_files="$ac_config_files dlls/winmm/tests/Makefile"
20840
20841ac_config_files="$ac_config_files dlls/winnls32/Makefile"
20842
23df68d8
MI
20843ac_config_files="$ac_config_files dlls/winscard/Makefile"
20844
fbc80d79
MM
20845ac_config_files="$ac_config_files dlls/winspool.drv/Makefile"
20846
20847ac_config_files="$ac_config_files dlls/winspool.drv/tests/Makefile"
20848
20849ac_config_files="$ac_config_files dlls/wintab32/Makefile"
20850
20851ac_config_files="$ac_config_files dlls/wintrust/Makefile"
20852
20853ac_config_files="$ac_config_files dlls/wintrust/tests/Makefile"
20854
20855ac_config_files="$ac_config_files dlls/wldap32/Makefile"
20856
20857ac_config_files="$ac_config_files dlls/wnaspi32/Makefile"
20858
20859ac_config_files="$ac_config_files dlls/wow32/Makefile"
20860
20861ac_config_files="$ac_config_files dlls/ws2_32/Makefile"
20862
20863ac_config_files="$ac_config_files dlls/ws2_32/tests/Makefile"
20864
20865ac_config_files="$ac_config_files dlls/wsock32/Makefile"
20866
20867ac_config_files="$ac_config_files dlls/wtsapi32/Makefile"
20868
20869ac_config_files="$ac_config_files documentation/Makefile"
20870
20871ac_config_files="$ac_config_files fonts/Makefile"
20872
20873ac_config_files="$ac_config_files include/Makefile"
20874
20875ac_config_files="$ac_config_files libs/Makefile"
20876
20877ac_config_files="$ac_config_files libs/port/Makefile"
20878
20879ac_config_files="$ac_config_files libs/wine/Makefile"
20880
20881ac_config_files="$ac_config_files libs/wpp/Makefile"
20882
20883ac_config_files="$ac_config_files loader/Makefile"
20884
20885ac_config_files="$ac_config_files programs/Makefile"
20886
20887ac_config_files="$ac_config_files programs/clock/Makefile"
20888
20889ac_config_files="$ac_config_files programs/cmd/Makefile"
20890
20891ac_config_files="$ac_config_files programs/cmdlgtst/Makefile"
20892
20893ac_config_files="$ac_config_files programs/control/Makefile"
20894
20895ac_config_files="$ac_config_files programs/eject/Makefile"
20896
20897ac_config_files="$ac_config_files programs/expand/Makefile"
20898
20899ac_config_files="$ac_config_files programs/explorer/Makefile"
20900
20901ac_config_files="$ac_config_files programs/hh/Makefile"
20902
20903ac_config_files="$ac_config_files programs/icinfo/Makefile"
20904
20905ac_config_files="$ac_config_files programs/iexplore/Makefile"
20906
20907ac_config_files="$ac_config_files programs/msiexec/Makefile"
20908
451616ee
TS
20909ac_config_files="$ac_config_files programs/net/Makefile"
20910
fbc80d79
MM
20911ac_config_files="$ac_config_files programs/notepad/Makefile"
20912
20913ac_config_files="$ac_config_files programs/oleview/Makefile"
20914
20915ac_config_files="$ac_config_files programs/progman/Makefile"
20916
20917ac_config_files="$ac_config_files programs/regedit/Makefile"
20918
20919ac_config_files="$ac_config_files programs/regsvr32/Makefile"
20920
20921ac_config_files="$ac_config_files programs/rpcss/Makefile"
20922
20923ac_config_files="$ac_config_files programs/rundll32/Makefile"
20924
d1ddc9c1
JC
20925ac_config_files="$ac_config_files programs/spoolsv/Makefile"
20926
fbc80d79
MM
20927ac_config_files="$ac_config_files programs/start/Makefile"
20928
20929ac_config_files="$ac_config_files programs/taskmgr/Makefile"
20930
20931ac_config_files="$ac_config_files programs/uninstaller/Makefile"
20932
20933ac_config_files="$ac_config_files programs/view/Makefile"
20934
20935ac_config_files="$ac_config_files programs/wineboot/Makefile"
20936
20937ac_config_files="$ac_config_files programs/winebrowser/Makefile"
20938
20939ac_config_files="$ac_config_files programs/winecfg/Makefile"
20940
20941ac_config_files="$ac_config_files programs/wineconsole/Makefile"
20942
20943ac_config_files="$ac_config_files programs/winedbg/Makefile"
20944
c81d0995
AJ
20945ac_config_files="$ac_config_files programs/winedevice/Makefile"
20946
fbc80d79
MM
20947ac_config_files="$ac_config_files programs/winefile/Makefile"
20948
20949ac_config_files="$ac_config_files programs/winemenubuilder/Makefile"
20950
20951ac_config_files="$ac_config_files programs/winemine/Makefile"
20952
20953ac_config_files="$ac_config_files programs/winepath/Makefile"
20954
20955ac_config_files="$ac_config_files programs/winetest/Makefile"
20956
20957ac_config_files="$ac_config_files programs/winevdm/Makefile"
20958
20959ac_config_files="$ac_config_files programs/winhelp/Makefile"
20960
20961ac_config_files="$ac_config_files programs/winver/Makefile"
20962
20963ac_config_files="$ac_config_files programs/wordpad/Makefile"
20964
2777a94d
MZ
20965ac_config_files="$ac_config_files programs/write/Makefile"
20966
921edab7
JE
20967ac_config_files="$ac_config_files programs/xcopy/Makefile"
20968
fbc80d79
MM
20969ac_config_files="$ac_config_files server/Makefile"
20970
20971ac_config_files="$ac_config_files tools/Makefile"
20972
20973ac_config_files="$ac_config_files tools/widl/Makefile"
20974
20975ac_config_files="$ac_config_files tools/winebuild/Makefile"
20976
20977ac_config_files="$ac_config_files tools/winedump/Makefile"
20978
20979ac_config_files="$ac_config_files tools/winegcc/Makefile"
20980
20981ac_config_files="$ac_config_files tools/wmc/Makefile"
20982
20983ac_config_files="$ac_config_files tools/wrc/Makefile"
daa2886c 20984
626f425b 20985
f5818d2f 20986cat >confcache <<\_ACEOF
e2991ea7
AJ
20987# This file is a shell script that caches the results of configure
20988# tests run on this system so they can be shared between configure
f5818d2f
AJ
20989# scripts and configure runs, see configure's option --config-cache.
20990# It is not useful on other systems. If it contains results you don't
20991# want to keep, you may remove or edit it.
e2991ea7 20992#
f5818d2f
AJ
20993# config.status only pays attention to the cache file if you give it
20994# the --recheck option to rerun configure.
e2991ea7 20995#
11af04e3 20996# `ac_cv_env_foo' variables (set or unset) will be overridden when
f5818d2f
AJ
20997# loading this file, other *unset* `ac_cv_foo' will be assigned the
20998# following values.
20999
21000_ACEOF
21001
7e6ae4ba
AJ
21002# The following way of writing the cache mishandles newlines in values,
21003# but we know of no workaround that is simple, portable, and efficient.
fc6ffb29 21004# So, we kill variables containing newlines.
e2991ea7
AJ
21005# Ultrix sh set writes to stderr and can't be redirected directly,
21006# and sets the high bit in the cache file unless we assign to the vars.
fc6ffb29
AJ
21007(
21008 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21009 eval ac_val=\$$ac_var
21010 case $ac_val in #(
21011 *${as_nl}*)
21012 case $ac_var in #(
21013 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21014echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21015 esac
21016 case $ac_var in #(
21017 _ | IFS | as_nl) ;; #(
21018 *) $as_unset $ac_var ;;
21019 esac ;;
21020 esac
21021 done
21022
f5818d2f 21023 (set) 2>&1 |
fc6ffb29
AJ
21024 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21025 *${as_nl}ac_space=\ *)
f5818d2f
AJ
21026 # `set' does not quote correctly, so add quotes (double-quote
21027 # substitution turns \\\\ into \\, and sed turns \\ into \).
21028 sed -n \
875927f6
AJ
21029 "s/'/'\\\\''/g;
21030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
fc6ffb29 21031 ;; #(
f5818d2f
AJ
21032 *)
21033 # `set' quotes correctly as required by POSIX, so do not add quotes.
fc6ffb29 21034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f5818d2f 21035 ;;
fc6ffb29
AJ
21036 esac |
21037 sort
21038) |
f5818d2f 21039 sed '
fc6ffb29 21040 /^ac_cv_env_/b end
f5818d2f 21041 t clear
fc6ffb29 21042 :clear
f5818d2f
AJ
21043 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21044 t end
fc6ffb29
AJ
21045 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21046 :end' >>confcache
0ebeb530
JW
21047if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21048 if test -w "$cache_file"; then
fc6ffb29
AJ
21049 test "x$cache_file" != "x/dev/null" &&
21050 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21051echo "$as_me: updating cache $cache_file" >&6;}
f5818d2f 21052 cat confcache >$cache_file
e2991ea7 21053 else
fc6ffb29
AJ
21054 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21055echo "$as_me: not updating unwritable cache $cache_file" >&6;}
e2991ea7
AJ
21056 fi
21057fi
21058rm -f confcache
21059
e2991ea7
AJ
21060test "x$prefix" = xNONE && prefix=$ac_default_prefix
21061# Let make expand exec_prefix.
21062test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21063
18f92e76 21064DEFS=-DHAVE_CONFIG_H
e2991ea7 21065
11af04e3
AJ
21066ac_libobjs=
21067ac_ltlibobjs=
21068for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21069 # 1. Remove the extension, and $U if already installed.
fc6ffb29
AJ
21070 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21071 ac_i=`echo "$ac_i" | sed "$ac_script"`
21072 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21073 # will be set to the directory where LIBOBJS objects are built.
21074 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21075 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11af04e3
AJ
21076done
21077LIBOBJS=$ac_libobjs
21078
21079LTLIBOBJS=$ac_ltlibobjs
21080
21081
daa2886c 21082
e2991ea7 21083: ${CONFIG_STATUS=./config.status}
f5818d2f
AJ
21084ac_clean_files_save=$ac_clean_files
21085ac_clean_files="$ac_clean_files $CONFIG_STATUS"
daa2886c 21086{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
f5818d2f
AJ
21087echo "$as_me: creating $CONFIG_STATUS" >&6;}
21088cat >$CONFIG_STATUS <<_ACEOF
21089#! $SHELL
daa2886c 21090# Generated by $as_me.
e2991ea7 21091# Run this file to recreate the current configuration.
e2991ea7 21092# Compiler output produced by configure, useful for debugging
f5818d2f 21093# configure, is in config.log if it exists.
e2991ea7 21094
f5818d2f 21095debug=false
e24bcc77
AJ
21096ac_cs_recheck=false
21097ac_cs_silent=false
f5818d2f 21098SHELL=\${CONFIG_SHELL-$SHELL}
f5818d2f
AJ
21099_ACEOF
21100
21101cat >>$CONFIG_STATUS <<\_ACEOF
daa2886c
AJ
21102## --------------------- ##
21103## M4sh Initialization. ##
21104## --------------------- ##
21105
dc9f3843
AJ
21106# Be more Bourne compatible
21107DUALCASE=1; export DUALCASE # for MKS sh
f5818d2f
AJ
21108if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21109 emulate sh
21110 NULLCMD=:
11af04e3
AJ
21111 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21112 # is contrary to our usage. Disable this feature.
21113 alias -g '${1+"$@"}'='"$@"'
fc6ffb29
AJ
21114 setopt NO_GLOB_SUBST
21115else
dc9f3843
AJ
21116 case `(set -o) 2>/dev/null` in
21117 *posix*) set -o posix ;;
21118esac
21119
f5818d2f 21120fi
dc9f3843
AJ
21121
21122
f5818d2f 21123
fc6ffb29
AJ
21124
21125# PATH needs CR
21126# Avoid depending upon Character Ranges.
21127as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21128as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21129as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21130as_cr_digits='0123456789'
21131as_cr_alnum=$as_cr_Letters$as_cr_digits
21132
21133# The user is always right.
21134if test "${PATH_SEPARATOR+set}" != set; then
21135 echo "#! /bin/sh" >conf$$.sh
21136 echo "exit 0" >>conf$$.sh
21137 chmod +x conf$$.sh
21138 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21139 PATH_SEPARATOR=';'
21140 else
21141 PATH_SEPARATOR=:
21142 fi
21143 rm -f conf$$.sh
21144fi
21145
daa2886c 21146# Support unset when possible.
875927f6 21147if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
daa2886c
AJ
21148 as_unset=unset
21149else
21150 as_unset=false
21151fi
21152
11af04e3 21153
fc6ffb29
AJ
21154# IFS
21155# We need space, tab and new line, in precisely that order. Quoting is
21156# there to prevent editors from complaining about space-tab.
21157# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21158# splitting by setting IFS to empty value.)
21159as_nl='
21160'
21161IFS=" "" $as_nl"
21162
21163# Find who we are. Look in the path if we contain no directory separator.
21164case $0 in
21165 *[\\/]* ) as_myself=$0 ;;
21166 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21167for as_dir in $PATH
21168do
21169 IFS=$as_save_IFS
21170 test -z "$as_dir" && as_dir=.
21171 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21172done
21173IFS=$as_save_IFS
21174
21175 ;;
21176esac
21177# We did not find ourselves, most probably we were run as `sh COMMAND'
21178# in which case we are not to be found in the path.
21179if test "x$as_myself" = x; then
21180 as_myself=$0
21181fi
21182if test ! -f "$as_myself"; then
21183 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21184 { (exit 1); exit 1; }
21185fi
21186
11af04e3 21187# Work around bugs in pre-3.0 UWIN ksh.
fc6ffb29
AJ
21188for as_var in ENV MAIL MAILPATH
21189do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21190done
11af04e3
AJ
21191PS1='$ '
21192PS2='> '
21193PS4='+ '
21194
21195# NLS nuisances.
e24bcc77
AJ
21196for as_var in \
21197 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21198 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21199 LC_TELEPHONE LC_TIME
11af04e3 21200do
875927f6 21201 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11af04e3
AJ
21202 eval $as_var=C; export $as_var
21203 else
fc6ffb29 21204 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11af04e3
AJ
21205 fi
21206done
21207
21208# Required to use basename.
fc6ffb29
AJ
21209if expr a : '\(a\)' >/dev/null 2>&1 &&
21210 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11af04e3
AJ
21211 as_expr=expr
21212else
21213 as_expr=false
21214fi
21215
fc6ffb29 21216if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11af04e3
AJ
21217 as_basename=basename
21218else
21219 as_basename=false
21220fi
daa2886c
AJ
21221
21222
f5818d2f 21223# Name of the executable.
fc6ffb29 21224as_me=`$as_basename -- "$0" ||
daa2886c
AJ
21225$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21226 X"$0" : 'X\(//\)$' \| \
fc6ffb29 21227 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
daa2886c 21228echo X/"$0" |
fc6ffb29
AJ
21229 sed '/^.*\/\([^/][^/]*\)\/*$/{
21230 s//\1/
21231 q
21232 }
21233 /^X\/\(\/\/\)$/{
21234 s//\1/
21235 q
21236 }
21237 /^X\/\(\/\).*/{
21238 s//\1/
21239 q
21240 }
21241 s/.*/./; q'`
daa2886c 21242
fc6ffb29
AJ
21243# CDPATH.
21244$as_unset CDPATH
11af04e3 21245
daa2886c
AJ
21246
21247
21248 as_lineno_1=$LINENO
21249 as_lineno_2=$LINENO
daa2886c 21250 test "x$as_lineno_1" != "x$as_lineno_2" &&
fc6ffb29 21251 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
daa2886c
AJ
21252
21253 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21254 # uniformly replaced by the line number. The first 'sed' inserts a
fc6ffb29
AJ
21255 # line-number line after each line using $LINENO; the second 'sed'
21256 # does the real work. The second script uses 'N' to pair each
21257 # line-number line with the line containing $LINENO, and appends
21258 # trailing '-' during substitution so that $LINENO is not a special
21259 # case at line end.
daa2886c 21260 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
fc6ffb29
AJ
21261 # scripts with optimization help from Paolo Bonzini. Blame Lee
21262 # E. McMahon (1931-1989) for sed's syntax. :-)
21263 sed -n '
21264 p
21265 /[$]LINENO/=
21266 ' <$as_myself |
daa2886c 21267 sed '
fc6ffb29
AJ
21268 s/[$]LINENO.*/&-/
21269 t lineno
21270 b
21271 :lineno
daa2886c 21272 N
fc6ffb29
AJ
21273 :loop
21274 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
daa2886c 21275 t loop
fc6ffb29 21276 s/-\n.*//
daa2886c 21277 ' >$as_me.lineno &&
fc6ffb29
AJ
21278 chmod +x "$as_me.lineno" ||
21279 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
daa2886c
AJ
21280 { (exit 1); exit 1; }; }
21281
21282 # Don't try to exec as it changes $[0], causing all sort of problems
21283 # (the dirname of $[0] is not the place where we might find the
fc6ffb29
AJ
21284 # original and so on. Autoconf is especially sensitive to this).
21285 . "./$as_me.lineno"
daa2886c
AJ
21286 # Exit status is that of the last command.
21287 exit
21288}
21289
21290
0ebeb530 21291if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
fc6ffb29
AJ
21292 as_dirname=dirname
21293else
21294 as_dirname=false
21295fi
21296
21297ECHO_C= ECHO_N= ECHO_T=
21298case `echo -n x` in
21299-n*)
21300 case `echo 'x\c'` in
21301 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21302 *) ECHO_C='\c';;
21303 esac;;
21304*)
21305 ECHO_N='-n';;
daa2886c 21306esac
f5818d2f 21307
fc6ffb29
AJ
21308if expr a : '\(a\)' >/dev/null 2>&1 &&
21309 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f5818d2f
AJ
21310 as_expr=expr
21311else
21312 as_expr=false
21313fi
21314
21315rm -f conf$$ conf$$.exe conf$$.file
fc6ffb29
AJ
21316if test -d conf$$.dir; then
21317 rm -f conf$$.dir/conf$$.file
21318else
21319 rm -f conf$$.dir
21320 mkdir conf$$.dir
21321fi
f5818d2f
AJ
21322echo >conf$$.file
21323if ln -s conf$$.file conf$$ 2>/dev/null; then
fc6ffb29
AJ
21324 as_ln_s='ln -s'
21325 # ... but there are two gotchas:
21326 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21327 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21328 # In both cases, we have to default to `cp -p'.
21329 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f5818d2f 21330 as_ln_s='cp -p'
f5818d2f
AJ
21331elif ln conf$$.file conf$$ 2>/dev/null; then
21332 as_ln_s=ln
21333else
21334 as_ln_s='cp -p'
21335fi
fc6ffb29
AJ
21336rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21337rmdir conf$$.dir 2>/dev/null
f5818d2f 21338
11af04e3
AJ
21339if mkdir -p . 2>/dev/null; then
21340 as_mkdir_p=:
21341else
875927f6 21342 test -d ./-p && rmdir ./-p
11af04e3
AJ
21343 as_mkdir_p=false
21344fi
21345
dc9f3843
AJ
21346if test -x / >/dev/null 2>&1; then
21347 as_test_x='test -x'
fc6ffb29 21348else
dc9f3843
AJ
21349 if ls -dL / >/dev/null 2>&1; then
21350 as_ls_L_option=L
21351 else
21352 as_ls_L_option=
21353 fi
21354 as_test_x='
21355 eval sh -c '\''
21356 if test -d "$1"; then
21357 test -d "$1/.";
21358 else
21359 case $1 in
21360 -*)set "./$1";;
21361 esac;
21362 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21363 ???[sx]*):;;*)false;;esac;fi
21364 '\'' sh
21365 '
fc6ffb29 21366fi
dc9f3843 21367as_executable_p=$as_test_x
f5818d2f 21368
daa2886c 21369# Sed expression to map a string onto a valid CPP name.
875927f6 21370as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
daa2886c
AJ
21371
21372# Sed expression to map a string onto a valid variable name.
875927f6 21373as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
f5818d2f 21374
f5818d2f 21375
f5818d2f
AJ
21376exec 6>&1
21377
fc6ffb29 21378# Save the log message, to keep $[0] and so on meaningful, and to
daa2886c 21379# report actual input values of CONFIG_FILES etc. instead of their
fc6ffb29
AJ
21380# values after options handling.
21381ac_log="
7be8a646 21382This file was extended by Wine $as_me 0.9.47, which was
dc9f3843 21383generated by GNU Autoconf 2.61. Invocation command line was
daa2886c
AJ
21384
21385 CONFIG_FILES = $CONFIG_FILES
21386 CONFIG_HEADERS = $CONFIG_HEADERS
21387 CONFIG_LINKS = $CONFIG_LINKS
21388 CONFIG_COMMANDS = $CONFIG_COMMANDS
21389 $ $0 $@
21390
fc6ffb29
AJ
21391on `(hostname || uname -n) 2>/dev/null | sed 1q`
21392"
21393
f5818d2f
AJ
21394_ACEOF
21395
fc6ffb29 21396cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f 21397# Files that config.status was made for.
fc6ffb29
AJ
21398config_files="$ac_config_files"
21399config_headers="$ac_config_headers"
21400config_commands="$ac_config_commands"
f5818d2f 21401
fc6ffb29 21402_ACEOF
f5818d2f 21403
daa2886c 21404cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
21405ac_cs_usage="\
21406\`$as_me' instantiates files from templates according to the
21407current configuration.
21408
21409Usage: $0 [OPTIONS] [FILE]...
21410
21411 -h, --help print this help, then exit
78bd1948 21412 -V, --version print version number and configuration settings, then exit
e24bcc77 21413 -q, --quiet do not print progress messages
f5818d2f
AJ
21414 -d, --debug don't remove temporary files
21415 --recheck update $as_me by reconfiguring in the same conditions
21416 --file=FILE[:TEMPLATE]
875927f6 21417 instantiate the configuration file FILE
f5818d2f 21418 --header=FILE[:TEMPLATE]
875927f6 21419 instantiate the configuration header FILE
f5818d2f
AJ
21420
21421Configuration files:
21422$config_files
21423
21424Configuration headers:
21425$config_headers
21426
21427Configuration commands:
21428$config_commands
21429
21430Report bugs to <bug-autoconf@gnu.org>."
f5818d2f 21431
fc6ffb29 21432_ACEOF
daa2886c 21433cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f 21434ac_cs_version="\\
7be8a646 21435Wine config.status 0.9.47
dc9f3843 21436configured by $0, generated by GNU Autoconf 2.61,
0ebeb530 21437 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
f5818d2f 21438
fc6ffb29 21439Copyright (C) 2006 Free Software Foundation, Inc.
f5818d2f
AJ
21440This config.status script is free software; the Free Software Foundation
21441gives unlimited permission to copy, distribute and modify it."
fc6ffb29
AJ
21442
21443ac_pwd='$ac_pwd'
21444srcdir='$srcdir'
21445INSTALL='$INSTALL'
daa2886c 21446_ACEOF
f5818d2f 21447
daa2886c 21448cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
21449# If no file are specified by the user, then we need to provide default
21450# value. By we need to know if files were specified by the user.
21451ac_need_defaults=:
21452while test $# != 0
e2991ea7 21453do
f5818d2f
AJ
21454 case $1 in
21455 --*=*)
fc6ffb29
AJ
21456 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21457 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11af04e3
AJ
21458 ac_shift=:
21459 ;;
fc6ffb29 21460 *)
11af04e3
AJ
21461 ac_option=$1
21462 ac_optarg=$2
21463 ac_shift=shift
f5818d2f 21464 ;;
f5818d2f
AJ
21465 esac
21466
11af04e3 21467 case $ac_option in
f5818d2f 21468 # Handling of the options.
e24bcc77
AJ
21469 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21470 ac_cs_recheck=: ;;
fc6ffb29
AJ
21471 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21472 echo "$ac_cs_version"; exit ;;
21473 --debug | --debu | --deb | --de | --d | -d )
f5818d2f
AJ
21474 debug=: ;;
21475 --file | --fil | --fi | --f )
11af04e3
AJ
21476 $ac_shift
21477 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
f5818d2f
AJ
21478 ac_need_defaults=false;;
21479 --header | --heade | --head | --hea )
11af04e3
AJ
21480 $ac_shift
21481 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
f5818d2f 21482 ac_need_defaults=false;;
fc6ffb29
AJ
21483 --he | --h)
21484 # Conflict between --help and --header
21485 { echo "$as_me: error: ambiguous option: $1
21486Try \`$0 --help' for more information." >&2
21487 { (exit 1); exit 1; }; };;
21488 --help | --hel | -h )
21489 echo "$ac_cs_usage"; exit ;;
e24bcc77
AJ
21490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21491 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21492 ac_cs_silent=: ;;
f5818d2f
AJ
21493
21494 # This is an error.
fc6ffb29
AJ
21495 -*) { echo "$as_me: error: unrecognized option: $1
21496Try \`$0 --help' for more information." >&2
f5818d2f
AJ
21497 { (exit 1); exit 1; }; } ;;
21498
fc6ffb29
AJ
21499 *) ac_config_targets="$ac_config_targets $1"
21500 ac_need_defaults=false ;;
f5818d2f 21501
e2991ea7 21502 esac
f5818d2f 21503 shift
e2991ea7
AJ
21504done
21505
e24bcc77
AJ
21506ac_configure_extra_args=
21507
21508if $ac_cs_silent; then
21509 exec 6>/dev/null
21510 ac_configure_extra_args="$ac_configure_extra_args --silent"
21511fi
21512
21513_ACEOF
21514cat >>$CONFIG_STATUS <<_ACEOF
21515if \$ac_cs_recheck; then
0ebeb530 21516 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
fc6ffb29
AJ
21517 CONFIG_SHELL=$SHELL
21518 export CONFIG_SHELL
0ebeb530 21519 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
e24bcc77
AJ
21520fi
21521
f5818d2f 21522_ACEOF
fc6ffb29
AJ
21523cat >>$CONFIG_STATUS <<\_ACEOF
21524exec 5>>config.log
21525{
21526 echo
21527 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21528## Running $as_me. ##
21529_ASBOX
21530 echo "$ac_log"
21531} >&5
e2991ea7 21532
fc6ffb29
AJ
21533_ACEOF
21534cat >>$CONFIG_STATUS <<_ACEOF
21535_ACEOF
daa2886c
AJ
21536
21537cat >>$CONFIG_STATUS <<\_ACEOF
fc6ffb29
AJ
21538
21539# Handling of arguments.
f5818d2f
AJ
21540for ac_config_target in $ac_config_targets
21541do
fc6ffb29
AJ
21542 case $ac_config_target in
21543 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
c4704c2d 21544 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
7dfc4477
AJ
21545 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
21546 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
1c60e3bf 21547 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
b8a2e3b8 21548 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
fc6ffb29
AJ
21549 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
21550 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
21551 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
21552 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
21553 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
21554 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
fc6ffb29
AJ
21555 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
21556 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21557 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
0da02fb2 21558 "dlls/acledit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/acledit/Makefile" ;;
fc6ffb29
AJ
21559 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
21560 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
21561 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
21562 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
21563 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
21564 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
21565 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
21566 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
21567 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
ea0361f3 21568 "dlls/browseui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/Makefile" ;;
7206e106 21569 "dlls/browseui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/browseui/tests/Makefile" ;;
fc6ffb29
AJ
21570 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
21571 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
21572 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
21573 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
21574 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
493bc6b8 21575 "dlls/clusapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/clusapi/Makefile" ;;
fc6ffb29 21576 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
9c3b12bd 21577 "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
fc6ffb29
AJ
21578 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
21579 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
21580 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
955fe0da 21581 "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
5640b56e 21582 "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
c82fde40 21583 "dlls/credui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/credui/Makefile" ;;
fc6ffb29
AJ
21584 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
21585 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
21586 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
21587 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
d2ee3872 21588 "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
fc6ffb29 21589 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
0db109ff 21590 "dlls/d3d10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d10/Makefile" ;;
fc6ffb29
AJ
21591 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
21592 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
21593 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
21594 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
21595 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
21596 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
f50800b2 21597 "dlls/d3drm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/tests/Makefile" ;;
fc6ffb29
AJ
21598 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
21599 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
21600 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
21601 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
21602 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
21603 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
fe70c54a 21604 "dlls/ddrawex/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddrawex/Makefile" ;;
fc6ffb29
AJ
21605 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
21606 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
21607 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
21608 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
21609 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
21610 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
21611 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
21612 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
21613 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
21614 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
21615 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
21616 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
21617 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
21618 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
21619 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
21620 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
21621 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
d1331e62 21622 "dlls/dplayx/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/tests/Makefile" ;;
8caf0787 21623 "dlls/dpnaddr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnaddr/Makefile" ;;
fc6ffb29
AJ
21624 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
21625 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
5996c132 21626 "dlls/dpnlobby/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnlobby/Makefile" ;;
fc6ffb29
AJ
21627 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
21628 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
21629 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
c0ddd5e3 21630 "dlls/dwmapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dwmapi/Makefile" ;;
fc6ffb29
AJ
21631 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
21632 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
21633 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
21634 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
a2cd6430 21635 "dlls/faultrep/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/faultrep/Makefile" ;;
7dfc4477
AJ
21636 "dlls/gdi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/Makefile" ;;
21637 "dlls/gdi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/tests/Makefile" ;;
bed761c9 21638 "dlls/gdiplus/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdiplus/Makefile" ;;
fcd7a62e 21639 "dlls/gdiplus/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdiplus/tests/Makefile" ;;
fc6ffb29 21640 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
fc6ffb29 21641 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
d2d68702 21642 "dlls/hal/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hal/Makefile" ;;
fc6ffb29 21643 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
b89cafaf 21644 "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
b732e9b4 21645 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
a430db9e 21646 "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
a00aa039 21647 "dlls/hnetcfg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hnetcfg/Makefile" ;;
fc6ffb29
AJ
21648 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
21649 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
21650 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
21651 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
21652 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
21653 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
4d3877b6 21654 "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
b5871fa5 21655 "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
e9252251 21656 "dlls/inkobj/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inkobj/Makefile" ;;
4d3877b6 21657 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
fc6ffb29
AJ
21658 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
21659 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
21660 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
1e65d474 21661 "dlls/itss/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/tests/Makefile" ;;
489d87d1
AJ
21662 "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
21663 "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
2198d836 21664 "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
ecb97fc2 21665 "dlls/localspl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/tests/Makefile" ;;
d24bc087 21666 "dlls/localui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localui/Makefile" ;;
62e92795 21667 "dlls/localui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localui/tests/Makefile" ;;
fc6ffb29
AJ
21668 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
21669 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
21670 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
21671 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
21672 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
21673 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
21674 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
21675 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
21676 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
21677 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
21678 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
21679 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
21680 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
21681 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
21682 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
21683 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
21684 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
21685 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
21686 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
21687 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
21688 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
4fe6c3fa 21689 "dlls/mscoree/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscoree/Makefile" ;;
fc6ffb29
AJ
21690 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
21691 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
21692 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
021d06a4 21693 "dlls/mshtml.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml.tlb/Makefile" ;;
fc6ffb29
AJ
21694 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
21695 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
21696 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
21697 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
21698 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
44a808fb 21699 "dlls/msimtf/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimtf/Makefile" ;;
fc6ffb29
AJ
21700 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
21701 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
21702 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
455a4994 21703 "dlls/msvcirt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcirt/Makefile" ;;
fc6ffb29
AJ
21704 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
21705 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
21706 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
21707 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
21708 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
21709 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
21710 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
21711 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
21712 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
21713 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
21714 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
0b4eafad 21715 "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;;
fc6ffb29
AJ
21716 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
21717 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
21718 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
21719 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
21720 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
21721 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
12c169d2 21722 "dlls/ntoskrnl.exe/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntoskrnl.exe/Makefile" ;;
a8697b58 21723 "dlls/ntprint/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntprint/Makefile" ;;
a114483e 21724 "dlls/ntprint/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntprint/tests/Makefile" ;;
fc6ffb29
AJ
21725 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
21726 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
21727 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
cf6e0d82 21728 "dlls/odbccp32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/tests/Makefile" ;;
fc6ffb29
AJ
21729 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
21730 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
21731 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
21732 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
21733 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
21734 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
21735 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
21736 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
21737 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
7db1bd9f 21738 "dlls/olethk32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olethk32/Makefile" ;;
fc6ffb29 21739 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
219269c0 21740 "dlls/opengl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/tests/Makefile" ;;
41f15a76 21741 "dlls/pdh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/Makefile" ;;
0a6f6874 21742 "dlls/pdh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pdh/tests/Makefile" ;;
fc6ffb29 21743 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
3fd4a536 21744 "dlls/printui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/printui/Makefile" ;;
fc6ffb29
AJ
21745 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
21746 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
acb7f8ab 21747 "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
fc6ffb29 21748 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
2b0255f6 21749 "dlls/qmgr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qmgr/Makefile" ;;
fc6ffb29
AJ
21750 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
21751 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
defbc49b 21752 "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
fc6ffb29 21753 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
3ac07aa0 21754 "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;;
fc6ffb29
AJ
21755 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
21756 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
21757 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
21758 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
21759 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
21760 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
21761 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
21762 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
21763 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
21764 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
361c6f20 21765 "dlls/schannel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/Makefile" ;;
735df246 21766 "dlls/schannel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/schannel/tests/Makefile" ;;
fc6ffb29
AJ
21767 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
21768 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
21769 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
21770 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
21771 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
8650c570 21772 "dlls/serialui/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/tests/Makefile" ;;
fc6ffb29
AJ
21773 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
21774 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
21775 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
161897e1 21776 "dlls/sfc_os/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc_os/Makefile" ;;
2d3a5a61 21777 "dlls/shdoclc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdoclc/Makefile" ;;
fc6ffb29
AJ
21778 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
21779 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
21780 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
21781 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
21782 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
21783 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
21784 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
21785 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
396f6c05 21786 "dlls/snmpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/tests/Makefile" ;;
fc6ffb29 21787 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
cf122bab 21788 "dlls/spoolss/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/tests/Makefile" ;;
fc6ffb29
AJ
21789 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
21790 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
21791 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
21792 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
bb497631 21793 "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;;
74977dae 21794 "dlls/sxs/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sxs/Makefile" ;;
fc6ffb29
AJ
21795 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
21796 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
21797 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
21798 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
21799 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
21800 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
b8a2e3b8
AJ
21801 "dlls/user32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/Makefile" ;;
21802 "dlls/user32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user32/tests/Makefile" ;;
a6ea0f61 21803 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
fc6ffb29
AJ
21804 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
21805 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
21806 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
21807 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
569a452d 21808 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
fc6ffb29
AJ
21809 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
21810 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
21811 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
21812 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
21813 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
21814 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
21815 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
21816 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
21817 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
21818 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
01905338 21819 "dlls/winealsa.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winealsa.drv/Makefile" ;;
f972d662 21820 "dlls/wineaudioio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineaudioio.drv/Makefile" ;;
9402089e 21821 "dlls/winecoreaudio.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecoreaudio.drv/Makefile" ;;
fc6ffb29
AJ
21822 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
21823 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
21824 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
851e6d7c 21825 "dlls/wineesd.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineesd.drv/Makefile" ;;
7fc151d6 21826 "dlls/winejack.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejack.drv/Makefile" ;;
f231a70f 21827 "dlls/winejoystick.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winejoystick.drv/Makefile" ;;
fc6ffb29 21828 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
ae0380d9 21829 "dlls/winenas.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winenas.drv/Makefile" ;;
dc3961bc 21830 "dlls/wineoss.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineoss.drv/Makefile" ;;
fc6ffb29 21831 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
08884514 21832 "dlls/winequartz.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winequartz.drv/Makefile" ;;
bdb4fab7 21833 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
47e6fb4d 21834 "dlls/wing32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wing32/Makefile" ;;
21572967 21835 "dlls/winhttp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winhttp/Makefile" ;;
fc6ffb29
AJ
21836 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
21837 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
21838 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
fc6ffb29 21839 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
fc6ffb29 21840 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
23df68d8 21841 "dlls/winscard/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winscard/Makefile" ;;
fc6ffb29
AJ
21842 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
21843 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
21844 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
21845 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
95bb9032 21846 "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
fc6ffb29
AJ
21847 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
21848 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
21849 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
21850 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
21851 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
21852 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
21853 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
fc6ffb29
AJ
21854 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
21855 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
21856 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21857 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
21858 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
fc6ffb29
AJ
21859 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
21860 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
21861 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
21862 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
21863 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
39857443 21864 "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
fc6ffb29
AJ
21865 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
21866 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
21867 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
21868 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
21869 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
21870 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
21871 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
21872 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
21873 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
451616ee 21874 "programs/net/Makefile") CONFIG_FILES="$CONFIG_FILES programs/net/Makefile" ;;
fc6ffb29 21875 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
68f590cf 21876 "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
fc6ffb29
AJ
21877 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
21878 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
21879 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
21880 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
21881 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
d1ddc9c1 21882 "programs/spoolsv/Makefile") CONFIG_FILES="$CONFIG_FILES programs/spoolsv/Makefile" ;;
fc6ffb29
AJ
21883 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
21884 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
21885 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
21886 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
fc6ffb29
AJ
21887 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
21888 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
21889 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
21890 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
21891 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
c81d0995 21892 "programs/winedevice/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedevice/Makefile" ;;
fc6ffb29
AJ
21893 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
21894 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
21895 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
21896 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
21897 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
21898 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
21899 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
21900 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
21901 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
2777a94d 21902 "programs/write/Makefile") CONFIG_FILES="$CONFIG_FILES programs/write/Makefile" ;;
921edab7 21903 "programs/xcopy/Makefile") CONFIG_FILES="$CONFIG_FILES programs/xcopy/Makefile" ;;
fc6ffb29
AJ
21904 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
21905 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21906 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
fc6ffb29
AJ
21907 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
21908 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
21909 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
21910 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21911 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
21912
daa2886c 21913 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
f5818d2f
AJ
21914echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21915 { (exit 1); exit 1; }; };;
21916 esac
21917done
21918
fc6ffb29 21919
f5818d2f
AJ
21920# If the user did not use the arguments to specify the items to instantiate,
21921# then the envvar interface is used. Set only those that are not.
21922# We use the long form for the default assignment because of an extremely
21923# bizarre bug on SunOS 4.1.3.
21924if $ac_need_defaults; then
21925 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21926 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21927 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21928fi
21929
e24bcc77 21930# Have a temporary directory for convenience. Make it in the build tree
fc6ffb29 21931# simply because there is no reason against having it here, and in addition,
e24bcc77 21932# creating and moving files from /tmp can sometimes cause problems.
fc6ffb29
AJ
21933# Hook for its removal unless debugging.
21934# Note that there is a small window in which the directory will not be cleaned:
21935# after its creation but before its name has been assigned to `$tmp'.
f5818d2f
AJ
21936$debug ||
21937{
fc6ffb29
AJ
21938 tmp=
21939 trap 'exit_status=$?
21940 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21941' 0
f5818d2f
AJ
21942 trap '{ (exit 1); exit 1; }' 1 2 13 15
21943}
f5818d2f 21944# Create a (secure) tmp directory for tmp files.
e24bcc77 21945
f5818d2f 21946{
fc6ffb29 21947 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f5818d2f
AJ
21948 test -n "$tmp" && test -d "$tmp"
21949} ||
21950{
fc6ffb29
AJ
21951 tmp=./conf$$-$RANDOM
21952 (umask 077 && mkdir "$tmp")
f5818d2f
AJ
21953} ||
21954{
e24bcc77 21955 echo "$me: cannot create a temporary directory in ." >&2
f5818d2f
AJ
21956 { (exit 1); exit 1; }
21957}
21958
f5818d2f 21959#
fc6ffb29 21960# Set up the sed scripts for CONFIG_FILES section.
f5818d2f
AJ
21961#
21962
21963# No need to generate the scripts if there are no CONFIG_FILES.
21964# This happens for instance when ./config.status config.h
fc6ffb29
AJ
21965if test -n "$CONFIG_FILES"; then
21966
21967_ACEOF
21968
21969# Create sed commands to just substitute file output variables.
21970
21971# Remaining file output variables are in a fragment that also has non-file
21972# output varibles.
21973
21974
21975
21976ac_delim='%!_!# '
21977for ac_last_try in false false false false false :; do
21978 cat >conf$$subs.sed <<_ACEOF
21979SHELL!$SHELL$ac_delim
21980PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21981PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21982PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21983PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21984PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21985PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21986exec_prefix!$exec_prefix$ac_delim
21987prefix!$prefix$ac_delim
21988program_transform_name!$program_transform_name$ac_delim
21989bindir!$bindir$ac_delim
21990sbindir!$sbindir$ac_delim
21991libexecdir!$libexecdir$ac_delim
21992datarootdir!$datarootdir$ac_delim
21993datadir!$datadir$ac_delim
21994sysconfdir!$sysconfdir$ac_delim
21995sharedstatedir!$sharedstatedir$ac_delim
21996localstatedir!$localstatedir$ac_delim
21997includedir!$includedir$ac_delim
21998oldincludedir!$oldincludedir$ac_delim
21999docdir!$docdir$ac_delim
22000infodir!$infodir$ac_delim
22001htmldir!$htmldir$ac_delim
22002dvidir!$dvidir$ac_delim
22003pdfdir!$pdfdir$ac_delim
22004psdir!$psdir$ac_delim
22005libdir!$libdir$ac_delim
22006localedir!$localedir$ac_delim
22007mandir!$mandir$ac_delim
22008DEFS!$DEFS$ac_delim
22009ECHO_C!$ECHO_C$ac_delim
22010ECHO_N!$ECHO_N$ac_delim
22011ECHO_T!$ECHO_T$ac_delim
22012LIBS!$LIBS$ac_delim
22013build_alias!$build_alias$ac_delim
22014host_alias!$host_alias$ac_delim
22015target_alias!$target_alias$ac_delim
22016build!$build$ac_delim
22017build_cpu!$build_cpu$ac_delim
22018build_vendor!$build_vendor$ac_delim
22019build_os!$build_os$ac_delim
22020host!$host$ac_delim
22021host_cpu!$host_cpu$ac_delim
22022host_vendor!$host_vendor$ac_delim
22023host_os!$host_os$ac_delim
22024WIN16_FILES!$WIN16_FILES$ac_delim
22025WIN16_INSTALL!$WIN16_INSTALL$ac_delim
22026SET_MAKE!$SET_MAKE$ac_delim
22027CC!$CC$ac_delim
22028CFLAGS!$CFLAGS$ac_delim
22029LDFLAGS!$LDFLAGS$ac_delim
22030CPPFLAGS!$CPPFLAGS$ac_delim
22031ac_ct_CC!$ac_ct_CC$ac_delim
22032EXEEXT!$EXEEXT$ac_delim
22033OBJEXT!$OBJEXT$ac_delim
22034CXX!$CXX$ac_delim
22035CXXFLAGS!$CXXFLAGS$ac_delim
22036ac_ct_CXX!$ac_ct_CXX$ac_delim
22037CPPBIN!$CPPBIN$ac_delim
22038TOOLSDIR!$TOOLSDIR$ac_delim
22039XMKMF!$XMKMF$ac_delim
22040CPP!$CPP$ac_delim
22041X_CFLAGS!$X_CFLAGS$ac_delim
22042X_PRE_LIBS!$X_PRE_LIBS$ac_delim
22043X_LIBS!$X_LIBS$ac_delim
22044X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
4091627c 22045FLEX!$FLEX$ac_delim
fc6ffb29
AJ
22046BISON!$BISON$ac_delim
22047AS!$AS$ac_delim
22048ac_ct_AS!$ac_ct_AS$ac_delim
22049LD!$LD$ac_delim
22050AR!$AR$ac_delim
22051RANLIB!$RANLIB$ac_delim
22052STRIP!$STRIP$ac_delim
22053WINDRES!$WINDRES$ac_delim
22054LN_S!$LN_S$ac_delim
fdfc24ca
AJ
22055LN!$LN$ac_delim
22056GREP!$GREP$ac_delim
22057EGREP!$EGREP$ac_delim
4091627c
AJ
22058LDCONFIG!$LDCONFIG$ac_delim
22059INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22060INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
fc6ffb29
AJ
22061_ACEOF
22062
fdfc24ca 22063 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
fc6ffb29
AJ
22064 break
22065 elif $ac_last_try; then
22066 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22067echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22068 { (exit 1); exit 1; }; }
22069 else
22070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
da0cfb36 22071 fi
fc6ffb29
AJ
22072done
22073
0ebeb530
JW
22074ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22075if test -n "$ac_eof"; then
22076 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22077 ac_eof=`expr $ac_eof + 1`
fc6ffb29
AJ
22078fi
22079
22080cat >>$CONFIG_STATUS <<_ACEOF
22081cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22082/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22083/^[ ]*@MAKE_RULES@[ ]*$/{
22084r $MAKE_RULES
22085d
22086}
22087/^[ ]*@MAKE_DLL_RULES@[ ]*$/{
22088r $MAKE_DLL_RULES
22089d
22090}
22091/^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
22092r $MAKE_IMPLIB_RULES
22093d
22094}
22095/^[ ]*@MAKE_TEST_RULES@[ ]*$/{
22096r $MAKE_TEST_RULES
22097d
22098}
fc6ffb29
AJ
22099/^[ ]*@MAKE_PROG_RULES@[ ]*$/{
22100r $MAKE_PROG_RULES
22101d
22102}
22103_ACEOF
22104sed '
22105s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22106s/^/s,@/; s/!/@,|#_!!_#|/
22107:n
22108t n
22109s/'"$ac_delim"'$/,g/; t
22110s/$/\\/; p
22111N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22112' >>$CONFIG_STATUS <conf$$subs.sed
22113rm -f conf$$subs.sed
22114cat >>$CONFIG_STATUS <<_ACEOF
22115CEOF$ac_eof
22116_ACEOF
22117
22118
22119ac_delim='%!_!# '
22120for ac_last_try in false false false false false :; do
22121 cat >conf$$subs.sed <<_ACEOF
fc6ffb29
AJ
22122INSTALL_DATA!$INSTALL_DATA$ac_delim
22123LINT!$LINT$ac_delim
22124LINTFLAGS!$LINTFLAGS$ac_delim
22125FONTFORGE!$FONTFORGE$ac_delim
22126PKG_CONFIG!$PKG_CONFIG$ac_delim
22127PRELINK!$PRELINK$ac_delim
22128LIBPTHREAD!$LIBPTHREAD$ac_delim
22129XLIB!$XLIB$ac_delim
22130XFILES!$XFILES$ac_delim
22131OPENGLFILES!$OPENGLFILES$ac_delim
22132GLU32FILES!$GLU32FILES$ac_delim
22133OPENGL_LIBS!$OPENGL_LIBS$ac_delim
08884514 22134QUARTZFILES!$QUARTZFILES$ac_delim
a3097628
AJ
22135DLLEXT!$DLLEXT$ac_delim
22136DLLFLAGS!$DLLFLAGS$ac_delim
22137LDSHARED!$LDSHARED$ac_delim
22138LDDLLFLAGS!$LDDLLFLAGS$ac_delim
22139LIBEXT!$LIBEXT$ac_delim
22140IMPLIBEXT!$IMPLIBEXT$ac_delim
22141LDRPATH_INSTALL!$LDRPATH_INSTALL$ac_delim
22142LDRPATH_LOCAL!$LDRPATH_LOCAL$ac_delim
22143LDD!$LDD$ac_delim
22144DLLTOOL!$DLLTOOL$ac_delim
22145DLLWRAP!$DLLWRAP$ac_delim
22146MINGWAR!$MINGWAR$ac_delim
22147COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
22148IOKITLIB!$IOKITLIB$ac_delim
22149LDEXECFLAGS!$LDEXECFLAGS$ac_delim
22150DISKARBITRATIONLIB!$DISKARBITRATIONLIB$ac_delim
22151COREAUDIO!$COREAUDIO$ac_delim
22152CARBONLIB!$CARBONLIB$ac_delim
22153CROSSTEST!$CROSSTEST$ac_delim
22154CROSSCC!$CROSSCC$ac_delim
22155CROSSWINDRES!$CROSSWINDRES$ac_delim
fc6ffb29
AJ
22156NASLIBS!$NASLIBS$ac_delim
22157XML2LIBS!$XML2LIBS$ac_delim
22158XML2INCL!$XML2INCL$ac_delim
22159XSLTLIBS!$XSLTLIBS$ac_delim
22160XSLTINCL!$XSLTINCL$ac_delim
22161HALINCL!$HALINCL$ac_delim
fc6ffb29 22162sane_devel!$sane_devel$ac_delim
fc6ffb29
AJ
22163SANEINCL!$SANEINCL$ac_delim
22164gphoto2_devel!$gphoto2_devel$ac_delim
22165gphoto2port_devel!$gphoto2port_devel$ac_delim
22166GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
22167GPHOTO2INCL!$GPHOTO2INCL$ac_delim
fc6ffb29
AJ
22168RESOLVLIBS!$RESOLVLIBS$ac_delim
22169LCMSLIBS!$LCMSLIBS$ac_delim
22170LDAPLIBS!$LDAPLIBS$ac_delim
24a55f38 22171ft_devel!$ft_devel$ac_delim
fc6ffb29
AJ
22172FREETYPELIBS!$FREETYPELIBS$ac_delim
22173FREETYPEINCL!$FREETYPEINCL$ac_delim
fc6ffb29 22174FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
fc6ffb29
AJ
22175ESDCONFIG!$ESDCONFIG$ac_delim
22176ESDLIBS!$ESDLIBS$ac_delim
22177ESDINCL!$ESDINCL$ac_delim
22178ALSALIBS!$ALSALIBS$ac_delim
22179AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
22180EXTRACFLAGS!$EXTRACFLAGS$ac_delim
22181BUILTINFLAG!$BUILTINFLAG$ac_delim
fc6ffb29
AJ
22182LDPATH!$LDPATH$ac_delim
22183CRTLIBS!$CRTLIBS$ac_delim
22184SOCKETLIBS!$SOCKETLIBS$ac_delim
22185MAIN_BINARY!$MAIN_BINARY$ac_delim
22186EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
e533e972 22187LIBDL!$LIBDL$ac_delim
1089260f 22188LIBPOLL!$LIBPOLL$ac_delim
32ab895e 22189DEPENDENCIES!$DEPENDENCIES$ac_delim
fc6ffb29
AJ
22190LIBOBJS!$LIBOBJS$ac_delim
22191LTLIBOBJS!$LTLIBOBJS$ac_delim
22192_ACEOF
22193
c3cf79d8 22194 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 70; then
fc6ffb29
AJ
22195 break
22196 elif $ac_last_try; then
22197 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22198echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22199 { (exit 1); exit 1; }; }
22200 else
22201 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22202 fi
22203done
22204
0ebeb530
JW
22205ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22206if test -n "$ac_eof"; then
22207 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22208 ac_eof=`expr $ac_eof + 1`
fc6ffb29 22209fi
da0cfb36 22210
fc6ffb29
AJ
22211cat >>$CONFIG_STATUS <<_ACEOF
22212cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22213/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22214_ACEOF
22215sed '
22216s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22217s/^/s,@/; s/!/@,|#_!!_#|/
22218:n
22219t n
22220s/'"$ac_delim"'$/,g/; t
22221s/$/\\/; p
22222N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22223' >>$CONFIG_STATUS <conf$$subs.sed
22224rm -f conf$$subs.sed
22225cat >>$CONFIG_STATUS <<_ACEOF
22226:end
22227s/|#_!!_#|//g
22228CEOF$ac_eof
daa2886c 22229_ACEOF
fc6ffb29
AJ
22230
22231
22232# VPATH may cause trouble with some makes, so we remove $(srcdir),
22233# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22234# trailing colons and then remove the whole line if VPATH becomes empty
22235# (actually we leave an empty line to preserve line numbers).
22236if test "x$srcdir" = x.; then
22237 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22238s/:*\$(srcdir):*/:/
22239s/:*\${srcdir}:*/:/
22240s/:*@srcdir@:*/:/
22241s/^\([^=]*=[ ]*\):*/\1/
22242s/:*$//
22243s/^[^=]*=[ ]*$//
22244}'
22245fi
22246
daa2886c 22247cat >>$CONFIG_STATUS <<\_ACEOF
fc6ffb29
AJ
22248fi # test -n "$CONFIG_FILES"
22249
22250
22251for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22252do
22253 case $ac_tag in
22254 :[FHLC]) ac_mode=$ac_tag; continue;;
22255 esac
22256 case $ac_mode$ac_tag in
22257 :[FHL]*:*);;
22258 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22259echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22260 { (exit 1); exit 1; }; };;
22261 :[FH]-) ac_tag=-:-;;
22262 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
e2991ea7 22263 esac
fc6ffb29
AJ
22264 ac_save_IFS=$IFS
22265 IFS=:
22266 set x $ac_tag
22267 IFS=$ac_save_IFS
22268 shift
22269 ac_file=$1
22270 shift
e2991ea7 22271
fc6ffb29
AJ
22272 case $ac_mode in
22273 :L) ac_source=$1;;
22274 :[FH])
22275 ac_file_inputs=
22276 for ac_f
22277 do
22278 case $ac_f in
22279 -) ac_f="$tmp/stdin";;
22280 *) # Look for the file first in the build tree, then in the source tree
22281 # (if the path is not absolute). The absolute path cannot be DOS-style,
22282 # because $ac_f cannot contain `:'.
22283 test -f "$ac_f" ||
22284 case $ac_f in
22285 [\\/$]*) false;;
22286 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22287 esac ||
22288 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22289echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22290 { (exit 1); exit 1; }; };;
22291 esac
22292 ac_file_inputs="$ac_file_inputs $ac_f"
22293 done
22294
22295 # Let's still pretend it is `configure' which instantiates (i.e., don't
22296 # use $as_me), people would be surprised to read:
22297 # /* config.h. Generated by config.status. */
22298 configure_input="Generated from "`IFS=:
22299 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22300 if test x"$ac_file" != x-; then
22301 configure_input="$ac_file. $configure_input"
22302 { echo "$as_me:$LINENO: creating $ac_file" >&5
22303echo "$as_me: creating $ac_file" >&6;}
22304 fi
22305
22306 case $ac_tag in
22307 *:-:* | *:-) cat >"$tmp/stdin";;
22308 esac
22309 ;;
22310 esac
22311
22312 ac_dir=`$as_dirname -- "$ac_file" ||
daa2886c 22313$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875927f6
AJ
22314 X"$ac_file" : 'X\(//\)[^/]' \| \
22315 X"$ac_file" : 'X\(//\)$' \| \
fc6ffb29 22316 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
f5818d2f 22317echo X"$ac_file" |
fc6ffb29
AJ
22318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22319 s//\1/
22320 q
22321 }
22322 /^X\(\/\/\)[^/].*/{
22323 s//\1/
22324 q
22325 }
22326 /^X\(\/\/\)$/{
22327 s//\1/
22328 q
22329 }
22330 /^X\(\/\).*/{
22331 s//\1/
22332 q
22333 }
22334 s/.*/./; q'`
22335 { as_dir="$ac_dir"
22336 case $as_dir in #(
22337 -*) as_dir=./$as_dir;;
22338 esac
22339 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11af04e3 22340 as_dirs=
fc6ffb29
AJ
22341 while :; do
22342 case $as_dir in #(
22343 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22344 *) as_qdir=$as_dir;;
22345 esac
22346 as_dirs="'$as_qdir' $as_dirs"
22347 as_dir=`$as_dirname -- "$as_dir" ||
11af04e3 22348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875927f6
AJ
22349 X"$as_dir" : 'X\(//\)[^/]' \| \
22350 X"$as_dir" : 'X\(//\)$' \| \
fc6ffb29 22351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11af04e3 22352echo X"$as_dir" |
fc6ffb29
AJ
22353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22354 s//\1/
22355 q
22356 }
22357 /^X\(\/\/\)[^/].*/{
22358 s//\1/
22359 q
22360 }
22361 /^X\(\/\/\)$/{
22362 s//\1/
22363 q
22364 }
22365 /^X\(\/\).*/{
22366 s//\1/
22367 q
22368 }
22369 s/.*/./; q'`
22370 test -d "$as_dir" && break
11af04e3 22371 done
fc6ffb29
AJ
22372 test -z "$as_dirs" || eval "mkdir $as_dirs"
22373 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22374echo "$as_me: error: cannot create directory $as_dir" >&2;}
11af04e3 22375 { (exit 1); exit 1; }; }; }
daa2886c 22376 ac_builddir=.
e2991ea7 22377
fc6ffb29
AJ
22378case "$ac_dir" in
22379.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22380*)
daa2886c 22381 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
fc6ffb29
AJ
22382 # A ".." for each directory in $ac_dir_suffix.
22383 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22384 case $ac_top_builddir_sub in
22385 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22386 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22387 esac ;;
22388esac
22389ac_abs_top_builddir=$ac_pwd
22390ac_abs_builddir=$ac_pwd$ac_dir_suffix
22391# for backward compatibility:
22392ac_top_builddir=$ac_top_build_prefix
daa2886c
AJ
22393
22394case $srcdir in
fc6ffb29 22395 .) # We are building in place.
daa2886c 22396 ac_srcdir=.
fc6ffb29
AJ
22397 ac_top_srcdir=$ac_top_builddir_sub
22398 ac_abs_top_srcdir=$ac_pwd ;;
22399 [\\/]* | ?:[\\/]* ) # Absolute name.
daa2886c 22400 ac_srcdir=$srcdir$ac_dir_suffix;
fc6ffb29
AJ
22401 ac_top_srcdir=$srcdir
22402 ac_abs_top_srcdir=$srcdir ;;
22403 *) # Relative name.
22404 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22405 ac_top_srcdir=$ac_top_build_prefix$srcdir
22406 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
daa2886c 22407esac
fc6ffb29 22408ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
875927f6 22409
daa2886c 22410
fc6ffb29
AJ
22411 case $ac_mode in
22412 :F)
22413 #
22414 # CONFIG_FILE
22415 #
e2991ea7 22416
f5818d2f
AJ
22417 case $INSTALL in
22418 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
fc6ffb29 22419 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d7d4fdf8 22420 esac
fc6ffb29 22421_ACEOF
da0cfb36 22422
fc6ffb29
AJ
22423cat >>$CONFIG_STATUS <<\_ACEOF
22424# If the template does not know about datarootdir, expand it.
22425# FIXME: This hack should be removed a few years after 2.60.
0ebeb530 22426ac_datarootdir_hack=; ac_datarootdir_seen=
875927f6 22427
fc6ffb29
AJ
22428case `sed -n '/datarootdir/ {
22429 p
22430 q
22431}
22432/@datadir@/p
22433/@docdir@/p
22434/@infodir@/p
22435/@localedir@/p
22436/@mandir@/p
22437' $ac_file_inputs` in
0ebeb530 22438*datarootdir*) ac_datarootdir_seen=yes;;
fc6ffb29
AJ
22439*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22440 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22441echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
daa2886c 22442_ACEOF
fc6ffb29
AJ
22443cat >>$CONFIG_STATUS <<_ACEOF
22444 ac_datarootdir_hack='
22445 s&@datadir@&$datadir&g
22446 s&@docdir@&$docdir&g
22447 s&@infodir@&$infodir&g
22448 s&@localedir@&$localedir&g
22449 s&@mandir@&$mandir&g
22450 s&\\\${datarootdir}&$datarootdir&g' ;;
22451esac
22452_ACEOF
22453
22454# Neutralize VPATH when `$srcdir' = `.'.
22455# Shell code in configure.ac might set extrasub.
22456# FIXME: do we really want to maintain this feature?
daa2886c 22457cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f
AJ
22458 sed "$ac_vpsub
22459$extrasub
daa2886c
AJ
22460_ACEOF
22461cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
22462:t
22463/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
fc6ffb29
AJ
22464s&@configure_input@&$configure_input&;t t
22465s&@top_builddir@&$ac_top_builddir_sub&;t t
22466s&@srcdir@&$ac_srcdir&;t t
22467s&@abs_srcdir@&$ac_abs_srcdir&;t t
22468s&@top_srcdir@&$ac_top_srcdir&;t t
22469s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22470s&@builddir@&$ac_builddir&;t t
22471s&@abs_builddir@&$ac_abs_builddir&;t t
22472s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22473s&@INSTALL@&$ac_INSTALL&;t t
22474$ac_datarootdir_hack
22475" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22476
0ebeb530
JW
22477test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22478 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
f5f37a85 22479 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
0ebeb530
JW
22480 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22481which seems to be undefined. Please make sure it is defined." >&5
22482echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22483which seems to be undefined. Please make sure it is defined." >&2;}
22484
fc6ffb29 22485 rm -f "$tmp/stdin"
f5818d2f 22486 case $ac_file in
fc6ffb29
AJ
22487 -) cat "$tmp/out"; rm -f "$tmp/out";;
22488 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18f92e76 22489 esac
fc6ffb29
AJ
22490 ;;
22491 :H)
22492 #
22493 # CONFIG_HEADER
22494 #
fc6ffb29
AJ
22495_ACEOF
22496
22497# Transform confdefs.h into a sed script `conftest.defines', that
22498# substitutes the proper values into config.h.in to produce config.h.
22499rm -f conftest.defines conftest.tail
22500# First, append a space to every undef/define line, to ease matching.
22501echo 's/$/ /' >conftest.defines
22502# Then, protect against being on the right side of a sed subst, or in
22503# an unquoted here document, in config.status. If some macros were
22504# called several times there might be several #defines for the same
22505# symbol, which is useless. But do not sort them, since the last
22506# AC_DEFINE must be honored.
22507ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
0ebeb530
JW
22508# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22509# NAME is the cpp macro being defined, VALUE is the value it is being given.
22510# PARAMS is the parameter list in the macro definition--in most cases, it's
22511# just an empty string.
22512ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22513ac_dB='\\)[ (].*,\\1define\\2'
22514ac_dC=' '
22515ac_dD=' ,'
22516
fc6ffb29
AJ
22517uniq confdefs.h |
22518 sed -n '
22519 t rset
22520 :rset
22521 s/^[ ]*#[ ]*define[ ][ ]*//
22522 t ok
22523 d
22524 :ok
22525 s/[\\&,]/\\&/g
0ebeb530
JW
22526 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22527 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
fc6ffb29
AJ
22528 ' >>conftest.defines
22529
22530# Remove the space that was appended to ease matching.
22531# Then replace #undef with comments. This is necessary, for
18f92e76
AJ
22532# example, in the case of _POSIX_SOURCE, which is predefined and required
22533# on some systems where configure will not decide to define it.
fc6ffb29
AJ
22534# (The regexp can be short, since the line contains either #define or #undef.)
22535echo 's/ $//
22536s,^[ #]*u.*,/* & */,' >>conftest.defines
22537
22538# Break up conftest.defines:
0ebeb530 22539ac_max_sed_lines=50
fc6ffb29
AJ
22540
22541# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22542# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22543# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22544# et cetera.
22545ac_in='$ac_file_inputs'
22546ac_out='"$tmp/out1"'
22547ac_nxt='"$tmp/out2"'
22548
22549while :
f5818d2f 22550do
fc6ffb29 22551 # Write a here document:
0ebeb530
JW
22552 cat >>$CONFIG_STATUS <<_ACEOF
22553 # First, check the format of the line:
22554 cat >"\$tmp/defines.sed" <<\\CEOF
22555/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22556/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
fc6ffb29 22557b
0ebeb530
JW
22558:def
22559_ACEOF
fc6ffb29 22560 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
f5818d2f 22561 echo 'CEOF
fc6ffb29
AJ
22562 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22563 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22564 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22565 grep . conftest.tail >/dev/null || break
f5818d2f
AJ
22566 rm -f conftest.defines
22567 mv conftest.tail conftest.defines
22568done
fc6ffb29 22569rm -f conftest.defines conftest.tail
f5818d2f 22570
fc6ffb29 22571echo "ac_result=$ac_in" >>$CONFIG_STATUS
daa2886c 22572cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f 22573 if test x"$ac_file" != x-; then
fc6ffb29
AJ
22574 echo "/* $configure_input */" >"$tmp/config.h"
22575 cat "$ac_result" >>"$tmp/config.h"
22576 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
daa2886c 22577 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
f5818d2f
AJ
22578echo "$as_me: $ac_file is unchanged" >&6;}
22579 else
f5818d2f 22580 rm -f $ac_file
fc6ffb29 22581 mv "$tmp/config.h" $ac_file
18f92e76 22582 fi
f5818d2f 22583 else
fc6ffb29
AJ
22584 echo "/* $configure_input */"
22585 cat "$ac_result"
18f92e76 22586 fi
fc6ffb29
AJ
22587 rm -f "$tmp/out12"
22588 ;;
875927f6 22589
fc6ffb29
AJ
22590 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22591echo "$as_me: executing $ac_file commands" >&6;}
22592 ;;
22593 esac
daa2886c
AJ
22594
22595
fc6ffb29 22596 case $ac_file$ac_mode in
c4704c2d 22597 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
7dfc4477
AJ
22598 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/enhmfdrv" >&5
22599echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;} && mkdir "dlls/gdi32/enhmfdrv") ;;
22600 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/mfdrv" >&5
22601echo "$as_me: creating dlls/gdi32/mfdrv" >&6;} && mkdir "dlls/gdi32/mfdrv") ;;
1c60e3bf
AJ
22602 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5
22603echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;;
b8a2e3b8
AJ
22604 "dlls/user32/resources":C) test -d "dlls/user32/resources" || ({ echo "$as_me:$LINENO: creating dlls/user32/resources" >&5
22605echo "$as_me: creating dlls/user32/resources" >&6;} && mkdir "dlls/user32/resources") ;;
fc6ffb29 22606 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
57ed75bf 22607echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
fc6ffb29 22608 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
f5818d2f 22609echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
fc6ffb29 22610
f5818d2f 22611 esac
fc6ffb29 22612done # for ac_tag
e2991ea7 22613
87a2f8df 22614
f5818d2f 22615{ (exit 0); exit 0; }
daa2886c 22616_ACEOF
e2991ea7 22617chmod +x $CONFIG_STATUS
f5818d2f
AJ
22618ac_clean_files=$ac_clean_files_save
22619
daa2886c 22620
f5818d2f
AJ
22621# configure is writing to config.log, and then calls config.status.
22622# config.status does its own redirection, appending to config.log.
22623# Unfortunately, on DOS this fails, as config.log is still kept open
22624# by configure, so config.status won't be able to write to it; its
22625# output is simply discarded. So we exec the FD to /dev/null,
22626# effectively closing config.log, so it can be properly (re)opened and
22627# appended to by config.status. When coming back to configure, we
22628# need to make the FD available again.
22629if test "$no_create" != yes; then
22630 ac_cs_success=:
e24bcc77
AJ
22631 ac_config_status_args=
22632 test "$silent" = yes &&
22633 ac_config_status_args="$ac_config_status_args --quiet"
f5818d2f 22634 exec 5>/dev/null
e24bcc77 22635 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
f5818d2f
AJ
22636 exec 5>>config.log
22637 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22638 # would make configure fail if this is the last instruction.
22639 $ac_cs_success || { (exit 1); exit 1; }
22640fi
e2991ea7 22641
daa2886c 22642
e3bd111b
AJ
22643if test "$no_create" = "yes"
22644then
22645 exit 0
22646fi
22647
f9dec94f
AJ
22648ac_save_IFS="$IFS"
22649IFS="|"
22650if test "$verbose" = "yes"; then
22651 for msg in $wine_notices; do
22652 if test -n "$msg"; then
22653 echo >&2
22654 { echo "$as_me:$LINENO: $msg" >&5
22655echo "$as_me: $msg" >&6;}
22656 fi
22657 done
99d026fb 22658fi
f9dec94f
AJ
22659for msg in $wine_warnings; do
22660 if test -n "$msg"; then
22661 echo >&2
22662 { echo "$as_me:$LINENO: WARNING: $msg" >&5
22663echo "$as_me: WARNING: $msg" >&2;}
22664 fi
22665done
22666IFS="$ac_save_IFS"
99d026fb 22667
e2991ea7 22668echo
5606d104 22669echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
e2991ea7
AJ
22670echo
22671