configure: Check for the Xinerama extension.
[wine] / configure
CommitLineData
e2991ea7 1#! /bin/sh
e2991ea7 2# Guess values for system-dependent variables and create Makefiles.
7affdd4c 3# Generated by GNU Autoconf 2.60a for Wine 0.9.23.
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
AJ
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
11af04e3
AJ
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
fc6ffb29
AJ
22 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
f5818d2f 25fi
fc6ffb29 26BIN_SH=xpg4; export BIN_SH # for Tru64
875927f6 27DUALCASE=1; export DUALCASE # for MKS sh
f5818d2f 28
fc6ffb29
AJ
29
30# PATH needs CR
31# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49fi
50
daa2886c 51# Support unset when possible.
875927f6 52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
daa2886c
AJ
53 as_unset=unset
54else
55 as_unset=false
56fi
57
11af04e3 58
fc6ffb29
AJ
59# IFS
60# We need space, tab and new line, in precisely that order. Quoting is
61# there to prevent editors from complaining about space-tab.
62# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63# splitting by setting IFS to empty value.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
78IFS=$as_save_IFS
79
80 ;;
81esac
82# We did not find ourselves, most probably we were run as `sh COMMAND'
83# in which case we are not to be found in the path.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90fi
91
11af04e3 92# Work around bugs in pre-3.0 UWIN ksh.
fc6ffb29
AJ
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
11af04e3
AJ
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
e24bcc77
AJ
101for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
11af04e3 105do
875927f6 106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11af04e3
AJ
107 eval $as_var=C; export $as_var
108 else
fc6ffb29 109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11af04e3
AJ
110 fi
111done
112
113# Required to use basename.
fc6ffb29
AJ
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11af04e3
AJ
116 as_expr=expr
117else
118 as_expr=false
119fi
120
fc6ffb29 121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11af04e3
AJ
122 as_basename=basename
123else
124 as_basename=false
125fi
daa2886c
AJ
126
127
f5818d2f 128# Name of the executable.
fc6ffb29 129as_me=`$as_basename -- "$0" ||
daa2886c
AJ
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
fc6ffb29 132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
daa2886c 133echo X/"$0" |
fc6ffb29
AJ
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
daa2886c 147
fc6ffb29
AJ
148# CDPATH.
149$as_unset CDPATH
11af04e3 150
daa2886c 151
fc6ffb29
AJ
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
daa2886c
AJ
157fi
158
fc6ffb29
AJ
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
daa2886c 175
fc6ffb29
AJ
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
daa2886c 183
fc6ffb29
AJ
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$exitcode = 0) || { (exit 1); exit 1; }
209
210(
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215") 2> /dev/null; then
216 :
217else
218 as_candidate_shells=
daa2886c 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
fc6ffb29 220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
daa2886c
AJ
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
fc6ffb29 224 case $as_dir in
daa2886c 225 /*)
fc6ffb29
AJ
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
0ebeb530
JW
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
fc6ffb29
AJ
238# Be Bourne compatible
239if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
0ebeb530 257 if { "$as_shell" 2> /dev/null <<\_ASEOF
fc6ffb29
AJ
258# Be Bourne compatible
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
daa2886c
AJ
324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
daa2886c 326 test "x$as_lineno_1" != "x$as_lineno_2" &&
fc6ffb29
AJ
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415}
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
daa2886c
AJ
423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
fc6ffb29
AJ
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
daa2886c 431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
fc6ffb29
AJ
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
daa2886c 438 sed '
fc6ffb29
AJ
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
daa2886c 443 N
fc6ffb29
AJ
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
daa2886c 446 t loop
fc6ffb29 447 s/-\n.*//
daa2886c 448 ' >$as_me.lineno &&
fc6ffb29 449 chmod +x "$as_me.lineno" ||
daa2886c
AJ
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
fc6ffb29
AJ
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
daa2886c
AJ
457 # Exit status is that of the last command.
458 exit
459}
460
461
0ebeb530 462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
fc6ffb29
AJ
463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in
470-n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475*)
476 ECHO_N='-n';;
daa2886c 477esac
f5818d2f 478
fc6ffb29
AJ
479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f5818d2f
AJ
481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
fc6ffb29
AJ
487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
f5818d2f
AJ
493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
fc6ffb29
AJ
495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f5818d2f 501 as_ln_s='cp -p'
f5818d2f
AJ
502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
fc6ffb29
AJ
507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
f5818d2f 509
11af04e3
AJ
510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
875927f6 513 test -d ./-p && rmdir ./-p
11af04e3
AJ
514 as_mkdir_p=false
515fi
516
fc6ffb29
AJ
517# Find out whether ``test -x'' works. Don't use a zero-byte file, as
518# systems may use methods other than mode bits to determine executability.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
f5818d2f 530
daa2886c 531# Sed expression to map a string onto a valid CPP name.
875927f6 532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
daa2886c
AJ
533
534# Sed expression to map a string onto a valid variable name.
875927f6 535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
f5818d2f 536
f5818d2f 537
daa2886c 538
fc6ffb29 539exec 7<&0 </dev/null 6>&1
f5818d2f
AJ
540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
f5818d2f
AJ
546#
547# Initializations.
548#
e2991ea7 549ac_default_prefix=/usr/local
fc6ffb29 550ac_clean_files=
11af04e3 551ac_config_libobj_dir=.
fc6ffb29 552LIBOBJS=
f5818d2f
AJ
553cross_compiling=no
554subdirs=
daa2886c
AJ
555MFLAGS=
556MAKEFLAGS=
f5818d2f
AJ
557SHELL=${CONFIG_SHELL-/bin/sh}
558
daa2886c
AJ
559# Identity of this package.
560PACKAGE_NAME='Wine'
561PACKAGE_TARNAME='wine'
7affdd4c
AJ
562PACKAGE_VERSION='0.9.23'
563PACKAGE_STRING='Wine 0.9.23'
875927f6 564PACKAGE_BUGREPORT='wine-devel@winehq.org'
daa2886c 565
f5818d2f
AJ
566ac_unique_file="server/atom.c"
567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#if HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#if HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#if STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# if HAVE_STDLIB_H
581# include <stdlib.h>
582# endif
583#endif
584#if HAVE_STRING_H
585# if !STDC_HEADERS && HAVE_MEMORY_H
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
590#if HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#if HAVE_INTTYPES_H
594# include <inttypes.h>
fc6ffb29
AJ
595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
f5818d2f
AJ
598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
e2991ea7 602
fc6ffb29
AJ
603ac_subst_vars='SHELL
604PATH_SEPARATOR
605PACKAGE_NAME
606PACKAGE_TARNAME
607PACKAGE_VERSION
608PACKAGE_STRING
609PACKAGE_BUGREPORT
610exec_prefix
611prefix
612program_transform_name
613bindir
614sbindir
615libexecdir
616datarootdir
617datadir
618sysconfdir
619sharedstatedir
620localstatedir
621includedir
622oldincludedir
623docdir
624infodir
625htmldir
626dvidir
627pdfdir
628psdir
629libdir
630localedir
631mandir
632DEFS
633ECHO_C
634ECHO_N
635ECHO_T
636LIBS
637build_alias
638host_alias
639target_alias
640build
641build_cpu
642build_vendor
643build_os
644host
645host_cpu
646host_vendor
647host_os
648WIN16_FILES
649WIN16_INSTALL
650SET_MAKE
651CC
652CFLAGS
653LDFLAGS
654CPPFLAGS
655ac_ct_CC
656EXEEXT
657OBJEXT
658CXX
659CXXFLAGS
660ac_ct_CXX
661CPPBIN
662TOOLSDIR
663XMKMF
664CPP
665X_CFLAGS
666X_PRE_LIBS
667X_LIBS
668X_EXTRA_LIBS
669LEX
670LEXLIB
671LEX_OUTPUT_ROOT
672XLEX
673BISON
674AS
675ac_ct_AS
676LD
677AR
678RANLIB
679STRIP
680WINDRES
681LN_S
682LN
683GREP
684EGREP
685LDCONFIG
686INSTALL_PROGRAM
687INSTALL_SCRIPT
688INSTALL_DATA
689LINT
690LINTFLAGS
691FONTFORGE
692PKG_CONFIG
693PRELINK
694LIBPTHREAD
695XLIB
696XFILES
697OPENGLFILES
698GLU32FILES
699OPENGL_LIBS
700GLUT_LIBS
701GLUT32FILES
702NASLIBS
703XML2LIBS
704XML2INCL
705XSLTLIBS
706XSLTINCL
707HALINCL
708CURSESLIBS
709sane_devel
710SANELIBS
711SANEINCL
712gphoto2_devel
713gphoto2port_devel
714GPHOTO2LIBS
715GPHOTO2INCL
716ICULIBS
717RESOLVLIBS
718LCMSLIBS
719LDAPLIBS
720FREETYPELIBS
721FREETYPEINCL
722ft_devel
723ft_devel2
724FONTSSUBDIRS
725ARTSCCONFIG
726ARTSLIBS
727ARTSINCL
728ESDCONFIG
729ESDLIBS
730ESDINCL
731ALSALIBS
732AUDIOIOLIBS
733EXTRACFLAGS
734BUILTINFLAG
735DLLEXT
736DLLFLAGS
fc6ffb29
AJ
737LDSHARED
738LDDLLFLAGS
739LIBEXT
740IMPLIBEXT
13a93b4a 741LIBWINE_LDFLAGS
fc6ffb29
AJ
742DLLTOOL
743DLLWRAP
fc6ffb29
AJ
744COREFOUNDATIONLIB
745IOKITLIB
6735eb2e 746DISKARBITRATIONLIB
42b81ea0 747LDEXECFLAGS
144a5353 748COREAUDIO
fc6ffb29
AJ
749CROSSTEST
750CROSSCC
751CROSSWINDRES
752LDPATH
753CRTLIBS
754SOCKETLIBS
755MAIN_BINARY
756EXTRA_BINARIES
757LDD
e533e972 758LIBDL
1089260f 759LIBPOLL
32ab895e 760DEPENDENCIES
fc6ffb29
AJ
761LIBOBJS
762LTLIBOBJS'
763ac_subst_files='MAKE_RULES
764MAKE_DLL_RULES
765MAKE_IMPLIB_RULES
766MAKE_TEST_RULES
fc6ffb29
AJ
767MAKE_PROG_RULES'
768 ac_precious_vars='build_alias
769host_alias
770target_alias
771CC
772CFLAGS
773LDFLAGS
774CPPFLAGS
775CXX
776CXXFLAGS
777CCC
778XMKMF
779CPP'
780
daa2886c 781
e2991ea7 782# Initialize some variables set by options.
f5818d2f
AJ
783ac_init_help=
784ac_init_version=false
e2991ea7
AJ
785# The variables have the same names as the options, with
786# dashes changed to underlines.
f5818d2f 787cache_file=/dev/null
e2991ea7 788exec_prefix=NONE
e2991ea7 789no_create=
e2991ea7
AJ
790no_recursion=
791prefix=NONE
792program_prefix=NONE
793program_suffix=NONE
794program_transform_name=s,x,x,
795silent=
796site=
797srcdir=
e2991ea7
AJ
798verbose=
799x_includes=NONE
800x_libraries=NONE
f5818d2f
AJ
801
802# Installation directory options.
803# These are left unexpanded so users can "make install exec_prefix=/foo"
804# and all the variables that are supposed to be based on exec_prefix
805# by default will actually change.
806# Use braces instead of parens because sh, perl, etc. also accept them.
fc6ffb29 807# (The list follows the same order as the GNU Coding Standards.)
d7d4fdf8
AJ
808bindir='${exec_prefix}/bin'
809sbindir='${exec_prefix}/sbin'
810libexecdir='${exec_prefix}/libexec'
fc6ffb29
AJ
811datarootdir='${prefix}/share'
812datadir='${datarootdir}'
d7d4fdf8
AJ
813sysconfdir='${prefix}/etc'
814sharedstatedir='${prefix}/com'
815localstatedir='${prefix}/var'
d7d4fdf8
AJ
816includedir='${prefix}/include'
817oldincludedir='/usr/include'
fc6ffb29
AJ
818docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819infodir='${datarootdir}/info'
820htmldir='${docdir}'
821dvidir='${docdir}'
822pdfdir='${docdir}'
823psdir='${docdir}'
824libdir='${exec_prefix}/lib'
825localedir='${datarootdir}/locale'
826mandir='${datarootdir}/man'
e2991ea7 827
e2991ea7 828ac_prev=
fc6ffb29 829ac_dashdash=
e2991ea7
AJ
830for ac_option
831do
e2991ea7
AJ
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
fc6ffb29 834 eval $ac_prev=\$ac_option
e2991ea7
AJ
835 ac_prev=
836 continue
837 fi
838
fc6ffb29
AJ
839 case $ac_option in
840 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *) ac_optarg=yes ;;
842 esac
e2991ea7
AJ
843
844 # Accept the important Cygnus configure options, so we can diagnose typos.
845
fc6ffb29
AJ
846 case $ac_dashdash$ac_option in
847 --)
848 ac_dashdash=yes ;;
e2991ea7 849
d7d4fdf8
AJ
850 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 ac_prev=bindir ;;
852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
f5818d2f 853 bindir=$ac_optarg ;;
d7d4fdf8
AJ
854
855 -build | --build | --buil | --bui | --bu)
f5818d2f 856 ac_prev=build_alias ;;
d7d4fdf8 857 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
f5818d2f 858 build_alias=$ac_optarg ;;
e2991ea7
AJ
859
860 -cache-file | --cache-file | --cache-fil | --cache-fi \
861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862 ac_prev=cache_file ;;
863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
f5818d2f
AJ
865 cache_file=$ac_optarg ;;
866
867 --config-cache | -C)
868 cache_file=config.cache ;;
e2991ea7 869
fc6ffb29 870 -datadir | --datadir | --datadi | --datad)
d7d4fdf8 871 ac_prev=datadir ;;
fc6ffb29 872 -datadir=* | --datadir=* | --datadi=* | --datad=*)
f5818d2f 873 datadir=$ac_optarg ;;
d7d4fdf8 874
fc6ffb29
AJ
875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876 | --dataroo | --dataro | --datar)
877 ac_prev=datarootdir ;;
878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880 datarootdir=$ac_optarg ;;
881
e2991ea7 882 -disable-* | --disable-*)
f5818d2f 883 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
e2991ea7 884 # Reject names that are not valid shell variable names.
f5818d2f
AJ
885 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
886 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
887 { (exit 1); exit 1; }; }
888 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
fc6ffb29
AJ
889 eval enable_$ac_feature=no ;;
890
891 -docdir | --docdir | --docdi | --doc | --do)
892 ac_prev=docdir ;;
893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 docdir=$ac_optarg ;;
895
896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 ac_prev=dvidir ;;
898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 dvidir=$ac_optarg ;;
e2991ea7
AJ
900
901 -enable-* | --enable-*)
f5818d2f 902 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
e2991ea7 903 # Reject names that are not valid shell variable names.
f5818d2f
AJ
904 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
905 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
906 { (exit 1); exit 1; }; }
907 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
fc6ffb29 908 eval enable_$ac_feature=\$ac_optarg ;;
e2991ea7
AJ
909
910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912 | --exec | --exe | --ex)
913 ac_prev=exec_prefix ;;
914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916 | --exec=* | --exe=* | --ex=*)
f5818d2f 917 exec_prefix=$ac_optarg ;;
e2991ea7
AJ
918
919 -gas | --gas | --ga | --g)
920 # Obsolete; use --with-gas.
921 with_gas=yes ;;
922
f5818d2f
AJ
923 -help | --help | --hel | --he | -h)
924 ac_init_help=long ;;
925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926 ac_init_help=recursive ;;
927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928 ac_init_help=short ;;
e2991ea7
AJ
929
930 -host | --host | --hos | --ho)
f5818d2f 931 ac_prev=host_alias ;;
e2991ea7 932 -host=* | --host=* | --hos=* | --ho=*)
f5818d2f 933 host_alias=$ac_optarg ;;
e2991ea7 934
fc6ffb29
AJ
935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936 ac_prev=htmldir ;;
937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938 | --ht=*)
939 htmldir=$ac_optarg ;;
940
d7d4fdf8
AJ
941 -includedir | --includedir | --includedi | --included | --include \
942 | --includ | --inclu | --incl | --inc)
943 ac_prev=includedir ;;
944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945 | --includ=* | --inclu=* | --incl=* | --inc=*)
f5818d2f 946 includedir=$ac_optarg ;;
d7d4fdf8
AJ
947
948 -infodir | --infodir | --infodi | --infod | --info | --inf)
949 ac_prev=infodir ;;
950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
f5818d2f 951 infodir=$ac_optarg ;;
d7d4fdf8
AJ
952
953 -libdir | --libdir | --libdi | --libd)
954 ac_prev=libdir ;;
955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
f5818d2f 956 libdir=$ac_optarg ;;
d7d4fdf8
AJ
957
958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959 | --libexe | --libex | --libe)
960 ac_prev=libexecdir ;;
961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962 | --libexe=* | --libex=* | --libe=*)
f5818d2f 963 libexecdir=$ac_optarg ;;
d7d4fdf8 964
fc6ffb29
AJ
965 -localedir | --localedir | --localedi | --localed | --locale)
966 ac_prev=localedir ;;
967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968 localedir=$ac_optarg ;;
969
d7d4fdf8 970 -localstatedir | --localstatedir | --localstatedi | --localstated \
fc6ffb29 971 | --localstate | --localstat | --localsta | --localst | --locals)
d7d4fdf8
AJ
972 ac_prev=localstatedir ;;
973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
fc6ffb29 974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
f5818d2f 975 localstatedir=$ac_optarg ;;
d7d4fdf8
AJ
976
977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978 ac_prev=mandir ;;
979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
f5818d2f 980 mandir=$ac_optarg ;;
d7d4fdf8 981
e2991ea7
AJ
982 -nfp | --nfp | --nf)
983 # Obsolete; use --without-fp.
984 with_fp=no ;;
985
986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
daa2886c 987 | --no-cr | --no-c | -n)
e2991ea7
AJ
988 no_create=yes ;;
989
990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992 no_recursion=yes ;;
993
d7d4fdf8
AJ
994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996 | --oldin | --oldi | --old | --ol | --o)
997 ac_prev=oldincludedir ;;
998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
f5818d2f 1001 oldincludedir=$ac_optarg ;;
d7d4fdf8 1002
e2991ea7
AJ
1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004 ac_prev=prefix ;;
1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f5818d2f 1006 prefix=$ac_optarg ;;
e2991ea7
AJ
1007
1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009 | --program-pre | --program-pr | --program-p)
1010 ac_prev=program_prefix ;;
1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
f5818d2f 1013 program_prefix=$ac_optarg ;;
e2991ea7
AJ
1014
1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016 | --program-suf | --program-su | --program-s)
1017 ac_prev=program_suffix ;;
1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
f5818d2f 1020 program_suffix=$ac_optarg ;;
e2991ea7
AJ
1021
1022 -program-transform-name | --program-transform-name \
1023 | --program-transform-nam | --program-transform-na \
1024 | --program-transform-n | --program-transform- \
1025 | --program-transform | --program-transfor \
1026 | --program-transfo | --program-transf \
1027 | --program-trans | --program-tran \
1028 | --progr-tra | --program-tr | --program-t)
1029 ac_prev=program_transform_name ;;
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=*)
f5818d2f 1037 program_transform_name=$ac_optarg ;;
e2991ea7 1038
fc6ffb29
AJ
1039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040 ac_prev=pdfdir ;;
1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042 pdfdir=$ac_optarg ;;
1043
1044 -psdir | --psdir | --psdi | --psd | --ps)
1045 ac_prev=psdir ;;
1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047 psdir=$ac_optarg ;;
1048
e2991ea7
AJ
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 silent=yes ;;
1052
d7d4fdf8
AJ
1053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054 ac_prev=sbindir ;;
1055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056 | --sbi=* | --sb=*)
f5818d2f 1057 sbindir=$ac_optarg ;;
d7d4fdf8
AJ
1058
1059 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1061 | --sharedst | --shareds | --shared | --share | --shar \
1062 | --sha | --sh)
1063 ac_prev=sharedstatedir ;;
1064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067 | --sha=* | --sh=*)
f5818d2f 1068 sharedstatedir=$ac_optarg ;;
d7d4fdf8 1069
e2991ea7
AJ
1070 -site | --site | --sit)
1071 ac_prev=site ;;
1072 -site=* | --site=* | --sit=*)
f5818d2f 1073 site=$ac_optarg ;;
e2991ea7
AJ
1074
1075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076 ac_prev=srcdir ;;
1077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
f5818d2f 1078 srcdir=$ac_optarg ;;
e2991ea7 1079
d7d4fdf8
AJ
1080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1081 | --syscon | --sysco | --sysc | --sys | --sy)
1082 ac_prev=sysconfdir ;;
1083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
f5818d2f 1085 sysconfdir=$ac_optarg ;;
d7d4fdf8 1086
e2991ea7 1087 -target | --target | --targe | --targ | --tar | --ta | --t)
f5818d2f 1088 ac_prev=target_alias ;;
e2991ea7 1089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
f5818d2f 1090 target_alias=$ac_optarg ;;
e2991ea7
AJ
1091
1092 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093 verbose=yes ;;
1094
f5818d2f
AJ
1095 -version | --version | --versio | --versi | --vers | -V)
1096 ac_init_version=: ;;
e2991ea7
AJ
1097
1098 -with-* | --with-*)
f5818d2f 1099 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
e2991ea7 1100 # Reject names that are not valid shell variable names.
f5818d2f
AJ
1101 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid package name: $ac_package" >&2
1103 { (exit 1); exit 1; }; }
e2991ea7 1104 ac_package=`echo $ac_package| sed 's/-/_/g'`
fc6ffb29 1105 eval with_$ac_package=\$ac_optarg ;;
e2991ea7
AJ
1106
1107 -without-* | --without-*)
f5818d2f 1108 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
e2991ea7 1109 # Reject names that are not valid shell variable names.
f5818d2f
AJ
1110 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1111 { echo "$as_me: error: invalid package name: $ac_package" >&2
1112 { (exit 1); exit 1; }; }
1113 ac_package=`echo $ac_package | sed 's/-/_/g'`
fc6ffb29 1114 eval with_$ac_package=no ;;
e2991ea7
AJ
1115
1116 --x)
1117 # Obsolete; use --with-x.
1118 with_x=yes ;;
1119
1120 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121 | --x-incl | --x-inc | --x-in | --x-i)
1122 ac_prev=x_includes ;;
1123 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
f5818d2f 1125 x_includes=$ac_optarg ;;
e2991ea7
AJ
1126
1127 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129 ac_prev=x_libraries ;;
1130 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
f5818d2f 1132 x_libraries=$ac_optarg ;;
e2991ea7 1133
f5818d2f
AJ
1134 -*) { echo "$as_me: error: unrecognized option: $ac_option
1135Try \`$0 --help' for more information." >&2
1136 { (exit 1); exit 1; }; }
e2991ea7
AJ
1137 ;;
1138
f5818d2f
AJ
1139 *=*)
1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1144 { (exit 1); exit 1; }; }
fc6ffb29 1145 eval $ac_envvar=\$ac_optarg
f5818d2f
AJ
1146 export $ac_envvar ;;
1147
d7d4fdf8 1148 *)
f5818d2f
AJ
1149 # FIXME: should be removed in autoconf 3.0.
1150 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
e2991ea7
AJ
1154 ;;
1155
1156 esac
1157done
1158
1159if test -n "$ac_prev"; then
f5818d2f
AJ
1160 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161 { echo "$as_me: error: missing argument to $ac_option" >&2
1162 { (exit 1); exit 1; }; }
e2991ea7 1163fi
e2991ea7 1164
fc6ffb29
AJ
1165# Be sure to have absolute directory names.
1166for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167 datadir sysconfdir sharedstatedir localstatedir includedir \
1168 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169 libdir localedir mandir
e2991ea7 1170do
fc6ffb29 1171 eval ac_val=\$$ac_var
f5818d2f 1172 case $ac_val in
fc6ffb29
AJ
1173 [\\/$]* | ?:[\\/]* ) continue;;
1174 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
e2991ea7 1175 esac
fc6ffb29
AJ
1176 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1177 { (exit 1); exit 1; }; }
e2991ea7
AJ
1178done
1179
f5818d2f
AJ
1180# There might be people who depend on the old broken behavior: `$host'
1181# used to hold the argument of --host etc.
daa2886c 1182# FIXME: To remove some day.
f5818d2f
AJ
1183build=$build_alias
1184host=$host_alias
1185target=$target_alias
1186
daa2886c 1187# FIXME: To remove some day.
f5818d2f
AJ
1188if test "x$host_alias" != x; then
1189 if test "x$build_alias" = x; then
1190 cross_compiling=maybe
1191 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1192 If a cross compiler is detected then cross compile mode will be used." >&2
1193 elif test "x$build_alias" != "x$host_alias"; then
1194 cross_compiling=yes
1195 fi
1196fi
e2991ea7 1197
f5818d2f
AJ
1198ac_tool_prefix=
1199test -n "$host_alias" && ac_tool_prefix=$host_alias-
e2991ea7 1200
f5818d2f 1201test "$silent" = yes && exec 6>/dev/null
e2991ea7 1202
daa2886c 1203
fc6ffb29
AJ
1204ac_pwd=`pwd` && test -n "$ac_pwd" &&
1205ac_ls_di=`ls -di .` &&
1206ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1207 { echo "$as_me: error: Working directory cannot be determined" >&2
1208 { (exit 1); exit 1; }; }
1209test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210 { echo "$as_me: error: pwd does not report name of working directory" >&2
1211 { (exit 1); exit 1; }; }
1212
1213
e2991ea7
AJ
1214# Find the source files, if location was not specified.
1215if test -z "$srcdir"; then
1216 ac_srcdir_defaulted=yes
fc6ffb29
AJ
1217 # Try the directory containing this script, then the parent directory.
1218 ac_confdir=`$as_dirname -- "$0" ||
daa2886c 1219$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875927f6
AJ
1220 X"$0" : 'X\(//\)[^/]' \| \
1221 X"$0" : 'X\(//\)$' \| \
fc6ffb29 1222 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
daa2886c 1223echo X"$0" |
fc6ffb29
AJ
1224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1225 s//\1/
1226 q
1227 }
1228 /^X\(\/\/\)[^/].*/{
1229 s//\1/
1230 q
1231 }
1232 /^X\(\/\/\)$/{
1233 s//\1/
1234 q
1235 }
1236 /^X\(\/\).*/{
1237 s//\1/
1238 q
1239 }
1240 s/.*/./; q'`
e2991ea7 1241 srcdir=$ac_confdir
fc6ffb29 1242 if test ! -r "$srcdir/$ac_unique_file"; then
e2991ea7
AJ
1243 srcdir=..
1244 fi
1245else
1246 ac_srcdir_defaulted=no
1247fi
fc6ffb29
AJ
1248if test ! -r "$srcdir/$ac_unique_file"; then
1249 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1250 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
f5818d2f 1251 { (exit 1); exit 1; }; }
e2991ea7 1252fi
fc6ffb29
AJ
1253ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1254ac_abs_confdir=`(
1255 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
11af04e3 1256 { (exit 1); exit 1; }; }
fc6ffb29
AJ
1257 pwd)`
1258# When building in place, set srcdir=.
1259if test "$ac_abs_confdir" = "$ac_pwd"; then
1260 srcdir=.
1261fi
1262# Remove unnecessary trailing slashes from srcdir.
1263# Double slashes in file names in object file debugging info
1264# mess up M-x gdb in Emacs.
1265case $srcdir in
1266*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1267esac
1268for ac_var in $ac_precious_vars; do
1269 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_env_${ac_var}_value=\$${ac_var}
1271 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1272 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1273done
f5818d2f
AJ
1274
1275#
1276# Report the --help message.
1277#
1278if test "$ac_init_help" = "long"; then
1279 # Omit some internal or obsolete options to make the list less imposing.
1280 # This message is too long to be a string in the A/UX 3.1 sh.
daa2886c 1281 cat <<_ACEOF
7affdd4c 1282\`configure' configures Wine 0.9.23 to adapt to many kinds of systems.
f5818d2f
AJ
1283
1284Usage: $0 [OPTION]... [VAR=VALUE]...
1285
1286To assign environment variables (e.g., CC, CFLAGS...), specify them as
1287VAR=VALUE. See below for descriptions of some of the useful variables.
1288
1289Defaults for the options are specified in brackets.
1290
1291Configuration:
1292 -h, --help display this help and exit
1293 --help=short display options specific to this package
1294 --help=recursive display the short help of all the included packages
1295 -V, --version display version information and exit
1296 -q, --quiet, --silent do not print \`checking...' messages
1297 --cache-file=FILE cache test results in FILE [disabled]
1298 -C, --config-cache alias for \`--cache-file=config.cache'
1299 -n, --no-create do not create output files
1300 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1301
f5818d2f
AJ
1302Installation directories:
1303 --prefix=PREFIX install architecture-independent files in PREFIX
875927f6 1304 [$ac_default_prefix]
f5818d2f 1305 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
875927f6 1306 [PREFIX]
f5818d2f
AJ
1307
1308By default, \`make install' will install all the files in
1309\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1310an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1311for instance \`--prefix=\$HOME'.
1312
1313For better control, use the options below.
1314
1315Fine tuning of the installation directories:
1316 --bindir=DIR user executables [EPREFIX/bin]
1317 --sbindir=DIR system admin executables [EPREFIX/sbin]
1318 --libexecdir=DIR program executables [EPREFIX/libexec]
f5818d2f
AJ
1319 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1320 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1321 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1322 --libdir=DIR object code libraries [EPREFIX/lib]
1323 --includedir=DIR C header files [PREFIX/include]
1324 --oldincludedir=DIR C header files for non-gcc [/usr/include]
fc6ffb29
AJ
1325 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1326 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1327 --infodir=DIR info documentation [DATAROOTDIR/info]
1328 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1329 --mandir=DIR man documentation [DATAROOTDIR/man]
1330 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1331 --htmldir=DIR html documentation [DOCDIR]
1332 --dvidir=DIR dvi documentation [DOCDIR]
1333 --pdfdir=DIR pdf documentation [DOCDIR]
1334 --psdir=DIR ps documentation [DOCDIR]
daa2886c 1335_ACEOF
f5818d2f 1336
daa2886c 1337 cat <<\_ACEOF
f5818d2f
AJ
1338
1339X features:
1340 --x-includes=DIR X include files are in DIR
1341 --x-libraries=DIR X library files are in DIR
1342
1343System types:
1344 --build=BUILD configure for building on BUILD [guessed]
daa2886c 1345 --host=HOST cross-compile to build programs to run on HOST [BUILD]
daa2886c 1346_ACEOF
f5818d2f
AJ
1347fi
1348
1349if test -n "$ac_init_help"; then
1350 case $ac_init_help in
7affdd4c 1351 short | recursive ) echo "Configuration of Wine 0.9.23:";;
f5818d2f 1352 esac
daa2886c 1353 cat <<\_ACEOF
f5818d2f
AJ
1354
1355Optional Features:
1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
53fa0d54 1358 --disable-win16 do not include Win16 support
2aa8e871
AJ
1359 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1360 binaries)
f5818d2f
AJ
1361
1362Optional Packages:
1363 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1364 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53fa0d54
EP
1365 --without-opengl do not use OpenGL
1366 --without-curses do not use curses
1367 --with-wine-tools=<dir> use Wine tools from directory <dir>
f5818d2f
AJ
1368 --with-x use the X Window System
1369
1370Some influential environment variables:
53fa0d54
EP
1371 CC C compiler command
1372 CFLAGS C compiler flags
1373 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1374 nonstandard directory <lib dir>
fc6ffb29
AJ
1375 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1376 you have headers in a nonstandard directory <include dir>
f41c2b21
DP
1377 CXX C++ compiler command
1378 CXXFLAGS C++ compiler flags
fc6ffb29 1379 XMKMF Path to xmkmf, Makefile generator for X Window System
53fa0d54 1380 CPP C preprocessor
f5818d2f
AJ
1381
1382Use these variables to override the choices made by `configure' or to help
1383it to find libraries and programs with nonstandard names/locations.
1384
875927f6 1385Report bugs to <wine-devel@winehq.org>.
daa2886c 1386_ACEOF
fc6ffb29 1387ac_status=$?
f5818d2f
AJ
1388fi
1389
1390if test "$ac_init_help" = "recursive"; then
1391 # If there are subdirs, report their specific --help.
daa2886c 1392 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
0ebeb530 1393 test -d "$ac_dir" || continue
daa2886c
AJ
1394 ac_builddir=.
1395
fc6ffb29
AJ
1396case "$ac_dir" in
1397.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398*)
daa2886c 1399 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
fc6ffb29
AJ
1400 # A ".." for each directory in $ac_dir_suffix.
1401 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1402 case $ac_top_builddir_sub in
1403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1405 esac ;;
1406esac
1407ac_abs_top_builddir=$ac_pwd
1408ac_abs_builddir=$ac_pwd$ac_dir_suffix
1409# for backward compatibility:
1410ac_top_builddir=$ac_top_build_prefix
f5818d2f 1411
daa2886c 1412case $srcdir in
fc6ffb29 1413 .) # We are building in place.
daa2886c 1414 ac_srcdir=.
fc6ffb29
AJ
1415 ac_top_srcdir=$ac_top_builddir_sub
1416 ac_abs_top_srcdir=$ac_pwd ;;
1417 [\\/]* | ?:[\\/]* ) # Absolute name.
daa2886c 1418 ac_srcdir=$srcdir$ac_dir_suffix;
fc6ffb29
AJ
1419 ac_top_srcdir=$srcdir
1420 ac_abs_top_srcdir=$srcdir ;;
1421 *) # Relative name.
1422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1423 ac_top_srcdir=$ac_top_build_prefix$srcdir
1424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
875927f6 1425esac
fc6ffb29 1426ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
daa2886c 1427
fc6ffb29
AJ
1428 cd "$ac_dir" || { ac_status=$?; continue; }
1429 # Check for guested configure.
0ebeb530 1430 if test -f "$ac_srcdir/configure.gnu"; then
fc6ffb29 1431 echo &&
0ebeb530
JW
1432 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1433 elif test -f "$ac_srcdir/configure"; then
fc6ffb29 1434 echo &&
0ebeb530 1435 $SHELL "$ac_srcdir/configure" --help=recursive
f5818d2f 1436 else
daa2886c 1437 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
fc6ffb29
AJ
1438 fi || ac_status=$?
1439 cd "$ac_pwd" || { ac_status=$?; break; }
f5818d2f
AJ
1440 done
1441fi
e2991ea7 1442
fc6ffb29 1443test -n "$ac_init_help" && exit $ac_status
f5818d2f 1444if $ac_init_version; then
daa2886c 1445 cat <<\_ACEOF
7affdd4c 1446Wine configure 0.9.23
f5f37a85 1447generated by GNU Autoconf 2.60a
f5818d2f 1448
fc6ffb29
AJ
1449Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14502002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
f5818d2f
AJ
1451This configure script is free software; the Free Software Foundation
1452gives unlimited permission to copy, distribute and modify it.
daa2886c 1453_ACEOF
fc6ffb29 1454 exit
f5818d2f 1455fi
fc6ffb29 1456cat >config.log <<_ACEOF
f5818d2f
AJ
1457This file contains any messages produced by compilers while
1458running configure, to aid debugging if configure makes a mistake.
1459
7affdd4c 1460It was created by Wine $as_me 0.9.23, which was
f5f37a85 1461generated by GNU Autoconf 2.60a. Invocation command line was
f5818d2f
AJ
1462
1463 $ $0 $@
1464
daa2886c 1465_ACEOF
fc6ffb29 1466exec 5>>config.log
f5818d2f
AJ
1467{
1468cat <<_ASUNAME
daa2886c
AJ
1469## --------- ##
1470## Platform. ##
1471## --------- ##
f5818d2f
AJ
1472
1473hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1474uname -m = `(uname -m) 2>/dev/null || echo unknown`
1475uname -r = `(uname -r) 2>/dev/null || echo unknown`
1476uname -s = `(uname -s) 2>/dev/null || echo unknown`
1477uname -v = `(uname -v) 2>/dev/null || echo unknown`
1478
1479/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1480/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1481
1482/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1483/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1484/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
fc6ffb29 1485/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
f5818d2f
AJ
1486/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1487/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1488/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1489
f5818d2f 1490_ASUNAME
daa2886c
AJ
1491
1492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493for as_dir in $PATH
1494do
1495 IFS=$as_save_IFS
1496 test -z "$as_dir" && as_dir=.
1497 echo "PATH: $as_dir"
1498done
fc6ffb29 1499IFS=$as_save_IFS
daa2886c 1500
f5818d2f
AJ
1501} >&5
1502
daa2886c
AJ
1503cat >&5 <<_ACEOF
1504
1505
1506## ----------- ##
1507## Core tests. ##
1508## ----------- ##
1509
1510_ACEOF
f5818d2f 1511
f5818d2f
AJ
1512
1513# Keep a trace of the command line.
1514# Strip out --no-create and --no-recursion so they do not pile up.
e24bcc77 1515# Strip out --silent because we don't want to record it for future runs.
f5818d2f 1516# Also quote any args containing shell meta-characters.
e24bcc77 1517# Make two passes to allow for proper duplicate-argument suppression.
f5818d2f 1518ac_configure_args=
e24bcc77
AJ
1519ac_configure_args0=
1520ac_configure_args1=
e24bcc77
AJ
1521ac_must_keep_next=false
1522for ac_pass in 1 2
f5818d2f 1523do
e24bcc77
AJ
1524 for ac_arg
1525 do
1526 case $ac_arg in
1527 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1529 | -silent | --silent | --silen | --sile | --sil)
1530 continue ;;
fc6ffb29 1531 *\'*)
e24bcc77
AJ
1532 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1533 esac
1534 case $ac_pass in
1535 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1536 2)
1537 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1538 if test $ac_must_keep_next = true; then
875927f6 1539 ac_must_keep_next=false # Got value, back to normal.
e24bcc77 1540 else
875927f6
AJ
1541 case $ac_arg in
1542 *=* | --config-cache | -C | -disable-* | --disable-* \
1543 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1544 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1545 | -with-* | --with-* | -without-* | --without-* | --x)
1546 case "$ac_configure_args0 " in
1547 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1548 esac
1549 ;;
1550 -* ) ac_must_keep_next=true ;;
1551 esac
e24bcc77 1552 fi
0ebeb530 1553 ac_configure_args="$ac_configure_args '$ac_arg'"
e24bcc77
AJ
1554 ;;
1555 esac
1556 done
f5818d2f 1557done
e24bcc77
AJ
1558$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1559$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
f5818d2f
AJ
1560
1561# When interrupted or exit'd, cleanup temporary files, and complete
1562# config.log. We remove comments because anyway the quotes in there
1563# would cause problems or look ugly.
fc6ffb29
AJ
1564# WARNING: Use '\'' to represent an apostrophe within the trap.
1565# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
f5818d2f
AJ
1566trap 'exit_status=$?
1567 # Save into config.log some information that might help in debugging.
daa2886c
AJ
1568 {
1569 echo
11af04e3 1570
daa2886c
AJ
1571 cat <<\_ASBOX
1572## ---------------- ##
1573## Cache variables. ##
1574## ---------------- ##
1575_ASBOX
1576 echo
1577 # The following way of writing the cache mishandles newlines in values,
fc6ffb29
AJ
1578(
1579 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1580 eval ac_val=\$$ac_var
1581 case $ac_val in #(
1582 *${as_nl}*)
1583 case $ac_var in #(
1584 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1585echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1586 esac
1587 case $ac_var in #(
1588 _ | IFS | as_nl) ;; #(
1589 *) $as_unset $ac_var ;;
1590 esac ;;
1591 esac
1592 done
f5818d2f 1593 (set) 2>&1 |
fc6ffb29
AJ
1594 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1595 *${as_nl}ac_space=\ *)
f5818d2f 1596 sed -n \
fc6ffb29
AJ
1597 "s/'\''/'\''\\\\'\'''\''/g;
1598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1599 ;; #(
f5818d2f 1600 *)
fc6ffb29 1601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f5818d2f 1602 ;;
fc6ffb29
AJ
1603 esac |
1604 sort
1605)
daa2886c 1606 echo
11af04e3
AJ
1607
1608 cat <<\_ASBOX
1609## ----------------- ##
1610## Output variables. ##
1611## ----------------- ##
1612_ASBOX
1613 echo
1614 for ac_var in $ac_subst_vars
1615 do
fc6ffb29 1616 eval ac_val=\$$ac_var
0ebeb530
JW
1617 case $ac_val in
1618 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1619 esac
fc6ffb29 1620 echo "$ac_var='\''$ac_val'\''"
11af04e3
AJ
1621 done | sort
1622 echo
1623
1624 if test -n "$ac_subst_files"; then
1625 cat <<\_ASBOX
fc6ffb29
AJ
1626## ------------------- ##
1627## File substitutions. ##
1628## ------------------- ##
11af04e3
AJ
1629_ASBOX
1630 echo
1631 for ac_var in $ac_subst_files
1632 do
fc6ffb29 1633 eval ac_val=\$$ac_var
0ebeb530
JW
1634 case $ac_val in
1635 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1636 esac
fc6ffb29 1637 echo "$ac_var='\''$ac_val'\''"
11af04e3
AJ
1638 done | sort
1639 echo
1640 fi
1641
daa2886c
AJ
1642 if test -s confdefs.h; then
1643 cat <<\_ASBOX
1644## ----------- ##
1645## confdefs.h. ##
1646## ----------- ##
1647_ASBOX
1648 echo
fc6ffb29 1649 cat confdefs.h
daa2886c
AJ
1650 echo
1651 fi
1652 test "$ac_signal" != 0 &&
1653 echo "$as_me: caught signal $ac_signal"
1654 echo "$as_me: exit $exit_status"
1655 } >&5
fc6ffb29
AJ
1656 rm -f core *.core core.conftest.* &&
1657 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
f5818d2f 1658 exit $exit_status
fc6ffb29 1659' 0
f5818d2f
AJ
1660for ac_signal in 1 2 13 15; do
1661 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1662done
1663ac_signal=0
1664
1665# confdefs.h avoids OS command line length limits that DEFS can exceed.
fc6ffb29 1666rm -f -r conftest* confdefs.h
f5818d2f 1667
daa2886c
AJ
1668# Predefined preprocessor variables.
1669
1670cat >>confdefs.h <<_ACEOF
1671#define PACKAGE_NAME "$PACKAGE_NAME"
1672_ACEOF
1673
1674
1675cat >>confdefs.h <<_ACEOF
1676#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1677_ACEOF
1678
1679
1680cat >>confdefs.h <<_ACEOF
1681#define PACKAGE_VERSION "$PACKAGE_VERSION"
1682_ACEOF
1683
1684
1685cat >>confdefs.h <<_ACEOF
1686#define PACKAGE_STRING "$PACKAGE_STRING"
1687_ACEOF
1688
1689
1690cat >>confdefs.h <<_ACEOF
1691#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1692_ACEOF
1693
1694
f5818d2f 1695# Let the site file select an alternate cache file if it wants to.
e2991ea7 1696# Prefer explicitly selected file to automatically selected ones.
fc6ffb29
AJ
1697if test -n "$CONFIG_SITE"; then
1698 set x "$CONFIG_SITE"
1699elif test "x$prefix" != xNONE; then
1700 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1701else
1702 set x "$ac_default_prefix/share/config.site" \
1703 "$ac_default_prefix/etc/config.site"
e2991ea7 1704fi
fc6ffb29
AJ
1705shift
1706for ac_site_file
1707do
e2991ea7 1708 if test -r "$ac_site_file"; then
daa2886c 1709 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
f5818d2f 1710echo "$as_me: loading site script $ac_site_file" >&6;}
daa2886c 1711 sed 's/^/| /' "$ac_site_file" >&5
e2991ea7
AJ
1712 . "$ac_site_file"
1713 fi
1714done
1715
1716if test -r "$cache_file"; then
f5818d2f
AJ
1717 # Some versions of bash will fail to source /dev/null (special
1718 # files actually), so we avoid doing that.
1719 if test -f "$cache_file"; then
daa2886c 1720 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
f5818d2f
AJ
1721echo "$as_me: loading cache $cache_file" >&6;}
1722 case $cache_file in
0ebeb530
JW
1723 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1724 *) . "./$cache_file";;
f5818d2f
AJ
1725 esac
1726 fi
e2991ea7 1727else
daa2886c 1728 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
f5818d2f
AJ
1729echo "$as_me: creating cache $cache_file" >&6;}
1730 >$cache_file
1731fi
1732
1733# Check that the precious variables saved in the cache have kept the same
1734# value.
1735ac_cache_corrupted=false
fc6ffb29 1736for ac_var in $ac_precious_vars; do
f5818d2f
AJ
1737 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1738 eval ac_new_set=\$ac_env_${ac_var}_set
fc6ffb29
AJ
1739 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1740 eval ac_new_val=\$ac_env_${ac_var}_value
f5818d2f
AJ
1741 case $ac_old_set,$ac_new_set in
1742 set,)
daa2886c 1743 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
f5818d2f
AJ
1744echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1746 ,set)
daa2886c 1747 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
f5818d2f
AJ
1748echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1749 ac_cache_corrupted=: ;;
1750 ,);;
1751 *)
1752 if test "x$ac_old_val" != "x$ac_new_val"; then
875927f6 1753 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
f5818d2f 1754echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
875927f6 1755 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
f5818d2f 1756echo "$as_me: former value: $ac_old_val" >&2;}
875927f6 1757 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
f5818d2f 1758echo "$as_me: current value: $ac_new_val" >&2;}
875927f6 1759 ac_cache_corrupted=:
f5818d2f
AJ
1760 fi;;
1761 esac
daa2886c 1762 # Pass precious variables to config.status.
f5818d2f
AJ
1763 if test "$ac_new_set" = set; then
1764 case $ac_new_val in
fc6ffb29 1765 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
daa2886c
AJ
1766 *) ac_arg=$ac_var=$ac_new_val ;;
1767 esac
1768 case " $ac_configure_args " in
1769 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1770 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
f5818d2f
AJ
1771 esac
1772 fi
1773done
1774if $ac_cache_corrupted; then
daa2886c 1775 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
f5818d2f 1776echo "$as_me: error: changes in the environment can compromise the build" >&2;}
daa2886c 1777 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
f5818d2f
AJ
1778echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1779 { (exit 1); exit 1; }; }
e2991ea7
AJ
1780fi
1781
daa2886c
AJ
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
fc6ffb29
AJ
1806ac_ext=c
1807ac_cpp='$CPP $CPPFLAGS'
1808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1810ac_compiler_gnu=$ac_cv_c_compiler_gnu
daa2886c 1811
e2991ea7 1812
11af04e3 1813
fc6ffb29 1814ac_config_headers="$ac_config_headers include/config.h"
18f92e76 1815
d7d4fdf8 1816ac_aux_dir=
0ebeb530
JW
1817for ac_dir in tools "$srcdir"/tools; do
1818 if test -f "$ac_dir/install-sh"; then
d7d4fdf8
AJ
1819 ac_aux_dir=$ac_dir
1820 ac_install_sh="$ac_aux_dir/install-sh -c"
1821 break
0ebeb530 1822 elif test -f "$ac_dir/install.sh"; then
d7d4fdf8
AJ
1823 ac_aux_dir=$ac_dir
1824 ac_install_sh="$ac_aux_dir/install.sh -c"
1825 break
0ebeb530 1826 elif test -f "$ac_dir/shtool"; then
f5818d2f
AJ
1827 ac_aux_dir=$ac_dir
1828 ac_install_sh="$ac_aux_dir/shtool install -c"
1829 break
d7d4fdf8
AJ
1830 fi
1831done
1832if test -z "$ac_aux_dir"; then
0ebeb530
JW
1833 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1834echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
f5818d2f 1835 { (exit 1); exit 1; }; }
d7d4fdf8 1836fi
0ebeb530
JW
1837
1838# These three variables are undocumented and unsupported,
1839# and are intended to be withdrawn in a future Autoconf release.
1840# They can cause serious problems if a builder's source tree is in a directory
1841# whose full name contains unusual characters.
1842ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1843ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1844ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1845
ff8331ea 1846
daa2886c
AJ
1847
1848
fc6ffb29 1849# Check whether --enable-win16 was given.
c728efc3 1850if test "${enable_win16+set}" = set; then
fc6ffb29
AJ
1851 enableval=$enable_win16;
1852fi
c728efc3 1853
fc6ffb29 1854# Check whether --enable-win64 was given.
2aa8e871 1855if test "${enable_win64+set}" = set; then
fc6ffb29
AJ
1856 enableval=$enable_win64;
1857fi
2aa8e871 1858
b8074991
AJ
1859
1860
fc6ffb29 1861# Check whether --with-opengl was given.
b8074991 1862if test "${with_opengl+set}" = set; then
fc6ffb29
AJ
1863 withval=$with_opengl;
1864fi
f90efa9c
AJ
1865
1866
fc6ffb29 1867# Check whether --with-curses was given.
5e5ad531 1868if test "${with_curses+set}" = set; then
fc6ffb29
AJ
1869 withval=$with_curses;
1870fi
5e5ad531
PS
1871
1872
fc6ffb29 1873# Check whether --with-wine-tools was given.
fc01b729 1874if test "${with_wine_tools+set}" = set; then
fc6ffb29
AJ
1875 withval=$with_wine_tools;
1876fi
fc01b729 1877
fc01b729 1878
f5818d2f 1879# Make sure we can run config.sub.
0ebeb530
JW
1880$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1881 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1882echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
f5818d2f
AJ
1883 { (exit 1); exit 1; }; }
1884
fc6ffb29
AJ
1885{ echo "$as_me:$LINENO: checking build system type" >&5
1886echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
f5818d2f
AJ
1887if test "${ac_cv_build+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1889else
fc6ffb29
AJ
1890 ac_build_alias=$build_alias
1891test "x$ac_build_alias" = x &&
0ebeb530 1892 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
fc6ffb29 1893test "x$ac_build_alias" = x &&
daa2886c 1894 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
f5818d2f
AJ
1895echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1896 { (exit 1); exit 1; }; }
0ebeb530
JW
1897ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1898 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1899echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
f5818d2f
AJ
1900 { (exit 1); exit 1; }; }
1901
1902fi
fc6ffb29
AJ
1903{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1904echo "${ECHO_T}$ac_cv_build" >&6; }
1905case $ac_cv_build in
1906*-*-*) ;;
1907*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1908echo "$as_me: error: invalid value of canonical build" >&2;}
1909 { (exit 1); exit 1; }; };;
1910esac
f5818d2f 1911build=$ac_cv_build
fc6ffb29
AJ
1912ac_save_IFS=$IFS; IFS='-'
1913set x $ac_cv_build
1914shift
1915build_cpu=$1
1916build_vendor=$2
1917shift; shift
1918# Remember, the first character of IFS is used to create $*,
1919# except with old shells:
1920build_os=$*
1921IFS=$ac_save_IFS
1922case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1923
1924
1925{ echo "$as_me:$LINENO: checking host system type" >&5
1926echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
f5818d2f
AJ
1927if test "${ac_cv_host+set}" = set; then
1928 echo $ECHO_N "(cached) $ECHO_C" >&6
1929else
fc6ffb29
AJ
1930 if test "x$host_alias" = x; then
1931 ac_cv_host=$ac_cv_build
1932else
0ebeb530
JW
1933 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1934 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1935echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
f5818d2f 1936 { (exit 1); exit 1; }; }
fc6ffb29 1937fi
f5818d2f
AJ
1938
1939fi
fc6ffb29
AJ
1940{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1941echo "${ECHO_T}$ac_cv_host" >&6; }
1942case $ac_cv_host in
1943*-*-*) ;;
1944*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1945echo "$as_me: error: invalid value of canonical host" >&2;}
1946 { (exit 1); exit 1; }; };;
1947esac
f5818d2f 1948host=$ac_cv_host
fc6ffb29
AJ
1949ac_save_IFS=$IFS; IFS='-'
1950set x $ac_cv_host
1951shift
1952host_cpu=$1
1953host_vendor=$2
1954shift; shift
1955# Remember, the first character of IFS is used to create $*,
1956# except with old shells:
1957host_os=$*
1958IFS=$ac_save_IFS
1959case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
f5818d2f 1960
daa2886c 1961
2aa8e871
AJ
1962case $host in
1963 x86_64*linux*)
1964 if test "x$enable_win64" != "xyes"
1965 then
1966 test -n "$CC" || CC="gcc -m32"
1967 test -n "$LD" || LD="ld -m elf_i386"
1968 test -n "$AS" || AS="as --32"
bbcf9864 1969 host_cpu="i386"
2aa8e871
AJ
1970 fi
1971 ;;
1972esac
1973
71440f35
AJ
1974case $host_cpu in
1975 *i[3456789]86*)
1976 if test "x$enable_win16" != "xno"
1977 then
1978 enable_win16="yes"
1979 fi
1980 ;;
1981esac
1982
1983WIN16_FILES="\$(WIN16_FILES)"
1984
1985WIN16_INSTALL="\$(WIN16_INSTALL)"
1986
1987if test "x$enable_win16" != "xyes"
1988then
1989 WIN16_FILES=""
1990 WIN16_INSTALL=""
1991fi
1992
1993
fc6ffb29
AJ
1994{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1995echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
0ebeb530 1996set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
fc6ffb29 1997if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f
AJ
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
1999else
daa2886c 2000 cat >conftest.make <<\_ACEOF
fc6ffb29 2001SHELL = /bin/sh
e2991ea7 2002all:
0ebeb530 2003 @echo '@@@%%%=$(MAKE)=@@@%%%'
daa2886c 2004_ACEOF
e2991ea7 2005# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0ebeb530
JW
2006case `${MAKE-make} -f conftest.make 2>/dev/null` in
2007 *@@@%%%=?*=@@@%%%*)
2008 eval ac_cv_prog_make_${ac_make}_set=yes;;
2009 *)
2010 eval ac_cv_prog_make_${ac_make}_set=no;;
2011esac
f5818d2f 2012rm -f conftest.make
e2991ea7 2013fi
0ebeb530 2014if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
fc6ffb29
AJ
2015 { echo "$as_me:$LINENO: result: yes" >&5
2016echo "${ECHO_T}yes" >&6; }
e2991ea7
AJ
2017 SET_MAKE=
2018else
fc6ffb29
AJ
2019 { echo "$as_me:$LINENO: result: no" >&5
2020echo "${ECHO_T}no" >&6; }
e2991ea7
AJ
2021 SET_MAKE="MAKE=${MAKE-make}"
2022fi
2023
f5818d2f
AJ
2024ac_ext=c
2025ac_cpp='$CPP $CPPFLAGS'
2026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029if test -n "$ac_tool_prefix"; then
2030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2031set dummy ${ac_tool_prefix}gcc; ac_word=$2
fc6ffb29
AJ
2032{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2034if test "${ac_cv_prog_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037 if test -n "$CC"; then
2038 ac_cv_prog_CC="$CC" # Let the user override the test.
2039else
daa2886c
AJ
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 2046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2047 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 break 2
2050 fi
2051done
f5818d2f 2052done
fc6ffb29 2053IFS=$as_save_IFS
f5818d2f
AJ
2054
2055fi
2056fi
2057CC=$ac_cv_prog_CC
2058if test -n "$CC"; then
fc6ffb29
AJ
2059 { echo "$as_me:$LINENO: result: $CC" >&5
2060echo "${ECHO_T}$CC" >&6; }
f5818d2f 2061else
fc6ffb29
AJ
2062 { echo "$as_me:$LINENO: result: no" >&5
2063echo "${ECHO_T}no" >&6; }
f5818d2f
AJ
2064fi
2065
fc6ffb29 2066
f5818d2f
AJ
2067fi
2068if test -z "$ac_cv_prog_CC"; then
2069 ac_ct_CC=$CC
2070 # Extract the first word of "gcc", so it can be a program name with args.
e2991ea7 2071set dummy gcc; ac_word=$2
fc6ffb29
AJ
2072{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2074if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2076else
2077 if test -n "$ac_ct_CC"; then
2078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2079else
daa2886c
AJ
2080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081for as_dir in $PATH
2082do
2083 IFS=$as_save_IFS
2084 test -z "$as_dir" && as_dir=.
2085 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 2086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2087 ac_cv_prog_ac_ct_CC="gcc"
2088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 break 2
2090 fi
2091done
f5818d2f 2092done
fc6ffb29 2093IFS=$as_save_IFS
f5818d2f
AJ
2094
2095fi
2096fi
2097ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098if test -n "$ac_ct_CC"; then
fc6ffb29
AJ
2099 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100echo "${ECHO_T}$ac_ct_CC" >&6; }
f5818d2f 2101else
fc6ffb29
AJ
2102 { echo "$as_me:$LINENO: result: no" >&5
2103echo "${ECHO_T}no" >&6; }
f5818d2f
AJ
2104fi
2105
fc6ffb29
AJ
2106 if test "x$ac_ct_CC" = x; then
2107 CC=""
2108 else
2109 case $cross_compiling:$ac_tool_warned in
2110yes:)
2111{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2112whose name does not start with the host triplet. If you think this
2113configuration is useful to you, please write to autoconf@gnu.org." >&5
2114echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2115whose name does not start with the host triplet. If you think this
2116configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2117ac_tool_warned=yes ;;
2118esac
2119 CC=$ac_ct_CC
2120 fi
f5818d2f
AJ
2121else
2122 CC="$ac_cv_prog_CC"
2123fi
2124
2125if test -z "$CC"; then
fc6ffb29
AJ
2126 if test -n "$ac_tool_prefix"; then
2127 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
f5818d2f 2128set dummy ${ac_tool_prefix}cc; ac_word=$2
fc6ffb29
AJ
2129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2131if test "${ac_cv_prog_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
2133else
2134 if test -n "$CC"; then
2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2136else
daa2886c
AJ
2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 2143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2144 ac_cv_prog_CC="${ac_tool_prefix}cc"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 break 2
2147 fi
2148done
f5818d2f 2149done
fc6ffb29 2150IFS=$as_save_IFS
f5818d2f 2151
e2991ea7
AJ
2152fi
2153fi
f5818d2f 2154CC=$ac_cv_prog_CC
e2991ea7 2155if test -n "$CC"; then
fc6ffb29
AJ
2156 { echo "$as_me:$LINENO: result: $CC" >&5
2157echo "${ECHO_T}$CC" >&6; }
f5818d2f 2158else
fc6ffb29
AJ
2159 { echo "$as_me:$LINENO: result: no" >&5
2160echo "${ECHO_T}no" >&6; }
f5818d2f
AJ
2161fi
2162
e2991ea7 2163
fc6ffb29 2164 fi
f5818d2f 2165fi
b817f4fb
AJ
2166if test -z "$CC"; then
2167 # Extract the first word of "cc", so it can be a program name with args.
2168set dummy cc; ac_word=$2
fc6ffb29
AJ
2169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2171if test "${ac_cv_prog_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
b817f4fb
AJ
2173else
2174 if test -n "$CC"; then
2175 ac_cv_prog_CC="$CC" # Let the user override the test.
2176else
b817f4fb 2177 ac_prog_rejected=no
daa2886c
AJ
2178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179for as_dir in $PATH
2180do
2181 IFS=$as_save_IFS
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 2184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2186 ac_prog_rejected=yes
2187 continue
2188 fi
2189 ac_cv_prog_CC="cc"
2190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 break 2
2192 fi
2193done
f5818d2f 2194done
fc6ffb29 2195IFS=$as_save_IFS
f5818d2f 2196
b817f4fb
AJ
2197if test $ac_prog_rejected = yes; then
2198 # We found a bogon in the path, so make sure we never use it.
2199 set dummy $ac_cv_prog_CC
2200 shift
f5818d2f 2201 if test $# != 0; then
b817f4fb
AJ
2202 # We chose a different compiler from the bogus one.
2203 # However, it has the same basename, so the bogon will be chosen
2204 # first if we set CC to just the basename; use the full file name.
2205 shift
11af04e3 2206 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
b817f4fb
AJ
2207 fi
2208fi
2209fi
2210fi
f5818d2f 2211CC=$ac_cv_prog_CC
b817f4fb 2212if test -n "$CC"; then
fc6ffb29
AJ
2213 { echo "$as_me:$LINENO: result: $CC" >&5
2214echo "${ECHO_T}$CC" >&6; }
b817f4fb 2215else
fc6ffb29
AJ
2216 { echo "$as_me:$LINENO: result: no" >&5
2217echo "${ECHO_T}no" >&6; }
b817f4fb
AJ
2218fi
2219
fc6ffb29 2220
f5818d2f
AJ
2221fi
2222if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
fc6ffb29 2224 for ac_prog in cl.exe
f5818d2f
AJ
2225 do
2226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2227set dummy $ac_tool_prefix$ac_prog; ac_word=$2
fc6ffb29
AJ
2228{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2229echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2230if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232else
2233 if test -n "$CC"; then
18ad24a7
EP
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2235else
daa2886c
AJ
2236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237for as_dir in $PATH
2238do
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 2242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245 break 2
2246 fi
2247done
f5818d2f 2248done
fc6ffb29 2249IFS=$as_save_IFS
f5818d2f 2250
18ad24a7
EP
2251fi
2252fi
f5818d2f 2253CC=$ac_cv_prog_CC
18ad24a7 2254if test -n "$CC"; then
fc6ffb29
AJ
2255 { echo "$as_me:$LINENO: result: $CC" >&5
2256echo "${ECHO_T}$CC" >&6; }
18ad24a7 2257else
fc6ffb29
AJ
2258 { echo "$as_me:$LINENO: result: no" >&5
2259echo "${ECHO_T}no" >&6; }
b817f4fb 2260fi
e2991ea7 2261
fc6ffb29 2262
f5818d2f
AJ
2263 test -n "$CC" && break
2264 done
2265fi
2266if test -z "$CC"; then
2267 ac_ct_CC=$CC
fc6ffb29 2268 for ac_prog in cl.exe
f5818d2f
AJ
2269do
2270 # Extract the first word of "$ac_prog", so it can be a program name with args.
2271set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
2272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
2274if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276else
2277 if test -n "$ac_ct_CC"; then
2278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2279else
daa2886c
AJ
2280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281for as_dir in $PATH
2282do
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
2287 ac_cv_prog_ac_ct_CC="$ac_prog"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289 break 2
2290 fi
2291done
f5818d2f 2292done
fc6ffb29 2293IFS=$as_save_IFS
da0cfb36 2294
f5818d2f
AJ
2295fi
2296fi
2297ac_ct_CC=$ac_cv_prog_ac_ct_CC
2298if test -n "$ac_ct_CC"; then
fc6ffb29
AJ
2299 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2300echo "${ECHO_T}$ac_ct_CC" >&6; }
f5818d2f 2301else
fc6ffb29
AJ
2302 { echo "$as_me:$LINENO: result: no" >&5
2303echo "${ECHO_T}no" >&6; }
f5818d2f 2304fi
da0cfb36 2305
fc6ffb29 2306
f5818d2f
AJ
2307 test -n "$ac_ct_CC" && break
2308done
18ad24a7 2309
fc6ffb29
AJ
2310 if test "x$ac_ct_CC" = x; then
2311 CC=""
2312 else
2313 case $cross_compiling:$ac_tool_warned in
2314yes:)
2315{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2316whose name does not start with the host triplet. If you think this
2317configuration is useful to you, please write to autoconf@gnu.org." >&5
2318echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2319whose name does not start with the host triplet. If you think this
2320configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2321ac_tool_warned=yes ;;
2322esac
2323 CC=$ac_ct_CC
2324 fi
f5818d2f
AJ
2325fi
2326
2327fi
2328
daa2886c 2329
e24bcc77
AJ
2330test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2331See \`config.log' for more details." >&5
2332echo "$as_me: error: no acceptable C compiler found in \$PATH
2333See \`config.log' for more details." >&2;}
f5818d2f
AJ
2334 { (exit 1); exit 1; }; }
2335
2336# Provide some information about the compiler.
fc6ffb29 2337echo "$as_me:$LINENO: checking for C compiler version" >&5
f5818d2f 2338ac_compiler=`set X $ac_compile; echo $2`
0ebeb530
JW
2339{ (ac_try="$ac_compiler --version >&5"
2340case "(($ac_try" in
2341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342 *) ac_try_echo=$ac_try;;
2343esac
2344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2345 (eval "$ac_compiler --version >&5") 2>&5
f5818d2f 2346 ac_status=$?
daa2886c 2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2348 (exit $ac_status); }
0ebeb530
JW
2349{ (ac_try="$ac_compiler -v >&5"
2350case "(($ac_try" in
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2353esac
2354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355 (eval "$ac_compiler -v >&5") 2>&5
f5818d2f 2356 ac_status=$?
daa2886c 2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2358 (exit $ac_status); }
0ebeb530
JW
2359{ (ac_try="$ac_compiler -V >&5"
2360case "(($ac_try" in
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2363esac
2364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365 (eval "$ac_compiler -V >&5") 2>&5
f5818d2f 2366 ac_status=$?
daa2886c 2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2368 (exit $ac_status); }
2369
2370cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
2371/* confdefs.h. */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h. */
18ad24a7 2376
f5818d2f
AJ
2377int
2378main ()
2379{
2380
2381 ;
2382 return 0;
2383}
2384_ACEOF
2385ac_clean_files_save=$ac_clean_files
0ebeb530 2386ac_clean_files="$ac_clean_files a.out a.exe b.out"
f5818d2f
AJ
2387# Try to create an executable without -o first, disregard a.out.
2388# It will help us diagnose broken compilers, and finding out an intuition
2389# of exeext.
fc6ffb29
AJ
2390{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2391echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
f5818d2f 2392ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
0ebeb530
JW
2393#
2394# List of possible output files, starting from the most likely.
2395# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2396# only as a last resort. b.out is created by i960 compilers.
2397ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2398#
2399# The IRIX 6 linker writes into existing files which may not be
2400# executable, retaining their permissions. Remove them first so a
2401# subsequent execution test works.
2402ac_rmfiles=
2403for ac_file in $ac_files
2404do
2405 case $ac_file in
2406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2407 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2408 esac
2409done
2410rm -f $ac_rmfiles
fc6ffb29 2411
0ebeb530
JW
2412if { (ac_try="$ac_link_default"
2413case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2416esac
2417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_link_default") 2>&5
f5818d2f 2419 ac_status=$?
daa2886c 2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2421 (exit $ac_status); }; then
0ebeb530
JW
2422 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2423# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2424# in a Makefile. We should not override ac_cv_exeext if it was cached,
2425# so that the user can short-circuit this test for compilers unknown to
2426# Autoconf.
78bd1948 2427for ac_file in $ac_files ''
e24bcc77 2428do
11af04e3 2429 test -f "$ac_file" || continue
f5818d2f 2430 case $ac_file in
0ebeb530
JW
2431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2432 ;;
2433 [ab].out )
2434 # We found the default executable, but exeext='' is most
2435 # certainly right.
2436 break;;
2437 *.* )
2438 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2439 then :; else
2440 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2441 fi
2442 # We set ac_cv_exeext here because the later test for it is not
2443 # safe: cross compilers may not add the suffix if given an `-o'
2444 # argument, so we may need to know it at that point already.
2445 # Even if this section looks crufty: it has the advantage of
2446 # actually working.
2447 break;;
2448 * )
2449 break;;
f5818d2f
AJ
2450 esac
2451done
0ebeb530 2452test "$ac_cv_exeext" = no && ac_cv_exeext=
fc6ffb29 2453
f5818d2f 2454else
78bd1948
AJ
2455 ac_file=''
2456fi
2457
2458{ echo "$as_me:$LINENO: result: $ac_file" >&5
2459echo "${ECHO_T}$ac_file" >&6; }
2460if test -z "$ac_file"; then
f5818d2f 2461 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2462sed 's/^/| /' conftest.$ac_ext >&5
2463
11af04e3 2464{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
e24bcc77 2465See \`config.log' for more details." >&5
11af04e3 2466echo "$as_me: error: C compiler cannot create executables
e24bcc77 2467See \`config.log' for more details." >&2;}
f5818d2f
AJ
2468 { (exit 77); exit 77; }; }
2469fi
2470
0ebeb530 2471ac_exeext=$ac_cv_exeext
0ebeb530 2472
fc6ffb29 2473# Check that the compiler produces executables we can run. If not, either
f5818d2f 2474# the compiler is broken, or we cross compile.
fc6ffb29
AJ
2475{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2476echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
f5818d2f
AJ
2477# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2478# If not cross compiling, check that we can run a simple program.
2479if test "$cross_compiling" != yes; then
2480 if { ac_try='./$ac_file'
0ebeb530
JW
2481 { (case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2484esac
2485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486 (eval "$ac_try") 2>&5
f5818d2f 2487 ac_status=$?
daa2886c 2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2489 (exit $ac_status); }; }; then
2490 cross_compiling=no
7e6ae4ba 2491 else
f5818d2f
AJ
2492 if test "$cross_compiling" = maybe; then
2493 cross_compiling=yes
2494 else
daa2886c 2495 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
e24bcc77
AJ
2496If you meant to cross compile, use \`--host'.
2497See \`config.log' for more details." >&5
f5818d2f 2498echo "$as_me: error: cannot run C compiled programs.
e24bcc77
AJ
2499If you meant to cross compile, use \`--host'.
2500See \`config.log' for more details." >&2;}
f5818d2f
AJ
2501 { (exit 1); exit 1; }; }
2502 fi
7e6ae4ba 2503 fi
f5818d2f 2504fi
fc6ffb29
AJ
2505{ echo "$as_me:$LINENO: result: yes" >&5
2506echo "${ECHO_T}yes" >&6; }
f5818d2f 2507
0ebeb530
JW
2508rm -f a.out a.exe conftest$ac_cv_exeext b.out
2509ac_clean_files=$ac_clean_files_save
2510# Check that the compiler produces executables we can run. If not, either
2511# the compiler is broken, or we cross compile.
fc6ffb29
AJ
2512{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2513echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2514{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2515echo "${ECHO_T}$cross_compiling" >&6; }
2516
2517{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2518echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
0ebeb530
JW
2519if { (ac_try="$ac_link"
2520case "(($ac_try" in
2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522 *) ac_try_echo=$ac_try;;
2523esac
2524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525 (eval "$ac_link") 2>&5
f5818d2f 2526 ac_status=$?
daa2886c 2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2528 (exit $ac_status); }; then
0ebeb530
JW
2529 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2530# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2531# work properly (i.e., refer to `conftest.exe'), while it won't with
2532# `rm'.
2533for ac_file in conftest.exe conftest conftest.*; do
2534 test -f "$ac_file" || continue
2535 case $ac_file in
2536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2538 break;;
2539 * ) break;;
2540 esac
2541done
da0cfb36 2542else
e24bcc77
AJ
2543 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2544See \`config.log' for more details." >&5
2545echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2546See \`config.log' for more details." >&2;}
f5818d2f 2547 { (exit 1); exit 1; }; }
da0cfb36 2548fi
da0cfb36 2549
0ebeb530 2550rm -f conftest$ac_cv_exeext
fc6ffb29
AJ
2551{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2552echo "${ECHO_T}$ac_cv_exeext" >&6; }
0ebeb530
JW
2553
2554rm -f conftest.$ac_ext
f5818d2f
AJ
2555EXEEXT=$ac_cv_exeext
2556ac_exeext=$EXEEXT
fc6ffb29
AJ
2557{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2558echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
f5818d2f
AJ
2559if test "${ac_cv_objext+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 2561else
0ebeb530
JW
2562 cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h. */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h. */
2568
2569int
2570main ()
2571{
2572
2573 ;
2574 return 0;
2575}
2576_ACEOF
2577rm -f conftest.o conftest.obj
2578if { (ac_try="$ac_compile"
2579case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2582esac
2583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_compile") 2>&5
f5818d2f 2585 ac_status=$?
daa2886c 2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2587 (exit $ac_status); }; then
fc6ffb29
AJ
2588 for ac_file in conftest.o conftest.obj conftest.*; do
2589 test -f "$ac_file" || continue;
f5818d2f 2590 case $ac_file in
fc6ffb29 2591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
f5818d2f
AJ
2592 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2593 break;;
2594 esac
2595done
18ad24a7 2596else
f5818d2f 2597 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2598sed 's/^/| /' conftest.$ac_ext >&5
2599
2600{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2601See \`config.log' for more details." >&5
2602echo "$as_me: error: cannot compute suffix of object files: cannot compile
2603See \`config.log' for more details." >&2;}
f5818d2f 2604 { (exit 1); exit 1; }; }
18ad24a7
EP
2605fi
2606
0ebeb530 2607rm -f conftest.$ac_cv_objext conftest.$ac_ext
f5818d2f 2608fi
fc6ffb29
AJ
2609{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2610echo "${ECHO_T}$ac_cv_objext" >&6; }
f5818d2f
AJ
2611OBJEXT=$ac_cv_objext
2612ac_objext=$OBJEXT
fc6ffb29
AJ
2613{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2614echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
f5818d2f
AJ
2615if test "${ac_cv_c_compiler_gnu+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 2617else
f5818d2f 2618 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
2619/* confdefs.h. */
2620_ACEOF
2621cat confdefs.h >>conftest.$ac_ext
2622cat >>conftest.$ac_ext <<_ACEOF
2623/* end confdefs.h. */
f5818d2f
AJ
2624
2625int
2626main ()
2627{
2628#ifndef __GNUC__
2629 choke me
2630#endif
2631
2632 ;
2633 return 0;
2634}
2635_ACEOF
2636rm -f conftest.$ac_objext
0ebeb530
JW
2637if { (ac_try="$ac_compile"
2638case "(($ac_try" in
2639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640 *) ac_try_echo=$ac_try;;
2641esac
2642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643 (eval "$ac_compile") 2>conftest.er1
f5818d2f 2644 ac_status=$?
875927f6
AJ
2645 grep -v '^ *+' conftest.er1 >conftest.err
2646 rm -f conftest.er1
2647 cat conftest.err >&5
daa2886c 2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2649 (exit $ac_status); } &&
0ebeb530
JW
2650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2651 { (case "(($ac_try" in
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2654esac
2655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656 (eval "$ac_try") 2>&5
875927f6
AJ
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
2661 { (case "(($ac_try" in
2662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663 *) ac_try_echo=$ac_try;;
2664esac
2665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2666 (eval "$ac_try") 2>&5
f5818d2f 2667 ac_status=$?
daa2886c 2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2669 (exit $ac_status); }; }; then
2670 ac_compiler_gnu=yes
2671else
2672 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2673sed 's/^/| /' conftest.$ac_ext >&5
2674
fc6ffb29 2675 ac_compiler_gnu=no
f5818d2f 2676fi
fc6ffb29 2677
0ebeb530 2678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f
AJ
2679ac_cv_c_compiler_gnu=$ac_compiler_gnu
2680
2681fi
fc6ffb29
AJ
2682{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2683echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
f5818d2f
AJ
2684GCC=`test $ac_compiler_gnu = yes && echo yes`
2685ac_test_CFLAGS=${CFLAGS+set}
2686ac_save_CFLAGS=$CFLAGS
fc6ffb29
AJ
2687{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2688echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
f5818d2f
AJ
2689if test "${ac_cv_prog_cc_g+set}" = set; then
2690 echo $ECHO_N "(cached) $ECHO_C" >&6
2691else
fc6ffb29
AJ
2692 ac_save_c_werror_flag=$ac_c_werror_flag
2693 ac_c_werror_flag=yes
2694 ac_cv_prog_cc_g=no
2695 CFLAGS="-g"
2696 cat >conftest.$ac_ext <<_ACEOF
2697/* confdefs.h. */
2698_ACEOF
2699cat confdefs.h >>conftest.$ac_ext
2700cat >>conftest.$ac_ext <<_ACEOF
2701/* end confdefs.h. */
2702
2703int
2704main ()
2705{
2706
2707 ;
2708 return 0;
2709}
2710_ACEOF
2711rm -f conftest.$ac_objext
0ebeb530
JW
2712if { (ac_try="$ac_compile"
2713case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compile") 2>conftest.er1
fc6ffb29
AJ
2719 ac_status=$?
2720 grep -v '^ *+' conftest.er1 >conftest.err
2721 rm -f conftest.er1
2722 cat conftest.err >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); } &&
0ebeb530
JW
2725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2726 { (case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729esac
2730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_try") 2>&5
fc6ffb29
AJ
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
2736 { (case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739esac
2740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_try") 2>&5
fc6ffb29
AJ
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; }; then
2745 ac_cv_prog_cc_g=yes
2746else
2747 echo "$as_me: failed program was:" >&5
2748sed 's/^/| /' conftest.$ac_ext >&5
2749
2750 CFLAGS=""
2751 cat >conftest.$ac_ext <<_ACEOF
2752/* confdefs.h. */
2753_ACEOF
2754cat confdefs.h >>conftest.$ac_ext
2755cat >>conftest.$ac_ext <<_ACEOF
2756/* end confdefs.h. */
2757
2758int
2759main ()
2760{
2761
2762 ;
2763 return 0;
2764}
2765_ACEOF
2766rm -f conftest.$ac_objext
0ebeb530
JW
2767if { (ac_try="$ac_compile"
2768case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771esac
2772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compile") 2>conftest.er1
fc6ffb29
AJ
2774 ac_status=$?
2775 grep -v '^ *+' conftest.er1 >conftest.err
2776 rm -f conftest.er1
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } &&
0ebeb530
JW
2780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2781 { (case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784esac
2785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_try") 2>&5
fc6ffb29
AJ
2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; } &&
2790 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
2791 { (case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794esac
2795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796 (eval "$ac_try") 2>&5
fc6ffb29
AJ
2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2800 :
2801else
2802 echo "$as_me: failed program was:" >&5
2803sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 ac_c_werror_flag=$ac_save_c_werror_flag
2806 CFLAGS="-g"
2807 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
2808/* confdefs.h. */
2809_ACEOF
2810cat confdefs.h >>conftest.$ac_ext
2811cat >>conftest.$ac_ext <<_ACEOF
2812/* end confdefs.h. */
f5818d2f
AJ
2813
2814int
2815main ()
2816{
2817
2818 ;
2819 return 0;
2820}
2821_ACEOF
2822rm -f conftest.$ac_objext
0ebeb530
JW
2823if { (ac_try="$ac_compile"
2824case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827esac
2828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829 (eval "$ac_compile") 2>conftest.er1
f5818d2f 2830 ac_status=$?
875927f6
AJ
2831 grep -v '^ *+' conftest.er1 >conftest.err
2832 rm -f conftest.er1
2833 cat conftest.err >&5
daa2886c 2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2835 (exit $ac_status); } &&
0ebeb530
JW
2836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2837 { (case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840esac
2841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_try") 2>&5
875927f6
AJ
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; } &&
2846 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
2847 { (case "(($ac_try" in
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2850esac
2851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2852 (eval "$ac_try") 2>&5
f5818d2f 2853 ac_status=$?
daa2886c 2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2855 (exit $ac_status); }; }; then
7e6ae4ba 2856 ac_cv_prog_cc_g=yes
e2991ea7 2857else
f5818d2f 2858 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2859sed 's/^/| /' conftest.$ac_ext >&5
2860
fc6ffb29
AJ
2861
2862fi
2863
0ebeb530 2864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
2865fi
2866
0ebeb530 2867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e2991ea7 2868fi
fc6ffb29 2869
0ebeb530 2870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 2871 ac_c_werror_flag=$ac_save_c_werror_flag
e2991ea7 2872fi
fc6ffb29
AJ
2873{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2874echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
18ad24a7 2875if test "$ac_test_CFLAGS" = set; then
f5818d2f 2876 CFLAGS=$ac_save_CFLAGS
18ad24a7
EP
2877elif test $ac_cv_prog_cc_g = yes; then
2878 if test "$GCC" = yes; then
da0cfb36
AJ
2879 CFLAGS="-g -O2"
2880 else
18ad24a7 2881 CFLAGS="-g"
e2991ea7
AJ
2882 fi
2883else
18ad24a7
EP
2884 if test "$GCC" = yes; then
2885 CFLAGS="-O2"
2886 else
2887 CFLAGS=
2888 fi
e2991ea7 2889fi
fc6ffb29
AJ
2890{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2891echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2892if test "${ac_cv_prog_cc_c89+set}" = set; then
11af04e3
AJ
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894else
fc6ffb29 2895 ac_cv_prog_cc_c89=no
11af04e3
AJ
2896ac_save_CC=$CC
2897cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
2898/* confdefs.h. */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h. */
11af04e3
AJ
2903#include <stdarg.h>
2904#include <stdio.h>
2905#include <sys/types.h>
2906#include <sys/stat.h>
2907/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2908struct buf { int x; };
2909FILE * (*rcsopen) (struct buf *, struct stat *, int);
2910static char *e (p, i)
2911 char **p;
2912 int i;
2913{
2914 return p[i];
2915}
2916static char *f (char * (*g) (char **, int), char **p, ...)
2917{
2918 char *s;
2919 va_list v;
2920 va_start (v,p);
2921 s = g (p, va_arg (v,int));
2922 va_end (v);
2923 return s;
2924}
875927f6
AJ
2925
2926/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2927 function prototypes and stuff, but not '\xHH' hex character constants.
2928 These don't provoke an error unfortunately, instead are silently treated
fc6ffb29 2929 as 'x'. The following induces an error, until -std is added to get
875927f6
AJ
2930 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2931 array size at least. It's necessary to write '\x00'==0 to get something
fc6ffb29 2932 that's true only with -std. */
875927f6
AJ
2933int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2934
f5f37a85
AJ
2935/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2936 inside strings and character constants. */
2937#define FOO(x) 'x'
2938int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2939
11af04e3
AJ
2940int test (int i, double x);
2941struct s1 {int (*f) (int a);};
2942struct s2 {int (*f) (double a);};
2943int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2944int argc;
2945char **argv;
2946int
2947main ()
2948{
2949return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2950 ;
2951 return 0;
2952}
2953_ACEOF
fc6ffb29
AJ
2954for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2955 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11af04e3
AJ
2956do
2957 CC="$ac_save_CC $ac_arg"
2958 rm -f conftest.$ac_objext
0ebeb530
JW
2959if { (ac_try="$ac_compile"
2960case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_compile") 2>conftest.er1
11af04e3 2966 ac_status=$?
875927f6
AJ
2967 grep -v '^ *+' conftest.er1 >conftest.err
2968 rm -f conftest.er1
2969 cat conftest.err >&5
11af04e3
AJ
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
0ebeb530
JW
2972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2973 { (case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976esac
2977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_try") 2>&5
875927f6
AJ
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; } &&
2982 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
2983 { (case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_try") 2>&5
11af04e3
AJ
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; }; then
fc6ffb29 2992 ac_cv_prog_cc_c89=$ac_arg
11af04e3
AJ
2993else
2994 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2995sed 's/^/| /' conftest.$ac_ext >&5
2996
fc6ffb29 2997
11af04e3 2998fi
fc6ffb29 2999
0ebeb530 3000rm -f core conftest.err conftest.$ac_objext
fc6ffb29 3001 test "x$ac_cv_prog_cc_c89" != "xno" && break
11af04e3 3002done
fc6ffb29 3003rm -f conftest.$ac_ext
11af04e3
AJ
3004CC=$ac_save_CC
3005
3006fi
fc6ffb29
AJ
3007# AC_CACHE_VAL
3008case "x$ac_cv_prog_cc_c89" in
3009 x)
3010 { echo "$as_me:$LINENO: result: none needed" >&5
3011echo "${ECHO_T}none needed" >&6; } ;;
3012 xno)
3013 { echo "$as_me:$LINENO: result: unsupported" >&5
3014echo "${ECHO_T}unsupported" >&6; } ;;
11af04e3 3015 *)
fc6ffb29
AJ
3016 CC="$CC $ac_cv_prog_cc_c89"
3017 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3018echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
11af04e3
AJ
3019esac
3020
e24bcc77 3021
f5818d2f
AJ
3022ac_ext=c
3023ac_cpp='$CPP $CPPFLAGS'
3024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026ac_compiler_gnu=$ac_cv_c_compiler_gnu
e2991ea7 3027
fc6ffb29 3028ac_ext=cpp
f41c2b21
DP
3029ac_cpp='$CXXCPP $CPPFLAGS'
3030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
fc6ffb29
AJ
3033if test -z "$CXX"; then
3034 if test -n "$CCC"; then
3035 CXX=$CCC
3036 else
3037 if test -n "$ac_tool_prefix"; then
3038 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
f41c2b21
DP
3039 do
3040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3041set dummy $ac_tool_prefix$ac_prog; ac_word=$2
fc6ffb29
AJ
3042{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f41c2b21
DP
3044if test "${ac_cv_prog_CXX+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046else
3047 if test -n "$CXX"; then
3048 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3049else
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
f41c2b21
DP
3057 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061done
3062done
fc6ffb29 3063IFS=$as_save_IFS
f41c2b21
DP
3064
3065fi
3066fi
3067CXX=$ac_cv_prog_CXX
3068if test -n "$CXX"; then
fc6ffb29
AJ
3069 { echo "$as_me:$LINENO: result: $CXX" >&5
3070echo "${ECHO_T}$CXX" >&6; }
f41c2b21 3071else
fc6ffb29
AJ
3072 { echo "$as_me:$LINENO: result: no" >&5
3073echo "${ECHO_T}no" >&6; }
f41c2b21
DP
3074fi
3075
fc6ffb29 3076
f41c2b21
DP
3077 test -n "$CXX" && break
3078 done
3079fi
3080if test -z "$CXX"; then
3081 ac_ct_CXX=$CXX
fc6ffb29 3082 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
f41c2b21
DP
3083do
3084 # Extract the first word of "$ac_prog", so it can be a program name with args.
3085set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
3086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f41c2b21
DP
3088if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3089 echo $ECHO_N "(cached) $ECHO_C" >&6
3090else
3091 if test -n "$ac_ct_CXX"; then
3092 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3093else
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 3100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
f41c2b21
DP
3101 ac_cv_prog_ac_ct_CXX="$ac_prog"
3102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105done
3106done
fc6ffb29 3107IFS=$as_save_IFS
f41c2b21
DP
3108
3109fi
3110fi
3111ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3112if test -n "$ac_ct_CXX"; then
fc6ffb29
AJ
3113 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3114echo "${ECHO_T}$ac_ct_CXX" >&6; }
f41c2b21 3115else
fc6ffb29
AJ
3116 { echo "$as_me:$LINENO: result: no" >&5
3117echo "${ECHO_T}no" >&6; }
f41c2b21
DP
3118fi
3119
fc6ffb29 3120
f41c2b21
DP
3121 test -n "$ac_ct_CXX" && break
3122done
f41c2b21 3123
fc6ffb29
AJ
3124 if test "x$ac_ct_CXX" = x; then
3125 CXX="g++"
3126 else
3127 case $cross_compiling:$ac_tool_warned in
3128yes:)
3129{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3130whose name does not start with the host triplet. If you think this
3131configuration is useful to you, please write to autoconf@gnu.org." >&5
3132echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3133whose name does not start with the host triplet. If you think this
3134configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3135ac_tool_warned=yes ;;
3136esac
3137 CXX=$ac_ct_CXX
3138 fi
f41c2b21
DP
3139fi
3140
fc6ffb29
AJ
3141 fi
3142fi
f41c2b21 3143# Provide some information about the compiler.
fc6ffb29 3144echo "$as_me:$LINENO: checking for C++ compiler version" >&5
f41c2b21 3145ac_compiler=`set X $ac_compile; echo $2`
0ebeb530
JW
3146{ (ac_try="$ac_compiler --version >&5"
3147case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_compiler --version >&5") 2>&5
f41c2b21
DP
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }
0ebeb530
JW
3156{ (ac_try="$ac_compiler -v >&5"
3157case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compiler -v >&5") 2>&5
f41c2b21
DP
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }
0ebeb530
JW
3166{ (ac_try="$ac_compiler -V >&5"
3167case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170esac
3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compiler -V >&5") 2>&5
f41c2b21
DP
3173 ac_status=$?
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); }
3176
fc6ffb29
AJ
3177{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3178echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
f41c2b21
DP
3179if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3181else
3182 cat >conftest.$ac_ext <<_ACEOF
3183/* confdefs.h. */
3184_ACEOF
3185cat confdefs.h >>conftest.$ac_ext
3186cat >>conftest.$ac_ext <<_ACEOF
3187/* end confdefs.h. */
3188
3189int
3190main ()
3191{
3192#ifndef __GNUC__
3193 choke me
3194#endif
3195
3196 ;
3197 return 0;
3198}
3199_ACEOF
3200rm -f conftest.$ac_objext
0ebeb530
JW
3201if { (ac_try="$ac_compile"
3202case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205esac
3206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compile") 2>conftest.er1
f41c2b21
DP
3208 ac_status=$?
3209 grep -v '^ *+' conftest.er1 >conftest.err
3210 rm -f conftest.er1
3211 cat conftest.err >&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); } &&
0ebeb530
JW
3214 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3215 { (case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218esac
3219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_try") 2>&5
f41c2b21
DP
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }; } &&
3224 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
3225 { (case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228esac
3229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_try") 2>&5
f41c2b21
DP
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3234 ac_compiler_gnu=yes
3235else
3236 echo "$as_me: failed program was:" >&5
3237sed 's/^/| /' conftest.$ac_ext >&5
3238
fc6ffb29 3239 ac_compiler_gnu=no
f41c2b21 3240fi
fc6ffb29 3241
0ebeb530 3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21
DP
3243ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3244
3245fi
fc6ffb29
AJ
3246{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3247echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
f41c2b21
DP
3248GXX=`test $ac_compiler_gnu = yes && echo yes`
3249ac_test_CXXFLAGS=${CXXFLAGS+set}
3250ac_save_CXXFLAGS=$CXXFLAGS
fc6ffb29
AJ
3251{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3252echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
f41c2b21
DP
3253if test "${ac_cv_prog_cxx_g+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255else
fc6ffb29
AJ
3256 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3257 ac_cxx_werror_flag=yes
3258 ac_cv_prog_cxx_g=no
3259 CXXFLAGS="-g"
3260 cat >conftest.$ac_ext <<_ACEOF
f41c2b21
DP
3261/* confdefs.h. */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h. */
3266
3267int
3268main ()
3269{
3270
3271 ;
3272 return 0;
3273}
3274_ACEOF
3275rm -f conftest.$ac_objext
0ebeb530
JW
3276if { (ac_try="$ac_compile"
3277case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280esac
3281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_compile") 2>conftest.er1
f41c2b21
DP
3283 ac_status=$?
3284 grep -v '^ *+' conftest.er1 >conftest.err
3285 rm -f conftest.er1
3286 cat conftest.err >&5
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } &&
0ebeb530
JW
3289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3290 { (case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293esac
3294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_try") 2>&5
f41c2b21
DP
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; } &&
3299 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
3300 { (case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303esac
3304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_try") 2>&5
f41c2b21
DP
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; }; then
3309 ac_cv_prog_cxx_g=yes
3310else
3311 echo "$as_me: failed program was:" >&5
3312sed 's/^/| /' conftest.$ac_ext >&5
3313
fc6ffb29
AJ
3314 CXXFLAGS=""
3315 cat >conftest.$ac_ext <<_ACEOF
f41c2b21
DP
3316/* confdefs.h. */
3317_ACEOF
3318cat confdefs.h >>conftest.$ac_ext
3319cat >>conftest.$ac_ext <<_ACEOF
3320/* end confdefs.h. */
fc6ffb29 3321
f41c2b21
DP
3322int
3323main ()
3324{
fc6ffb29 3325
f41c2b21
DP
3326 ;
3327 return 0;
3328}
3329_ACEOF
3330rm -f conftest.$ac_objext
0ebeb530
JW
3331if { (ac_try="$ac_compile"
3332case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335esac
3336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_compile") 2>conftest.er1
f41c2b21
DP
3338 ac_status=$?
3339 grep -v '^ *+' conftest.er1 >conftest.err
3340 rm -f conftest.er1
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
0ebeb530
JW
3344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3345 { (case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348esac
3349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_try") 2>&5
f41c2b21
DP
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; } &&
3354 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
3355 { (case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_try") 2>&5
f41c2b21
DP
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 :
3365else
3366 echo "$as_me: failed program was:" >&5
3367sed 's/^/| /' conftest.$ac_ext >&5
3368
fc6ffb29
AJ
3369 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3370 CXXFLAGS="-g"
3371 cat >conftest.$ac_ext <<_ACEOF
f41c2b21
DP
3372/* confdefs.h. */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h. */
fc6ffb29 3377
f41c2b21
DP
3378int
3379main ()
3380{
fc6ffb29 3381
f41c2b21
DP
3382 ;
3383 return 0;
3384}
3385_ACEOF
3386rm -f conftest.$ac_objext
0ebeb530
JW
3387if { (ac_try="$ac_compile"
3388case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391esac
3392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compile") 2>conftest.er1
f41c2b21
DP
3394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
0ebeb530
JW
3400 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3401 { (case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404esac
3405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_try") 2>&5
f41c2b21
DP
3407 ac_status=$?
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); }; } &&
3410 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
3411 { (case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414esac
3415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416 (eval "$ac_try") 2>&5
f41c2b21
DP
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; }; then
fc6ffb29 3420 ac_cv_prog_cxx_g=yes
f41c2b21
DP
3421else
3422 echo "$as_me: failed program was:" >&5
3423sed 's/^/| /' conftest.$ac_ext >&5
3424
fc6ffb29 3425
f41c2b21 3426fi
fc6ffb29 3427
0ebeb530 3428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
3429fi
3430
0ebeb530 3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21
DP
3432fi
3433
0ebeb530 3434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
3435 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3436fi
3437{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3438echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3439if test "$ac_test_CXXFLAGS" = set; then
3440 CXXFLAGS=$ac_save_CXXFLAGS
3441elif test $ac_cv_prog_cxx_g = yes; then
3442 if test "$GXX" = yes; then
3443 CXXFLAGS="-g -O2"
3444 else
3445 CXXFLAGS="-g"
3446 fi
3447else
3448 if test "$GXX" = yes; then
3449 CXXFLAGS="-O2"
3450 else
3451 CXXFLAGS=
3452 fi
3453fi
f41c2b21
DP
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
3e61ef7d
AJ
3460if test -n "$ac_tool_prefix"; then
3461 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3462set dummy ${ac_tool_prefix}cpp; ac_word=$2
fc6ffb29
AJ
3463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a631ef63 3465if test "${ac_cv_prog_CPPBIN+set}" = set; then
f41c2b21
DP
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3467else
a631ef63
AJ
3468 if test -n "$CPPBIN"; then
3469 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
f41c2b21
DP
3470else
3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH
3473do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 3477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a631ef63 3478 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
f41c2b21
DP
3479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 break 2
3481 fi
3482done
3483done
fc6ffb29 3484IFS=$as_save_IFS
f41c2b21
DP
3485
3486fi
3487fi
a631ef63
AJ
3488CPPBIN=$ac_cv_prog_CPPBIN
3489if test -n "$CPPBIN"; then
fc6ffb29
AJ
3490 { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3491echo "${ECHO_T}$CPPBIN" >&6; }
f41c2b21 3492else
fc6ffb29
AJ
3493 { echo "$as_me:$LINENO: result: no" >&5
3494echo "${ECHO_T}no" >&6; }
f41c2b21
DP
3495fi
3496
fc6ffb29 3497
3e61ef7d 3498fi
a631ef63
AJ
3499if test -z "$ac_cv_prog_CPPBIN"; then
3500 ac_ct_CPPBIN=$CPPBIN
3e61ef7d
AJ
3501 # Extract the first word of "cpp", so it can be a program name with args.
3502set dummy cpp; ac_word=$2
fc6ffb29
AJ
3503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
a631ef63 3505if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3e61ef7d
AJ
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507else
a631ef63
AJ
3508 if test -n "$ac_ct_CPPBIN"; then
3509 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3e61ef7d
AJ
3510else
3511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512for as_dir in $PATH
3513do
3514 IFS=$as_save_IFS
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 3517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
a631ef63 3518 ac_cv_prog_ac_ct_CPPBIN="cpp"
3e61ef7d
AJ
3519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 break 2
3521 fi
3522done
3523done
fc6ffb29 3524IFS=$as_save_IFS
3e61ef7d 3525
3e61ef7d
AJ
3526fi
3527fi
a631ef63
AJ
3528ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3529if test -n "$ac_ct_CPPBIN"; then
fc6ffb29
AJ
3530 { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3531echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
3e61ef7d 3532else
fc6ffb29
AJ
3533 { echo "$as_me:$LINENO: result: no" >&5
3534echo "${ECHO_T}no" >&6; }
3e61ef7d
AJ
3535fi
3536
fc6ffb29
AJ
3537 if test "x$ac_ct_CPPBIN" = x; then
3538 CPPBIN="cpp"
3539 else
3540 case $cross_compiling:$ac_tool_warned in
3541yes:)
3542{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3543whose name does not start with the host triplet. If you think this
3544configuration is useful to you, please write to autoconf@gnu.org." >&5
3545echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3546whose name does not start with the host triplet. If you think this
3547configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3548ac_tool_warned=yes ;;
3549esac
3550 CPPBIN=$ac_ct_CPPBIN
3551 fi
3e61ef7d 3552else
a631ef63 3553 CPPBIN="$ac_cv_prog_CPPBIN"
3e61ef7d
AJ
3554fi
3555
f41c2b21 3556
fc6ffb29
AJ
3557{ echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3558echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
f41c2b21
DP
3559if test "${wine_cv_toolsdir+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3561else
3562 if test -z "$with_wine_tools"; then
3563 if test "$cross_compiling" = "yes"; then
3564 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3565echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3566 { (exit 1); exit 1; }; }
3567 else
3568 wine_cv_toolsdir="\$(TOPOBJDIR)"
3569 fi
3570 elif test -d "$with_wine_tools/tools/winebuild"; then
3571 case $with_wine_tools in
3572 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3573 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3574 esac
3575 else
3576 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3577echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3578 { (exit 1); exit 1; }; }
3579 fi
3580fi
fc6ffb29
AJ
3581{ echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3582echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
f41c2b21
DP
3583TOOLSDIR=$wine_cv_toolsdir
3584
3585
3586
f5818d2f
AJ
3587ac_ext=c
3588ac_cpp='$CPP $CPPFLAGS'
3589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591ac_compiler_gnu=$ac_cv_c_compiler_gnu
fc6ffb29
AJ
3592{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3593echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
e2991ea7
AJ
3594# On Suns, sometimes $CPP names a directory.
3595if test -n "$CPP" && test -d "$CPP"; then
3596 CPP=
3597fi
3598if test -z "$CPP"; then
f5818d2f
AJ
3599 if test "${ac_cv_prog_CPP+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3601else
3602 # Double quotes because CPP needs to be expanded
3603 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3604 do
3605 ac_preproc_ok=false
3606for ac_c_preproc_warn_flag in '' yes
3607do
3608 # Use a header file that comes with gcc, so configuring glibc
3609 # with a fresh cross-compiler works.
e24bcc77
AJ
3610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3611 # <limits.h> exists even on freestanding compilers.
e2991ea7 3612 # On the NeXT, cc -E runs the code through the compiler's parser,
f5818d2f
AJ
3613 # not just through cpp. "Syntax error" is here to catch this case.
3614 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3615/* confdefs.h. */
3616_ACEOF
3617cat confdefs.h >>conftest.$ac_ext
3618cat >>conftest.$ac_ext <<_ACEOF
3619/* end confdefs.h. */
3620#ifdef __STDC__
3621# include <limits.h>
3622#else
3623# include <assert.h>
3624#endif
875927f6 3625 Syntax error
f5818d2f 3626_ACEOF
0ebeb530
JW
3627if { (ac_try="$ac_cpp conftest.$ac_ext"
3628case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631esac
3632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 3634 ac_status=$?
11af04e3 3635 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
3636 rm -f conftest.er1
3637 cat conftest.err >&5
daa2886c 3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3639 (exit $ac_status); } >/dev/null; then
3640 if test -s conftest.err; then
3641 ac_cpp_err=$ac_c_preproc_warn_flag
875927f6 3642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f5818d2f
AJ
3643 else
3644 ac_cpp_err=
3645 fi
3646else
3647 ac_cpp_err=yes
3648fi
3649if test -z "$ac_cpp_err"; then
e2991ea7
AJ
3650 :
3651else
f5818d2f 3652 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3653sed 's/^/| /' conftest.$ac_ext >&5
3654
f5818d2f
AJ
3655 # Broken: fails on valid input.
3656continue
3657fi
fc6ffb29 3658
f5818d2f
AJ
3659rm -f conftest.err conftest.$ac_ext
3660
fc6ffb29 3661 # OK, works on sane cases. Now check whether nonexistent headers
f5818d2f
AJ
3662 # can be detected and how.
3663 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3664/* confdefs.h. */
3665_ACEOF
3666cat confdefs.h >>conftest.$ac_ext
3667cat >>conftest.$ac_ext <<_ACEOF
3668/* end confdefs.h. */
f5818d2f
AJ
3669#include <ac_nonexistent.h>
3670_ACEOF
0ebeb530
JW
3671if { (ac_try="$ac_cpp conftest.$ac_ext"
3672case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675esac
3676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 3678 ac_status=$?
11af04e3 3679 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
3680 rm -f conftest.er1
3681 cat conftest.err >&5
daa2886c 3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3683 (exit $ac_status); } >/dev/null; then
3684 if test -s conftest.err; then
3685 ac_cpp_err=$ac_c_preproc_warn_flag
875927f6 3686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f5818d2f
AJ
3687 else
3688 ac_cpp_err=
3689 fi
3690else
3691 ac_cpp_err=yes
3692fi
3693if test -z "$ac_cpp_err"; then
3694 # Broken: success on invalid input.
3695continue
18ad24a7 3696else
f5818d2f 3697 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3698sed 's/^/| /' conftest.$ac_ext >&5
3699
f5818d2f
AJ
3700 # Passes both tests.
3701ac_preproc_ok=:
3702break
3703fi
fc6ffb29 3704
f5818d2f
AJ
3705rm -f conftest.err conftest.$ac_ext
3706
3707done
3708# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3709rm -f conftest.err conftest.$ac_ext
3710if $ac_preproc_ok; then
3711 break
3712fi
3713
3714 done
3715 ac_cv_prog_CPP=$CPP
3716
3717fi
3718 CPP=$ac_cv_prog_CPP
3719else
3720 ac_cv_prog_CPP=$CPP
3721fi
fc6ffb29
AJ
3722{ echo "$as_me:$LINENO: result: $CPP" >&5
3723echo "${ECHO_T}$CPP" >&6; }
f5818d2f
AJ
3724ac_preproc_ok=false
3725for ac_c_preproc_warn_flag in '' yes
3726do
3727 # Use a header file that comes with gcc, so configuring glibc
3728 # with a fresh cross-compiler works.
e24bcc77
AJ
3729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3730 # <limits.h> exists even on freestanding compilers.
f5818d2f
AJ
3731 # On the NeXT, cc -E runs the code through the compiler's parser,
3732 # not just through cpp. "Syntax error" is here to catch this case.
3733 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3734/* confdefs.h. */
3735_ACEOF
3736cat confdefs.h >>conftest.$ac_ext
3737cat >>conftest.$ac_ext <<_ACEOF
3738/* end confdefs.h. */
3739#ifdef __STDC__
3740# include <limits.h>
3741#else
3742# include <assert.h>
3743#endif
875927f6 3744 Syntax error
f5818d2f 3745_ACEOF
0ebeb530
JW
3746if { (ac_try="$ac_cpp conftest.$ac_ext"
3747case "(($ac_try" in
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3750esac
3751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 3753 ac_status=$?
11af04e3 3754 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
3755 rm -f conftest.er1
3756 cat conftest.err >&5
daa2886c 3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3758 (exit $ac_status); } >/dev/null; then
3759 if test -s conftest.err; then
3760 ac_cpp_err=$ac_c_preproc_warn_flag
875927f6 3761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f5818d2f
AJ
3762 else
3763 ac_cpp_err=
3764 fi
3765else
3766 ac_cpp_err=yes
3767fi
3768if test -z "$ac_cpp_err"; then
e2991ea7
AJ
3769 :
3770else
f5818d2f 3771 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3772sed 's/^/| /' conftest.$ac_ext >&5
3773
f5818d2f
AJ
3774 # Broken: fails on valid input.
3775continue
e2991ea7 3776fi
fc6ffb29 3777
f5818d2f
AJ
3778rm -f conftest.err conftest.$ac_ext
3779
fc6ffb29 3780 # OK, works on sane cases. Now check whether nonexistent headers
f5818d2f
AJ
3781 # can be detected and how.
3782 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3783/* confdefs.h. */
3784_ACEOF
3785cat confdefs.h >>conftest.$ac_ext
3786cat >>conftest.$ac_ext <<_ACEOF
3787/* end confdefs.h. */
f5818d2f
AJ
3788#include <ac_nonexistent.h>
3789_ACEOF
0ebeb530
JW
3790if { (ac_try="$ac_cpp conftest.$ac_ext"
3791case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794esac
3795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 3797 ac_status=$?
11af04e3 3798 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
3799 rm -f conftest.er1
3800 cat conftest.err >&5
daa2886c 3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3802 (exit $ac_status); } >/dev/null; then
3803 if test -s conftest.err; then
3804 ac_cpp_err=$ac_c_preproc_warn_flag
875927f6 3805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f5818d2f
AJ
3806 else
3807 ac_cpp_err=
3808 fi
3809else
3810 ac_cpp_err=yes
18ad24a7 3811fi
f5818d2f
AJ
3812if test -z "$ac_cpp_err"; then
3813 # Broken: success on invalid input.
3814continue
3815else
3816 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3817sed 's/^/| /' conftest.$ac_ext >&5
3818
f5818d2f
AJ
3819 # Passes both tests.
3820ac_preproc_ok=:
3821break
e2991ea7 3822fi
fc6ffb29 3823
f5818d2f
AJ
3824rm -f conftest.err conftest.$ac_ext
3825
3826done
3827# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3828rm -f conftest.err conftest.$ac_ext
3829if $ac_preproc_ok; then
3830 :
e2991ea7 3831else
e24bcc77
AJ
3832 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3833See \`config.log' for more details." >&5
3834echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3835See \`config.log' for more details." >&2;}
f5818d2f 3836 { (exit 1); exit 1; }; }
e2991ea7 3837fi
e2991ea7 3838
f5818d2f
AJ
3839ac_ext=c
3840ac_cpp='$CPP $CPPFLAGS'
3841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844
daa2886c 3845
0ebeb530 3846{ echo "$as_me:$LINENO: checking for X" >&5
fc6ffb29 3847echo $ECHO_N "checking for X... $ECHO_C" >&6; }
e2991ea7 3848
daa2886c 3849
fc6ffb29 3850# Check whether --with-x was given.
d7d4fdf8 3851if test "${with_x+set}" = set; then
fc6ffb29
AJ
3852 withval=$with_x;
3853fi
e2991ea7 3854
b817f4fb 3855# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
e2991ea7 3856if test "x$with_x" = xno; then
b817f4fb
AJ
3857 # The user explicitly disabled X.
3858 have_x=disabled
e2991ea7 3859else
0ebeb530
JW
3860 case $x_includes,$x_libraries in #(
3861 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3862echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3863 { (exit 1); exit 1; }; };; #(
3864 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
f5818d2f 3865 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
3866else
3867 # One or both of the vars are not set, and there is no cached value.
f5818d2f 3868ac_x_includes=no ac_x_libraries=no
fc6ffb29 3869rm -f -r conftest.dir
f5818d2f
AJ
3870if mkdir conftest.dir; then
3871 cd conftest.dir
daa2886c 3872 cat >Imakefile <<'_ACEOF'
0ebeb530
JW
3873incroot:
3874 @echo incroot='${INCROOT}'
3875usrlibdir:
3876 @echo usrlibdir='${USRLIBDIR}'
3877libdir:
3878 @echo libdir='${LIBDIR}'
daa2886c 3879_ACEOF
fc6ffb29 3880 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
e2991ea7 3881 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
0ebeb530
JW
3882 for ac_var in incroot usrlibdir libdir; do
3883 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3884 done
e2991ea7
AJ
3885 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3886 for ac_extension in a so sl; do
0ebeb530
JW
3887 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3888 test -f "$ac_im_libdir/libX11.$ac_extension"; then
875927f6 3889 ac_im_usrlibdir=$ac_im_libdir; break
e2991ea7
AJ
3890 fi
3891 done
da0cfb36
AJ
3892 # Screen out bogus values from the imake configuration. They are
3893 # bogus both because they are the default anyway, and because
3894 # using them would break gcc on systems where it needs fixed includes.
f5818d2f 3895 case $ac_im_incroot in
fc6ffb29 3896 /usr/include) ac_x_includes= ;;
f5818d2f 3897 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
e2991ea7 3898 esac
f5818d2f 3899 case $ac_im_usrlibdir in
e2991ea7 3900 /usr/lib | /lib) ;;
f5818d2f 3901 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
e2991ea7
AJ
3902 esac
3903 fi
3904 cd ..
fc6ffb29 3905 rm -f -r conftest.dir
e2991ea7
AJ
3906fi
3907
f5818d2f
AJ
3908# Standard set of common directories for X headers.
3909# Check X11 before X11Rn because it is often a symlink to the current release.
3910ac_x_header_dirs='
3911/usr/X11/include
3912/usr/X11R6/include
3913/usr/X11R5/include
3914/usr/X11R4/include
3915
3916/usr/include/X11
3917/usr/include/X11R6
3918/usr/include/X11R5
3919/usr/include/X11R4
3920
3921/usr/local/X11/include
3922/usr/local/X11R6/include
3923/usr/local/X11R5/include
3924/usr/local/X11R4/include
3925
3926/usr/local/include/X11
3927/usr/local/include/X11R6
3928/usr/local/include/X11R5
3929/usr/local/include/X11R4
3930
3931/usr/X386/include
3932/usr/x386/include
3933/usr/XFree86/include/X11
3934
3935/usr/include
3936/usr/local/include
3937/usr/unsupported/include
3938/usr/athena/include
3939/usr/local/x11r5/include
3940/usr/lpp/Xamples/include
3941
3942/usr/openwin/include
3943/usr/openwin/share/include'
3944
3945if test "$ac_x_includes" = no; then
fc6ffb29 3946 # Guess where to find include files, by looking for Xlib.h.
b817f4fb 3947 # First, try using that file with no special directory specified.
f5818d2f 3948 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
3949/* confdefs.h. */
3950_ACEOF
3951cat confdefs.h >>conftest.$ac_ext
3952cat >>conftest.$ac_ext <<_ACEOF
3953/* end confdefs.h. */
0ebeb530 3954#include <X11/Xlib.h>
f5818d2f 3955_ACEOF
0ebeb530
JW
3956if { (ac_try="$ac_cpp conftest.$ac_ext"
3957case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960esac
3961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 3963 ac_status=$?
11af04e3 3964 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
3965 rm -f conftest.er1
3966 cat conftest.err >&5
daa2886c 3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3968 (exit $ac_status); } >/dev/null; then
3969 if test -s conftest.err; then
3970 ac_cpp_err=$ac_c_preproc_warn_flag
875927f6 3971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f5818d2f
AJ
3972 else
3973 ac_cpp_err=
3974 fi
3975else
3976 ac_cpp_err=yes
3977fi
3978if test -z "$ac_cpp_err"; then
b817f4fb
AJ
3979 # We can compile using X headers with no special include directory.
3980ac_x_includes=
e2991ea7 3981else
f5818d2f 3982 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3983sed 's/^/| /' conftest.$ac_ext >&5
3984
f5818d2f 3985 for ac_dir in $ac_x_header_dirs; do
d7d3169d 3986 if test -r "$ac_dir/X11/Xlib.h"; then
f5818d2f
AJ
3987 ac_x_includes=$ac_dir
3988 break
3989 fi
3990done
e2991ea7 3991fi
fc6ffb29 3992
f5818d2f
AJ
3993rm -f conftest.err conftest.$ac_ext
3994fi # $ac_x_includes = no
b817f4fb 3995
f5818d2f 3996if test "$ac_x_libraries" = no; then
b817f4fb 3997 # Check for the libraries.
b817f4fb
AJ
3998 # See if we find them without any special options.
3999 # Don't add to $LIBS permanently.
f5818d2f 4000 ac_save_LIBS=$LIBS
d01063e1 4001 LIBS="-lX11 $LIBS"
f5818d2f 4002 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4003/* confdefs.h. */
4004_ACEOF
4005cat confdefs.h >>conftest.$ac_ext
4006cat >>conftest.$ac_ext <<_ACEOF
4007/* end confdefs.h. */
d7d3169d 4008#include <X11/Xlib.h>
f5818d2f
AJ
4009int
4010main ()
4011{
d7d3169d 4012XrmInitialize ()
f5818d2f
AJ
4013 ;
4014 return 0;
4015}
4016_ACEOF
4017rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4018if { (ac_try="$ac_link"
4019case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4022esac
4023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024 (eval "$ac_link") 2>conftest.er1
f5818d2f 4025 ac_status=$?
875927f6
AJ
4026 grep -v '^ *+' conftest.er1 >conftest.err
4027 rm -f conftest.er1
4028 cat conftest.err >&5
daa2886c 4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 4030 (exit $ac_status); } &&
0ebeb530
JW
4031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4032 { (case "(($ac_try" in
4033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034 *) ac_try_echo=$ac_try;;
4035esac
4036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4037 (eval "$ac_try") 2>&5
875927f6
AJ
4038 ac_status=$?
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; } &&
4041 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
4042 { (case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045esac
4046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_try") 2>&5
f5818d2f 4048 ac_status=$?
daa2886c 4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4050 (exit $ac_status); }; }; then
4051 LIBS=$ac_save_LIBS
b817f4fb
AJ
4052# We can link X programs with no special library path.
4053ac_x_libraries=
e2991ea7 4054else
f5818d2f 4055 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4056sed 's/^/| /' conftest.$ac_ext >&5
4057
fc6ffb29 4058 LIBS=$ac_save_LIBS
f5818d2f 4059for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
e2991ea7 4060do
f5818d2f 4061 # Don't even attempt the hair of trying to link an X program!
e2991ea7 4062 for ac_extension in a so sl; do
d01063e1 4063 if test -r "$ac_dir/libX11.$ac_extension"; then
b817f4fb 4064 ac_x_libraries=$ac_dir
e2991ea7
AJ
4065 break 2
4066 fi
4067 done
4068done
4069fi
fc6ffb29 4070
0ebeb530 4071rm -f core conftest.err conftest.$ac_objext \
875927f6 4072 conftest$ac_exeext conftest.$ac_ext
f5818d2f 4073fi # $ac_x_libraries = no
b817f4fb 4074
0ebeb530
JW
4075case $ac_x_includes,$ac_x_libraries in #(
4076 no,* | *,no | *\'*)
4077 # Didn't find X, or a directory has "'" in its name.
4078 ac_cv_have_x="have_x=no";; #(
4079 *)
4080 # Record where we found X for the cache.
4081 ac_cv_have_x="have_x=yes\
4082 ac_x_includes='$ac_x_includes'\
4083 ac_x_libraries='$ac_x_libraries'"
4084esac
e2991ea7 4085fi
0ebeb530
JW
4086;; #(
4087 *) have_x=yes;;
4088 esac
b817f4fb 4089 eval "$ac_cv_have_x"
e2991ea7
AJ
4090fi # $with_x != no
4091
b817f4fb 4092if test "$have_x" != yes; then
fc6ffb29
AJ
4093 { echo "$as_me:$LINENO: result: $have_x" >&5
4094echo "${ECHO_T}$have_x" >&6; }
b817f4fb 4095 no_x=yes
e2991ea7 4096else
b817f4fb 4097 # If each of the values was on the command line, it overrides each guess.
e2991ea7
AJ
4098 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4099 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
b817f4fb 4100 # Update the cache value to reflect the command line values.
0ebeb530
JW
4101 ac_cv_have_x="have_x=yes\
4102 ac_x_includes='$x_includes'\
4103 ac_x_libraries='$x_libraries'"
4104 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4105echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
e2991ea7
AJ
4106fi
4107
b817f4fb 4108if test "$no_x" = yes; then
ff8331ea 4109 # Not all programs may use this symbol, but it does not hurt to define it.
f5818d2f 4110
daa2886c 4111cat >>confdefs.h <<\_ACEOF
da0cfb36 4112#define X_DISPLAY_MISSING 1
daa2886c 4113_ACEOF
da0cfb36
AJ
4114
4115 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
ff8331ea
AJ
4116else
4117 if test -n "$x_includes"; then
4118 X_CFLAGS="$X_CFLAGS -I$x_includes"
4119 fi
4120
ff8331ea
AJ
4121 # It would also be nice to do this for all -L options, not just this one.
4122 if test -n "$x_libraries"; then
4123 X_LIBS="$X_LIBS -L$x_libraries"
da0cfb36
AJ
4124 # For Solaris; some versions of Sun CC require a space after -R and
4125 # others require no space. Words are not sufficient . . . .
c8278926 4126 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
fc6ffb29 4127echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
c8278926
AJ
4128 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4129 ac_xsave_c_werror_flag=$ac_c_werror_flag
4130 ac_c_werror_flag=yes
4131 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4132/* confdefs.h. */
4133_ACEOF
4134cat confdefs.h >>conftest.$ac_ext
4135cat >>conftest.$ac_ext <<_ACEOF
4136/* end confdefs.h. */
ff8331ea 4137
f5818d2f
AJ
4138int
4139main ()
4140{
da0cfb36 4141
f5818d2f
AJ
4142 ;
4143 return 0;
4144}
4145_ACEOF
4146rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4147if { (ac_try="$ac_link"
4148case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151esac
4152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_link") 2>conftest.er1
f5818d2f 4154 ac_status=$?
875927f6
AJ
4155 grep -v '^ *+' conftest.er1 >conftest.err
4156 rm -f conftest.er1
4157 cat conftest.err >&5
daa2886c 4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 4159 (exit $ac_status); } &&
0ebeb530
JW
4160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4161 { (case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164esac
4165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_try") 2>&5
875927f6
AJ
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; } &&
4170 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
4171 { (case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174esac
4175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_try") 2>&5
f5818d2f 4177 ac_status=$?
daa2886c 4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 4179 (exit $ac_status); }; }; then
c8278926
AJ
4180 { echo "$as_me:$LINENO: result: no" >&5
4181echo "${ECHO_T}no" >&6; }
4182 X_LIBS="$X_LIBS -R$x_libraries"
ff8331ea 4183else
f5818d2f 4184 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4185sed 's/^/| /' conftest.$ac_ext >&5
4186
da0cfb36 4187 LIBS="$ac_xsave_LIBS -R $x_libraries"
c8278926 4188 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4189/* confdefs.h. */
4190_ACEOF
4191cat confdefs.h >>conftest.$ac_ext
4192cat >>conftest.$ac_ext <<_ACEOF
4193/* end confdefs.h. */
da0cfb36 4194
f5818d2f
AJ
4195int
4196main ()
4197{
da0cfb36 4198
f5818d2f
AJ
4199 ;
4200 return 0;
4201}
4202_ACEOF
4203rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4204if { (ac_try="$ac_link"
4205case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208esac
4209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_link") 2>conftest.er1
f5818d2f 4211 ac_status=$?
875927f6
AJ
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
daa2886c 4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 4216 (exit $ac_status); } &&
0ebeb530
JW
4217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4218 { (case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221esac
4222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_try") 2>&5
875927f6
AJ
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; } &&
4227 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
4228 { (case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231esac
4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_try") 2>&5
f5818d2f 4234 ac_status=$?
daa2886c 4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 4236 (exit $ac_status); }; }; then
c8278926
AJ
4237 { echo "$as_me:$LINENO: result: yes" >&5
4238echo "${ECHO_T}yes" >&6; }
4239 X_LIBS="$X_LIBS -R $x_libraries"
ff8331ea 4240else
f5818d2f 4241 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4242sed 's/^/| /' conftest.$ac_ext >&5
4243
c8278926
AJ
4244 { echo "$as_me:$LINENO: result: neither works" >&5
4245echo "${ECHO_T}neither works" >&6; }
ff8331ea 4246fi
fc6ffb29 4247
0ebeb530 4248rm -f core conftest.err conftest.$ac_objext \
875927f6 4249 conftest$ac_exeext conftest.$ac_ext
c8278926
AJ
4250fi
4251
4252rm -f core conftest.err conftest.$ac_objext \
4253 conftest$ac_exeext conftest.$ac_ext
4254 ac_c_werror_flag=$ac_xsave_c_werror_flag
4255 LIBS=$ac_xsave_LIBS
da0cfb36 4256 fi
ff8331ea
AJ
4257
4258 # Check for system-dependent libraries X programs must link with.
da0cfb36
AJ
4259 # Do this before checking for the system-independent R6 libraries
4260 # (-lICE), since we may need -lsocket or whatever for X linking.
ff8331ea
AJ
4261
4262 if test "$ISC" = yes; then
4263 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4264 else
f5818d2f
AJ
4265 # Martyn Johnson says this is needed for Ultrix, if the X
4266 # libraries were built with DECnet support. And Karl Berry says
ff8331ea 4267 # the Alpha needs dnet_stub (dnet does not exist).
f5818d2f
AJ
4268 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4269 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4270/* confdefs.h. */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h. */
f5818d2f 4275
fc6ffb29
AJ
4276/* Override any GCC internal prototype to avoid an error.
4277 Use char because int might match the return type of a GCC
4278 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4279#ifdef __cplusplus
4280extern "C"
4281#endif
f5818d2f
AJ
4282char XOpenDisplay ();
4283int
4284main ()
4285{
fc6ffb29 4286return XOpenDisplay ();
f5818d2f
AJ
4287 ;
4288 return 0;
4289}
4290_ACEOF
4291rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4292if { (ac_try="$ac_link"
4293case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296esac
4297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_link") 2>conftest.er1
f5818d2f 4299 ac_status=$?
875927f6
AJ
4300 grep -v '^ *+' conftest.er1 >conftest.err
4301 rm -f conftest.er1
4302 cat conftest.err >&5
daa2886c 4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 4304 (exit $ac_status); } &&
0ebeb530
JW
4305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4306 { (case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309esac
4310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_try") 2>&5
875927f6
AJ
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; } &&
4315 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
4316 { (case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
4320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_try") 2>&5
f5818d2f 4322 ac_status=$?
daa2886c 4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4324 (exit $ac_status); }; }; then
4325 :
ff8331ea 4326else
f5818d2f 4327 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4328sed 's/^/| /' conftest.$ac_ext >&5
4329
fc6ffb29
AJ
4330 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4331echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
f5818d2f
AJ
4332if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4334else
4335 ac_check_lib_save_LIBS=$LIBS
4336LIBS="-ldnet $LIBS"
4337cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */
ff8331ea 4343
fc6ffb29
AJ
4344/* Override any GCC internal prototype to avoid an error.
4345 Use char because int might match the return type of a GCC
4346 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4347#ifdef __cplusplus
4348extern "C"
4349#endif
f5818d2f
AJ
4350char dnet_ntoa ();
4351int
4352main ()
4353{
fc6ffb29 4354return dnet_ntoa ();
f5818d2f
AJ
4355 ;
4356 return 0;
4357}
4358_ACEOF
4359rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4360if { (ac_try="$ac_link"
4361case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364esac
4365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_link") 2>conftest.er1
f5818d2f 4367 ac_status=$?
875927f6
AJ
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
daa2886c 4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 4372 (exit $ac_status); } &&
0ebeb530
JW
4373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4374 { (case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377esac
4378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_try") 2>&5
875927f6
AJ
4380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); }; } &&
4383 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
4384 { (case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387esac
4388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389 (eval "$ac_try") 2>&5
f5818d2f 4390 ac_status=$?
daa2886c 4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4392 (exit $ac_status); }; }; then
4393 ac_cv_lib_dnet_dnet_ntoa=yes
4394else
4395 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4396sed 's/^/| /' conftest.$ac_ext >&5
4397
fc6ffb29 4398 ac_cv_lib_dnet_dnet_ntoa=no
f5818d2f 4399fi
fc6ffb29 4400
0ebeb530 4401rm -f core conftest.err conftest.$ac_objext \
875927f6 4402 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4403LIBS=$ac_check_lib_save_LIBS
4404fi
fc6ffb29
AJ
4405{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4406echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
f5818d2f 4407if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
ff8331ea 4408 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
ff8331ea
AJ
4409fi
4410
59730ae1 4411 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
fc6ffb29
AJ
4412 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4413echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
f5818d2f
AJ
4414if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 4416else
f5818d2f 4417 ac_check_lib_save_LIBS=$LIBS
ff8331ea 4418LIBS="-ldnet_stub $LIBS"
f5818d2f 4419cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4420/* confdefs.h. */
4421_ACEOF
4422cat confdefs.h >>conftest.$ac_ext
4423cat >>conftest.$ac_ext <<_ACEOF
4424/* end confdefs.h. */
f5818d2f 4425
fc6ffb29
AJ
4426/* Override any GCC internal prototype to avoid an error.
4427 Use char because int might match the return type of a GCC
4428 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4429#ifdef __cplusplus
4430extern "C"
4431#endif
f5818d2f
AJ
4432char dnet_ntoa ();
4433int
4434main ()
4435{
fc6ffb29 4436return dnet_ntoa ();
f5818d2f
AJ
4437 ;
4438 return 0;
4439}
4440_ACEOF
4441rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4442if { (ac_try="$ac_link"
4443case "(($ac_try" in
4444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445 *) ac_try_echo=$ac_try;;
4446esac
4447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4448 (eval "$ac_link") 2>conftest.er1
f5818d2f 4449 ac_status=$?
875927f6
AJ
4450 grep -v '^ *+' conftest.er1 >conftest.err
4451 rm -f conftest.er1
4452 cat conftest.err >&5
daa2886c 4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 4454 (exit $ac_status); } &&
0ebeb530
JW
4455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4456 { (case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459esac
4460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_try") 2>&5
875927f6
AJ
4462 ac_status=$?
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); }; } &&
4465 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
4466 { (case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4469esac
4470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_try") 2>&5
f5818d2f 4472 ac_status=$?
daa2886c 4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4474 (exit $ac_status); }; }; then
4475 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4476else
4477 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
fc6ffb29 4480 ac_cv_lib_dnet_stub_dnet_ntoa=no
f5818d2f 4481fi
fc6ffb29 4482
0ebeb530 4483rm -f core conftest.err conftest.$ac_objext \
875927f6 4484 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4485LIBS=$ac_check_lib_save_LIBS
4486fi
fc6ffb29
AJ
4487{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4488echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
f5818d2f 4489if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
ff8331ea 4490 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
ff8331ea
AJ
4491fi
4492
4493 fi
f5818d2f 4494fi
fc6ffb29 4495
0ebeb530 4496rm -f core conftest.err conftest.$ac_objext \
875927f6 4497 conftest$ac_exeext conftest.$ac_ext
f5818d2f 4498 LIBS="$ac_xsave_LIBS"
ff8331ea
AJ
4499
4500 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4501 # to get the SysV transport functions.
f5818d2f 4502 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
da0cfb36
AJ
4503 # needs -lnsl.
4504 # The nsl library prevents programs from opening the X display
f5818d2f
AJ
4505 # on Irix 5.2, according to T.E. Dickey.
4506 # The functions gethostbyname, getservbyname, and inet_addr are
4507 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
fc6ffb29
AJ
4508 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4509echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
f5818d2f
AJ
4510if test "${ac_cv_func_gethostbyname+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512else
4513 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4514/* confdefs.h. */
4515_ACEOF
4516cat confdefs.h >>conftest.$ac_ext
4517cat >>conftest.$ac_ext <<_ACEOF
4518/* end confdefs.h. */
875927f6
AJ
4519/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4521#define gethostbyname innocuous_gethostbyname
4522
da0cfb36 4523/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
4524 which can conflict with char gethostbyname (); below.
4525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526 <limits.h> exists even on freestanding compilers. */
875927f6 4527
e24bcc77
AJ
4528#ifdef __STDC__
4529# include <limits.h>
4530#else
4531# include <assert.h>
4532#endif
875927f6
AJ
4533
4534#undef gethostbyname
4535
fc6ffb29
AJ
4536/* Override any GCC internal prototype to avoid an error.
4537 Use char because int might match the return type of a GCC
4538 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4539#ifdef __cplusplus
4540extern "C"
4541#endif
f5818d2f 4542char gethostbyname ();
da0cfb36
AJ
4543/* The GNU C library defines this for functions which it implements
4544 to always fail with ENOSYS. Some functions are actually named
4545 something starting with __ and the normal name is an alias. */
fc6ffb29 4546#if defined __stub_gethostbyname || defined __stub___gethostbyname
da0cfb36 4547choke me
da0cfb36
AJ
4548#endif
4549
e24bcc77
AJ
4550int
4551main ()
4552{
fc6ffb29 4553return gethostbyname ();
f5818d2f
AJ
4554 ;
4555 return 0;
4556}
4557_ACEOF
4558rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4559if { (ac_try="$ac_link"
4560case "(($ac_try" in
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4563esac
4564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565 (eval "$ac_link") 2>conftest.er1
f5818d2f 4566 ac_status=$?
875927f6
AJ
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
daa2886c 4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 4571 (exit $ac_status); } &&
0ebeb530
JW
4572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4573 { (case "(($ac_try" in
4574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4575 *) ac_try_echo=$ac_try;;
4576esac
4577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4578 (eval "$ac_try") 2>&5
875927f6
AJ
4579 ac_status=$?
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; } &&
4582 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
4583 { (case "(($ac_try" in
4584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4586esac
4587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4588 (eval "$ac_try") 2>&5
f5818d2f 4589 ac_status=$?
daa2886c 4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4591 (exit $ac_status); }; }; then
4592 ac_cv_func_gethostbyname=yes
4593else
4594 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4595sed 's/^/| /' conftest.$ac_ext >&5
4596
fc6ffb29 4597 ac_cv_func_gethostbyname=no
f5818d2f 4598fi
fc6ffb29 4599
0ebeb530 4600rm -f core conftest.err conftest.$ac_objext \
875927f6 4601 conftest$ac_exeext conftest.$ac_ext
f5818d2f 4602fi
fc6ffb29
AJ
4603{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4604echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
da0cfb36
AJ
4605
4606 if test $ac_cv_func_gethostbyname = no; then
fc6ffb29
AJ
4607 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4608echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
f5818d2f
AJ
4609if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 4611else
f5818d2f 4612 ac_check_lib_save_LIBS=$LIBS
ff8331ea 4613LIBS="-lnsl $LIBS"
f5818d2f 4614cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4615/* confdefs.h. */
4616_ACEOF
4617cat confdefs.h >>conftest.$ac_ext
4618cat >>conftest.$ac_ext <<_ACEOF
4619/* end confdefs.h. */
f5818d2f 4620
fc6ffb29
AJ
4621/* Override any GCC internal prototype to avoid an error.
4622 Use char because int might match the return type of a GCC
4623 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4624#ifdef __cplusplus
4625extern "C"
4626#endif
f5818d2f
AJ
4627char gethostbyname ();
4628int
4629main ()
4630{
fc6ffb29 4631return gethostbyname ();
f5818d2f
AJ
4632 ;
4633 return 0;
4634}
4635_ACEOF
4636rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4637if { (ac_try="$ac_link"
4638case "(($ac_try" in
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4641esac
4642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_link") 2>conftest.er1
f5818d2f 4644 ac_status=$?
875927f6
AJ
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
daa2886c 4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 4649 (exit $ac_status); } &&
0ebeb530
JW
4650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4651 { (case "(($ac_try" in
4652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653 *) ac_try_echo=$ac_try;;
4654esac
4655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656 (eval "$ac_try") 2>&5
875927f6
AJ
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; } &&
4660 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
4661 { (case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664esac
4665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666 (eval "$ac_try") 2>&5
f5818d2f 4667 ac_status=$?
daa2886c 4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4669 (exit $ac_status); }; }; then
4670 ac_cv_lib_nsl_gethostbyname=yes
4671else
4672 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4673sed 's/^/| /' conftest.$ac_ext >&5
4674
fc6ffb29 4675 ac_cv_lib_nsl_gethostbyname=no
f5818d2f 4676fi
fc6ffb29 4677
0ebeb530 4678rm -f core conftest.err conftest.$ac_objext \
875927f6 4679 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4680LIBS=$ac_check_lib_save_LIBS
4681fi
fc6ffb29
AJ
4682{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4683echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
f5818d2f
AJ
4684if test $ac_cv_lib_nsl_gethostbyname = yes; then
4685 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4686fi
ff8331ea 4687
f5818d2f 4688 if test $ac_cv_lib_nsl_gethostbyname = no; then
fc6ffb29
AJ
4689 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4690echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
f5818d2f
AJ
4691if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 4693else
f5818d2f
AJ
4694 ac_check_lib_save_LIBS=$LIBS
4695LIBS="-lbsd $LIBS"
4696cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4697/* confdefs.h. */
4698_ACEOF
4699cat confdefs.h >>conftest.$ac_ext
4700cat >>conftest.$ac_ext <<_ACEOF
4701/* end confdefs.h. */
ff8331ea 4702
fc6ffb29
AJ
4703/* Override any GCC internal prototype to avoid an error.
4704 Use char because int might match the return type of a GCC
4705 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4706#ifdef __cplusplus
4707extern "C"
4708#endif
f5818d2f
AJ
4709char gethostbyname ();
4710int
4711main ()
4712{
fc6ffb29 4713return gethostbyname ();
f5818d2f
AJ
4714 ;
4715 return 0;
4716}
4717_ACEOF
4718rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4719if { (ac_try="$ac_link"
4720case "(($ac_try" in
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4723esac
4724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725 (eval "$ac_link") 2>conftest.er1
f5818d2f 4726 ac_status=$?
875927f6
AJ
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
daa2886c 4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 4731 (exit $ac_status); } &&
0ebeb530
JW
4732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4733 { (case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736esac
4737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_try") 2>&5
875927f6
AJ
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; } &&
4742 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
4743 { (case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4746esac
4747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_try") 2>&5
f5818d2f 4749 ac_status=$?
daa2886c 4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4751 (exit $ac_status); }; }; then
4752 ac_cv_lib_bsd_gethostbyname=yes
4753else
4754 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4755sed 's/^/| /' conftest.$ac_ext >&5
4756
fc6ffb29 4757 ac_cv_lib_bsd_gethostbyname=no
f5818d2f 4758fi
fc6ffb29 4759
0ebeb530 4760rm -f core conftest.err conftest.$ac_objext \
875927f6 4761 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4762LIBS=$ac_check_lib_save_LIBS
4763fi
fc6ffb29
AJ
4764{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4765echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
f5818d2f
AJ
4766if test $ac_cv_lib_bsd_gethostbyname = yes; then
4767 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
ff8331ea
AJ
4768fi
4769
f5818d2f 4770 fi
da0cfb36 4771 fi
ff8331ea
AJ
4772
4773 # lieder@skyler.mavd.honeywell.com says without -lsocket,
da0cfb36
AJ
4774 # socket/setsockopt and other routines are undefined under SCO ODT
4775 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
f5818d2f 4776 # on later versions), says Simon Leinen: it contains gethostby*
11af04e3 4777 # variants that don't use the name server (or something). -lsocket
f5818d2f
AJ
4778 # must be given before -lnsl if both are needed. We assume that
4779 # if connect needs -lnsl, so does gethostbyname.
fc6ffb29
AJ
4780 { echo "$as_me:$LINENO: checking for connect" >&5
4781echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
f5818d2f
AJ
4782if test "${ac_cv_func_connect+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784else
4785 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4786/* confdefs.h. */
4787_ACEOF
4788cat confdefs.h >>conftest.$ac_ext
4789cat >>conftest.$ac_ext <<_ACEOF
4790/* end confdefs.h. */
875927f6
AJ
4791/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4793#define connect innocuous_connect
4794
da0cfb36 4795/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
4796 which can conflict with char connect (); below.
4797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798 <limits.h> exists even on freestanding compilers. */
875927f6 4799
e24bcc77
AJ
4800#ifdef __STDC__
4801# include <limits.h>
4802#else
4803# include <assert.h>
4804#endif
875927f6
AJ
4805
4806#undef connect
4807
fc6ffb29
AJ
4808/* Override any GCC internal prototype to avoid an error.
4809 Use char because int might match the return type of a GCC
4810 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4811#ifdef __cplusplus
4812extern "C"
4813#endif
f5818d2f 4814char connect ();
da0cfb36
AJ
4815/* The GNU C library defines this for functions which it implements
4816 to always fail with ENOSYS. Some functions are actually named
4817 something starting with __ and the normal name is an alias. */
fc6ffb29 4818#if defined __stub_connect || defined __stub___connect
da0cfb36 4819choke me
da0cfb36
AJ
4820#endif
4821
e24bcc77
AJ
4822int
4823main ()
4824{
fc6ffb29 4825return connect ();
f5818d2f
AJ
4826 ;
4827 return 0;
4828}
4829_ACEOF
4830rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4831if { (ac_try="$ac_link"
4832case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835esac
4836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_link") 2>conftest.er1
f5818d2f 4838 ac_status=$?
875927f6
AJ
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
daa2886c 4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 4843 (exit $ac_status); } &&
0ebeb530
JW
4844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4845 { (case "(($ac_try" in
4846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847 *) ac_try_echo=$ac_try;;
4848esac
4849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850 (eval "$ac_try") 2>&5
875927f6
AJ
4851 ac_status=$?
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; } &&
4854 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
4855 { (case "(($ac_try" in
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4858esac
4859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860 (eval "$ac_try") 2>&5
f5818d2f 4861 ac_status=$?
daa2886c 4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4863 (exit $ac_status); }; }; then
4864 ac_cv_func_connect=yes
4865else
4866 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4867sed 's/^/| /' conftest.$ac_ext >&5
4868
fc6ffb29 4869 ac_cv_func_connect=no
f5818d2f 4870fi
fc6ffb29 4871
0ebeb530 4872rm -f core conftest.err conftest.$ac_objext \
875927f6 4873 conftest$ac_exeext conftest.$ac_ext
f5818d2f 4874fi
fc6ffb29
AJ
4875{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4876echo "${ECHO_T}$ac_cv_func_connect" >&6; }
da0cfb36
AJ
4877
4878 if test $ac_cv_func_connect = no; then
fc6ffb29
AJ
4879 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4880echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
f5818d2f
AJ
4881if test "${ac_cv_lib_socket_connect+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 4883else
f5818d2f 4884 ac_check_lib_save_LIBS=$LIBS
da0cfb36 4885LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
f5818d2f 4886cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4887/* confdefs.h. */
4888_ACEOF
4889cat confdefs.h >>conftest.$ac_ext
4890cat >>conftest.$ac_ext <<_ACEOF
4891/* end confdefs.h. */
f5818d2f 4892
fc6ffb29
AJ
4893/* Override any GCC internal prototype to avoid an error.
4894 Use char because int might match the return type of a GCC
4895 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4896#ifdef __cplusplus
4897extern "C"
4898#endif
f5818d2f
AJ
4899char connect ();
4900int
4901main ()
4902{
fc6ffb29 4903return connect ();
f5818d2f
AJ
4904 ;
4905 return 0;
4906}
4907_ACEOF
4908rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
4909if { (ac_try="$ac_link"
4910case "(($ac_try" in
4911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912 *) ac_try_echo=$ac_try;;
4913esac
4914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4915 (eval "$ac_link") 2>conftest.er1
f5818d2f 4916 ac_status=$?
875927f6
AJ
4917 grep -v '^ *+' conftest.er1 >conftest.err
4918 rm -f conftest.er1
4919 cat conftest.err >&5
daa2886c 4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 4921 (exit $ac_status); } &&
0ebeb530
JW
4922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4923 { (case "(($ac_try" in
4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925 *) ac_try_echo=$ac_try;;
4926esac
4927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4928 (eval "$ac_try") 2>&5
875927f6
AJ
4929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; } &&
4932 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
4933 { (case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936esac
4937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938 (eval "$ac_try") 2>&5
f5818d2f 4939 ac_status=$?
daa2886c 4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4941 (exit $ac_status); }; }; then
4942 ac_cv_lib_socket_connect=yes
4943else
4944 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4945sed 's/^/| /' conftest.$ac_ext >&5
4946
fc6ffb29 4947 ac_cv_lib_socket_connect=no
f5818d2f 4948fi
fc6ffb29 4949
0ebeb530 4950rm -f core conftest.err conftest.$ac_objext \
875927f6 4951 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
4952LIBS=$ac_check_lib_save_LIBS
4953fi
fc6ffb29
AJ
4954{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4955echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
f5818d2f 4956if test $ac_cv_lib_socket_connect = yes; then
da0cfb36 4957 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
ff8331ea
AJ
4958fi
4959
da0cfb36
AJ
4960 fi
4961
f5818d2f 4962 # Guillermo Gomez says -lposix is necessary on A/UX.
fc6ffb29
AJ
4963 { echo "$as_me:$LINENO: checking for remove" >&5
4964echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
f5818d2f
AJ
4965if test "${ac_cv_func_remove+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 4967else
f5818d2f 4968 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
4969/* confdefs.h. */
4970_ACEOF
4971cat confdefs.h >>conftest.$ac_ext
4972cat >>conftest.$ac_ext <<_ACEOF
4973/* end confdefs.h. */
875927f6
AJ
4974/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4976#define remove innocuous_remove
4977
da0cfb36 4978/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
4979 which can conflict with char remove (); below.
4980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4981 <limits.h> exists even on freestanding compilers. */
875927f6 4982
e24bcc77
AJ
4983#ifdef __STDC__
4984# include <limits.h>
4985#else
4986# include <assert.h>
4987#endif
875927f6
AJ
4988
4989#undef remove
4990
fc6ffb29
AJ
4991/* Override any GCC internal prototype to avoid an error.
4992 Use char because int might match the return type of a GCC
4993 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
4994#ifdef __cplusplus
4995extern "C"
4996#endif
f5818d2f 4997char remove ();
da0cfb36
AJ
4998/* The GNU C library defines this for functions which it implements
4999 to always fail with ENOSYS. Some functions are actually named
5000 something starting with __ and the normal name is an alias. */
fc6ffb29 5001#if defined __stub_remove || defined __stub___remove
da0cfb36 5002choke me
da0cfb36
AJ
5003#endif
5004
e24bcc77
AJ
5005int
5006main ()
5007{
fc6ffb29 5008return remove ();
f5818d2f
AJ
5009 ;
5010 return 0;
5011}
5012_ACEOF
5013rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
5014if { (ac_try="$ac_link"
5015case "(($ac_try" in
5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017 *) ac_try_echo=$ac_try;;
5018esac
5019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020 (eval "$ac_link") 2>conftest.er1
f5818d2f 5021 ac_status=$?
875927f6
AJ
5022 grep -v '^ *+' conftest.er1 >conftest.err
5023 rm -f conftest.er1
5024 cat conftest.err >&5
daa2886c 5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 5026 (exit $ac_status); } &&
0ebeb530
JW
5027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5028 { (case "(($ac_try" in
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5031esac
5032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033 (eval "$ac_try") 2>&5
875927f6
AJ
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
5038 { (case "(($ac_try" in
5039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5040 *) ac_try_echo=$ac_try;;
5041esac
5042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5043 (eval "$ac_try") 2>&5
f5818d2f 5044 ac_status=$?
daa2886c 5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5046 (exit $ac_status); }; }; then
5047 ac_cv_func_remove=yes
5048else
5049 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5050sed 's/^/| /' conftest.$ac_ext >&5
5051
fc6ffb29 5052 ac_cv_func_remove=no
f5818d2f 5053fi
fc6ffb29 5054
0ebeb530 5055rm -f core conftest.err conftest.$ac_objext \
875927f6 5056 conftest$ac_exeext conftest.$ac_ext
f5818d2f 5057fi
fc6ffb29
AJ
5058{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5059echo "${ECHO_T}$ac_cv_func_remove" >&6; }
da0cfb36
AJ
5060
5061 if test $ac_cv_func_remove = no; then
fc6ffb29
AJ
5062 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5063echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
f5818d2f
AJ
5064if test "${ac_cv_lib_posix_remove+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
e2bfa4c7 5066else
f5818d2f 5067 ac_check_lib_save_LIBS=$LIBS
da0cfb36 5068LIBS="-lposix $LIBS"
f5818d2f 5069cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
5070/* confdefs.h. */
5071_ACEOF
5072cat confdefs.h >>conftest.$ac_ext
5073cat >>conftest.$ac_ext <<_ACEOF
5074/* end confdefs.h. */
f5818d2f 5075
fc6ffb29
AJ
5076/* Override any GCC internal prototype to avoid an error.
5077 Use char because int might match the return type of a GCC
5078 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
5079#ifdef __cplusplus
5080extern "C"
5081#endif
f5818d2f
AJ
5082char remove ();
5083int
5084main ()
5085{
fc6ffb29 5086return remove ();
f5818d2f
AJ
5087 ;
5088 return 0;
5089}
5090_ACEOF
5091rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
5092if { (ac_try="$ac_link"
5093case "(($ac_try" in
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5096esac
5097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_link") 2>conftest.er1
f5818d2f 5099 ac_status=$?
875927f6
AJ
5100 grep -v '^ *+' conftest.er1 >conftest.err
5101 rm -f conftest.er1
5102 cat conftest.err >&5
daa2886c 5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 5104 (exit $ac_status); } &&
0ebeb530
JW
5105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5106 { (case "(($ac_try" in
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5109esac
5110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111 (eval "$ac_try") 2>&5
875927f6
AJ
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; } &&
5115 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
5116 { (case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119esac
5120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121 (eval "$ac_try") 2>&5
f5818d2f 5122 ac_status=$?
daa2886c 5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5124 (exit $ac_status); }; }; then
5125 ac_cv_lib_posix_remove=yes
5126else
5127 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5128sed 's/^/| /' conftest.$ac_ext >&5
5129
fc6ffb29 5130 ac_cv_lib_posix_remove=no
f5818d2f 5131fi
fc6ffb29 5132
0ebeb530 5133rm -f core conftest.err conftest.$ac_objext \
875927f6 5134 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
5135LIBS=$ac_check_lib_save_LIBS
5136fi
fc6ffb29
AJ
5137{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5138echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
f5818d2f 5139if test $ac_cv_lib_posix_remove = yes; then
da0cfb36 5140 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
da0cfb36
AJ
5141fi
5142
5143 fi
5144
5145 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
fc6ffb29
AJ
5146 { echo "$as_me:$LINENO: checking for shmat" >&5
5147echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
f5818d2f
AJ
5148if test "${ac_cv_func_shmat+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 5150else
f5818d2f 5151 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
5152/* confdefs.h. */
5153_ACEOF
5154cat confdefs.h >>conftest.$ac_ext
5155cat >>conftest.$ac_ext <<_ACEOF
5156/* end confdefs.h. */
875927f6
AJ
5157/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5159#define shmat innocuous_shmat
5160
da0cfb36 5161/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
5162 which can conflict with char shmat (); below.
5163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5164 <limits.h> exists even on freestanding compilers. */
875927f6 5165
e24bcc77
AJ
5166#ifdef __STDC__
5167# include <limits.h>
5168#else
5169# include <assert.h>
5170#endif
875927f6
AJ
5171
5172#undef shmat
5173
fc6ffb29
AJ
5174/* Override any GCC internal prototype to avoid an error.
5175 Use char because int might match the return type of a GCC
5176 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
5177#ifdef __cplusplus
5178extern "C"
5179#endif
f5818d2f 5180char shmat ();
da0cfb36
AJ
5181/* The GNU C library defines this for functions which it implements
5182 to always fail with ENOSYS. Some functions are actually named
5183 something starting with __ and the normal name is an alias. */
fc6ffb29 5184#if defined __stub_shmat || defined __stub___shmat
da0cfb36 5185choke me
da0cfb36
AJ
5186#endif
5187
e24bcc77
AJ
5188int
5189main ()
5190{
fc6ffb29 5191return shmat ();
f5818d2f
AJ
5192 ;
5193 return 0;
5194}
5195_ACEOF
5196rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
5197if { (ac_try="$ac_link"
5198case "(($ac_try" in
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5201esac
5202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_link") 2>conftest.er1
f5818d2f 5204 ac_status=$?
875927f6
AJ
5205 grep -v '^ *+' conftest.er1 >conftest.err
5206 rm -f conftest.er1
5207 cat conftest.err >&5
daa2886c 5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 5209 (exit $ac_status); } &&
0ebeb530
JW
5210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5211 { (case "(($ac_try" in
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5214esac
5215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216 (eval "$ac_try") 2>&5
875927f6
AJ
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
5221 { (case "(($ac_try" in
5222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223 *) ac_try_echo=$ac_try;;
5224esac
5225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226 (eval "$ac_try") 2>&5
f5818d2f 5227 ac_status=$?
daa2886c 5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5229 (exit $ac_status); }; }; then
5230 ac_cv_func_shmat=yes
5231else
5232 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5233sed 's/^/| /' conftest.$ac_ext >&5
5234
fc6ffb29 5235 ac_cv_func_shmat=no
f5818d2f 5236fi
fc6ffb29 5237
0ebeb530 5238rm -f core conftest.err conftest.$ac_objext \
875927f6 5239 conftest$ac_exeext conftest.$ac_ext
f5818d2f 5240fi
fc6ffb29
AJ
5241{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5242echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
da0cfb36
AJ
5243
5244 if test $ac_cv_func_shmat = no; then
fc6ffb29
AJ
5245 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5246echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
f5818d2f
AJ
5247if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 5249else
f5818d2f 5250 ac_check_lib_save_LIBS=$LIBS
da0cfb36 5251LIBS="-lipc $LIBS"
f5818d2f 5252cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
5253/* confdefs.h. */
5254_ACEOF
5255cat confdefs.h >>conftest.$ac_ext
5256cat >>conftest.$ac_ext <<_ACEOF
5257/* end confdefs.h. */
f5818d2f 5258
fc6ffb29
AJ
5259/* Override any GCC internal prototype to avoid an error.
5260 Use char because int might match the return type of a GCC
5261 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
5262#ifdef __cplusplus
5263extern "C"
5264#endif
f5818d2f
AJ
5265char shmat ();
5266int
5267main ()
5268{
fc6ffb29 5269return shmat ();
f5818d2f
AJ
5270 ;
5271 return 0;
5272}
5273_ACEOF
5274rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
5275if { (ac_try="$ac_link"
5276case "(($ac_try" in
5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5278 *) ac_try_echo=$ac_try;;
5279esac
5280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5281 (eval "$ac_link") 2>conftest.er1
f5818d2f 5282 ac_status=$?
875927f6
AJ
5283 grep -v '^ *+' conftest.er1 >conftest.err
5284 rm -f conftest.er1
5285 cat conftest.err >&5
daa2886c 5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 5287 (exit $ac_status); } &&
0ebeb530
JW
5288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5289 { (case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5292esac
5293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_try") 2>&5
875927f6
AJ
5295 ac_status=$?
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; } &&
5298 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
5299 { (case "(($ac_try" in
5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301 *) ac_try_echo=$ac_try;;
5302esac
5303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304 (eval "$ac_try") 2>&5
f5818d2f 5305 ac_status=$?
daa2886c 5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5307 (exit $ac_status); }; }; then
5308 ac_cv_lib_ipc_shmat=yes
5309else
5310 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5311sed 's/^/| /' conftest.$ac_ext >&5
5312
fc6ffb29 5313 ac_cv_lib_ipc_shmat=no
f5818d2f 5314fi
fc6ffb29 5315
0ebeb530 5316rm -f core conftest.err conftest.$ac_objext \
875927f6 5317 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
5318LIBS=$ac_check_lib_save_LIBS
5319fi
fc6ffb29
AJ
5320{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5321echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
f5818d2f 5322if test $ac_cv_lib_ipc_shmat = yes; then
da0cfb36 5323 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
e2bfa4c7
AJ
5324fi
5325
ff8331ea
AJ
5326 fi
5327 fi
da0cfb36
AJ
5328
5329 # Check for libraries that X11R6 Xt/Xaw programs need.
f5818d2f 5330 ac_save_LDFLAGS=$LDFLAGS
da0cfb36
AJ
5331 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5332 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5333 # check for ICE first), but we must link in the order -lSM -lICE or
5334 # we get undefined symbols. So assume we have SM if we have ICE.
5335 # These have to be linked with before -lX11, unlike the other
5336 # libraries we check for below, so use a different variable.
f5818d2f 5337 # John Interrante, Karl Berry
fc6ffb29
AJ
5338 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5339echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
f5818d2f
AJ
5340if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342else
5343 ac_check_lib_save_LIBS=$LIBS
18ad24a7 5344LIBS="-lICE $X_EXTRA_LIBS $LIBS"
f5818d2f 5345cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
5346/* confdefs.h. */
5347_ACEOF
5348cat confdefs.h >>conftest.$ac_ext
5349cat >>conftest.$ac_ext <<_ACEOF
5350/* end confdefs.h. */
f5818d2f 5351
fc6ffb29
AJ
5352/* Override any GCC internal prototype to avoid an error.
5353 Use char because int might match the return type of a GCC
5354 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
5355#ifdef __cplusplus
5356extern "C"
5357#endif
f5818d2f
AJ
5358char IceConnectionNumber ();
5359int
5360main ()
5361{
fc6ffb29 5362return IceConnectionNumber ();
f5818d2f
AJ
5363 ;
5364 return 0;
5365}
5366_ACEOF
5367rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
5368if { (ac_try="$ac_link"
5369case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5372esac
5373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_link") 2>conftest.er1
f5818d2f 5375 ac_status=$?
875927f6
AJ
5376 grep -v '^ *+' conftest.er1 >conftest.err
5377 rm -f conftest.er1
5378 cat conftest.err >&5
daa2886c 5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 5380 (exit $ac_status); } &&
0ebeb530
JW
5381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5382 { (case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385esac
5386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_try") 2>&5
875927f6
AJ
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; } &&
5391 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
5392 { (case "(($ac_try" in
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5395esac
5396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_try") 2>&5
f5818d2f 5398 ac_status=$?
daa2886c 5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5400 (exit $ac_status); }; }; then
5401 ac_cv_lib_ICE_IceConnectionNumber=yes
5402else
5403 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5404sed 's/^/| /' conftest.$ac_ext >&5
5405
fc6ffb29 5406 ac_cv_lib_ICE_IceConnectionNumber=no
f5818d2f 5407fi
fc6ffb29 5408
0ebeb530 5409rm -f core conftest.err conftest.$ac_objext \
875927f6 5410 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
5411LIBS=$ac_check_lib_save_LIBS
5412fi
fc6ffb29
AJ
5413{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5414echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
f5818d2f 5415if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
da0cfb36 5416 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
da0cfb36
AJ
5417fi
5418
f5818d2f 5419 LDFLAGS=$ac_save_LDFLAGS
da0cfb36 5420
ff8331ea
AJ
5421fi
5422
f5818d2f
AJ
5423for ac_prog in flex lex
5424do
5425 # Extract the first word of "$ac_prog", so it can be a program name with args.
5426set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
5427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
5429if test "${ac_cv_prog_LEX+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
5431else
5432 if test -n "$LEX"; then
5433 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5434else
daa2886c
AJ
5435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH
5437do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
5442 ac_cv_prog_LEX="$ac_prog"
5443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446done
f5818d2f 5447done
fc6ffb29 5448IFS=$as_save_IFS
f5818d2f 5449
e2991ea7
AJ
5450fi
5451fi
f5818d2f 5452LEX=$ac_cv_prog_LEX
e2991ea7 5453if test -n "$LEX"; then
fc6ffb29
AJ
5454 { echo "$as_me:$LINENO: result: $LEX" >&5
5455echo "${ECHO_T}$LEX" >&6; }
e2991ea7 5456else
fc6ffb29
AJ
5457 { echo "$as_me:$LINENO: result: no" >&5
5458echo "${ECHO_T}no" >&6; }
e2991ea7
AJ
5459fi
5460
fc6ffb29 5461
f5818d2f
AJ
5462 test -n "$LEX" && break
5463done
5464test -n "$LEX" || LEX=":"
5465
e2991ea7
AJ
5466if test -z "$LEXLIB"
5467then
fc6ffb29
AJ
5468 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5469echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
f5818d2f
AJ
5470if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472else
5473 ac_check_lib_save_LIBS=$LIBS
5474LIBS="-lfl $LIBS"
5475cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
5476/* confdefs.h. */
5477_ACEOF
5478cat confdefs.h >>conftest.$ac_ext
5479cat >>conftest.$ac_ext <<_ACEOF
5480/* end confdefs.h. */
f5818d2f 5481
fc6ffb29
AJ
5482/* Override any GCC internal prototype to avoid an error.
5483 Use char because int might match the return type of a GCC
5484 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
5485#ifdef __cplusplus
5486extern "C"
5487#endif
f5818d2f
AJ
5488char yywrap ();
5489int
5490main ()
5491{
fc6ffb29 5492return yywrap ();
f5818d2f
AJ
5493 ;
5494 return 0;
5495}
5496_ACEOF
5497rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
5498if { (ac_try="$ac_link"
5499case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502esac
5503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_link") 2>conftest.er1
f5818d2f 5505 ac_status=$?
875927f6
AJ
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
daa2886c 5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 5510 (exit $ac_status); } &&
0ebeb530
JW
5511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5512 { (case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515esac
5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_try") 2>&5
875927f6
AJ
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; } &&
5521 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
5522 { (case "(($ac_try" in
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5525esac
5526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_try") 2>&5
f5818d2f 5528 ac_status=$?
daa2886c 5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5530 (exit $ac_status); }; }; then
5531 ac_cv_lib_fl_yywrap=yes
5532else
5533 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5534sed 's/^/| /' conftest.$ac_ext >&5
5535
fc6ffb29 5536 ac_cv_lib_fl_yywrap=no
f5818d2f 5537fi
fc6ffb29 5538
0ebeb530 5539rm -f core conftest.err conftest.$ac_objext \
875927f6 5540 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
5541LIBS=$ac_check_lib_save_LIBS
5542fi
fc6ffb29
AJ
5543{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5544echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
f5818d2f
AJ
5545if test $ac_cv_lib_fl_yywrap = yes; then
5546 LEXLIB="-lfl"
5547else
fc6ffb29
AJ
5548 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5549echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
f5818d2f
AJ
5550if test "${ac_cv_lib_l_yywrap+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552else
5553 ac_check_lib_save_LIBS=$LIBS
5554LIBS="-ll $LIBS"
5555cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
5556/* confdefs.h. */
5557_ACEOF
5558cat confdefs.h >>conftest.$ac_ext
5559cat >>conftest.$ac_ext <<_ACEOF
5560/* end confdefs.h. */
e2991ea7 5561
fc6ffb29
AJ
5562/* Override any GCC internal prototype to avoid an error.
5563 Use char because int might match the return type of a GCC
5564 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
5565#ifdef __cplusplus
5566extern "C"
5567#endif
f5818d2f
AJ
5568char yywrap ();
5569int
5570main ()
5571{
fc6ffb29 5572return yywrap ();
f5818d2f
AJ
5573 ;
5574 return 0;
5575}
5576_ACEOF
5577rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
5578if { (ac_try="$ac_link"
5579case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5582esac
5583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_link") 2>conftest.er1
f5818d2f 5585 ac_status=$?
875927f6
AJ
5586 grep -v '^ *+' conftest.er1 >conftest.err
5587 rm -f conftest.er1
5588 cat conftest.err >&5
daa2886c 5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 5590 (exit $ac_status); } &&
0ebeb530
JW
5591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5592 { (case "(($ac_try" in
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5595esac
5596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 (eval "$ac_try") 2>&5
875927f6
AJ
5598 ac_status=$?
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); }; } &&
5601 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
5602 { (case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605esac
5606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_try") 2>&5
f5818d2f 5608 ac_status=$?
daa2886c 5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5610 (exit $ac_status); }; }; then
5611 ac_cv_lib_l_yywrap=yes
e2991ea7 5612else
f5818d2f 5613 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5614sed 's/^/| /' conftest.$ac_ext >&5
5615
fc6ffb29 5616 ac_cv_lib_l_yywrap=no
f5818d2f 5617fi
fc6ffb29 5618
0ebeb530 5619rm -f core conftest.err conftest.$ac_objext \
875927f6 5620 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
5621LIBS=$ac_check_lib_save_LIBS
5622fi
fc6ffb29
AJ
5623{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5624echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
f5818d2f
AJ
5625if test $ac_cv_lib_l_yywrap = yes; then
5626 LEXLIB="-ll"
5627fi
5628
e2991ea7 5629fi
e2991ea7
AJ
5630
5631fi
f5818d2f
AJ
5632
5633if test "x$LEX" != "x:"; then
fc6ffb29
AJ
5634 { echo "$as_me:$LINENO: checking lex output file root" >&5
5635echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
f5818d2f
AJ
5636if test "${ac_cv_prog_lex_root+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638else
5639 # The minimal lex program is just a single line: %%. But some broken lexes
5640# (Solaris, I think it was) want two %% lines, so accommodate them.
daa2886c
AJ
5641cat >conftest.l <<_ACEOF
5642%%
5643%%
5644_ACEOF
0ebeb530
JW
5645{ (ac_try="$LEX conftest.l"
5646case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649esac
5650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$LEX conftest.l") 2>&5
daa2886c
AJ
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }
f5818d2f
AJ
5655if test -f lex.yy.c; then
5656 ac_cv_prog_lex_root=lex.yy
5657elif test -f lexyy.c; then
5658 ac_cv_prog_lex_root=lexyy
5659else
daa2886c 5660 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
f5818d2f
AJ
5661echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5662 { (exit 1); exit 1; }; }
5663fi
5664fi
fc6ffb29
AJ
5665{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5666echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
daa2886c 5667rm -f conftest.l
f5818d2f
AJ
5668LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5669
fc6ffb29
AJ
5670{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5671echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
f5818d2f
AJ
5672if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 5674else
f5818d2f
AJ
5675 # POSIX says lex can declare yytext either as a pointer or an array; the
5676# default is implementation-dependent. Figure out which it is, since
5677# not all implementations provide the %pointer and %array declarations.
5678ac_cv_prog_lex_yytext_pointer=no
5679echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5680ac_save_LIBS=$LIBS
5681LIBS="$LIBS $LEXLIB"
5682cat >conftest.$ac_ext <<_ACEOF
5683`cat $LEX_OUTPUT_ROOT.c`
5684_ACEOF
5685rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
5686if { (ac_try="$ac_link"
5687case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5690esac
5691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_link") 2>conftest.er1
f5818d2f 5693 ac_status=$?
875927f6
AJ
5694 grep -v '^ *+' conftest.er1 >conftest.err
5695 rm -f conftest.er1
5696 cat conftest.err >&5
daa2886c 5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 5698 (exit $ac_status); } &&
0ebeb530
JW
5699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5700 { (case "(($ac_try" in
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5703esac
5704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705 (eval "$ac_try") 2>&5
875927f6
AJ
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
5710 { (case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713esac
5714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5715 (eval "$ac_try") 2>&5
f5818d2f 5716 ac_status=$?
daa2886c 5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5718 (exit $ac_status); }; }; then
5719 ac_cv_prog_lex_yytext_pointer=yes
5720else
5721 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5722sed 's/^/| /' conftest.$ac_ext >&5
5723
fc6ffb29 5724
f5818d2f 5725fi
fc6ffb29 5726
0ebeb530 5727rm -f core conftest.err conftest.$ac_objext \
875927f6 5728 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
5729LIBS=$ac_save_LIBS
5730rm -f "${LEX_OUTPUT_ROOT}.c"
5731
e2991ea7 5732fi
fc6ffb29
AJ
5733{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5734echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
f5818d2f
AJ
5735if test $ac_cv_prog_lex_yytext_pointer = yes; then
5736
daa2886c 5737cat >>confdefs.h <<\_ACEOF
f5818d2f 5738#define YYTEXT_POINTER 1
daa2886c 5739_ACEOF
e2991ea7
AJ
5740
5741fi
5742
f5818d2f 5743fi
5c5a6217 5744
c068f670 5745for ac_prog in $LEX flex lex
5c5a6217 5746do
f5818d2f 5747 # Extract the first word of "$ac_prog", so it can be a program name with args.
5c5a6217 5748set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
5749{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
c068f670 5751if test "${ac_cv_prog_XLEX+set}" = set; then
f5818d2f 5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5c5a6217 5753else
c068f670
MM
5754 if test -n "$XLEX"; then
5755 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5c5a6217 5756else
daa2886c
AJ
5757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758for as_dir in $PATH
5759do
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 5763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
c068f670 5764 ac_cv_prog_XLEX="$ac_prog"
daa2886c
AJ
5765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5767 fi
5768done
f5818d2f 5769done
fc6ffb29 5770IFS=$as_save_IFS
f5818d2f 5771
5c5a6217
MM
5772fi
5773fi
c068f670
MM
5774XLEX=$ac_cv_prog_XLEX
5775if test -n "$XLEX"; then
fc6ffb29
AJ
5776 { echo "$as_me:$LINENO: result: $XLEX" >&5
5777echo "${ECHO_T}$XLEX" >&6; }
5c5a6217 5778else
fc6ffb29
AJ
5779 { echo "$as_me:$LINENO: result: no" >&5
5780echo "${ECHO_T}no" >&6; }
5c5a6217
MM
5781fi
5782
fc6ffb29 5783
c068f670 5784 test -n "$XLEX" && break
5c5a6217 5785done
c068f670 5786test -n "$XLEX" || XLEX="none"
5c5a6217 5787
c068f670 5788if test "$XLEX" = "none"
5c5a6217 5789then
c068f670
MM
5790 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
5791echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
f5818d2f 5792 { (exit 1); exit 1; }; }
5c5a6217 5793fi
c068f670
MM
5794
5795for ac_prog in bison
b53bb419 5796do
f5818d2f 5797 # Extract the first word of "$ac_prog", so it can be a program name with args.
b53bb419 5798set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
5799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
c068f670 5801if test "${ac_cv_prog_BISON+set}" = set; then
f5818d2f 5802 echo $ECHO_N "(cached) $ECHO_C" >&6
b53bb419 5803else
c068f670
MM
5804 if test -n "$BISON"; then
5805 ac_cv_prog_BISON="$BISON" # Let the user override the test.
b53bb419 5806else
daa2886c
AJ
5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
c068f670 5814 ac_cv_prog_BISON="$ac_prog"
daa2886c
AJ
5815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818done
f5818d2f 5819done
fc6ffb29 5820IFS=$as_save_IFS
f5818d2f 5821
b53bb419
MM
5822fi
5823fi
c068f670
MM
5824BISON=$ac_cv_prog_BISON
5825if test -n "$BISON"; then
fc6ffb29
AJ
5826 { echo "$as_me:$LINENO: result: $BISON" >&5
5827echo "${ECHO_T}$BISON" >&6; }
b53bb419 5828else
fc6ffb29
AJ
5829 { echo "$as_me:$LINENO: result: no" >&5
5830echo "${ECHO_T}no" >&6; }
b53bb419
MM
5831fi
5832
fc6ffb29 5833
c068f670 5834 test -n "$BISON" && break
b53bb419 5835done
c068f670 5836test -n "$BISON" || BISON="none"
b53bb419 5837
c068f670 5838if test "$BISON" = "none"
b53bb419 5839then
c068f670
MM
5840 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5841echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
f5818d2f
AJ
5842 { (exit 1); exit 1; }; }
5843fi
fc01b729 5844
1d4db787 5845if test -n "$ac_tool_prefix"; then
c80c290e
AJ
5846 for ac_prog in gas as
5847 do
5848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5849set dummy $ac_tool_prefix$ac_prog; ac_word=$2
fc6ffb29
AJ
5850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1d4db787
MM
5852if test "${ac_cv_prog_AS+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854else
5855 if test -n "$AS"; then
5856 ac_cv_prog_AS="$AS" # Let the user override the test.
5857else
5858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859for as_dir in $PATH
5860do
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 5864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
c80c290e 5865 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
1d4db787
MM
5866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5868 fi
5869done
5870done
fc6ffb29 5871IFS=$as_save_IFS
1d4db787
MM
5872
5873fi
5874fi
5875AS=$ac_cv_prog_AS
5876if test -n "$AS"; then
fc6ffb29
AJ
5877 { echo "$as_me:$LINENO: result: $AS" >&5
5878echo "${ECHO_T}$AS" >&6; }
1d4db787 5879else
fc6ffb29
AJ
5880 { echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6; }
1d4db787
MM
5882fi
5883
fc6ffb29 5884
c80c290e
AJ
5885 test -n "$AS" && break
5886 done
1d4db787 5887fi
c80c290e 5888if test -z "$AS"; then
1d4db787 5889 ac_ct_AS=$AS
c80c290e
AJ
5890 for ac_prog in gas as
5891do
5892 # Extract the first word of "$ac_prog", so it can be a program name with args.
5893set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
5894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1d4db787
MM
5896if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5898else
5899 if test -n "$ac_ct_AS"; then
5900 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5901else
5902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903for as_dir in $PATH
5904do
5905 IFS=$as_save_IFS
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 5908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
c80c290e 5909 ac_cv_prog_ac_ct_AS="$ac_prog"
1d4db787
MM
5910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 break 2
5912 fi
5913done
5914done
fc6ffb29 5915IFS=$as_save_IFS
1d4db787 5916
1d4db787
MM
5917fi
5918fi
5919ac_ct_AS=$ac_cv_prog_ac_ct_AS
5920if test -n "$ac_ct_AS"; then
fc6ffb29
AJ
5921 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5922echo "${ECHO_T}$ac_ct_AS" >&6; }
1d4db787 5923else
fc6ffb29
AJ
5924 { echo "$as_me:$LINENO: result: no" >&5
5925echo "${ECHO_T}no" >&6; }
1d4db787
MM
5926fi
5927
fc6ffb29 5928
c80c290e
AJ
5929 test -n "$ac_ct_AS" && break
5930done
c80c290e 5931
fc6ffb29
AJ
5932 if test "x$ac_ct_AS" = x; then
5933 AS="as"
5934 else
5935 case $cross_compiling:$ac_tool_warned in
5936yes:)
5937{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5938whose name does not start with the host triplet. If you think this
5939configuration is useful to you, please write to autoconf@gnu.org." >&5
5940echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5941whose name does not start with the host triplet. If you think this
5942configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5943ac_tool_warned=yes ;;
5944esac
5945 AS=$ac_ct_AS
5946 fi
1d4db787
MM
5947fi
5948
eb5f89c5
AJ
5949if test -n "$ac_tool_prefix"; then
5950 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5951set dummy ${ac_tool_prefix}ld; ac_word=$2
fc6ffb29
AJ
5952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
eb5f89c5
AJ
5954if test "${ac_cv_prog_LD+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956else
5957 if test -n "$LD"; then
5958 ac_cv_prog_LD="$LD" # Let the user override the test.
5959else
5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961for as_dir in $PATH
5962do
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
eb5f89c5
AJ
5967 ac_cv_prog_LD="${ac_tool_prefix}ld"
5968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971done
5972done
fc6ffb29 5973IFS=$as_save_IFS
eb5f89c5
AJ
5974
5975fi
5976fi
5977LD=$ac_cv_prog_LD
5978if test -n "$LD"; then
fc6ffb29
AJ
5979 { echo "$as_me:$LINENO: result: $LD" >&5
5980echo "${ECHO_T}$LD" >&6; }
eb5f89c5 5981else
fc6ffb29
AJ
5982 { echo "$as_me:$LINENO: result: no" >&5
5983echo "${ECHO_T}no" >&6; }
eb5f89c5
AJ
5984fi
5985
fc6ffb29 5986
eb5f89c5
AJ
5987fi
5988if test -z "$ac_cv_prog_LD"; then
5989 ac_ct_LD=$LD
5990 # Extract the first word of "ld", so it can be a program name with args.
5991set dummy ld; ac_word=$2
fc6ffb29
AJ
5992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
eb5f89c5
AJ
5994if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5996else
5997 if test -n "$ac_ct_LD"; then
5998 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5999else
6000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001for as_dir in $PATH
6002do
6003 IFS=$as_save_IFS
6004 test -z "$as_dir" && as_dir=.
6005 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 6006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
eb5f89c5
AJ
6007 ac_cv_prog_ac_ct_LD="ld"
6008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009 break 2
6010 fi
6011done
6012done
fc6ffb29 6013IFS=$as_save_IFS
eb5f89c5 6014
eb5f89c5
AJ
6015fi
6016fi
6017ac_ct_LD=$ac_cv_prog_ac_ct_LD
6018if test -n "$ac_ct_LD"; then
fc6ffb29
AJ
6019 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
6020echo "${ECHO_T}$ac_ct_LD" >&6; }
eb5f89c5 6021else
fc6ffb29
AJ
6022 { echo "$as_me:$LINENO: result: no" >&5
6023echo "${ECHO_T}no" >&6; }
eb5f89c5
AJ
6024fi
6025
fc6ffb29
AJ
6026 if test "x$ac_ct_LD" = x; then
6027 LD="ld"
6028 else
6029 case $cross_compiling:$ac_tool_warned in
6030yes:)
6031{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6032whose name does not start with the host triplet. If you think this
6033configuration is useful to you, please write to autoconf@gnu.org." >&5
6034echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6035whose name does not start with the host triplet. If you think this
6036configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6037ac_tool_warned=yes ;;
6038esac
6039 LD=$ac_ct_LD
6040 fi
eb5f89c5
AJ
6041else
6042 LD="$ac_cv_prog_LD"
6043fi
6044
fc01b729
AJ
6045if test -n "$ac_tool_prefix"; then
6046 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6047set dummy ${ac_tool_prefix}ar; ac_word=$2
fc6ffb29
AJ
6048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
6050if test "${ac_cv_prog_AR+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052else
6053 if test -n "$AR"; then
6054 ac_cv_prog_AR="$AR" # Let the user override the test.
6055else
6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
6063 ac_cv_prog_AR="${ac_tool_prefix}ar"
6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 break 2
6066 fi
6067done
6068done
fc6ffb29 6069IFS=$as_save_IFS
fc01b729
AJ
6070
6071fi
6072fi
6073AR=$ac_cv_prog_AR
6074if test -n "$AR"; then
fc6ffb29
AJ
6075 { echo "$as_me:$LINENO: result: $AR" >&5
6076echo "${ECHO_T}$AR" >&6; }
fc01b729 6077else
fc6ffb29
AJ
6078 { echo "$as_me:$LINENO: result: no" >&5
6079echo "${ECHO_T}no" >&6; }
fc01b729
AJ
6080fi
6081
fc6ffb29 6082
fc01b729
AJ
6083fi
6084if test -z "$ac_cv_prog_AR"; then
6085 ac_ct_AR=$AR
6086 # Extract the first word of "ar", so it can be a program name with args.
6087set dummy ar; ac_word=$2
fc6ffb29
AJ
6088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
6090if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092else
6093 if test -n "$ac_ct_AR"; then
6094 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6095else
6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097for as_dir in $PATH
6098do
6099 IFS=$as_save_IFS
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
6103 ac_cv_prog_ac_ct_AR="ar"
6104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105 break 2
6106 fi
6107done
6108done
fc6ffb29 6109IFS=$as_save_IFS
fc01b729 6110
fc01b729
AJ
6111fi
6112fi
6113ac_ct_AR=$ac_cv_prog_ac_ct_AR
6114if test -n "$ac_ct_AR"; then
fc6ffb29
AJ
6115 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6116echo "${ECHO_T}$ac_ct_AR" >&6; }
fc01b729 6117else
fc6ffb29
AJ
6118 { echo "$as_me:$LINENO: result: no" >&5
6119echo "${ECHO_T}no" >&6; }
fc01b729
AJ
6120fi
6121
fc6ffb29
AJ
6122 if test "x$ac_ct_AR" = x; then
6123 AR="ar"
6124 else
6125 case $cross_compiling:$ac_tool_warned in
6126yes:)
6127{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6128whose name does not start with the host triplet. If you think this
6129configuration is useful to you, please write to autoconf@gnu.org." >&5
6130echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6131whose name does not start with the host triplet. If you think this
6132configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6133ac_tool_warned=yes ;;
6134esac
6135 AR=$ac_ct_AR
6136 fi
fc01b729
AJ
6137else
6138 AR="$ac_cv_prog_AR"
6139fi
6140
f5818d2f
AJ
6141if test -n "$ac_tool_prefix"; then
6142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6143set dummy ${ac_tool_prefix}ranlib; ac_word=$2
fc6ffb29
AJ
6144{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
6146if test "${ac_cv_prog_RANLIB+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea
AJ
6148else
6149 if test -n "$RANLIB"; then
6150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6151else
daa2886c
AJ
6152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH
6154do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 6158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
6159 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161 break 2
6162 fi
6163done
f5818d2f 6164done
fc6ffb29 6165IFS=$as_save_IFS
f5818d2f 6166
e2991ea7 6167fi
e2991ea7 6168fi
f5818d2f 6169RANLIB=$ac_cv_prog_RANLIB
ff8331ea 6170if test -n "$RANLIB"; then
fc6ffb29
AJ
6171 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6172echo "${ECHO_T}$RANLIB" >&6; }
f5818d2f 6173else
fc6ffb29
AJ
6174 { echo "$as_me:$LINENO: result: no" >&5
6175echo "${ECHO_T}no" >&6; }
f5818d2f
AJ
6176fi
6177
fc6ffb29 6178
f5818d2f
AJ
6179fi
6180if test -z "$ac_cv_prog_RANLIB"; then
6181 ac_ct_RANLIB=$RANLIB
6182 # Extract the first word of "ranlib", so it can be a program name with args.
6183set dummy ranlib; ac_word=$2
fc6ffb29
AJ
6184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
6186if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6188else
6189 if test -n "$ac_ct_RANLIB"; then
6190 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6191else
daa2886c
AJ
6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in $PATH
6194do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
6199 ac_cv_prog_ac_ct_RANLIB="ranlib"
6200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203done
f5818d2f 6204done
fc6ffb29 6205IFS=$as_save_IFS
f5818d2f 6206
f5818d2f
AJ
6207fi
6208fi
6209ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6210if test -n "$ac_ct_RANLIB"; then
fc6ffb29
AJ
6211 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6212echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
f5818d2f 6213else
fc6ffb29
AJ
6214 { echo "$as_me:$LINENO: result: no" >&5
6215echo "${ECHO_T}no" >&6; }
f5818d2f
AJ
6216fi
6217
fc6ffb29
AJ
6218 if test "x$ac_ct_RANLIB" = x; then
6219 RANLIB=":"
6220 else
6221 case $cross_compiling:$ac_tool_warned in
6222yes:)
6223{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6224whose name does not start with the host triplet. If you think this
6225configuration is useful to you, please write to autoconf@gnu.org." >&5
6226echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6227whose name does not start with the host triplet. If you think this
6228configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6229ac_tool_warned=yes ;;
6230esac
6231 RANLIB=$ac_ct_RANLIB
6232 fi
ff8331ea 6233else
f5818d2f 6234 RANLIB="$ac_cv_prog_RANLIB"
ff8331ea 6235fi
e2991ea7 6236
fc01b729
AJ
6237if test -n "$ac_tool_prefix"; then
6238 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6239set dummy ${ac_tool_prefix}strip; ac_word=$2
fc6ffb29
AJ
6240{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
6242if test "${ac_cv_prog_STRIP+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6244else
6245 if test -n "$STRIP"; then
6246 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6247else
6248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249for as_dir in $PATH
6250do
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 6254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
6255 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 break 2
6258 fi
6259done
6260done
fc6ffb29 6261IFS=$as_save_IFS
fc01b729
AJ
6262
6263fi
6264fi
6265STRIP=$ac_cv_prog_STRIP
6266if test -n "$STRIP"; then
fc6ffb29
AJ
6267 { echo "$as_me:$LINENO: result: $STRIP" >&5
6268echo "${ECHO_T}$STRIP" >&6; }
fc01b729 6269else
fc6ffb29
AJ
6270 { echo "$as_me:$LINENO: result: no" >&5
6271echo "${ECHO_T}no" >&6; }
fc01b729
AJ
6272fi
6273
fc6ffb29 6274
fc01b729
AJ
6275fi
6276if test -z "$ac_cv_prog_STRIP"; then
6277 ac_ct_STRIP=$STRIP
6278 # Extract the first word of "strip", so it can be a program name with args.
6279set dummy strip; ac_word=$2
fc6ffb29
AJ
6280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
6282if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
6284else
6285 if test -n "$ac_ct_STRIP"; then
6286 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6287else
6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291 IFS=$as_save_IFS
6292 test -z "$as_dir" && as_dir=.
6293 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 6294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
6295 ac_cv_prog_ac_ct_STRIP="strip"
6296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6298 fi
6299done
6300done
fc6ffb29 6301IFS=$as_save_IFS
fc01b729 6302
fc01b729
AJ
6303fi
6304fi
6305ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6306if test -n "$ac_ct_STRIP"; then
fc6ffb29
AJ
6307 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6308echo "${ECHO_T}$ac_ct_STRIP" >&6; }
fc01b729 6309else
fc6ffb29
AJ
6310 { echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6; }
fc01b729
AJ
6312fi
6313
fc6ffb29
AJ
6314 if test "x$ac_ct_STRIP" = x; then
6315 STRIP="strip"
6316 else
6317 case $cross_compiling:$ac_tool_warned in
6318yes:)
6319{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6320whose name does not start with the host triplet. If you think this
6321configuration is useful to you, please write to autoconf@gnu.org." >&5
6322echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6323whose name does not start with the host triplet. If you think this
6324configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6325ac_tool_warned=yes ;;
6326esac
6327 STRIP=$ac_ct_STRIP
6328 fi
fc01b729
AJ
6329else
6330 STRIP="$ac_cv_prog_STRIP"
6331fi
6332
6333if test -n "$ac_tool_prefix"; then
6334 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6335set dummy ${ac_tool_prefix}windres; ac_word=$2
fc6ffb29
AJ
6336{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
6338if test "${ac_cv_prog_WINDRES+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6340else
6341 if test -n "$WINDRES"; then
6342 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6343else
6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345for as_dir in $PATH
6346do
6347 IFS=$as_save_IFS
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 6350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
6351 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 break 2
6354 fi
6355done
6356done
fc6ffb29 6357IFS=$as_save_IFS
fc01b729
AJ
6358
6359fi
6360fi
6361WINDRES=$ac_cv_prog_WINDRES
6362if test -n "$WINDRES"; then
fc6ffb29
AJ
6363 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6364echo "${ECHO_T}$WINDRES" >&6; }
fc01b729 6365else
fc6ffb29
AJ
6366 { echo "$as_me:$LINENO: result: no" >&5
6367echo "${ECHO_T}no" >&6; }
fc01b729
AJ
6368fi
6369
fc6ffb29 6370
fc01b729
AJ
6371fi
6372if test -z "$ac_cv_prog_WINDRES"; then
6373 ac_ct_WINDRES=$WINDRES
6374 # Extract the first word of "windres", so it can be a program name with args.
6375set dummy windres; ac_word=$2
fc6ffb29
AJ
6376{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
fc01b729
AJ
6378if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380else
6381 if test -n "$ac_ct_WINDRES"; then
6382 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6383else
6384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385for as_dir in $PATH
6386do
6387 IFS=$as_save_IFS
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 6390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
fc01b729
AJ
6391 ac_cv_prog_ac_ct_WINDRES="windres"
6392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 break 2
6394 fi
6395done
6396done
fc6ffb29 6397IFS=$as_save_IFS
fc01b729 6398
fc01b729
AJ
6399fi
6400fi
6401ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6402if test -n "$ac_ct_WINDRES"; then
fc6ffb29
AJ
6403 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6404echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
fc01b729 6405else
fc6ffb29
AJ
6406 { echo "$as_me:$LINENO: result: no" >&5
6407echo "${ECHO_T}no" >&6; }
fc01b729
AJ
6408fi
6409
fc6ffb29
AJ
6410 if test "x$ac_ct_WINDRES" = x; then
6411 WINDRES="false"
6412 else
6413 case $cross_compiling:$ac_tool_warned in
6414yes:)
6415{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6416whose name does not start with the host triplet. If you think this
6417configuration is useful to you, please write to autoconf@gnu.org." >&5
6418echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6419whose name does not start with the host triplet. If you think this
6420configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6421ac_tool_warned=yes ;;
6422esac
6423 WINDRES=$ac_ct_WINDRES
6424 fi
fc01b729
AJ
6425else
6426 WINDRES="$ac_cv_prog_WINDRES"
6427fi
6428
fc6ffb29
AJ
6429{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6430echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
f5818d2f
AJ
6431LN_S=$as_ln_s
6432if test "$LN_S" = "ln -s"; then
fc6ffb29
AJ
6433 { echo "$as_me:$LINENO: result: yes" >&5
6434echo "${ECHO_T}yes" >&6; }
641ee76a 6435else
fc6ffb29
AJ
6436 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6437echo "${ECHO_T}no, using $LN_S" >&6; }
641ee76a
AJ
6438fi
6439
fc6ffb29
AJ
6440{ echo "$as_me:$LINENO: checking whether ln works" >&5
6441echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
df234a9f
AJ
6442rm -f conf$$ conf$$.file
6443echo >conf$$.file
6444if ln conf$$.file conf$$ 2>/dev/null; then
6445 LN=ln
6446
fc6ffb29
AJ
6447 { echo "$as_me:$LINENO: result: yes" >&5
6448echo "${ECHO_T}yes" >&6; }
df234a9f
AJ
6449else
6450 LN="cp -p"
6451
fc6ffb29
AJ
6452 { echo "$as_me:$LINENO: result: no, using $LN" >&5
6453echo "${ECHO_T}no, using $LN" >&6; }
df234a9f
AJ
6454fi
6455rm -f conf$$ conf$$.file
fc6ffb29
AJ
6456{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6457echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6458if test "${ac_cv_path_GREP+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
6461 # Extract the first word of "grep ggrep" to use in msg output
6462if test -z "$GREP"; then
6463set dummy grep ggrep; ac_prog_name=$2
6464if test "${ac_cv_path_GREP+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466else
6467 ac_path_GREP_found=false
6468# Loop through the user's path and test for each of PROGNAME-LIST
6469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6471do
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
6474 for ac_prog in grep ggrep; do
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6477 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6478 # Check for GNU ac_path_GREP and select it if it is found.
6479 # Check for GNU $ac_path_GREP
6480case `"$ac_path_GREP" --version 2>&1` in
6481*GNU*)
6482 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6483*)
6484 ac_count=0
6485 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6486 while :
6487 do
6488 cat "conftest.in" "conftest.in" >"conftest.tmp"
6489 mv "conftest.tmp" "conftest.in"
6490 cp "conftest.in" "conftest.nl"
6491 echo 'GREP' >> "conftest.nl"
6492 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6494 ac_count=`expr $ac_count + 1`
6495 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6496 # Best one so far, save it but keep looking for a better one
6497 ac_cv_path_GREP="$ac_path_GREP"
6498 ac_path_GREP_max=$ac_count
6499 fi
6500 # 10*(2^10) chars as input seems more than enough
6501 test $ac_count -gt 10 && break
6502 done
0ebeb530 6503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
fc6ffb29
AJ
6504esac
6505
6506
6507 $ac_path_GREP_found && break 3
6508 done
6509done
6510
6511done
6512IFS=$as_save_IFS
6513
6514
6515fi
6516
6517GREP="$ac_cv_path_GREP"
6518if test -z "$GREP"; then
6519 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6520echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6521 { (exit 1); exit 1; }; }
6522fi
6523
6524else
6525 ac_cv_path_GREP=$GREP
6526fi
6527
6528
6529fi
6530{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6531echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6532 GREP="$ac_cv_path_GREP"
6533
6534
6535{ echo "$as_me:$LINENO: checking for egrep" >&5
6536echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6537if test "${ac_cv_path_EGREP+set}" = set; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6539else
6540 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6541 then ac_cv_path_EGREP="$GREP -E"
6542 else
6543 # Extract the first word of "egrep" to use in msg output
6544if test -z "$EGREP"; then
6545set dummy egrep; ac_prog_name=$2
6546if test "${ac_cv_path_EGREP+set}" = set; then
c626491b
AJ
6547 echo $ECHO_N "(cached) $ECHO_C" >&6
6548else
fc6ffb29
AJ
6549 ac_path_EGREP_found=false
6550# Loop through the user's path and test for each of PROGNAME-LIST
6551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6553do
6554 IFS=$as_save_IFS
6555 test -z "$as_dir" && as_dir=.
6556 for ac_prog in egrep; do
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6559 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6560 # Check for GNU ac_path_EGREP and select it if it is found.
6561 # Check for GNU $ac_path_EGREP
6562case `"$ac_path_EGREP" --version 2>&1` in
6563*GNU*)
6564 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6565*)
6566 ac_count=0
6567 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6568 while :
6569 do
6570 cat "conftest.in" "conftest.in" >"conftest.tmp"
6571 mv "conftest.tmp" "conftest.in"
6572 cp "conftest.in" "conftest.nl"
6573 echo 'EGREP' >> "conftest.nl"
6574 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6576 ac_count=`expr $ac_count + 1`
6577 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6578 # Best one so far, save it but keep looking for a better one
6579 ac_cv_path_EGREP="$ac_path_EGREP"
6580 ac_path_EGREP_max=$ac_count
c626491b 6581 fi
fc6ffb29
AJ
6582 # 10*(2^10) chars as input seems more than enough
6583 test $ac_count -gt 10 && break
6584 done
0ebeb530 6585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
fc6ffb29
AJ
6586esac
6587
6588
6589 $ac_path_EGREP_found && break 3
6590 done
6591done
6592
6593done
6594IFS=$as_save_IFS
6595
6596
6597fi
6598
6599EGREP="$ac_cv_path_EGREP"
6600if test -z "$EGREP"; then
6601 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6602echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6603 { (exit 1); exit 1; }; }
6604fi
6605
6606else
6607 ac_cv_path_EGREP=$EGREP
6608fi
6609
6610
6611 fi
c626491b 6612fi
fc6ffb29
AJ
6613{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6614echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6615 EGREP="$ac_cv_path_EGREP"
c626491b
AJ
6616
6617
ffe6b767
JJ
6618# Extract the first word of "ldconfig", so it can be a program name with args.
6619set dummy ldconfig; ac_word=$2
fc6ffb29
AJ
6620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
6622if test "${ac_cv_path_LDCONFIG+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
ffe6b767 6624else
f5818d2f
AJ
6625 case $LDCONFIG in
6626 [\\/]* | ?:[\\/]*)
ffe6b767
JJ
6627 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6628 ;;
6629 *)
daa2886c 6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91372b39 6631for as_dir in /sbin /usr/sbin $PATH
daa2886c
AJ
6632do
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
6637 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6640 fi
6641done
f5818d2f 6642done
fc6ffb29 6643IFS=$as_save_IFS
f5818d2f 6644
318f4cef 6645 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
ffe6b767
JJ
6646 ;;
6647esac
6648fi
f5818d2f 6649LDCONFIG=$ac_cv_path_LDCONFIG
f5818d2f 6650if test -n "$LDCONFIG"; then
fc6ffb29
AJ
6651 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6652echo "${ECHO_T}$LDCONFIG" >&6; }
d48ca948 6653else
fc6ffb29
AJ
6654 { echo "$as_me:$LINENO: result: no" >&5
6655echo "${ECHO_T}no" >&6; }
d48ca948
HT
6656fi
6657
fc6ffb29 6658
e24bcc77
AJ
6659# Find a good install program. We prefer a C program (faster),
6660# so one script is as good as another. But avoid the broken or
6661# incompatible versions:
6662# SysV /etc/install, /usr/sbin/install
6663# SunOS /usr/etc/install
6664# IRIX /sbin/install
6665# AIX /bin/install
6666# AmigaOS /C/install, which installs bootblocks on floppy discs
6667# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6668# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6669# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
875927f6 6670# OS/2's system install, which has a completely different semantic
e24bcc77 6671# ./install, which can be erroneously created by make from ./install.sh.
fc6ffb29
AJ
6672{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6673echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
e24bcc77
AJ
6674if test -z "$INSTALL"; then
6675if test "${ac_cv_path_install+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6677else
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679for as_dir in $PATH
6680do
6681 IFS=$as_save_IFS
6682 test -z "$as_dir" && as_dir=.
6683 # Account for people who put trailing slashes in PATH elements.
6684case $as_dir/ in
6685 ./ | .// | /cC/* | \
6686 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
875927f6 6687 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e24bcc77
AJ
6688 /usr/ucb/* ) ;;
6689 *)
6690 # OSF1 and SCO ODT 3.0 have their own names for install.
6691 # Don't use installbsd from OSF since it installs stuff as root
6692 # by default.
6693 for ac_prog in ginstall scoinst install; do
6694 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 6695 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
875927f6
AJ
6696 if test $ac_prog = install &&
6697 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6698 # AIX install. It has an incompatible calling convention.
6699 :
6700 elif test $ac_prog = install &&
6701 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6702 # program-specific install script used by HP pwplus--don't use.
6703 :
6704 else
6705 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6706 break 3
6707 fi
6708 fi
e24bcc77
AJ
6709 done
6710 done
6711 ;;
6712esac
6713done
fc6ffb29 6714IFS=$as_save_IFS
e24bcc77
AJ
6715
6716
6717fi
6718 if test "${ac_cv_path_install+set}" = set; then
6719 INSTALL=$ac_cv_path_install
6720 else
fc6ffb29
AJ
6721 # As a last resort, use the slow shell script. Don't cache a
6722 # value for INSTALL within a source directory, because that will
e24bcc77 6723 # break other packages using the cache if that directory is
fc6ffb29 6724 # removed, or if the value is a relative name.
e24bcc77
AJ
6725 INSTALL=$ac_install_sh
6726 fi
6727fi
fc6ffb29
AJ
6728{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6729echo "${ECHO_T}$INSTALL" >&6; }
e24bcc77
AJ
6730
6731# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6732# It thinks the first close brace ends the variable substitution.
6733test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6734
6735test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6736
6737test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6738
6739case "$INSTALL" in
8418d8f3 6740 [\\/$]* | ?:[\\/]* ) ;;
e24bcc77
AJ
6741 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6742esac
daa2886c 6743
a9be64e2
PS
6744for ac_prog in lclint lint
6745do
f5818d2f 6746 # Extract the first word of "$ac_prog", so it can be a program name with args.
a9be64e2 6747set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
6748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
f5818d2f
AJ
6750if test "${ac_cv_prog_LINT+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
a9be64e2
PS
6752else
6753 if test -n "$LINT"; then
6754 ac_cv_prog_LINT="$LINT" # Let the user override the test.
6755else
daa2886c
AJ
6756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757for as_dir in $PATH
6758do
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
daa2886c
AJ
6763 ac_cv_prog_LINT="$ac_prog"
6764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 break 2
6766 fi
6767done
f5818d2f 6768done
fc6ffb29 6769IFS=$as_save_IFS
f5818d2f 6770
a9be64e2
PS
6771fi
6772fi
f5818d2f 6773LINT=$ac_cv_prog_LINT
a9be64e2 6774if test -n "$LINT"; then
fc6ffb29
AJ
6775 { echo "$as_me:$LINENO: result: $LINT" >&5
6776echo "${ECHO_T}$LINT" >&6; }
a9be64e2 6777else
fc6ffb29
AJ
6778 { echo "$as_me:$LINENO: result: no" >&5
6779echo "${ECHO_T}no" >&6; }
a9be64e2
PS
6780fi
6781
fc6ffb29 6782
f5818d2f 6783 test -n "$LINT" && break
a9be64e2
PS
6784done
6785
6786if test "$LINT" = "lint"
6787then
6788 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6789 fi
6790
daa2886c
AJ
6791
6792
00acb5f7
HD
6793for ac_prog in fontforge
6794do
6795 # Extract the first word of "$ac_prog", so it can be a program name with args.
6796set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
6797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
00acb5f7
HD
6799if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6800 echo $ECHO_N "(cached) $ECHO_C" >&6
6801else
6802 if test -n "$FONTFORGE"; then
6803 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6804else
6805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806for as_dir in $PATH
6807do
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
00acb5f7
HD
6812 ac_cv_prog_FONTFORGE="$ac_prog"
6813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6815 fi
6816done
6817done
fc6ffb29 6818IFS=$as_save_IFS
00acb5f7
HD
6819
6820fi
6821fi
6822FONTFORGE=$ac_cv_prog_FONTFORGE
6823if test -n "$FONTFORGE"; then
fc6ffb29
AJ
6824 { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6825echo "${ECHO_T}$FONTFORGE" >&6; }
00acb5f7 6826else
fc6ffb29
AJ
6827 { echo "$as_me:$LINENO: result: no" >&5
6828echo "${ECHO_T}no" >&6; }
00acb5f7
HD
6829fi
6830
fc6ffb29 6831
00acb5f7
HD
6832 test -n "$FONTFORGE" && break
6833done
6834test -n "$FONTFORGE" || FONTFORGE="false"
b817a3c5 6835
90c75bdd
MM
6836for ac_prog in pkg-config
6837do
6838 # Extract the first word of "$ac_prog", so it can be a program name with args.
6839set dummy $ac_prog; ac_word=$2
fc6ffb29
AJ
6840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
90c75bdd
MM
6842if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6844else
6845 if test -n "$PKG_CONFIG"; then
6846 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6847else
6848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849for as_dir in $PATH
6850do
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 6854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
90c75bdd
MM
6855 ac_cv_prog_PKG_CONFIG="$ac_prog"
6856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6858 fi
6859done
6860done
fc6ffb29 6861IFS=$as_save_IFS
90c75bdd
MM
6862
6863fi
6864fi
6865PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6866if test -n "$PKG_CONFIG"; then
fc6ffb29
AJ
6867 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6868echo "${ECHO_T}$PKG_CONFIG" >&6; }
90c75bdd 6869else
fc6ffb29
AJ
6870 { echo "$as_me:$LINENO: result: no" >&5
6871echo "${ECHO_T}no" >&6; }
90c75bdd
MM
6872fi
6873
fc6ffb29 6874
90c75bdd
MM
6875 test -n "$PKG_CONFIG" && break
6876done
6877test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6878
b817a3c5 6879
adbb0988
AJ
6880case $host_cpu in
6881 *i[3456789]86*)
3d08f5d9
AJ
6882 # Extract the first word of "prelink", so it can be a program name with args.
6883set dummy prelink; ac_word=$2
fc6ffb29
AJ
6884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3d08f5d9 6886if test "${ac_cv_path_PRELINK+set}" = set; then
adbb0988
AJ
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
3d08f5d9
AJ
6889 case $PRELINK in
6890 [\\/]* | ?:[\\/]*)
6891 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6892 ;;
6893 *)
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
adbb0988
AJ
6895for as_dir in /sbin /usr/sbin $PATH
6896do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3d08f5d9 6901 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
adbb0988
AJ
6902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905done
6906done
fc6ffb29 6907IFS=$as_save_IFS
adbb0988 6908
3d08f5d9
AJ
6909 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6910 ;;
6911esac
adbb0988 6912fi
3d08f5d9 6913PRELINK=$ac_cv_path_PRELINK
adbb0988 6914if test -n "$PRELINK"; then
fc6ffb29
AJ
6915 { echo "$as_me:$LINENO: result: $PRELINK" >&5
6916echo "${ECHO_T}$PRELINK" >&6; }
adbb0988 6917else
fc6ffb29
AJ
6918 { echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6; }
adbb0988
AJ
6920fi
6921
fc6ffb29 6922
adbb0988
AJ
6923 ;;
6924esac
6925
daa2886c
AJ
6926
6927
fc6ffb29
AJ
6928{ echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6929echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
f5818d2f
AJ
6930if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
902da699 6932else
f5818d2f 6933 ac_check_lib_save_LIBS=$LIBS
902da699 6934LIBS="-li386 $LIBS"
f5818d2f 6935cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
6936/* confdefs.h. */
6937_ACEOF
6938cat confdefs.h >>conftest.$ac_ext
6939cat >>conftest.$ac_ext <<_ACEOF
6940/* end confdefs.h. */
f5818d2f 6941
fc6ffb29
AJ
6942/* Override any GCC internal prototype to avoid an error.
6943 Use char because int might match the return type of a GCC
6944 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
6945#ifdef __cplusplus
6946extern "C"
6947#endif
f5818d2f
AJ
6948char i386_set_ldt ();
6949int
6950main ()
6951{
fc6ffb29 6952return i386_set_ldt ();
f5818d2f
AJ
6953 ;
6954 return 0;
6955}
6956_ACEOF
6957rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
6958if { (ac_try="$ac_link"
6959case "(($ac_try" in
6960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961 *) ac_try_echo=$ac_try;;
6962esac
6963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964 (eval "$ac_link") 2>conftest.er1
f5818d2f 6965 ac_status=$?
875927f6
AJ
6966 grep -v '^ *+' conftest.er1 >conftest.err
6967 rm -f conftest.er1
6968 cat conftest.err >&5
daa2886c 6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 6970 (exit $ac_status); } &&
0ebeb530
JW
6971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6972 { (case "(($ac_try" in
6973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6975esac
6976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977 (eval "$ac_try") 2>&5
875927f6
AJ
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; } &&
6981 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
6982 { (case "(($ac_try" in
6983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984 *) ac_try_echo=$ac_try;;
6985esac
6986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987 (eval "$ac_try") 2>&5
f5818d2f 6988 ac_status=$?
daa2886c 6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6990 (exit $ac_status); }; }; then
6991 ac_cv_lib_i386_i386_set_ldt=yes
6992else
6993 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
fc6ffb29 6996 ac_cv_lib_i386_i386_set_ldt=no
f5818d2f 6997fi
fc6ffb29 6998
0ebeb530 6999rm -f core conftest.err conftest.$ac_objext \
875927f6 7000 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
7001LIBS=$ac_check_lib_save_LIBS
7002fi
fc6ffb29
AJ
7003{ echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
7004echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
f5818d2f 7005if test $ac_cv_lib_i386_i386_set_ldt = yes; then
daa2886c 7006 cat >>confdefs.h <<_ACEOF
f5818d2f 7007#define HAVE_LIBI386 1
daa2886c 7008_ACEOF
02e90087
AJ
7009
7010 LIBS="-li386 $LIBS"
7011
02e90087
AJ
7012fi
7013
daa2886c 7014
fc6ffb29
AJ
7015{ echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
7016echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
f5818d2f
AJ
7017if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
ecc7669d 7019else
f5818d2f 7020 ac_check_lib_save_LIBS=$LIBS
ecc7669d 7021LIBS="-lossaudio $LIBS"
f5818d2f 7022cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7023/* confdefs.h. */
7024_ACEOF
7025cat confdefs.h >>conftest.$ac_ext
7026cat >>conftest.$ac_ext <<_ACEOF
7027/* end confdefs.h. */
f5818d2f 7028
fc6ffb29
AJ
7029/* Override any GCC internal prototype to avoid an error.
7030 Use char because int might match the return type of a GCC
7031 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
7032#ifdef __cplusplus
7033extern "C"
7034#endif
f5818d2f
AJ
7035char _oss_ioctl ();
7036int
7037main ()
7038{
fc6ffb29 7039return _oss_ioctl ();
f5818d2f
AJ
7040 ;
7041 return 0;
7042}
7043_ACEOF
7044rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
7045if { (ac_try="$ac_link"
7046case "(($ac_try" in
7047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048 *) ac_try_echo=$ac_try;;
7049esac
7050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051 (eval "$ac_link") 2>conftest.er1
f5818d2f 7052 ac_status=$?
875927f6
AJ
7053 grep -v '^ *+' conftest.er1 >conftest.err
7054 rm -f conftest.er1
7055 cat conftest.err >&5
daa2886c 7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7057 (exit $ac_status); } &&
0ebeb530
JW
7058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7059 { (case "(($ac_try" in
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7062esac
7063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_try") 2>&5
875927f6
AJ
7065 ac_status=$?
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; } &&
7068 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
7069 { (case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072esac
7073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_try") 2>&5
f5818d2f 7075 ac_status=$?
daa2886c 7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7077 (exit $ac_status); }; }; then
7078 ac_cv_lib_ossaudio__oss_ioctl=yes
7079else
7080 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7081sed 's/^/| /' conftest.$ac_ext >&5
7082
fc6ffb29 7083 ac_cv_lib_ossaudio__oss_ioctl=no
f5818d2f 7084fi
fc6ffb29 7085
0ebeb530 7086rm -f core conftest.err conftest.$ac_objext \
875927f6 7087 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
7088LIBS=$ac_check_lib_save_LIBS
7089fi
fc6ffb29
AJ
7090{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7091echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
f5818d2f 7092if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
daa2886c 7093 cat >>confdefs.h <<_ACEOF
f5818d2f 7094#define HAVE_LIBOSSAUDIO 1
daa2886c 7095_ACEOF
ecc7669d
TV
7096
7097 LIBS="-lossaudio $LIBS"
7098
ecc7669d
TV
7099fi
7100
daa2886c 7101
e533e972
AJ
7102{ echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7103echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
7104if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
f5818d2f
AJ
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106else
e533e972
AJ
7107 ac_check_lib_save_LIBS=$LIBS
7108LIBS="-lxpg4 $LIBS"
7109cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7110/* confdefs.h. */
7111_ACEOF
7112cat confdefs.h >>conftest.$ac_ext
7113cat >>conftest.$ac_ext <<_ACEOF
7114/* end confdefs.h. */
875927f6 7115
fc6ffb29
AJ
7116/* Override any GCC internal prototype to avoid an error.
7117 Use char because int might match the return type of a GCC
7118 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
7119#ifdef __cplusplus
7120extern "C"
7121#endif
e533e972 7122char _xpg4_setrunelocale ();
e24bcc77
AJ
7123int
7124main ()
7125{
e533e972 7126return _xpg4_setrunelocale ();
f5818d2f
AJ
7127 ;
7128 return 0;
7129}
7130_ACEOF
7131rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
7132if { (ac_try="$ac_link"
7133case "(($ac_try" in
7134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7135 *) ac_try_echo=$ac_try;;
7136esac
7137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7138 (eval "$ac_link") 2>conftest.er1
f5818d2f 7139 ac_status=$?
875927f6
AJ
7140 grep -v '^ *+' conftest.er1 >conftest.err
7141 rm -f conftest.er1
7142 cat conftest.err >&5
daa2886c 7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7144 (exit $ac_status); } &&
0ebeb530
JW
7145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7146 { (case "(($ac_try" in
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7149esac
7150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7151 (eval "$ac_try") 2>&5
875927f6
AJ
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); }; } &&
7155 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
7156 { (case "(($ac_try" in
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7159esac
7160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161 (eval "$ac_try") 2>&5
f5818d2f 7162 ac_status=$?
daa2886c 7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7164 (exit $ac_status); }; }; then
e533e972 7165 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
f5818d2f
AJ
7166else
7167 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7168sed 's/^/| /' conftest.$ac_ext >&5
7169
e533e972 7170 ac_cv_lib_xpg4__xpg4_setrunelocale=no
f5818d2f 7171fi
fc6ffb29 7172
0ebeb530 7173rm -f core conftest.err conftest.$ac_objext \
875927f6 7174 conftest$ac_exeext conftest.$ac_ext
e533e972 7175LIBS=$ac_check_lib_save_LIBS
f5818d2f 7176fi
e533e972
AJ
7177{ echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7178echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
7179if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
daa2886c 7180 cat >>confdefs.h <<_ACEOF
e533e972 7181#define HAVE_LIBXPG4 1
daa2886c 7182_ACEOF
f5818d2f 7183
e533e972 7184 LIBS="-lxpg4 $LIBS"
f5818d2f 7185
e533e972
AJ
7186fi
7187
7188{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7189echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
7190if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
f5818d2f
AJ
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193 ac_check_lib_save_LIBS=$LIBS
e533e972 7194LIBS="-lpthread $LIBS"
f5818d2f 7195cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7196/* confdefs.h. */
7197_ACEOF
7198cat confdefs.h >>conftest.$ac_ext
7199cat >>conftest.$ac_ext <<_ACEOF
7200/* end confdefs.h. */
f5818d2f 7201
fc6ffb29
AJ
7202/* Override any GCC internal prototype to avoid an error.
7203 Use char because int might match the return type of a GCC
7204 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
7205#ifdef __cplusplus
7206extern "C"
7207#endif
e533e972 7208char pthread_create ();
f5818d2f
AJ
7209int
7210main ()
7211{
e533e972 7212return pthread_create ();
f5818d2f
AJ
7213 ;
7214 return 0;
7215}
7216_ACEOF
7217rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
7218if { (ac_try="$ac_link"
7219case "(($ac_try" in
7220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221 *) ac_try_echo=$ac_try;;
7222esac
7223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7224 (eval "$ac_link") 2>conftest.er1
f5818d2f 7225 ac_status=$?
875927f6
AJ
7226 grep -v '^ *+' conftest.er1 >conftest.err
7227 rm -f conftest.er1
7228 cat conftest.err >&5
daa2886c 7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7230 (exit $ac_status); } &&
0ebeb530
JW
7231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7232 { (case "(($ac_try" in
7233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7234 *) ac_try_echo=$ac_try;;
7235esac
7236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7237 (eval "$ac_try") 2>&5
875927f6
AJ
7238 ac_status=$?
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; } &&
7241 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
7242 { (case "(($ac_try" in
7243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7244 *) ac_try_echo=$ac_try;;
7245esac
7246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7247 (eval "$ac_try") 2>&5
f5818d2f 7248 ac_status=$?
daa2886c 7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7250 (exit $ac_status); }; }; then
e533e972 7251 ac_cv_lib_pthread_pthread_create=yes
f5818d2f
AJ
7252else
7253 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7254sed 's/^/| /' conftest.$ac_ext >&5
7255
e533e972 7256 ac_cv_lib_pthread_pthread_create=no
f5818d2f 7257fi
fc6ffb29 7258
0ebeb530 7259rm -f core conftest.err conftest.$ac_objext \
875927f6 7260 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
7261LIBS=$ac_check_lib_save_LIBS
7262fi
e533e972
AJ
7263{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
7264echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
7265if test $ac_cv_lib_pthread_pthread_create = yes; then
7266 LIBPTHREAD="-lpthread"
2e8e2334 7267
ea584724
PS
7268fi
7269
f070fda2 7270
e533e972
AJ
7271XLIB=""
7272
7273XFILES=""
daa2886c 7274
e533e972
AJ
7275OPENGLFILES=""
7276
7277GLU32FILES=""
7278
7279OPENGL_LIBS=""
7280
7281
7282
7283{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7284echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7285if test "${ac_cv_header_stdc+set}" = set; then
f5818d2f
AJ
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287else
7288 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7289/* confdefs.h. */
7290_ACEOF
7291cat confdefs.h >>conftest.$ac_ext
7292cat >>conftest.$ac_ext <<_ACEOF
7293/* end confdefs.h. */
e533e972
AJ
7294#include <stdlib.h>
7295#include <stdarg.h>
7296#include <string.h>
7297#include <float.h>
715a55e7 7298
e24bcc77
AJ
7299int
7300main ()
7301{
e533e972 7302
f5818d2f
AJ
7303 ;
7304 return 0;
7305}
7306_ACEOF
e533e972
AJ
7307rm -f conftest.$ac_objext
7308if { (ac_try="$ac_compile"
0ebeb530
JW
7309case "(($ac_try" in
7310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311 *) ac_try_echo=$ac_try;;
7312esac
7313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
e533e972 7314 (eval "$ac_compile") 2>conftest.er1
f5818d2f 7315 ac_status=$?
875927f6
AJ
7316 grep -v '^ *+' conftest.er1 >conftest.err
7317 rm -f conftest.er1
7318 cat conftest.err >&5
daa2886c 7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7320 (exit $ac_status); } &&
0ebeb530
JW
7321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7322 { (case "(($ac_try" in
7323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324 *) ac_try_echo=$ac_try;;
7325esac
7326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327 (eval "$ac_try") 2>&5
875927f6
AJ
7328 ac_status=$?
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; } &&
e533e972 7331 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
7332 { (case "(($ac_try" in
7333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7334 *) ac_try_echo=$ac_try;;
7335esac
7336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7337 (eval "$ac_try") 2>&5
f5818d2f 7338 ac_status=$?
daa2886c 7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7340 (exit $ac_status); }; }; then
e533e972 7341 ac_cv_header_stdc=yes
f5818d2f
AJ
7342else
7343 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7344sed 's/^/| /' conftest.$ac_ext >&5
7345
e533e972 7346 ac_cv_header_stdc=no
f5818d2f 7347fi
fc6ffb29 7348
e533e972
AJ
7349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7350
7351if test $ac_cv_header_stdc = yes; then
7352 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7353 cat >conftest.$ac_ext <<_ACEOF
7354/* confdefs.h. */
7355_ACEOF
7356cat confdefs.h >>conftest.$ac_ext
7357cat >>conftest.$ac_ext <<_ACEOF
7358/* end confdefs.h. */
7359#include <string.h>
7360
7361_ACEOF
7362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7363 $EGREP "memchr" >/dev/null 2>&1; then
7364 :
7365else
7366 ac_cv_header_stdc=no
f5818d2f 7367fi
e533e972
AJ
7368rm -f conftest*
7369
7370fi
7371
7372if test $ac_cv_header_stdc = yes; then
7373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7374 cat >conftest.$ac_ext <<_ACEOF
7375/* confdefs.h. */
daa2886c 7376_ACEOF
e533e972
AJ
7377cat confdefs.h >>conftest.$ac_ext
7378cat >>conftest.$ac_ext <<_ACEOF
7379/* end confdefs.h. */
7380#include <stdlib.h>
f5818d2f 7381
e533e972
AJ
7382_ACEOF
7383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7384 $EGREP "free" >/dev/null 2>&1; then
7385 :
f5818d2f 7386else
e533e972
AJ
7387 ac_cv_header_stdc=no
7388fi
7389rm -f conftest*
f5818d2f 7390
e533e972
AJ
7391fi
7392
7393if test $ac_cv_header_stdc = yes; then
7394 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7395 if test "$cross_compiling" = yes; then
7396 :
f5818d2f 7397else
e533e972 7398 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7399/* confdefs.h. */
7400_ACEOF
7401cat confdefs.h >>conftest.$ac_ext
7402cat >>conftest.$ac_ext <<_ACEOF
7403/* end confdefs.h. */
e533e972
AJ
7404#include <ctype.h>
7405#include <stdlib.h>
7406#if ((' ' & 0x0FF) == 0x020)
7407# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7408# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7409#else
7410# define ISLOWER(c) \
7411 (('a' <= (c) && (c) <= 'i') \
7412 || ('j' <= (c) && (c) <= 'r') \
7413 || ('s' <= (c) && (c) <= 'z'))
7414# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
f5818d2f 7415#endif
e533e972
AJ
7416
7417#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
f5818d2f
AJ
7418int
7419main ()
7420{
e533e972
AJ
7421 int i;
7422 for (i = 0; i < 256; i++)
7423 if (XOR (islower (i), ISLOWER (i))
7424 || toupper (i) != TOUPPER (i))
7425 return 2;
f5818d2f
AJ
7426 return 0;
7427}
7428_ACEOF
e533e972 7429rm -f conftest$ac_exeext
0ebeb530
JW
7430if { (ac_try="$ac_link"
7431case "(($ac_try" in
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7434esac
7435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
e533e972 7436 (eval "$ac_link") 2>&5
f5818d2f 7437 ac_status=$?
daa2886c 7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
e533e972 7439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
0ebeb530
JW
7440 { (case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443esac
7444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_try") 2>&5
f5818d2f 7446 ac_status=$?
daa2886c 7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7448 (exit $ac_status); }; }; then
e533e972 7449 :
f5818d2f 7450else
e533e972
AJ
7451 echo "$as_me: program exited with status $ac_status" >&5
7452echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7453sed 's/^/| /' conftest.$ac_ext >&5
7454
e533e972
AJ
7455( exit $ac_status )
7456ac_cv_header_stdc=no
f5818d2f 7457fi
e533e972 7458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f5818d2f 7459fi
715a55e7 7460
715a55e7 7461
715a55e7 7462fi
ea584724 7463fi
e533e972
AJ
7464{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7465echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7466if test $ac_cv_header_stdc = yes; then
daa2886c 7467
e533e972
AJ
7468cat >>confdefs.h <<\_ACEOF
7469#define STDC_HEADERS 1
e24bcc77 7470_ACEOF
875927f6 7471
e533e972 7472fi
875927f6 7473
e533e972 7474# On IRIX 5.3, sys/types and inttypes.h are conflicting.
875927f6 7475
875927f6 7476
c555274d 7477
e24bcc77 7478
fc6ffb29 7479
c555274d 7480
c555274d 7481
e533e972
AJ
7482
7483
7484for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7485 inttypes.h stdint.h unistd.h
7486do
7487as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7488{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 7491 echo $ECHO_N "(cached) $ECHO_C" >&6
d30dfd24 7492else
e533e972 7493 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7494/* confdefs.h. */
7495_ACEOF
7496cat confdefs.h >>conftest.$ac_ext
7497cat >>conftest.$ac_ext <<_ACEOF
7498/* end confdefs.h. */
e533e972 7499$ac_includes_default
f5818d2f 7500
e533e972 7501#include <$ac_header>
f5818d2f 7502_ACEOF
e533e972
AJ
7503rm -f conftest.$ac_objext
7504if { (ac_try="$ac_compile"
0ebeb530
JW
7505case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508esac
7509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
e533e972 7510 (eval "$ac_compile") 2>conftest.er1
f5818d2f 7511 ac_status=$?
875927f6
AJ
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
daa2886c 7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7516 (exit $ac_status); } &&
0ebeb530
JW
7517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7518 { (case "(($ac_try" in
7519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7520 *) ac_try_echo=$ac_try;;
7521esac
7522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7523 (eval "$ac_try") 2>&5
875927f6
AJ
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; } &&
e533e972 7527 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
7528 { (case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531esac
7532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533 (eval "$ac_try") 2>&5
f5818d2f 7534 ac_status=$?
daa2886c 7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7536 (exit $ac_status); }; }; then
e533e972 7537 eval "$as_ac_Header=yes"
3b943bca
FG
7538else
7539 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7540sed 's/^/| /' conftest.$ac_ext >&5
7541
e533e972 7542 eval "$as_ac_Header=no"
3b943bca 7543fi
fc6ffb29 7544
e533e972 7545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3b943bca 7546fi
e533e972
AJ
7547ac_res=`eval echo '${'$as_ac_Header'}'`
7548 { echo "$as_me:$LINENO: result: $ac_res" >&5
7549echo "${ECHO_T}$ac_res" >&6; }
7550if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 7551 cat >>confdefs.h <<_ACEOF
e533e972 7552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
728bedcf
MM
7553_ACEOF
7554
728bedcf
MM
7555fi
7556
7557done
7558
7559
daa2886c 7560
7ff12568
RK
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7ff12568
RK
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
73482144
AJ
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7ff12568 7649
a2bbacb0 7650
57279184 7651
64c07786
EM
7652
7653
888eaae7 7654
ea524def
HL
7655
7656
0f6c0394 7657
ebe0484d 7658
1e5153cf 7659
0cd0626d 7660
144a5353
EM
7661
7662
9603ee07 7663
7ff12568
RK
7664
7665
7666for ac_header in \
144a5353
EM
7667 AudioUnit/AudioUnit.h \
7668 CoreAudio/CoreAudio.h \
0f6c0394 7669 IOKit/IOKitLib.h \
73482144 7670 alsa/asoundlib.h \
7ff12568
RK
7671 arpa/inet.h \
7672 arpa/nameser.h \
888eaae7 7673 asm/types.h \
73482144 7674 capi20.h \
7ff12568 7675 cups/cups.h \
73482144 7676 curses.h \
7ff12568 7677 direct.h \
73482144 7678 dlfcn.h \
7ff12568
RK
7679 elf.h \
7680 float.h \
7681 fontconfig/fontconfig.h \
7682 getopt.h \
7ff12568
RK
7683 ieeefp.h \
7684 io.h \
7685 jack/jack.h \
7686 jpeglib.h \
ea524def 7687 lber.h \
7ff12568 7688 lcms.h \
73482144 7689 lcms/lcms.h \
ea524def 7690 ldap.h \
73482144 7691 libaudioio.h \
7ff12568
RK
7692 link.h \
7693 linux/cdrom.h \
7694 linux/compiler.h \
7695 linux/hdreg.h \
7696 linux/input.h \
7697 linux/ioctl.h \
7698 linux/joystick.h \
7699 linux/major.h \
7700 linux/param.h \
7701 linux/serial.h \
7702 linux/ucdrom.h \
64c07786 7703 mach/machine.h \
7ff12568 7704 machine/cpu.h \
64c07786 7705 machine/limits.h \
73482144 7706 machine/soundcard.h \
7ff12568 7707 mntent.h \
73482144 7708 ncurses.h \
7ff12568
RK
7709 netdb.h \
7710 netinet/in.h \
7711 netinet/in_systm.h \
7712 netinet/tcp.h \
7713 netinet/tcp_fsm.h \
1e5153cf 7714 openssl/err.h \
7ff12568 7715 openssl/ssl.h \
57279184 7716 poll.h \
7ff12568
RK
7717 process.h \
7718 pthread.h \
7ff12568
RK
7719 pwd.h \
7720 regex.h \
7721 sched.h \
7ff12568
RK
7722 scsi/scsi.h \
7723 scsi/scsi_ioctl.h \
73482144
AJ
7724 scsi/sg.h \
7725 soundcard.h \
7ff12568
RK
7726 stdint.h \
7727 strings.h \
73482144 7728 sys/asoundlib.h \
7ff12568
RK
7729 sys/cdio.h \
7730 sys/elf32.h \
7ff12568 7731 sys/epoll.h \
73482144 7732 sys/errno.h \
c8278926 7733 sys/event.h \
7ff12568 7734 sys/exec_elf.h \
7ff12568 7735 sys/filio.h \
7ff12568
RK
7736 sys/ioctl.h \
7737 sys/ipc.h \
ebe0484d 7738 sys/limits.h \
7ff12568
RK
7739 sys/link.h \
7740 sys/lwp.h \
7741 sys/mman.h \
7742 sys/modem.h \
7743 sys/msg.h \
0844b702 7744 sys/mtio.h \
7ff12568
RK
7745 sys/param.h \
7746 sys/poll.h \
9603ee07 7747 sys/prctl.h \
7ff12568
RK
7748 sys/ptrace.h \
7749 sys/reg.h \
0cd0626d 7750 sys/resource.h \
7ff12568
RK
7751 sys/scsiio.h \
7752 sys/shm.h \
7753 sys/signal.h \
7754 sys/socket.h \
7755 sys/sockio.h \
73482144 7756 sys/soundcard.h \
7ff12568
RK
7757 sys/statvfs.h \
7758 sys/strtio.h \
7759 sys/syscall.h \
7760 sys/sysctl.h \
7761 sys/time.h \
7762 sys/times.h \
7763 sys/uio.h \
7764 sys/un.h \
7ff12568
RK
7765 sys/vm86.h \
7766 sys/wait.h \
7767 syscall.h \
7768 termios.h \
73482144 7769 unicode/ubidi.h \
7ff12568
RK
7770 unistd.h \
7771 utime.h \
7772 valgrind/memcheck.h
7773
24110288 7774do
f5818d2f 7775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
7776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 7780 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c 7781fi
fc6ffb29
AJ
7782ac_res=`eval echo '${'$as_ac_Header'}'`
7783 { echo "$as_me:$LINENO: result: $ac_res" >&5
7784echo "${ECHO_T}$ac_res" >&6; }
f5818d2f 7785else
daa2886c 7786 # Is the header compilable?
fc6ffb29
AJ
7787{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7788echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
daa2886c 7789cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7790/* confdefs.h. */
7791_ACEOF
7792cat confdefs.h >>conftest.$ac_ext
7793cat >>conftest.$ac_ext <<_ACEOF
7794/* end confdefs.h. */
daa2886c 7795$ac_includes_default
f5818d2f
AJ
7796#include <$ac_header>
7797_ACEOF
daa2886c 7798rm -f conftest.$ac_objext
0ebeb530
JW
7799if { (ac_try="$ac_compile"
7800case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803esac
7804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_compile") 2>conftest.er1
daa2886c 7806 ac_status=$?
875927f6
AJ
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
daa2886c
AJ
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
0ebeb530
JW
7812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7813 { (case "(($ac_try" in
7814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815 *) ac_try_echo=$ac_try;;
7816esac
7817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818 (eval "$ac_try") 2>&5
875927f6
AJ
7819 ac_status=$?
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; } &&
7822 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
7823 { (case "(($ac_try" in
7824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7826esac
7827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828 (eval "$ac_try") 2>&5
daa2886c
AJ
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_header_compiler=yes
7833else
7834 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7835sed 's/^/| /' conftest.$ac_ext >&5
7836
fc6ffb29 7837 ac_header_compiler=no
daa2886c 7838fi
fc6ffb29 7839
0ebeb530 7840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
7841{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7842echo "${ECHO_T}$ac_header_compiler" >&6; }
daa2886c
AJ
7843
7844# Is the header present?
fc6ffb29
AJ
7845{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
daa2886c 7847cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7848/* confdefs.h. */
7849_ACEOF
7850cat confdefs.h >>conftest.$ac_ext
7851cat >>conftest.$ac_ext <<_ACEOF
7852/* end confdefs.h. */
daa2886c
AJ
7853#include <$ac_header>
7854_ACEOF
0ebeb530
JW
7855if { (ac_try="$ac_cpp conftest.$ac_ext"
7856case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859esac
7860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 7862 ac_status=$?
11af04e3 7863 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
7864 rm -f conftest.er1
7865 cat conftest.err >&5
daa2886c 7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7867 (exit $ac_status); } >/dev/null; then
7868 if test -s conftest.err; then
7869 ac_cpp_err=$ac_c_preproc_warn_flag
875927f6 7870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f5818d2f
AJ
7871 else
7872 ac_cpp_err=
7873 fi
7874else
7875 ac_cpp_err=yes
7876fi
7877if test -z "$ac_cpp_err"; then
daa2886c 7878 ac_header_preproc=yes
f5818d2f
AJ
7879else
7880 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7881sed 's/^/| /' conftest.$ac_ext >&5
7882
daa2886c 7883 ac_header_preproc=no
24110288 7884fi
fc6ffb29 7885
f5818d2f 7886rm -f conftest.err conftest.$ac_ext
fc6ffb29
AJ
7887{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7888echo "${ECHO_T}$ac_header_preproc" >&6; }
daa2886c
AJ
7889
7890# So? What about this header?
875927f6
AJ
7891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7892 yes:no: )
daa2886c
AJ
7893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
875927f6
AJ
7895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7897 ac_header_preproc=yes
e24bcc77 7898 ;;
875927f6 7899 no:yes:* )
daa2886c
AJ
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
875927f6
AJ
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
daa2886c 7908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77 7909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
875927f6
AJ
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
fc6ffb29 7912 ( cat <<\_ASBOX
e24bcc77 7913## ------------------------------------ ##
875927f6 7914## Report this to wine-devel@winehq.org ##
e24bcc77
AJ
7915## ------------------------------------ ##
7916_ASBOX
fc6ffb29 7917 ) | sed "s/^/$as_me: WARNING: /" >&2
e24bcc77 7918 ;;
daa2886c 7919esac
fc6ffb29
AJ
7920{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
daa2886c
AJ
7923 echo $ECHO_N "(cached) $ECHO_C" >&6
7924else
875927f6 7925 eval "$as_ac_Header=\$ac_header_preproc"
24110288 7926fi
fc6ffb29
AJ
7927ac_res=`eval echo '${'$as_ac_Header'}'`
7928 { echo "$as_me:$LINENO: result: $ac_res" >&5
7929echo "${ECHO_T}$ac_res" >&6; }
daa2886c
AJ
7930
7931fi
f5818d2f 7932if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 7933 cat >>confdefs.h <<_ACEOF
f5818d2f 7934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
7935_ACEOF
7936
7ff12568 7937fi
f5818d2f 7938
7ff12568 7939done
255b486c 7940
fc6ffb29
AJ
7941{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7942echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7ff12568 7943if test "${ac_cv_header_stat_broken+set}" = set; then
f5818d2f
AJ
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945else
044b5c41 7946 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
7947/* confdefs.h. */
7948_ACEOF
7949cat confdefs.h >>conftest.$ac_ext
7950cat >>conftest.$ac_ext <<_ACEOF
7951/* end confdefs.h. */
7ff12568
RK
7952#include <sys/types.h>
7953#include <sys/stat.h>
044b5c41 7954
fc6ffb29 7955#if defined S_ISBLK && defined S_IFDIR
7ff12568
RK
7956# if S_ISBLK (S_IFDIR)
7957You lose.
7958# endif
7959#endif
255b486c 7960
fc6ffb29 7961#if defined S_ISBLK && defined S_IFCHR
7ff12568
RK
7962# if S_ISBLK (S_IFCHR)
7963You lose.
7964# endif
7965#endif
255b486c 7966
fc6ffb29 7967#if defined S_ISLNK && defined S_IFREG
7ff12568
RK
7968# if S_ISLNK (S_IFREG)
7969You lose.
7970# endif
7971#endif
f5818d2f 7972
fc6ffb29 7973#if defined S_ISSOCK && defined S_IFREG
7ff12568
RK
7974# if S_ISSOCK (S_IFREG)
7975You lose.
7976# endif
f5818d2f 7977#endif
7ff12568 7978
f5818d2f 7979_ACEOF
7ff12568
RK
7980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7981 $EGREP "You lose" >/dev/null 2>&1; then
7982 ac_cv_header_stat_broken=yes
f5818d2f 7983else
7ff12568 7984 ac_cv_header_stat_broken=no
f5818d2f 7985fi
7ff12568
RK
7986rm -f conftest*
7987
f5818d2f 7988fi
fc6ffb29
AJ
7989{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7990echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7ff12568 7991if test $ac_cv_header_stat_broken = yes; then
f5818d2f 7992
daa2886c 7993cat >>confdefs.h <<\_ACEOF
7ff12568 7994#define STAT_MACROS_BROKEN 1
daa2886c 7995_ACEOF
c90fb25c 7996
c90fb25c
OK
7997fi
7998
daa2886c 7999
7ff12568 8000
2d6d4e96
HL
8001
8002
8003
8004
8005for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
b079add3
AJ
8006do
8007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
8008{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
b079add3
AJ
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012else
8013 cat >conftest.$ac_ext <<_ACEOF
8014/* confdefs.h. */
8015_ACEOF
8016cat confdefs.h >>conftest.$ac_ext
8017cat >>conftest.$ac_ext <<_ACEOF
8018/* end confdefs.h. */
2d6d4e96
HL
8019#include <sys/types.h>
8020 #if HAVE_SYS_PARAM_H
8021 # include <sys/param.h>
8022 #endif
b079add3
AJ
8023
8024#include <$ac_header>
8025_ACEOF
8026rm -f conftest.$ac_objext
0ebeb530
JW
8027if { (ac_try="$ac_compile"
8028case "(($ac_try" in
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8031esac
8032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033 (eval "$ac_compile") 2>conftest.er1
b079add3
AJ
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
0ebeb530
JW
8040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8041 { (case "(($ac_try" in
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8044esac
8045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_try") 2>&5
b079add3
AJ
8047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; } &&
8050 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
8051 { (case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8054esac
8055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_try") 2>&5
b079add3
AJ
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8060 eval "$as_ac_Header=yes"
8061else
8062 echo "$as_me: failed program was:" >&5
8063sed 's/^/| /' conftest.$ac_ext >&5
8064
fc6ffb29 8065 eval "$as_ac_Header=no"
b079add3 8066fi
fc6ffb29 8067
0ebeb530 8068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b079add3 8069fi
fc6ffb29
AJ
8070ac_res=`eval echo '${'$as_ac_Header'}'`
8071 { echo "$as_me:$LINENO: result: $ac_res" >&5
8072echo "${ECHO_T}$ac_res" >&6; }
b079add3
AJ
8073if test `eval echo '${'$as_ac_Header'}'` = yes; then
8074 cat >>confdefs.h <<_ACEOF
8075#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8076_ACEOF
8077
8078fi
8079
8080done
8081
8082
8083
7ff12568
RK
8084
8085
8086
8087
8088
2d6d4e96 8089for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
7ff12568
RK
8090do
8091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
8092{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7ff12568
RK
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097 cat >conftest.$ac_ext <<_ACEOF
8098/* confdefs.h. */
8099_ACEOF
8100cat confdefs.h >>conftest.$ac_ext
8101cat >>conftest.$ac_ext <<_ACEOF
8102/* end confdefs.h. */
2d6d4e96
HL
8103#include <sys/types.h>
8104 #if HAVE_SYS_SOCKET_H
8105 # include <sys/socket.h>
8106 #endif
7ff12568
RK
8107
8108#include <$ac_header>
8109_ACEOF
8110rm -f conftest.$ac_objext
0ebeb530
JW
8111if { (ac_try="$ac_compile"
8112case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115esac
8116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_compile") 2>conftest.er1
7ff12568
RK
8118 ac_status=$?
8119 grep -v '^ *+' conftest.er1 >conftest.err
8120 rm -f conftest.er1
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
0ebeb530
JW
8124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8125 { (case "(($ac_try" in
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8128esac
8129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130 (eval "$ac_try") 2>&5
7ff12568
RK
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; } &&
8134 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
8135 { (case "(($ac_try" in
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8138esac
8139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_try") 2>&5
7ff12568
RK
8141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 eval "$as_ac_Header=yes"
8145else
8146 echo "$as_me: failed program was:" >&5
8147sed 's/^/| /' conftest.$ac_ext >&5
8148
fc6ffb29 8149 eval "$as_ac_Header=no"
7ff12568 8150fi
fc6ffb29 8151
0ebeb530 8152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7ff12568 8153fi
fc6ffb29
AJ
8154ac_res=`eval echo '${'$as_ac_Header'}'`
8155 { echo "$as_me:$LINENO: result: $ac_res" >&5
8156echo "${ECHO_T}$ac_res" >&6; }
7ff12568
RK
8157if test `eval echo '${'$as_ac_Header'}'` = yes; then
8158 cat >>confdefs.h <<_ACEOF
8159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 8160_ACEOF
5b6879c5 8161
5b6879c5
FJ
8162fi
8163
7ff12568 8164done
daa2886c 8165
7ff12568 8166
2d6d4e96 8167
faf05dfd
FG
8168for ac_header in linux/ipx.h
8169do
8170as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8171{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175else
8176 cat >conftest.$ac_ext <<_ACEOF
8177/* confdefs.h. */
8178_ACEOF
8179cat confdefs.h >>conftest.$ac_ext
8180cat >>conftest.$ac_ext <<_ACEOF
8181/* end confdefs.h. */
8182#include <sys/types.h>
8183 #ifdef HAVE_ASM_TYPES_H
8184 # include <asm/types.h>
8185 #endif
8186 #if HAVE_SYS_SOCKET_H
8187 # include <sys/socket.h>
8188 #endif
8189
8190#include <$ac_header>
8191_ACEOF
8192rm -f conftest.$ac_objext
8193if { (ac_try="$ac_compile"
8194case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197esac
8198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
8200 ac_status=$?
8201 grep -v '^ *+' conftest.er1 >conftest.err
8202 rm -f conftest.er1
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } &&
8206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8207 { (case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210esac
8211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_try") 2>&5
8213 ac_status=$?
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; } &&
8216 { ac_try='test -s conftest.$ac_objext'
8217 { (case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8220esac
8221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_try") 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 eval "$as_ac_Header=yes"
8227else
8228 echo "$as_me: failed program was:" >&5
8229sed 's/^/| /' conftest.$ac_ext >&5
8230
8231 eval "$as_ac_Header=no"
8232fi
8233
8234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235fi
8236ac_res=`eval echo '${'$as_ac_Header'}'`
8237 { echo "$as_me:$LINENO: result: $ac_res" >&5
8238echo "${ECHO_T}$ac_res" >&6; }
8239if test `eval echo '${'$as_ac_Header'}'` = yes; then
8240 cat >>confdefs.h <<_ACEOF
8241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242_ACEOF
8243
8244fi
8245
8246done
8247
8248
8249
2d6d4e96
HL
8250for ac_header in resolv.h
8251do
8252as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
8253{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 8256 echo $ECHO_N "(cached) $ECHO_C" >&6
d94475bd 8257else
2d6d4e96 8258 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
8259/* confdefs.h. */
8260_ACEOF
8261cat confdefs.h >>conftest.$ac_ext
8262cat >>conftest.$ac_ext <<_ACEOF
8263/* end confdefs.h. */
2d6d4e96
HL
8264#include <sys/types.h>
8265 #if HAVE_SYS_SOCKET_H
8266 # include <sys/socket.h>
8267 #endif
8268 #if HAVE_NETINET_IN_H
8269 # include <netinet/in.h>
8270 #endif
8271 #if HAVE_ARPA_NAMESER_H
8272 # include <arpa/nameser.h>
8273 #endif
f5818d2f 8274
2d6d4e96 8275#include <$ac_header>
f5818d2f 8276_ACEOF
2d6d4e96 8277rm -f conftest.$ac_objext
0ebeb530
JW
8278if { (ac_try="$ac_compile"
8279case "(($ac_try" in
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8282esac
8283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284 (eval "$ac_compile") 2>conftest.er1
f5818d2f 8285 ac_status=$?
875927f6
AJ
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
daa2886c 8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 8290 (exit $ac_status); } &&
0ebeb530
JW
8291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8292 { (case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8295esac
8296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_try") 2>&5
875927f6
AJ
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; } &&
2d6d4e96 8301 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
8302 { (case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8305esac
8306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_try") 2>&5
f5818d2f 8308 ac_status=$?
daa2886c 8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 8310 (exit $ac_status); }; }; then
2d6d4e96 8311 eval "$as_ac_Header=yes"
f5818d2f
AJ
8312else
8313 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8314sed 's/^/| /' conftest.$ac_ext >&5
8315
fc6ffb29 8316 eval "$as_ac_Header=no"
f5818d2f 8317fi
fc6ffb29 8318
0ebeb530 8319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 8320fi
fc6ffb29
AJ
8321ac_res=`eval echo '${'$as_ac_Header'}'`
8322 { echo "$as_me:$LINENO: result: $ac_res" >&5
8323echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
8324if test `eval echo '${'$as_ac_Header'}'` = yes; then
8325 cat >>confdefs.h <<_ACEOF
8326#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 8327_ACEOF
10ad97c8 8328
7ff12568 8329fi
f5818d2f 8330
2d6d4e96 8331done
7ff12568 8332
2d6d4e96
HL
8333
8334
8335for ac_header in ucontext.h
8336do
8337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
8338{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 8341 echo $ECHO_N "(cached) $ECHO_C" >&6
02e90087 8342else
2d6d4e96 8343 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
8344/* confdefs.h. */
8345_ACEOF
8346cat confdefs.h >>conftest.$ac_ext
8347cat >>conftest.$ac_ext <<_ACEOF
8348/* end confdefs.h. */
2d6d4e96 8349#include <signal.h>
f5818d2f 8350
4ff90b47
GP
8351#include <$ac_header>
8352_ACEOF
8353rm -f conftest.$ac_objext
8354if { (ac_try="$ac_compile"
8355case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8358esac
8359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_compile") 2>conftest.er1
8361 ac_status=$?
8362 grep -v '^ *+' conftest.er1 >conftest.err
8363 rm -f conftest.er1
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
8367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8368 { (case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8371esac
8372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_try") 2>&5
8374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; } &&
8377 { ac_try='test -s conftest.$ac_objext'
8378 { (case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8381esac
8382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_try") 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 eval "$as_ac_Header=yes"
8388else
8389 echo "$as_me: failed program was:" >&5
8390sed 's/^/| /' conftest.$ac_ext >&5
8391
8392 eval "$as_ac_Header=no"
8393fi
8394
8395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396fi
8397ac_res=`eval echo '${'$as_ac_Header'}'`
8398 { echo "$as_me:$LINENO: result: $ac_res" >&5
8399echo "${ECHO_T}$ac_res" >&6; }
8400if test `eval echo '${'$as_ac_Header'}'` = yes; then
8401 cat >>confdefs.h <<_ACEOF
8402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8403_ACEOF
8404
8405fi
8406
8407done
8408
8409
8410
8411for ac_header in pthread_np.h
8412do
8413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8414{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8418else
8419 cat >conftest.$ac_ext <<_ACEOF
8420/* confdefs.h. */
8421_ACEOF
8422cat confdefs.h >>conftest.$ac_ext
8423cat >>conftest.$ac_ext <<_ACEOF
8424/* end confdefs.h. */
8425#ifdef HAVE_PTHREAD_H
8426#include <pthread.h>
8427#endif
8428
2d6d4e96 8429#include <$ac_header>
f5818d2f 8430_ACEOF
2d6d4e96 8431rm -f conftest.$ac_objext
0ebeb530
JW
8432if { (ac_try="$ac_compile"
8433case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8436esac
8437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_compile") 2>conftest.er1
f5818d2f 8439 ac_status=$?
875927f6
AJ
8440 grep -v '^ *+' conftest.er1 >conftest.err
8441 rm -f conftest.er1
8442 cat conftest.err >&5
daa2886c 8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 8444 (exit $ac_status); } &&
0ebeb530
JW
8445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8446 { (case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449esac
8450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_try") 2>&5
875927f6
AJ
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
2d6d4e96 8455 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
8456 { (case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8459esac
8460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_try") 2>&5
f5818d2f 8462 ac_status=$?
daa2886c 8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 8464 (exit $ac_status); }; }; then
2d6d4e96 8465 eval "$as_ac_Header=yes"
f5818d2f
AJ
8466else
8467 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8468sed 's/^/| /' conftest.$ac_ext >&5
8469
fc6ffb29 8470 eval "$as_ac_Header=no"
f5818d2f 8471fi
fc6ffb29 8472
0ebeb530 8473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 8474fi
fc6ffb29
AJ
8475ac_res=`eval echo '${'$as_ac_Header'}'`
8476 { echo "$as_me:$LINENO: result: $ac_res" >&5
8477echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
8478if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 8481_ACEOF
10ad97c8 8482
f2b77ccb
JS
8483fi
8484
2d6d4e96 8485done
daa2886c 8486
2d6d4e96
HL
8487
8488
faf05dfd 8489for ac_header in linux/videodev.h
2d6d4e96
HL
8490do
8491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
8492{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 8495 echo $ECHO_N "(cached) $ECHO_C" >&6
399931a2 8496else
2d6d4e96 8497 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
8498/* confdefs.h. */
8499_ACEOF
8500cat confdefs.h >>conftest.$ac_ext
8501cat >>conftest.$ac_ext <<_ACEOF
8502/* end confdefs.h. */
2d6d4e96
HL
8503#ifdef HAVE_SYS_TIME_H
8504#include <sys/time.h>
f5818d2f 8505#endif
2d6d4e96
HL
8506#include <sys/types.h>
8507#ifdef HAVE_ASM_TYPES_H
8508#include <asm/types.h>
8509#endif
8510
8511#include <$ac_header>
f5818d2f 8512_ACEOF
2d6d4e96 8513rm -f conftest.$ac_objext
0ebeb530
JW
8514if { (ac_try="$ac_compile"
8515case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518esac
8519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_compile") 2>conftest.er1
f5818d2f 8521 ac_status=$?
875927f6
AJ
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
daa2886c 8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 8526 (exit $ac_status); } &&
0ebeb530
JW
8527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8528 { (case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531esac
8532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_try") 2>&5
875927f6
AJ
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
2d6d4e96 8537 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
8538 { (case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8541esac
8542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_try") 2>&5
f5818d2f 8544 ac_status=$?
daa2886c 8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 8546 (exit $ac_status); }; }; then
2d6d4e96 8547 eval "$as_ac_Header=yes"
f5818d2f
AJ
8548else
8549 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8550sed 's/^/| /' conftest.$ac_ext >&5
8551
fc6ffb29 8552 eval "$as_ac_Header=no"
f5818d2f 8553fi
fc6ffb29 8554
0ebeb530 8555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 8556fi
fc6ffb29
AJ
8557ac_res=`eval echo '${'$as_ac_Header'}'`
8558 { echo "$as_me:$LINENO: result: $ac_res" >&5
8559echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
8560if test `eval echo '${'$as_ac_Header'}'` = yes; then
8561 cat >>confdefs.h <<_ACEOF
8562#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 8563_ACEOF
f2b77ccb 8564
399931a2
SC
8565fi
8566
2d6d4e96 8567done
daa2886c 8568
2d6d4e96
HL
8569
8570
8571for ac_header in linux/capi.h
8572do
8573as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
8574{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2d6d4e96
HL
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578else
8579 cat >conftest.$ac_ext <<_ACEOF
8580/* confdefs.h. */
8581_ACEOF
8f174bc6
AP
8582cat confdefs.h >>conftest.$ac_ext
8583cat >>conftest.$ac_ext <<_ACEOF
8584/* end confdefs.h. */
2d6d4e96 8585#define __user
7ff12568 8586
2d6d4e96 8587#include <$ac_header>
8f174bc6 8588_ACEOF
2d6d4e96 8589rm -f conftest.$ac_objext
0ebeb530
JW
8590if { (ac_try="$ac_compile"
8591case "(($ac_try" in
8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8594esac
8595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_compile") 2>conftest.er1
8f174bc6 8597 ac_status=$?
875927f6
AJ
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8f174bc6
AP
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } &&
0ebeb530
JW
8603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8604 { (case "(($ac_try" in
8605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606 *) ac_try_echo=$ac_try;;
8607esac
8608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609 (eval "$ac_try") 2>&5
875927f6
AJ
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; } &&
2d6d4e96 8613 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
8614 { (case "(($ac_try" in
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8617esac
8618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_try") 2>&5
8f174bc6
AP
8620 ac_status=$?
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; }; then
2d6d4e96 8623 eval "$as_ac_Header=yes"
7ff12568
RK
8624else
8625 echo "$as_me: failed program was:" >&5
8626sed 's/^/| /' conftest.$ac_ext >&5
8627
fc6ffb29 8628 eval "$as_ac_Header=no"
7ff12568 8629fi
fc6ffb29 8630
0ebeb530 8631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7ff12568 8632fi
fc6ffb29
AJ
8633ac_res=`eval echo '${'$as_ac_Header'}'`
8634 { echo "$as_me:$LINENO: result: $ac_res" >&5
8635echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
8636if test `eval echo '${'$as_ac_Header'}'` = yes; then
8637 cat >>confdefs.h <<_ACEOF
8638#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8639_ACEOF
7ff12568 8640
2d6d4e96
HL
8641fi
8642
8643done
8644
8645
8646
8647if test "$have_x" = "yes"
8648then
8649 XLIB="-lXext -lX11"
8650 ac_save_CPPFLAGS="$CPPFLAGS"
8651 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
7d00b050 8662
2d6d4e96
HL
8663for ac_header in X11/Xlib.h \
8664 X11/XKBlib.h \
8665 X11/Xutil.h \
8666 X11/extensions/shape.h \
8667 X11/extensions/XInput.h \
8668 X11/extensions/XShm.h \
7d00b050 8669 X11/extensions/Xinerama.h \
2d6d4e96
HL
8670 X11/extensions/Xrandr.h \
8671 X11/extensions/Xrender.h \
2d6d4e96
HL
8672 X11/extensions/xf86vmode.h
8673do
8674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
8675{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8677if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2d6d4e96
HL
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679else
8680 cat >conftest.$ac_ext <<_ACEOF
8681/* confdefs.h. */
7ff12568 8682_ACEOF
2d6d4e96
HL
8683cat confdefs.h >>conftest.$ac_ext
8684cat >>conftest.$ac_ext <<_ACEOF
8685/* end confdefs.h. */
8686#ifdef HAVE_X11_XLIB_H
8687# include <X11/Xlib.h>
8688#endif
8689#ifdef HAVE_X11_XUTIL_H
8690# include <X11/Xutil.h>
8691#endif
7ff12568 8692
2d6d4e96
HL
8693#include <$ac_header>
8694_ACEOF
8695rm -f conftest.$ac_objext
0ebeb530
JW
8696if { (ac_try="$ac_compile"
8697case "(($ac_try" in
8698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8699 *) ac_try_echo=$ac_try;;
8700esac
8701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702 (eval "$ac_compile") 2>conftest.er1
2d6d4e96
HL
8703 ac_status=$?
8704 grep -v '^ *+' conftest.er1 >conftest.err
8705 rm -f conftest.er1
8706 cat conftest.err >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
0ebeb530
JW
8709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8710 { (case "(($ac_try" in
8711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712 *) ac_try_echo=$ac_try;;
8713esac
8714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8715 (eval "$ac_try") 2>&5
2d6d4e96
HL
8716 ac_status=$?
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; } &&
8719 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
8720 { (case "(($ac_try" in
8721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8722 *) ac_try_echo=$ac_try;;
8723esac
8724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8725 (eval "$ac_try") 2>&5
2d6d4e96
HL
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 eval "$as_ac_Header=yes"
8730else
8731 echo "$as_me: failed program was:" >&5
8732sed 's/^/| /' conftest.$ac_ext >&5
7ff12568 8733
fc6ffb29 8734 eval "$as_ac_Header=no"
2d6d4e96 8735fi
fc6ffb29 8736
0ebeb530 8737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7ff12568 8738fi
fc6ffb29
AJ
8739ac_res=`eval echo '${'$as_ac_Header'}'`
8740 { echo "$as_me:$LINENO: result: $ac_res" >&5
8741echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
8742if test `eval echo '${'$as_ac_Header'}'` = yes; then
8743 cat >>confdefs.h <<_ACEOF
8744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8745_ACEOF
7ff12568 8746
2d6d4e96 8747fi
7ff12568 8748
2d6d4e96
HL
8749done
8750
8751
8752 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7ff12568 8753 then
fc6ffb29
AJ
8754 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
8755echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
2d6d4e96 8756if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7ff12568
RK
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8758else
8759 ac_check_lib_save_LIBS=$LIBS
2d6d4e96 8760LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
7ff12568
RK
8761cat >conftest.$ac_ext <<_ACEOF
8762/* confdefs.h. */
8763_ACEOF
8764cat confdefs.h >>conftest.$ac_ext
8765cat >>conftest.$ac_ext <<_ACEOF
8766/* end confdefs.h. */
8767
fc6ffb29
AJ
8768/* Override any GCC internal prototype to avoid an error.
8769 Use char because int might match the return type of a GCC
8770 builtin and then its argument prototype would still apply. */
7ff12568
RK
8771#ifdef __cplusplus
8772extern "C"
8773#endif
2d6d4e96 8774char XkbQueryExtension ();
7ff12568
RK
8775int
8776main ()
8777{
fc6ffb29 8778return XkbQueryExtension ();
7ff12568
RK
8779 ;
8780 return 0;
8781}
8782_ACEOF
8783rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
8784if { (ac_try="$ac_link"
8785case "(($ac_try" in
8786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8787 *) ac_try_echo=$ac_try;;
8788esac
8789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8790 (eval "$ac_link") 2>conftest.er1
7ff12568
RK
8791 ac_status=$?
8792 grep -v '^ *+' conftest.er1 >conftest.err
8793 rm -f conftest.er1
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
0ebeb530
JW
8797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8798 { (case "(($ac_try" in
8799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8800 *) ac_try_echo=$ac_try;;
8801esac
8802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8803 (eval "$ac_try") 2>&5
7ff12568
RK
8804 ac_status=$?
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; } &&
8807 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
8808 { (case "(($ac_try" in
8809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8810 *) ac_try_echo=$ac_try;;
8811esac
8812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8813 (eval "$ac_try") 2>&5
7ff12568
RK
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; }; then
2d6d4e96 8817 ac_cv_lib_X11_XkbQueryExtension=yes
7ff12568
RK
8818else
8819 echo "$as_me: failed program was:" >&5
8820sed 's/^/| /' conftest.$ac_ext >&5
8821
fc6ffb29 8822 ac_cv_lib_X11_XkbQueryExtension=no
7ff12568 8823fi
fc6ffb29 8824
0ebeb530 8825rm -f core conftest.err conftest.$ac_objext \
7ff12568
RK
8826 conftest$ac_exeext conftest.$ac_ext
8827LIBS=$ac_check_lib_save_LIBS
8828fi
fc6ffb29
AJ
8829{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8830echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
2d6d4e96 8831if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7ff12568
RK
8832
8833cat >>confdefs.h <<\_ACEOF
2d6d4e96 8834#define HAVE_XKB 1
7ff12568
RK
8835_ACEOF
8836
7ff12568
RK
8837fi
8838
8839 fi
8840
2d6d4e96 8841 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7ff12568 8842 then
fc6ffb29
AJ
8843 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
8844echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
2d6d4e96
HL
8845if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847else
8848 ac_check_lib_save_LIBS=$LIBS
8849LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8850cat >conftest.$ac_ext <<_ACEOF
7ff12568
RK
8851/* confdefs.h. */
8852_ACEOF
8853cat confdefs.h >>conftest.$ac_ext
8854cat >>conftest.$ac_ext <<_ACEOF
8855/* end confdefs.h. */
2d6d4e96 8856
fc6ffb29
AJ
8857/* Override any GCC internal prototype to avoid an error.
8858 Use char because int might match the return type of a GCC
8859 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
8860#ifdef __cplusplus
8861extern "C"
8862#endif
2d6d4e96 8863char XShmQueryExtension ();
7ff12568
RK
8864int
8865main ()
8866{
fc6ffb29 8867return XShmQueryExtension ();
7ff12568
RK
8868 ;
8869 return 0;
8870}
8871_ACEOF
2d6d4e96 8872rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
8873if { (ac_try="$ac_link"
8874case "(($ac_try" in
8875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8876 *) ac_try_echo=$ac_try;;
8877esac
8878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8879 (eval "$ac_link") 2>conftest.er1
7ff12568
RK
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } &&
0ebeb530
JW
8886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8887 { (case "(($ac_try" in
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889 *) ac_try_echo=$ac_try;;
8890esac
8891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892 (eval "$ac_try") 2>&5
7ff12568
RK
8893 ac_status=$?
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); }; } &&
2d6d4e96 8896 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
8897 { (case "(($ac_try" in
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8900esac
8901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_try") 2>&5
7ff12568
RK
8903 ac_status=$?
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
2d6d4e96 8906 ac_cv_lib_Xext_XShmQueryExtension=yes
c7c9f939
MM
8907else
8908 echo "$as_me: failed program was:" >&5
8909sed 's/^/| /' conftest.$ac_ext >&5
8f174bc6 8910
fc6ffb29 8911 ac_cv_lib_Xext_XShmQueryExtension=no
8f174bc6 8912fi
fc6ffb29 8913
0ebeb530 8914rm -f core conftest.err conftest.$ac_objext \
2d6d4e96
HL
8915 conftest$ac_exeext conftest.$ac_ext
8916LIBS=$ac_check_lib_save_LIBS
8917fi
fc6ffb29
AJ
8918{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8919echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
2d6d4e96
HL
8920if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
8921
8922cat >>confdefs.h <<\_ACEOF
8923#define HAVE_LIBXXSHM 1
8924_ACEOF
8925
8926fi
8927
92ec21bd
KK
8928 fi
8929
2d6d4e96 8930 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
92ec21bd 8931 then
fc6ffb29
AJ
8932 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8933echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
2d6d4e96 8934if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
92ec21bd
KK
8935 echo $ECHO_N "(cached) $ECHO_C" >&6
8936else
8937 ac_check_lib_save_LIBS=$LIBS
2d6d4e96 8938LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
92ec21bd
KK
8939cat >conftest.$ac_ext <<_ACEOF
8940/* confdefs.h. */
8941_ACEOF
8942cat confdefs.h >>conftest.$ac_ext
8943cat >>conftest.$ac_ext <<_ACEOF
8944/* end confdefs.h. */
8945
fc6ffb29
AJ
8946/* Override any GCC internal prototype to avoid an error.
8947 Use char because int might match the return type of a GCC
8948 builtin and then its argument prototype would still apply. */
92ec21bd
KK
8949#ifdef __cplusplus
8950extern "C"
8951#endif
2d6d4e96 8952char XShapeQueryExtension ();
92ec21bd
KK
8953int
8954main ()
8955{
fc6ffb29 8956return XShapeQueryExtension ();
92ec21bd
KK
8957 ;
8958 return 0;
8959}
8960_ACEOF
8961rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
8962if { (ac_try="$ac_link"
8963case "(($ac_try" in
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8966esac
8967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968 (eval "$ac_link") 2>conftest.er1
92ec21bd
KK
8969 ac_status=$?
8970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
0ebeb530
JW
8975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8976 { (case "(($ac_try" in
8977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978 *) ac_try_echo=$ac_try;;
8979esac
8980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981 (eval "$ac_try") 2>&5
92ec21bd
KK
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; } &&
8985 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
8986 { (case "(($ac_try" in
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8989esac
8990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991 (eval "$ac_try") 2>&5
92ec21bd
KK
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
2d6d4e96 8995 ac_cv_lib_Xext_XShapeQueryExtension=yes
92ec21bd
KK
8996else
8997 echo "$as_me: failed program was:" >&5
8998sed 's/^/| /' conftest.$ac_ext >&5
8999
fc6ffb29 9000 ac_cv_lib_Xext_XShapeQueryExtension=no
92ec21bd 9001fi
fc6ffb29 9002
0ebeb530 9003rm -f core conftest.err conftest.$ac_objext \
92ec21bd
KK
9004 conftest$ac_exeext conftest.$ac_ext
9005LIBS=$ac_check_lib_save_LIBS
9006fi
fc6ffb29
AJ
9007{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9008echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
2d6d4e96 9009if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
92ec21bd
KK
9010
9011cat >>confdefs.h <<\_ACEOF
2d6d4e96 9012#define HAVE_LIBXSHAPE 1
92ec21bd
KK
9013_ACEOF
9014
f5818d2f 9015fi
5c085704 9016
2d6d4e96
HL
9017 fi
9018
9019 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9020 then
fc6ffb29
AJ
9021 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9022echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
2d6d4e96 9023if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
f5818d2f 9024 echo $ECHO_N "(cached) $ECHO_C" >&6
5ff00774 9025else
f5818d2f 9026 ac_check_lib_save_LIBS=$LIBS
2d6d4e96 9027LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
f5818d2f 9028cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
9029/* confdefs.h. */
9030_ACEOF
9031cat confdefs.h >>conftest.$ac_ext
9032cat >>conftest.$ac_ext <<_ACEOF
9033/* end confdefs.h. */
f5818d2f 9034
fc6ffb29
AJ
9035/* Override any GCC internal prototype to avoid an error.
9036 Use char because int might match the return type of a GCC
9037 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
9038#ifdef __cplusplus
9039extern "C"
9040#endif
2d6d4e96 9041char XF86VidModeQueryExtension ();
f5818d2f
AJ
9042int
9043main ()
9044{
fc6ffb29 9045return XF86VidModeQueryExtension ();
f5818d2f
AJ
9046 ;
9047 return 0;
9048}
9049_ACEOF
9050rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
9051if { (ac_try="$ac_link"
9052case "(($ac_try" in
9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9055esac
9056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057 (eval "$ac_link") 2>conftest.er1
f5818d2f 9058 ac_status=$?
875927f6
AJ
9059 grep -v '^ *+' conftest.er1 >conftest.err
9060 rm -f conftest.er1
9061 cat conftest.err >&5
daa2886c 9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9063 (exit $ac_status); } &&
0ebeb530
JW
9064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9065 { (case "(($ac_try" in
9066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067 *) ac_try_echo=$ac_try;;
9068esac
9069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070 (eval "$ac_try") 2>&5
875927f6
AJ
9071 ac_status=$?
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; } &&
9074 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
9075 { (case "(($ac_try" in
9076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9077 *) ac_try_echo=$ac_try;;
9078esac
9079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9080 (eval "$ac_try") 2>&5
f5818d2f 9081 ac_status=$?
daa2886c 9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9083 (exit $ac_status); }; }; then
2d6d4e96 9084 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
f5818d2f
AJ
9085else
9086 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9087sed 's/^/| /' conftest.$ac_ext >&5
9088
fc6ffb29 9089 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
f5818d2f 9090fi
fc6ffb29 9091
0ebeb530 9092rm -f core conftest.err conftest.$ac_objext \
875927f6 9093 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
9094LIBS=$ac_check_lib_save_LIBS
9095fi
fc6ffb29
AJ
9096{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9097echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
2d6d4e96 9098if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
f5818d2f 9099
daa2886c 9100cat >>confdefs.h <<\_ACEOF
2d6d4e96 9101#define HAVE_LIBXXF86VM 1
daa2886c 9102_ACEOF
6bb6d4c2 9103
2d6d4e96 9104 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
5a2da4ee 9105
2d6d4e96
HL
9106fi
9107
9108 fi
9109
9110 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9111 then
9112 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
9113/* confdefs.h. */
9114_ACEOF
9115cat confdefs.h >>conftest.$ac_ext
9116cat >>conftest.$ac_ext <<_ACEOF
9117/* end confdefs.h. */
2d6d4e96
HL
9118#include <X11/Xlib.h>
9119#include <X11/extensions/Xrandr.h>
f5818d2f
AJ
9120int
9121main ()
9122{
2d6d4e96 9123static typeof(XRRSetScreenConfigAndRate) * func;
f5818d2f
AJ
9124 ;
9125 return 0;
9126}
9127_ACEOF
2d6d4e96 9128rm -f conftest.$ac_objext
0ebeb530
JW
9129if { (ac_try="$ac_compile"
9130case "(($ac_try" in
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9133esac
9134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_compile") 2>conftest.er1
f5818d2f 9136 ac_status=$?
875927f6
AJ
9137 grep -v '^ *+' conftest.er1 >conftest.err
9138 rm -f conftest.er1
9139 cat conftest.err >&5
daa2886c 9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9141 (exit $ac_status); } &&
0ebeb530
JW
9142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9143 { (case "(($ac_try" in
9144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145 *) ac_try_echo=$ac_try;;
9146esac
9147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148 (eval "$ac_try") 2>&5
875927f6
AJ
9149 ac_status=$?
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; } &&
2d6d4e96 9152 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
9153 { (case "(($ac_try" in
9154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155 *) ac_try_echo=$ac_try;;
9156esac
9157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158 (eval "$ac_try") 2>&5
f5818d2f 9159 ac_status=$?
daa2886c 9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9161 (exit $ac_status); }; }; then
2d6d4e96
HL
9162
9163cat >>confdefs.h <<\_ACEOF
9164#define HAVE_LIBXRANDR 1
9165_ACEOF
9166
f5818d2f
AJ
9167else
9168 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9169sed 's/^/| /' conftest.$ac_ext >&5
9170
fc6ffb29 9171
b63ab445 9172fi
fc6ffb29 9173
0ebeb530 9174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2d6d4e96 9175 fi
b63ab445 9176
2d6d4e96
HL
9177 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9178 then
fc6ffb29
AJ
9179 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9180echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
2d6d4e96 9181if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
ef799c46
JC
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9183else
9184 ac_check_lib_save_LIBS=$LIBS
2d6d4e96 9185LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
ef799c46 9186cat >conftest.$ac_ext <<_ACEOF
ef799c46
JC
9187/* confdefs.h. */
9188_ACEOF
9189cat confdefs.h >>conftest.$ac_ext
9190cat >>conftest.$ac_ext <<_ACEOF
9191/* end confdefs.h. */
9192
fc6ffb29
AJ
9193/* Override any GCC internal prototype to avoid an error.
9194 Use char because int might match the return type of a GCC
9195 builtin and then its argument prototype would still apply. */
ef799c46
JC
9196#ifdef __cplusplus
9197extern "C"
9198#endif
2d6d4e96 9199char XRenderSetPictureTransform ();
ef799c46
JC
9200int
9201main ()
9202{
fc6ffb29 9203return XRenderSetPictureTransform ();
ef799c46
JC
9204 ;
9205 return 0;
9206}
9207_ACEOF
9208rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
9209if { (ac_try="$ac_link"
9210case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9213esac
9214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_link") 2>conftest.er1
ef799c46 9216 ac_status=$?
875927f6
AJ
9217 grep -v '^ *+' conftest.er1 >conftest.err
9218 rm -f conftest.er1
9219 cat conftest.err >&5
ef799c46
JC
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } &&
0ebeb530
JW
9222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9223 { (case "(($ac_try" in
9224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9225 *) ac_try_echo=$ac_try;;
9226esac
9227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9228 (eval "$ac_try") 2>&5
875927f6
AJ
9229 ac_status=$?
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); }; } &&
9232 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
9233 { (case "(($ac_try" in
9234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235 *) ac_try_echo=$ac_try;;
9236esac
9237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238 (eval "$ac_try") 2>&5
ef799c46
JC
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
2d6d4e96 9242 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
ef799c46
JC
9243else
9244 echo "$as_me: failed program was:" >&5
9245sed 's/^/| /' conftest.$ac_ext >&5
9246
fc6ffb29 9247 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
ef799c46 9248fi
fc6ffb29 9249
0ebeb530 9250rm -f core conftest.err conftest.$ac_objext \
875927f6 9251 conftest$ac_exeext conftest.$ac_ext
ef799c46
JC
9252LIBS=$ac_check_lib_save_LIBS
9253fi
fc6ffb29
AJ
9254{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9255echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
2d6d4e96 9256if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
ef799c46 9257
2d6d4e96
HL
9258cat >>confdefs.h <<\_ACEOF
9259#define HAVE_XRENDERSETPICTURETRANSFORM 1
9260_ACEOF
ef799c46
JC
9261
9262fi
9263
2d6d4e96 9264 fi
1eb593cb 9265
7d00b050
AJ
9266 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
9267 then
9268 cat >conftest.$ac_ext <<_ACEOF
9269/* confdefs.h. */
9270_ACEOF
9271cat confdefs.h >>conftest.$ac_ext
9272cat >>conftest.$ac_ext <<_ACEOF
9273/* end confdefs.h. */
9274#include <X11/Xlib.h>
9275#include <X11/extensions/Xinerama.h>
9276int
9277main ()
9278{
9279static typeof(XineramaQueryScreens) * func;
9280 ;
9281 return 0;
9282}
9283_ACEOF
9284rm -f conftest.$ac_objext
9285if { (ac_try="$ac_compile"
9286case "(($ac_try" in
9287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9289esac
9290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_compile") 2>conftest.er1
9292 ac_status=$?
9293 grep -v '^ *+' conftest.er1 >conftest.err
9294 rm -f conftest.er1
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } &&
9298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9299 { (case "(($ac_try" in
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9302esac
9303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304 (eval "$ac_try") 2>&5
9305 ac_status=$?
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); }; } &&
9308 { ac_try='test -s conftest.$ac_objext'
9309 { (case "(($ac_try" in
9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311 *) ac_try_echo=$ac_try;;
9312esac
9313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314 (eval "$ac_try") 2>&5
9315 ac_status=$?
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; }; then
9318
9319cat >>confdefs.h <<\_ACEOF
9320#define HAVE_LIBXINERAMA 1
9321_ACEOF
9322
9323else
9324 echo "$as_me: failed program was:" >&5
9325sed 's/^/| /' conftest.$ac_ext >&5
9326
9327
9328fi
9329
9330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 fi
9332
9333
2d6d4e96
HL
9334 if test "x$with_opengl" != "xno"
9335 then
6f670b13
FG
9336
9337
2d6d4e96
HL
9338
9339
9340for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
6f670b13
FG
9341do
9342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
9343{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6f670b13 9346 echo $ECHO_N "(cached) $ECHO_C" >&6
6f670b13 9347else
2d6d4e96 9348 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
9349/* confdefs.h. */
9350_ACEOF
9351cat confdefs.h >>conftest.$ac_ext
9352cat >>conftest.$ac_ext <<_ACEOF
9353/* end confdefs.h. */
2d6d4e96
HL
9354#ifdef HAVE_GL_GLX_H
9355# include <GL/glx.h>
9356#endif
9357
6f670b13
FG
9358#include <$ac_header>
9359_ACEOF
9360rm -f conftest.$ac_objext
0ebeb530
JW
9361if { (ac_try="$ac_compile"
9362case "(($ac_try" in
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9365esac
9366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_compile") 2>conftest.er1
6f670b13 9368 ac_status=$?
875927f6
AJ
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
6f670b13
FG
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
0ebeb530
JW
9374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9375 { (case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9378esac
9379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_try") 2>&5
875927f6
AJ
9381 ac_status=$?
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; } &&
9384 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
9385 { (case "(($ac_try" in
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9388esac
9389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_try") 2>&5
6f670b13
FG
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
2d6d4e96 9394 eval "$as_ac_Header=yes"
6f670b13
FG
9395else
9396 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9397sed 's/^/| /' conftest.$ac_ext >&5
9398
fc6ffb29 9399 eval "$as_ac_Header=no"
6f670b13 9400fi
fc6ffb29 9401
0ebeb530 9402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6f670b13 9403fi
fc6ffb29
AJ
9404ac_res=`eval echo '${'$as_ac_Header'}'`
9405 { echo "$as_me:$LINENO: result: $ac_res" >&5
9406echo "${ECHO_T}$ac_res" >&6; }
6f670b13
FG
9407if test `eval echo '${'$as_ac_Header'}'` = yes; then
9408 cat >>confdefs.h <<_ACEOF
9409#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9410_ACEOF
9411
2d6d4e96
HL
9412fi
9413
9414done
9415
9416 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
9417 then
fc6ffb29
AJ
9418 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
9419echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
bc66d7ed 9420if test "${wine_cv_opengl_header_version_OK+set}" = set; then
6f670b13
FG
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422else
9423 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
9424/* confdefs.h. */
9425_ACEOF
9426cat confdefs.h >>conftest.$ac_ext
9427cat >>conftest.$ac_ext <<_ACEOF
9428/* end confdefs.h. */
2d6d4e96
HL
9429#include <GL/gl.h>
9430int
9431main ()
9432{
9433GLenum test = GL_UNSIGNED_SHORT_5_6_5;
9434 ;
9435 return 0;
9436}
6f670b13
FG
9437_ACEOF
9438rm -f conftest.$ac_objext
0ebeb530
JW
9439if { (ac_try="$ac_compile"
9440case "(($ac_try" in
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9443esac
9444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_compile") 2>conftest.er1
6f670b13 9446 ac_status=$?
875927f6
AJ
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
6f670b13
FG
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
0ebeb530
JW
9452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9453 { (case "(($ac_try" in
9454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9455 *) ac_try_echo=$ac_try;;
9456esac
9457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9458 (eval "$ac_try") 2>&5
875927f6
AJ
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; } &&
9462 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
9463 { (case "(($ac_try" in
9464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465 *) ac_try_echo=$ac_try;;
9466esac
9467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9468 (eval "$ac_try") 2>&5
6f670b13
FG
9469 ac_status=$?
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; }; then
bc66d7ed 9472 wine_cv_opengl_header_version_OK="yes"
6f670b13
FG
9473else
9474 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9475sed 's/^/| /' conftest.$ac_ext >&5
9476
bc66d7ed 9477 wine_cv_opengl_header_version_OK="no"
2d6d4e96 9478
6f670b13 9479fi
fc6ffb29 9480
0ebeb530 9481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6f670b13
FG
9482
9483fi
bc66d7ed
RC
9484{ echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
9485echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
6f670b13 9486
cc6a08c8 9487 if test "$wine_cv_opengl_header_version_OK" = "yes"
2d6d4e96 9488 then
fc6ffb29
AJ
9489 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
9490echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
2d6d4e96 9491if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
6f670b13
FG
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493else
9494 ac_check_lib_save_LIBS=$LIBS
2d6d4e96 9495LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
6f670b13 9496cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
9497/* confdefs.h. */
9498_ACEOF
9499cat confdefs.h >>conftest.$ac_ext
9500cat >>conftest.$ac_ext <<_ACEOF
9501/* end confdefs.h. */
6f670b13 9502
fc6ffb29
AJ
9503/* Override any GCC internal prototype to avoid an error.
9504 Use char because int might match the return type of a GCC
9505 builtin and then its argument prototype would still apply. */
6f670b13
FG
9506#ifdef __cplusplus
9507extern "C"
9508#endif
2d6d4e96 9509char glXCreateContext ();
6f670b13
FG
9510int
9511main ()
9512{
fc6ffb29 9513return glXCreateContext ();
6f670b13
FG
9514 ;
9515 return 0;
9516}
9517_ACEOF
9518rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
9519if { (ac_try="$ac_link"
9520case "(($ac_try" in
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9523esac
9524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_link") 2>conftest.er1
6f670b13 9526 ac_status=$?
875927f6
AJ
9527 grep -v '^ *+' conftest.er1 >conftest.err
9528 rm -f conftest.er1
9529 cat conftest.err >&5
6f670b13
FG
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } &&
0ebeb530
JW
9532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9533 { (case "(($ac_try" in
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9536esac
9537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_try") 2>&5
875927f6
AJ
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; } &&
9542 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
9543 { (case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9546esac
9547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_try") 2>&5
6f670b13
FG
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
2d6d4e96 9552 ac_cv_lib_GL_glXCreateContext=yes
6f670b13
FG
9553else
9554 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9555sed 's/^/| /' conftest.$ac_ext >&5
9556
fc6ffb29 9557 ac_cv_lib_GL_glXCreateContext=no
6f670b13 9558fi
fc6ffb29 9559
0ebeb530 9560rm -f core conftest.err conftest.$ac_objext \
875927f6 9561 conftest$ac_exeext conftest.$ac_ext
6f670b13
FG
9562LIBS=$ac_check_lib_save_LIBS
9563fi
fc6ffb29
AJ
9564{ echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
9565echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
2d6d4e96
HL
9566if test $ac_cv_lib_GL_glXCreateContext = yes; then
9567 OPENGL_LIBS="-lGL"
c84c4784 9568 OPENGLFILES='$(OPENGLFILES)'
f3719a88 9569
2d6d4e96
HL
9570cat >>confdefs.h <<\_ACEOF
9571#define HAVE_OPENGL 1
9572_ACEOF
f3719a88 9573
c84c4784
AJ
9574
9575fi
9576
dcc2d6c2 9577
fc6ffb29
AJ
9578 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
9579echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
2d6d4e96 9580if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
dcc2d6c2 9581 echo $ECHO_N "(cached) $ECHO_C" >&6
dcc2d6c2 9582else
2d6d4e96
HL
9583 ac_check_lib_save_LIBS=$LIBS
9584LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
9585 $LIBS"
dcc2d6c2
MM
9586cat >conftest.$ac_ext <<_ACEOF
9587/* confdefs.h. */
9588_ACEOF
9589cat confdefs.h >>conftest.$ac_ext
9590cat >>conftest.$ac_ext <<_ACEOF
9591/* end confdefs.h. */
2d6d4e96 9592
fc6ffb29
AJ
9593/* Override any GCC internal prototype to avoid an error.
9594 Use char because int might match the return type of a GCC
9595 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
9596#ifdef __cplusplus
9597extern "C"
9598#endif
2d6d4e96
HL
9599char gluLookAt ();
9600int
9601main ()
9602{
fc6ffb29 9603return gluLookAt ();
2d6d4e96
HL
9604 ;
9605 return 0;
9606}
9607_ACEOF
9608rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
9609if { (ac_try="$ac_link"
9610case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613esac
9614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
9616 ac_status=$?
9617 grep -v '^ *+' conftest.er1 >conftest.err
9618 rm -f conftest.er1
9619 cat conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } &&
0ebeb530
JW
9622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9623 { (case "(($ac_try" in
9624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9625 *) ac_try_echo=$ac_try;;
9626esac
9627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9628 (eval "$ac_try") 2>&5
2d6d4e96
HL
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; } &&
9632 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
9633 { (case "(($ac_try" in
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9636esac
9637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_try") 2>&5
2d6d4e96
HL
9639 ac_status=$?
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; }; then
9642 ac_cv_lib_GLU_gluLookAt=yes
9643else
9644 echo "$as_me: failed program was:" >&5
9645sed 's/^/| /' conftest.$ac_ext >&5
9646
fc6ffb29 9647 ac_cv_lib_GLU_gluLookAt=no
2d6d4e96 9648fi
fc6ffb29 9649
0ebeb530 9650rm -f core conftest.err conftest.$ac_objext \
2d6d4e96
HL
9651 conftest$ac_exeext conftest.$ac_ext
9652LIBS=$ac_check_lib_save_LIBS
9653fi
fc6ffb29
AJ
9654{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
9655echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
2d6d4e96
HL
9656if test $ac_cv_lib_GLU_gluLookAt = yes; then
9657 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
9658 GLU32FILES='$(GLU32FILES)'
9659
9660fi
9661
9662 fi
9663
fc6ffb29
AJ
9664 { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
9665echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
2d6d4e96
HL
9666if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9668else
9669 ac_check_lib_save_LIBS=$LIBS
9670LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
9671cat >conftest.$ac_ext <<_ACEOF
9672/* confdefs.h. */
9673_ACEOF
9674cat confdefs.h >>conftest.$ac_ext
9675cat >>conftest.$ac_ext <<_ACEOF
9676/* end confdefs.h. */
9677
fc6ffb29
AJ
9678/* Override any GCC internal prototype to avoid an error.
9679 Use char because int might match the return type of a GCC
9680 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
9681#ifdef __cplusplus
9682extern "C"
9683#endif
2d6d4e96
HL
9684char glutMainLoop ();
9685int
9686main ()
9687{
fc6ffb29 9688return glutMainLoop ();
2d6d4e96
HL
9689 ;
9690 return 0;
9691}
9692_ACEOF
9693rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
9694if { (ac_try="$ac_link"
9695case "(($ac_try" in
9696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697 *) ac_try_echo=$ac_try;;
9698esac
9699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
9701 ac_status=$?
9702 grep -v '^ *+' conftest.er1 >conftest.err
9703 rm -f conftest.er1
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
0ebeb530
JW
9707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9708 { (case "(($ac_try" in
9709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9710 *) ac_try_echo=$ac_try;;
9711esac
9712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9713 (eval "$ac_try") 2>&5
2d6d4e96
HL
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; } &&
9717 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
9718 { (case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9721esac
9722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_try") 2>&5
2d6d4e96
HL
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_lib_glut_glutMainLoop=yes
9728else
9729 echo "$as_me: failed program was:" >&5
9730sed 's/^/| /' conftest.$ac_ext >&5
9731
fc6ffb29 9732 ac_cv_lib_glut_glutMainLoop=no
2d6d4e96 9733fi
fc6ffb29 9734
0ebeb530 9735rm -f core conftest.err conftest.$ac_objext \
2d6d4e96
HL
9736 conftest$ac_exeext conftest.$ac_ext
9737LIBS=$ac_check_lib_save_LIBS
9738fi
fc6ffb29
AJ
9739{ echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9740echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
2d6d4e96
HL
9741if test $ac_cv_lib_glut_glutMainLoop = yes; then
9742 GLUT_LIBS="-lglut -lXmu -lXi"
9743
9744 GLUT32FILES='$(GLUT32FILES)'
9745
9746fi
9747
bc66d7ed
RC
9748 else
9749 wine_cv_opengl_headers_found="no"
2d6d4e96
HL
9750 fi
9751 fi
2d6d4e96
HL
9752 NASLIBS=""
9753
9754
9755for ac_header in audio/audiolib.h
9756do
9757as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
9758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2d6d4e96
HL
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9763fi
fc6ffb29
AJ
9764ac_res=`eval echo '${'$as_ac_Header'}'`
9765 { echo "$as_me:$LINENO: result: $ac_res" >&5
9766echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
9767else
9768 # Is the header compilable?
fc6ffb29
AJ
9769{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9770echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2d6d4e96
HL
9771cat >conftest.$ac_ext <<_ACEOF
9772/* confdefs.h. */
9773_ACEOF
9774cat confdefs.h >>conftest.$ac_ext
9775cat >>conftest.$ac_ext <<_ACEOF
9776/* end confdefs.h. */
9777$ac_includes_default
9778#include <$ac_header>
9779_ACEOF
9780rm -f conftest.$ac_objext
0ebeb530
JW
9781if { (ac_try="$ac_compile"
9782case "(($ac_try" in
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9785esac
9786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_compile") 2>conftest.er1
2d6d4e96
HL
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
0ebeb530
JW
9794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9795 { (case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798esac
9799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_try") 2>&5
dcc2d6c2
MM
9801 ac_status=$?
9802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); }; } &&
9804 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
9805 { (case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9808esac
9809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_try") 2>&5
dcc2d6c2
MM
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_header_compiler=yes
9815else
9816 echo "$as_me: failed program was:" >&5
9817sed 's/^/| /' conftest.$ac_ext >&5
9818
fc6ffb29 9819 ac_header_compiler=no
dcc2d6c2 9820fi
fc6ffb29 9821
0ebeb530 9822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
9823{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9824echo "${ECHO_T}$ac_header_compiler" >&6; }
dcc2d6c2
MM
9825
9826# Is the header present?
fc6ffb29
AJ
9827{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9828echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
dcc2d6c2
MM
9829cat >conftest.$ac_ext <<_ACEOF
9830/* confdefs.h. */
9831_ACEOF
9832cat confdefs.h >>conftest.$ac_ext
9833cat >>conftest.$ac_ext <<_ACEOF
9834/* end confdefs.h. */
9835#include <$ac_header>
9836_ACEOF
0ebeb530
JW
9837if { (ac_try="$ac_cpp conftest.$ac_ext"
9838case "(($ac_try" in
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9841esac
9842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
dcc2d6c2
MM
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } >/dev/null; then
9850 if test -s conftest.err; then
9851 ac_cpp_err=$ac_c_preproc_warn_flag
9852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9853 else
9854 ac_cpp_err=
9855 fi
9856else
9857 ac_cpp_err=yes
9858fi
9859if test -z "$ac_cpp_err"; then
9860 ac_header_preproc=yes
9861else
9862 echo "$as_me: failed program was:" >&5
9863sed 's/^/| /' conftest.$ac_ext >&5
9864
9865 ac_header_preproc=no
9866fi
fc6ffb29 9867
dcc2d6c2 9868rm -f conftest.err conftest.$ac_ext
fc6ffb29
AJ
9869{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9870echo "${ECHO_T}$ac_header_preproc" >&6; }
dcc2d6c2
MM
9871
9872# So? What about this header?
9873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9874 yes:no: )
9875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9879 ac_header_preproc=yes
9880 ;;
9881 no:yes:* )
9882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
fc6ffb29 9894 ( cat <<\_ASBOX
dcc2d6c2
MM
9895## ------------------------------------ ##
9896## Report this to wine-devel@winehq.org ##
9897## ------------------------------------ ##
9898_ASBOX
fc6ffb29 9899 ) | sed "s/^/$as_me: WARNING: /" >&2
dcc2d6c2
MM
9900 ;;
9901esac
fc6ffb29
AJ
9902{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
dcc2d6c2
MM
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9906else
9907 eval "$as_ac_Header=\$ac_header_preproc"
9908fi
fc6ffb29
AJ
9909ac_res=`eval echo '${'$as_ac_Header'}'`
9910 { echo "$as_me:$LINENO: result: $ac_res" >&5
9911echo "${ECHO_T}$ac_res" >&6; }
dcc2d6c2
MM
9912
9913fi
9914if test `eval echo '${'$as_ac_Header'}'` = yes; then
9915 cat >>confdefs.h <<_ACEOF
9916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9917_ACEOF
2d6d4e96
HL
9918
9919for ac_header in audio/soundlib.h
9920do
9921as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
9922{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
dcc2d6c2
MM
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9926else
2d6d4e96 9927 cat >conftest.$ac_ext <<_ACEOF
dcc2d6c2
MM
9928/* confdefs.h. */
9929_ACEOF
9930cat confdefs.h >>conftest.$ac_ext
9931cat >>conftest.$ac_ext <<_ACEOF
9932/* end confdefs.h. */
2d6d4e96 9933#include <audio/audiolib.h>
dcc2d6c2 9934
2d6d4e96 9935#include <$ac_header>
dcc2d6c2 9936_ACEOF
2d6d4e96 9937rm -f conftest.$ac_objext
0ebeb530
JW
9938if { (ac_try="$ac_compile"
9939case "(($ac_try" in
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9942esac
9943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944 (eval "$ac_compile") 2>conftest.er1
dcc2d6c2
MM
9945 ac_status=$?
9946 grep -v '^ *+' conftest.er1 >conftest.err
9947 rm -f conftest.er1
9948 cat conftest.err >&5
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); } &&
0ebeb530
JW
9951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9952 { (case "(($ac_try" in
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9955esac
9956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_try") 2>&5
dcc2d6c2
MM
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
2d6d4e96 9961 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
9962 { (case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9965esac
9966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_try") 2>&5
dcc2d6c2
MM
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
2d6d4e96 9971 eval "$as_ac_Header=yes"
dcc2d6c2
MM
9972else
9973 echo "$as_me: failed program was:" >&5
9974sed 's/^/| /' conftest.$ac_ext >&5
9975
fc6ffb29 9976 eval "$as_ac_Header=no"
dcc2d6c2 9977fi
fc6ffb29 9978
0ebeb530 9979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
dcc2d6c2 9980fi
fc6ffb29
AJ
9981ac_res=`eval echo '${'$as_ac_Header'}'`
9982 { echo "$as_me:$LINENO: result: $ac_res" >&5
9983echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
9984if test `eval echo '${'$as_ac_Header'}'` = yes; then
9985 cat >>confdefs.h <<_ACEOF
9986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
dcc2d6c2
MM
9987_ACEOF
9988
dcc2d6c2
MM
9989fi
9990
2d6d4e96
HL
9991done
9992
fc6ffb29
AJ
9993 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9994echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
2d6d4e96 9995if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
70adb8f5
MM
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997else
9998 ac_check_lib_save_LIBS=$LIBS
2d6d4e96 9999LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
70adb8f5
MM
10000cat >conftest.$ac_ext <<_ACEOF
10001/* confdefs.h. */
10002_ACEOF
10003cat confdefs.h >>conftest.$ac_ext
10004cat >>conftest.$ac_ext <<_ACEOF
10005/* end confdefs.h. */
10006
fc6ffb29
AJ
10007/* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
70adb8f5
MM
10010#ifdef __cplusplus
10011extern "C"
10012#endif
2d6d4e96 10013char AuCreateFlow ();
70adb8f5
MM
10014int
10015main ()
10016{
fc6ffb29 10017return AuCreateFlow ();
70adb8f5
MM
10018 ;
10019 return 0;
10020}
10021_ACEOF
10022rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
10023if { (ac_try="$ac_link"
10024case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027esac
10028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_link") 2>conftest.er1
70adb8f5
MM
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
0ebeb530
JW
10036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040esac
10041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
70adb8f5
MM
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; } &&
10046 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
10047 { (case "(($ac_try" in
10048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10049 *) ac_try_echo=$ac_try;;
10050esac
10051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10052 (eval "$ac_try") 2>&5
70adb8f5
MM
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
2d6d4e96 10056 ac_cv_lib_audio_AuCreateFlow=yes
70adb8f5
MM
10057else
10058 echo "$as_me: failed program was:" >&5
10059sed 's/^/| /' conftest.$ac_ext >&5
10060
fc6ffb29 10061 ac_cv_lib_audio_AuCreateFlow=no
70adb8f5 10062fi
fc6ffb29 10063
0ebeb530 10064rm -f core conftest.err conftest.$ac_objext \
70adb8f5
MM
10065 conftest$ac_exeext conftest.$ac_ext
10066LIBS=$ac_check_lib_save_LIBS
10067fi
fc6ffb29
AJ
10068{ echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10069echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
2d6d4e96 10070if test $ac_cv_lib_audio_AuCreateFlow = yes; then
70adb8f5
MM
10071
10072cat >>confdefs.h <<\_ACEOF
2d6d4e96 10073#define HAVE_NAS 1
70adb8f5
MM
10074_ACEOF
10075
2d6d4e96 10076 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
70adb8f5
MM
10077fi
10078
f3719a88
MM
10079fi
10080
10081done
10082
2d6d4e96 10083
f3719a88 10084 CPPFLAGS="$ac_save_CPPFLAGS"
2d6d4e96
HL
10085 XFILES='$(XFILES)'
10086else
10087 XLIB=""
10088 X_CFLAGS=""
10089 X_LIBS=""
10090fi
f3719a88
MM
10091
10092
2d6d4e96
HL
10093XML2LIBS=""
10094
10095XML2INCL=""
10096
10097XSLTLIBS=""
10098
10099XSLTINCL=""
10100
10101if test "$PKG_CONFIG" != "false"
10102then
10103 ac_save_CPPFLAGS="$CPPFLAGS"
d01063e1
AJ
10104 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10105 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
2d6d4e96
HL
10106 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
10107
10108for ac_header in libxml/parser.h
f3719a88
MM
10109do
10110as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
10111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f3719a88 10115 echo $ECHO_N "(cached) $ECHO_C" >&6
2d6d4e96 10116fi
fc6ffb29
AJ
10117ac_res=`eval echo '${'$as_ac_Header'}'`
10118 { echo "$as_me:$LINENO: result: $ac_res" >&5
10119echo "${ECHO_T}$ac_res" >&6; }
f3719a88 10120else
2d6d4e96 10121 # Is the header compilable?
fc6ffb29
AJ
10122{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10123echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
2d6d4e96 10124cat >conftest.$ac_ext <<_ACEOF
f3719a88
MM
10125/* confdefs.h. */
10126_ACEOF
10127cat confdefs.h >>conftest.$ac_ext
10128cat >>conftest.$ac_ext <<_ACEOF
10129/* end confdefs.h. */
2d6d4e96 10130$ac_includes_default
f3719a88
MM
10131#include <$ac_header>
10132_ACEOF
10133rm -f conftest.$ac_objext
0ebeb530
JW
10134if { (ac_try="$ac_compile"
10135case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138esac
10139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_compile") 2>conftest.er1
f3719a88
MM
10141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
0ebeb530
JW
10147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10148 { (case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10151esac
10152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_try") 2>&5
f3719a88
MM
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; } &&
10157 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10161esac
10162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
f3719a88
MM
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
2d6d4e96 10167 ac_header_compiler=yes
f3719a88
MM
10168else
10169 echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
fc6ffb29 10172 ac_header_compiler=no
f3719a88 10173fi
fc6ffb29 10174
0ebeb530 10175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
10176{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10177echo "${ECHO_T}$ac_header_compiler" >&6; }
2d6d4e96
HL
10178
10179# Is the header present?
fc6ffb29
AJ
10180{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10181echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
2d6d4e96
HL
10182cat >conftest.$ac_ext <<_ACEOF
10183/* confdefs.h. */
10184_ACEOF
10185cat confdefs.h >>conftest.$ac_ext
10186cat >>conftest.$ac_ext <<_ACEOF
10187/* end confdefs.h. */
10188#include <$ac_header>
10189_ACEOF
0ebeb530
JW
10190if { (ac_try="$ac_cpp conftest.$ac_ext"
10191case "(($ac_try" in
10192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10193 *) ac_try_echo=$ac_try;;
10194esac
10195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2d6d4e96
HL
10197 ac_status=$?
10198 grep -v '^ *+' conftest.er1 >conftest.err
10199 rm -f conftest.er1
10200 cat conftest.err >&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); } >/dev/null; then
10203 if test -s conftest.err; then
10204 ac_cpp_err=$ac_c_preproc_warn_flag
10205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10206 else
10207 ac_cpp_err=
10208 fi
10209else
10210 ac_cpp_err=yes
10211fi
10212if test -z "$ac_cpp_err"; then
10213 ac_header_preproc=yes
10214else
10215 echo "$as_me: failed program was:" >&5
10216sed 's/^/| /' conftest.$ac_ext >&5
10217
10218 ac_header_preproc=no
10219fi
fc6ffb29 10220
2d6d4e96 10221rm -f conftest.err conftest.$ac_ext
fc6ffb29
AJ
10222{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10223echo "${ECHO_T}$ac_header_preproc" >&6; }
2d6d4e96
HL
10224
10225# So? What about this header?
10226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10227 yes:no: )
10228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10232 ac_header_preproc=yes
10233 ;;
10234 no:yes:* )
10235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10242echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
fc6ffb29 10247 ( cat <<\_ASBOX
2d6d4e96
HL
10248## ------------------------------------ ##
10249## Report this to wine-devel@winehq.org ##
10250## ------------------------------------ ##
10251_ASBOX
fc6ffb29 10252 ) | sed "s/^/$as_me: WARNING: /" >&2
2d6d4e96
HL
10253 ;;
10254esac
fc6ffb29
AJ
10255{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2d6d4e96
HL
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10259else
10260 eval "$as_ac_Header=\$ac_header_preproc"
f3719a88 10261fi
fc6ffb29
AJ
10262ac_res=`eval echo '${'$as_ac_Header'}'`
10263 { echo "$as_me:$LINENO: result: $ac_res" >&5
10264echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
10265
10266fi
f3719a88
MM
10267if test `eval echo '${'$as_ac_Header'}'` = yes; then
10268 cat >>confdefs.h <<_ACEOF
10269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10270_ACEOF
fc6ffb29
AJ
10271 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10272echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
2d6d4e96 10273if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
f3719a88
MM
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275else
10276 ac_check_lib_save_LIBS=$LIBS
2d6d4e96 10277LIBS="-lxml2 $ac_xml_libs $LIBS"
f3719a88
MM
10278cat >conftest.$ac_ext <<_ACEOF
10279/* confdefs.h. */
10280_ACEOF
10281cat confdefs.h >>conftest.$ac_ext
10282cat >>conftest.$ac_ext <<_ACEOF
10283/* end confdefs.h. */
10284
fc6ffb29
AJ
10285/* Override any GCC internal prototype to avoid an error.
10286 Use char because int might match the return type of a GCC
10287 builtin and then its argument prototype would still apply. */
f3719a88
MM
10288#ifdef __cplusplus
10289extern "C"
10290#endif
2d6d4e96 10291char xmlParseMemory ();
f3719a88
MM
10292int
10293main ()
10294{
fc6ffb29 10295return xmlParseMemory ();
f3719a88
MM
10296 ;
10297 return 0;
10298}
10299_ACEOF
10300rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
10301if { (ac_try="$ac_link"
10302case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10305esac
10306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_link") 2>conftest.er1
f3719a88
MM
10308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } &&
0ebeb530
JW
10314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10315 { (case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10318esac
10319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320 (eval "$ac_try") 2>&5
f3719a88
MM
10321 ac_status=$?
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; } &&
10324 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
10325 { (case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328esac
10329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_try") 2>&5
f3719a88
MM
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
2d6d4e96 10334 ac_cv_lib_xml2_xmlParseMemory=yes
f3719a88
MM
10335else
10336 echo "$as_me: failed program was:" >&5
10337sed 's/^/| /' conftest.$ac_ext >&5
10338
fc6ffb29 10339 ac_cv_lib_xml2_xmlParseMemory=no
f3719a88 10340fi
fc6ffb29 10341
0ebeb530 10342rm -f core conftest.err conftest.$ac_objext \
f3719a88
MM
10343 conftest$ac_exeext conftest.$ac_ext
10344LIBS=$ac_check_lib_save_LIBS
10345fi
fc6ffb29
AJ
10346{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10347echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
2d6d4e96 10348if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
f3719a88
MM
10349
10350cat >>confdefs.h <<\_ACEOF
2d6d4e96 10351#define HAVE_LIBXML2 1
f3719a88
MM
10352_ACEOF
10353
2d6d4e96
HL
10354 XML2LIBS="$ac_xml_libs"
10355 XML2INCL="$ac_xml_cflags"
90c75bdd 10356fi
dcc2d6c2 10357
fc6ffb29
AJ
10358 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
10359echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
2d6d4e96 10360if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
daa2886c 10361 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c 10362else
73482144 10363 ac_check_lib_save_LIBS=$LIBS
2d6d4e96 10364LIBS="-lxml2 $ac_xml_libs $LIBS"
daa2886c 10365cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
10366/* confdefs.h. */
10367_ACEOF
10368cat confdefs.h >>conftest.$ac_ext
10369cat >>conftest.$ac_ext <<_ACEOF
10370/* end confdefs.h. */
73482144 10371
fc6ffb29
AJ
10372/* Override any GCC internal prototype to avoid an error.
10373 Use char because int might match the return type of a GCC
10374 builtin and then its argument prototype would still apply. */
73482144
AJ
10375#ifdef __cplusplus
10376extern "C"
10377#endif
2d6d4e96 10378char xmlReadMemory ();
73482144
AJ
10379int
10380main ()
10381{
fc6ffb29 10382return xmlReadMemory ();
73482144
AJ
10383 ;
10384 return 0;
10385}
daa2886c 10386_ACEOF
73482144 10387rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
10388if { (ac_try="$ac_link"
10389case "(($ac_try" in
10390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10391 *) ac_try_echo=$ac_try;;
10392esac
10393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_link") 2>conftest.er1
daa2886c 10395 ac_status=$?
875927f6
AJ
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
daa2886c
AJ
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } &&
0ebeb530
JW
10401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10402 { (case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10405esac
10406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_try") 2>&5
875927f6
AJ
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; } &&
73482144 10411 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
10412 { (case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10415esac
10416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_try") 2>&5
daa2886c
AJ
10418 ac_status=$?
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; }; then
2d6d4e96 10421 ac_cv_lib_xml2_xmlReadMemory=yes
daa2886c
AJ
10422else
10423 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10424sed 's/^/| /' conftest.$ac_ext >&5
10425
fc6ffb29 10426 ac_cv_lib_xml2_xmlReadMemory=no
24110288 10427fi
fc6ffb29 10428
0ebeb530 10429rm -f core conftest.err conftest.$ac_objext \
73482144
AJ
10430 conftest$ac_exeext conftest.$ac_ext
10431LIBS=$ac_check_lib_save_LIBS
10432fi
fc6ffb29
AJ
10433{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10434echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
2d6d4e96 10435if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
24110288 10436
73482144 10437cat >>confdefs.h <<\_ACEOF
2d6d4e96 10438#define HAVE_XMLREADMEMORY 1
73482144
AJ
10439_ACEOF
10440
73482144
AJ
10441fi
10442
2d6d4e96
HL
10443
10444fi
10445
10446done
10447
10448 CPPFLAGS="$ac_save_CPPFLAGS"
d01063e1
AJ
10449 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
10450 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
2d6d4e96
HL
10451 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
10452
10453
10454for ac_header in libxslt/pattern.h libxslt/transform.h
10455do
10456as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
10457{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
73482144
AJ
10460 echo $ECHO_N "(cached) $ECHO_C" >&6
10461else
2d6d4e96 10462 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
10463/* confdefs.h. */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h. */
2d6d4e96
HL
10468#ifdef HAVE_LIBXSLT_PATTERN_H
10469# include <libxslt/pattern.h>
73482144 10470#endif
2d6d4e96
HL
10471
10472#include <$ac_header>
f5818d2f 10473_ACEOF
2d6d4e96 10474rm -f conftest.$ac_objext
0ebeb530
JW
10475if { (ac_try="$ac_compile"
10476case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10479esac
10480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_compile") 2>conftest.er1
f5818d2f 10482 ac_status=$?
875927f6
AJ
10483 grep -v '^ *+' conftest.er1 >conftest.err
10484 rm -f conftest.er1
10485 cat conftest.err >&5
daa2886c 10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10487 (exit $ac_status); } &&
0ebeb530
JW
10488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10489 { (case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492esac
10493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_try") 2>&5
875927f6
AJ
10495 ac_status=$?
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; } &&
2d6d4e96 10498 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
10499 { (case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502esac
10503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_try") 2>&5
f5818d2f 10505 ac_status=$?
daa2886c 10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10507 (exit $ac_status); }; }; then
2d6d4e96 10508 eval "$as_ac_Header=yes"
f5818d2f
AJ
10509else
10510 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10511sed 's/^/| /' conftest.$ac_ext >&5
10512
fc6ffb29 10513 eval "$as_ac_Header=no"
f5818d2f 10514fi
fc6ffb29 10515
0ebeb530 10516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 10517fi
fc6ffb29
AJ
10518ac_res=`eval echo '${'$as_ac_Header'}'`
10519 { echo "$as_me:$LINENO: result: $ac_res" >&5
10520echo "${ECHO_T}$ac_res" >&6; }
2d6d4e96
HL
10521if test `eval echo '${'$as_ac_Header'}'` = yes; then
10522 cat >>confdefs.h <<_ACEOF
10523#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10524_ACEOF
fc6ffb29
AJ
10525 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
10526echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
2d6d4e96
HL
10527if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10529else
10530 ac_check_lib_save_LIBS=$LIBS
10531LIBS="-lxslt $ac_xslt_libs $LIBS"
10532cat >conftest.$ac_ext <<_ACEOF
10533/* confdefs.h. */
10534_ACEOF
10535cat confdefs.h >>conftest.$ac_ext
10536cat >>conftest.$ac_ext <<_ACEOF
10537/* end confdefs.h. */
10538
fc6ffb29
AJ
10539/* Override any GCC internal prototype to avoid an error.
10540 Use char because int might match the return type of a GCC
10541 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
10542#ifdef __cplusplus
10543extern "C"
10544#endif
2d6d4e96
HL
10545char xsltCompilePattern ();
10546int
10547main ()
10548{
fc6ffb29 10549return xsltCompilePattern ();
2d6d4e96
HL
10550 ;
10551 return 0;
10552}
10553_ACEOF
10554rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
10555if { (ac_try="$ac_link"
10556case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10559esac
10560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
10562 ac_status=$?
10563 grep -v '^ *+' conftest.er1 >conftest.err
10564 rm -f conftest.er1
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
0ebeb530
JW
10568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10569 { (case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10572esac
10573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_try") 2>&5
2d6d4e96
HL
10575 ac_status=$?
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; } &&
10578 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
10579 { (case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10582esac
10583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_try") 2>&5
2d6d4e96
HL
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_cv_lib_xslt_xsltCompilePattern=yes
10589else
10590 echo "$as_me: failed program was:" >&5
10591sed 's/^/| /' conftest.$ac_ext >&5
10592
fc6ffb29 10593 ac_cv_lib_xslt_xsltCompilePattern=no
2d6d4e96 10594fi
fc6ffb29 10595
0ebeb530 10596rm -f core conftest.err conftest.$ac_objext \
2d6d4e96
HL
10597 conftest$ac_exeext conftest.$ac_ext
10598LIBS=$ac_check_lib_save_LIBS
10599fi
fc6ffb29
AJ
10600{ echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
10601echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
2d6d4e96
HL
10602if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
10603
10604cat >>confdefs.h <<\_ACEOF
10605#define HAVE_LIBXSLT 1
10606_ACEOF
10607
10608 XSLTLIBS="$ac_xslt_libs"
10609 XSLTINCL="$ac_xslt_cflags"
10610fi
10611
10612
00068989
AJ
10613fi
10614
10615done
10616
10617 CPPFLAGS="$ac_save_CPPFLAGS"
10618fi
10619
10620HALINCL=""
10621
10622if test "$PKG_CONFIG" != "false"
10623then
10624 ac_save_CPPFLAGS="$CPPFLAGS"
d01063e1
AJ
10625 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
10626 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
00068989
AJ
10627 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
10628
10629
10630for ac_header in dbus/dbus.h hal/libhal.h
10631do
10632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
10633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
00068989
AJ
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10638fi
fc6ffb29
AJ
10639ac_res=`eval echo '${'$as_ac_Header'}'`
10640 { echo "$as_me:$LINENO: result: $ac_res" >&5
10641echo "${ECHO_T}$ac_res" >&6; }
00068989
AJ
10642else
10643 # Is the header compilable?
fc6ffb29
AJ
10644{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10645echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
00068989
AJ
10646cat >conftest.$ac_ext <<_ACEOF
10647/* confdefs.h. */
10648_ACEOF
10649cat confdefs.h >>conftest.$ac_ext
10650cat >>conftest.$ac_ext <<_ACEOF
10651/* end confdefs.h. */
10652$ac_includes_default
10653#include <$ac_header>
10654_ACEOF
10655rm -f conftest.$ac_objext
0ebeb530
JW
10656if { (ac_try="$ac_compile"
10657case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10660esac
10661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10662 (eval "$ac_compile") 2>conftest.er1
00068989
AJ
10663 ac_status=$?
10664 grep -v '^ *+' conftest.er1 >conftest.err
10665 rm -f conftest.er1
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
0ebeb530
JW
10669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10670 { (case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10673esac
10674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_try") 2>&5
00068989
AJ
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; } &&
10679 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
10680 { (case "(($ac_try" in
10681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10682 *) ac_try_echo=$ac_try;;
10683esac
10684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10685 (eval "$ac_try") 2>&5
00068989
AJ
10686 ac_status=$?
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10689 ac_header_compiler=yes
10690else
10691 echo "$as_me: failed program was:" >&5
10692sed 's/^/| /' conftest.$ac_ext >&5
10693
fc6ffb29 10694 ac_header_compiler=no
00068989 10695fi
fc6ffb29 10696
0ebeb530 10697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
10698{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10699echo "${ECHO_T}$ac_header_compiler" >&6; }
00068989
AJ
10700
10701# Is the header present?
fc6ffb29
AJ
10702{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10703echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
00068989
AJ
10704cat >conftest.$ac_ext <<_ACEOF
10705/* confdefs.h. */
10706_ACEOF
10707cat confdefs.h >>conftest.$ac_ext
10708cat >>conftest.$ac_ext <<_ACEOF
10709/* end confdefs.h. */
10710#include <$ac_header>
10711_ACEOF
0ebeb530
JW
10712if { (ac_try="$ac_cpp conftest.$ac_ext"
10713case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10716esac
10717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
00068989
AJ
10719 ac_status=$?
10720 grep -v '^ *+' conftest.er1 >conftest.err
10721 rm -f conftest.er1
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } >/dev/null; then
10725 if test -s conftest.err; then
10726 ac_cpp_err=$ac_c_preproc_warn_flag
10727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10728 else
10729 ac_cpp_err=
10730 fi
10731else
10732 ac_cpp_err=yes
10733fi
10734if test -z "$ac_cpp_err"; then
10735 ac_header_preproc=yes
10736else
10737 echo "$as_me: failed program was:" >&5
10738sed 's/^/| /' conftest.$ac_ext >&5
10739
10740 ac_header_preproc=no
10741fi
fc6ffb29 10742
00068989 10743rm -f conftest.err conftest.$ac_ext
fc6ffb29
AJ
10744{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10745echo "${ECHO_T}$ac_header_preproc" >&6; }
00068989
AJ
10746
10747# So? What about this header?
10748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10749 yes:no: )
10750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10751echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10753echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10754 ac_header_preproc=yes
10755 ;;
10756 no:yes:* )
10757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10758echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10760echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10762echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10764echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10768echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
fc6ffb29 10769 ( cat <<\_ASBOX
00068989
AJ
10770## ------------------------------------ ##
10771## Report this to wine-devel@winehq.org ##
10772## ------------------------------------ ##
10773_ASBOX
fc6ffb29 10774 ) | sed "s/^/$as_me: WARNING: /" >&2
00068989
AJ
10775 ;;
10776esac
fc6ffb29
AJ
10777{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
00068989
AJ
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10781else
10782 eval "$as_ac_Header=\$ac_header_preproc"
10783fi
fc6ffb29
AJ
10784ac_res=`eval echo '${'$as_ac_Header'}'`
10785 { echo "$as_me:$LINENO: result: $ac_res" >&5
10786echo "${ECHO_T}$ac_res" >&6; }
00068989
AJ
10787
10788fi
10789if test `eval echo '${'$as_ac_Header'}'` = yes; then
10790 cat >>confdefs.h <<_ACEOF
10791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10792_ACEOF
b18b9f37
AJ
10793
10794fi
10795
10796done
10797
10798 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
10799 then
fc6ffb29
AJ
10800 { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
10801echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
00068989
AJ
10802if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 ac_check_lib_save_LIBS=$LIBS
b18b9f37 10806LIBS="-lhal $LIBS"
00068989
AJ
10807cat >conftest.$ac_ext <<_ACEOF
10808/* confdefs.h. */
10809_ACEOF
10810cat confdefs.h >>conftest.$ac_ext
10811cat >>conftest.$ac_ext <<_ACEOF
10812/* end confdefs.h. */
10813
fc6ffb29
AJ
10814/* Override any GCC internal prototype to avoid an error.
10815 Use char because int might match the return type of a GCC
10816 builtin and then its argument prototype would still apply. */
00068989
AJ
10817#ifdef __cplusplus
10818extern "C"
10819#endif
00068989
AJ
10820char libhal_ctx_new ();
10821int
10822main ()
10823{
fc6ffb29 10824return libhal_ctx_new ();
00068989
AJ
10825 ;
10826 return 0;
10827}
10828_ACEOF
10829rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
10830if { (ac_try="$ac_link"
10831case "(($ac_try" in
10832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10833 *) ac_try_echo=$ac_try;;
10834esac
10835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10836 (eval "$ac_link") 2>conftest.er1
00068989
AJ
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
0ebeb530
JW
10843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10844 { (case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10847esac
10848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_try") 2>&5
00068989
AJ
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; } &&
10853 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
10854 { (case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10857esac
10858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_try") 2>&5
00068989
AJ
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; }; then
10863 ac_cv_lib_hal_libhal_ctx_new=yes
10864else
10865 echo "$as_me: failed program was:" >&5
10866sed 's/^/| /' conftest.$ac_ext >&5
10867
fc6ffb29 10868 ac_cv_lib_hal_libhal_ctx_new=no
00068989 10869fi
fc6ffb29 10870
0ebeb530 10871rm -f core conftest.err conftest.$ac_objext \
00068989
AJ
10872 conftest$ac_exeext conftest.$ac_ext
10873LIBS=$ac_check_lib_save_LIBS
10874fi
fc6ffb29
AJ
10875{ echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
10876echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
00068989 10877if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
fc6ffb29
AJ
10878 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
10879echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
b18b9f37
AJ
10880if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882else
10883 ac_check_lib_save_LIBS=$LIBS
10884LIBS="-ldbus-1 $ac_hal_libs $LIBS"
10885cat >conftest.$ac_ext <<_ACEOF
10886/* confdefs.h. */
10887_ACEOF
10888cat confdefs.h >>conftest.$ac_ext
10889cat >>conftest.$ac_ext <<_ACEOF
10890/* end confdefs.h. */
10891
fc6ffb29
AJ
10892/* Override any GCC internal prototype to avoid an error.
10893 Use char because int might match the return type of a GCC
10894 builtin and then its argument prototype would still apply. */
b18b9f37
AJ
10895#ifdef __cplusplus
10896extern "C"
10897#endif
b18b9f37
AJ
10898char dbus_connection_close ();
10899int
10900main ()
10901{
fc6ffb29 10902return dbus_connection_close ();
b18b9f37
AJ
10903 ;
10904 return 0;
10905}
10906_ACEOF
10907rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
10908if { (ac_try="$ac_link"
10909case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10912esac
10913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_link") 2>conftest.er1
b18b9f37
AJ
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
0ebeb530
JW
10921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10922 { (case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925esac
10926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_try") 2>&5
b18b9f37
AJ
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }; } &&
10931 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
10932 { (case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10935esac
10936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_try") 2>&5
b18b9f37
AJ
10938 ac_status=$?
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; }; then
10941 ac_cv_lib_dbus_1_dbus_connection_close=yes
10942else
10943 echo "$as_me: failed program was:" >&5
10944sed 's/^/| /' conftest.$ac_ext >&5
10945
fc6ffb29 10946 ac_cv_lib_dbus_1_dbus_connection_close=no
b18b9f37 10947fi
fc6ffb29 10948
0ebeb530 10949rm -f core conftest.err conftest.$ac_objext \
b18b9f37
AJ
10950 conftest$ac_exeext conftest.$ac_ext
10951LIBS=$ac_check_lib_save_LIBS
10952fi
fc6ffb29
AJ
10953{ echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
10954echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
b18b9f37 10955if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
00068989
AJ
10956
10957cat >>confdefs.h <<\_ACEOF
10958#define HAVE_LIBHAL 1
10959_ACEOF
10960
10961 HALINCL="$ac_hal_cflags"
10962fi
10963
2d6d4e96
HL
10964fi
10965
b18b9f37 10966 fi
2d6d4e96
HL
10967 CPPFLAGS="$ac_save_CPPFLAGS"
10968fi
10969
10970CURSESLIBS=""
10971if test "x$with_curses" != "xno"
10972then
10973 if test "$ac_cv_header_ncurses_h" = "yes"
10974 then
fc6ffb29
AJ
10975 { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
10976echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
2d6d4e96
HL
10977if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10979else
10980 ac_check_lib_save_LIBS=$LIBS
10981LIBS="-lncurses $LIBS"
10982cat >conftest.$ac_ext <<_ACEOF
10983/* confdefs.h. */
10984_ACEOF
10985cat confdefs.h >>conftest.$ac_ext
10986cat >>conftest.$ac_ext <<_ACEOF
10987/* end confdefs.h. */
10988
fc6ffb29
AJ
10989/* Override any GCC internal prototype to avoid an error.
10990 Use char because int might match the return type of a GCC
10991 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
10992#ifdef __cplusplus
10993extern "C"
10994#endif
2d6d4e96
HL
10995char waddch ();
10996int
10997main ()
10998{
fc6ffb29 10999return waddch ();
2d6d4e96
HL
11000 ;
11001 return 0;
11002}
11003_ACEOF
11004rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11005if { (ac_try="$ac_link"
11006case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11009esac
11010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
11012 ac_status=$?
11013 grep -v '^ *+' conftest.er1 >conftest.err
11014 rm -f conftest.er1
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
0ebeb530
JW
11018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11019 { (case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11022esac
11023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_try") 2>&5
2d6d4e96
HL
11025 ac_status=$?
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; } &&
11028 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
11029 { (case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11032esac
11033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_try") 2>&5
2d6d4e96
HL
11035 ac_status=$?
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); }; }; then
11038 ac_cv_lib_ncurses_waddch=yes
11039else
11040 echo "$as_me: failed program was:" >&5
11041sed 's/^/| /' conftest.$ac_ext >&5
11042
fc6ffb29 11043 ac_cv_lib_ncurses_waddch=no
2d6d4e96 11044fi
fc6ffb29 11045
0ebeb530 11046rm -f core conftest.err conftest.$ac_objext \
2d6d4e96
HL
11047 conftest$ac_exeext conftest.$ac_ext
11048LIBS=$ac_check_lib_save_LIBS
11049fi
fc6ffb29
AJ
11050{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
11051echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
2d6d4e96
HL
11052if test $ac_cv_lib_ncurses_waddch = yes; then
11053
11054cat >>confdefs.h <<\_ACEOF
11055#define HAVE_LIBNCURSES 1
11056_ACEOF
11057
11058 CURSESLIBS="-lncurses"
11059fi
11060
11061 elif test "$ac_cv_header_curses_h" = "yes"
11062 then
fc6ffb29
AJ
11063 { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
11064echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
2d6d4e96
HL
11065if test "${ac_cv_lib_curses_waddch+set}" = set; then
11066 echo $ECHO_N "(cached) $ECHO_C" >&6
11067else
11068 ac_check_lib_save_LIBS=$LIBS
11069LIBS="-lcurses $LIBS"
11070cat >conftest.$ac_ext <<_ACEOF
11071/* confdefs.h. */
11072_ACEOF
11073cat confdefs.h >>conftest.$ac_ext
11074cat >>conftest.$ac_ext <<_ACEOF
11075/* end confdefs.h. */
11076
fc6ffb29
AJ
11077/* Override any GCC internal prototype to avoid an error.
11078 Use char because int might match the return type of a GCC
11079 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
11080#ifdef __cplusplus
11081extern "C"
11082#endif
2d6d4e96
HL
11083char waddch ();
11084int
11085main ()
11086{
fc6ffb29 11087return waddch ();
2d6d4e96
HL
11088 ;
11089 return 0;
11090}
11091_ACEOF
11092rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11093if { (ac_try="$ac_link"
11094case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097esac
11098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
11100 ac_status=$?
11101 grep -v '^ *+' conftest.er1 >conftest.err
11102 rm -f conftest.er1
11103 cat conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } &&
0ebeb530
JW
11106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11107 { (case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11110esac
11111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_try") 2>&5
2d6d4e96
HL
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; } &&
11116 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
11117 { (case "(($ac_try" in
11118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119 *) ac_try_echo=$ac_try;;
11120esac
11121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11122 (eval "$ac_try") 2>&5
2d6d4e96
HL
11123 ac_status=$?
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); }; }; then
11126 ac_cv_lib_curses_waddch=yes
11127else
11128 echo "$as_me: failed program was:" >&5
11129sed 's/^/| /' conftest.$ac_ext >&5
11130
fc6ffb29 11131 ac_cv_lib_curses_waddch=no
2d6d4e96 11132fi
fc6ffb29 11133
0ebeb530 11134rm -f core conftest.err conftest.$ac_objext \
2d6d4e96
HL
11135 conftest$ac_exeext conftest.$ac_ext
11136LIBS=$ac_check_lib_save_LIBS
11137fi
fc6ffb29
AJ
11138{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
11139echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
73482144 11140if test $ac_cv_lib_curses_waddch = yes; then
f5818d2f 11141
daa2886c 11142cat >>confdefs.h <<\_ACEOF
73482144 11143#define HAVE_LIBCURSES 1
daa2886c 11144_ACEOF
e884f9ca 11145
73482144
AJ
11146 CURSESLIBS="-lcurses"
11147fi
11148
11149 fi
f5f37a85
AJ
11150 ac_save_LIBS="$LIBS"
11151 LIBS="$LIBS $CURSESLIBS"
11152
11153for ac_func in mousemask
11154do
11155as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11156{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11157echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11158if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11160else
11161 cat >conftest.$ac_ext <<_ACEOF
11162/* confdefs.h. */
11163_ACEOF
11164cat confdefs.h >>conftest.$ac_ext
11165cat >>conftest.$ac_ext <<_ACEOF
11166/* end confdefs.h. */
11167/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11169#define $ac_func innocuous_$ac_func
11170
11171/* System header to define __stub macros and hopefully few prototypes,
11172 which can conflict with char $ac_func (); below.
11173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11174 <limits.h> exists even on freestanding compilers. */
11175
11176#ifdef __STDC__
11177# include <limits.h>
11178#else
11179# include <assert.h>
11180#endif
11181
11182#undef $ac_func
11183
11184/* Override any GCC internal prototype to avoid an error.
11185 Use char because int might match the return type of a GCC
11186 builtin and then its argument prototype would still apply. */
11187#ifdef __cplusplus
11188extern "C"
11189#endif
11190char $ac_func ();
11191/* The GNU C library defines this for functions which it implements
11192 to always fail with ENOSYS. Some functions are actually named
11193 something starting with __ and the normal name is an alias. */
11194#if defined __stub_$ac_func || defined __stub___$ac_func
11195choke me
11196#endif
11197
11198int
11199main ()
11200{
11201return $ac_func ();
11202 ;
11203 return 0;
11204}
11205_ACEOF
11206rm -f conftest.$ac_objext conftest$ac_exeext
11207if { (ac_try="$ac_link"
11208case "(($ac_try" in
11209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210 *) ac_try_echo=$ac_try;;
11211esac
11212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11213 (eval "$ac_link") 2>conftest.er1
11214 ac_status=$?
11215 grep -v '^ *+' conftest.er1 >conftest.err
11216 rm -f conftest.er1
11217 cat conftest.err >&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } &&
11220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11221 { (case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11224esac
11225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_try") 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; } &&
11230 { ac_try='test -s conftest$ac_exeext'
11231 { (case "(($ac_try" in
11232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11234esac
11235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236 (eval "$ac_try") 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
11240 eval "$as_ac_var=yes"
11241else
11242 echo "$as_me: failed program was:" >&5
11243sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 eval "$as_ac_var=no"
11246fi
11247
11248rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11250fi
11251ac_res=`eval echo '${'$as_ac_var'}'`
11252 { echo "$as_me:$LINENO: result: $ac_res" >&5
11253echo "${ECHO_T}$ac_res" >&6; }
11254if test `eval echo '${'$as_ac_var'}'` = yes; then
11255 cat >>confdefs.h <<_ACEOF
11256#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11257_ACEOF
11258
11259fi
11260done
11261
11262 LIBS="$ac_save_LIBS"
73482144 11263fi
f5818d2f 11264
73482144
AJ
11265
11266# Extract the first word of "sane-config", so it can be a program name with args.
11267set dummy sane-config; ac_word=$2
fc6ffb29
AJ
11268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
73482144
AJ
11270if test "${ac_cv_prog_sane_devel+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272else
11273 if test -n "$sane_devel"; then
11274 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11275else
11276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277for as_dir in $PATH
24110288 11278do
73482144
AJ
11279 IFS=$as_save_IFS
11280 test -z "$as_dir" && as_dir=.
11281 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 11282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
73482144
AJ
11283 ac_cv_prog_sane_devel="sane-config"
11284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11285 break 2
11286 fi
11287done
11288done
fc6ffb29 11289IFS=$as_save_IFS
73482144
AJ
11290
11291 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11292fi
11293fi
11294sane_devel=$ac_cv_prog_sane_devel
11295if test -n "$sane_devel"; then
fc6ffb29
AJ
11296 { echo "$as_me:$LINENO: result: $sane_devel" >&5
11297echo "${ECHO_T}$sane_devel" >&6; }
73482144 11298else
fc6ffb29
AJ
11299 { echo "$as_me:$LINENO: result: no" >&5
11300echo "${ECHO_T}no" >&6; }
73482144
AJ
11301fi
11302
fc6ffb29 11303
82776020
AJ
11304SANELIBS=""
11305
11306SANEINCL=""
11307
11308if test "$sane_devel" != "no"
73482144 11309then
73482144
AJ
11310 SANELIBS="`$sane_devel --libs`"
11311 SANEINCL="`$sane_devel --cflags`"
11312 ac_save_CPPFLAGS="$CPPFLAGS"
11313 ac_save_LIBS="$LIBS"
11314 CPPFLAGS="$CPPFLAGS $SANEINCL"
11315 LIBS="$LIBS $SANELIBS"
11316 if test "${ac_cv_header_sane_sane_h+set}" = set; then
fc6ffb29
AJ
11317 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11318echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
73482144 11319if test "${ac_cv_header_sane_sane_h+set}" = set; then
f5818d2f 11320 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c 11321fi
fc6ffb29
AJ
11322{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11323echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
f5818d2f 11324else
daa2886c 11325 # Is the header compilable?
fc6ffb29
AJ
11326{ echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11327echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
daa2886c 11328cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
11329/* confdefs.h. */
11330_ACEOF
11331cat confdefs.h >>conftest.$ac_ext
11332cat >>conftest.$ac_ext <<_ACEOF
11333/* end confdefs.h. */
daa2886c 11334$ac_includes_default
73482144 11335#include <sane/sane.h>
daa2886c
AJ
11336_ACEOF
11337rm -f conftest.$ac_objext
0ebeb530
JW
11338if { (ac_try="$ac_compile"
11339case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11342esac
11343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_compile") 2>conftest.er1
daa2886c 11345 ac_status=$?
875927f6
AJ
11346 grep -v '^ *+' conftest.er1 >conftest.err
11347 rm -f conftest.er1
11348 cat conftest.err >&5
daa2886c
AJ
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } &&
0ebeb530
JW
11351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11352 { (case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11355esac
11356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_try") 2>&5
875927f6
AJ
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; } &&
11361 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
11362 { (case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11365esac
11366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_try") 2>&5
daa2886c
AJ
11368 ac_status=$?
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 ac_header_compiler=yes
11372else
11373 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11374sed 's/^/| /' conftest.$ac_ext >&5
11375
fc6ffb29 11376 ac_header_compiler=no
daa2886c 11377fi
fc6ffb29 11378
0ebeb530 11379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
11380{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11381echo "${ECHO_T}$ac_header_compiler" >&6; }
daa2886c
AJ
11382
11383# Is the header present?
fc6ffb29
AJ
11384{ echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
11385echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
daa2886c 11386cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
11387/* confdefs.h. */
11388_ACEOF
11389cat confdefs.h >>conftest.$ac_ext
11390cat >>conftest.$ac_ext <<_ACEOF
11391/* end confdefs.h. */
73482144 11392#include <sane/sane.h>
f5818d2f 11393_ACEOF
0ebeb530
JW
11394if { (ac_try="$ac_cpp conftest.$ac_ext"
11395case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11398esac
11399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 11401 ac_status=$?
11af04e3 11402 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
11403 rm -f conftest.er1
11404 cat conftest.err >&5
daa2886c 11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11406 (exit $ac_status); } >/dev/null; then
11407 if test -s conftest.err; then
11408 ac_cpp_err=$ac_c_preproc_warn_flag
875927f6 11409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f5818d2f
AJ
11410 else
11411 ac_cpp_err=
11412 fi
11413else
11414 ac_cpp_err=yes
11415fi
11416if test -z "$ac_cpp_err"; then
daa2886c 11417 ac_header_preproc=yes
f5818d2f
AJ
11418else
11419 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11420sed 's/^/| /' conftest.$ac_ext >&5
11421
daa2886c 11422 ac_header_preproc=no
24110288 11423fi
fc6ffb29 11424
f5818d2f 11425rm -f conftest.err conftest.$ac_ext
fc6ffb29
AJ
11426{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11427echo "${ECHO_T}$ac_header_preproc" >&6; }
daa2886c
AJ
11428
11429# So? What about this header?
875927f6
AJ
11430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11431 yes:no: )
73482144
AJ
11432 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
11433echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
11435echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
875927f6 11436 ac_header_preproc=yes
e24bcc77 11437 ;;
875927f6 11438 no:yes:* )
73482144
AJ
11439 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
11440echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
11442echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
11444echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
11446echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
11448echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
11450echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
fc6ffb29 11451 ( cat <<\_ASBOX
e24bcc77 11452## ------------------------------------ ##
875927f6 11453## Report this to wine-devel@winehq.org ##
e24bcc77
AJ
11454## ------------------------------------ ##
11455_ASBOX
fc6ffb29 11456 ) | sed "s/^/$as_me: WARNING: /" >&2
e24bcc77 11457 ;;
daa2886c 11458esac
fc6ffb29
AJ
11459{ echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11460echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
73482144 11461if test "${ac_cv_header_sane_sane_h+set}" = set; then
daa2886c
AJ
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463else
73482144 11464 ac_cv_header_sane_sane_h=$ac_header_preproc
24110288 11465fi
fc6ffb29
AJ
11466{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11467echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
daa2886c
AJ
11468
11469fi
73482144 11470if test $ac_cv_header_sane_sane_h = yes; then
fc6ffb29
AJ
11471 { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
11472echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
73482144 11473if test "${ac_cv_lib_sane_sane_open+set}" = set; then
f5818d2f 11474 echo $ECHO_N "(cached) $ECHO_C" >&6
e884f9ca 11475else
f5818d2f 11476 ac_check_lib_save_LIBS=$LIBS
73482144 11477LIBS="-lsane $LIBS"
f5818d2f 11478cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
11479/* confdefs.h. */
11480_ACEOF
11481cat confdefs.h >>conftest.$ac_ext
11482cat >>conftest.$ac_ext <<_ACEOF
11483/* end confdefs.h. */
f5818d2f 11484
fc6ffb29
AJ
11485/* Override any GCC internal prototype to avoid an error.
11486 Use char because int might match the return type of a GCC
11487 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
11488#ifdef __cplusplus
11489extern "C"
11490#endif
73482144 11491char sane_open ();
f5818d2f
AJ
11492int
11493main ()
11494{
fc6ffb29 11495return sane_open ();
f5818d2f
AJ
11496 ;
11497 return 0;
11498}
11499_ACEOF
11500rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11501if { (ac_try="$ac_link"
11502case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11505esac
11506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_link") 2>conftest.er1
f5818d2f 11508 ac_status=$?
875927f6
AJ
11509 grep -v '^ *+' conftest.er1 >conftest.err
11510 rm -f conftest.er1
11511 cat conftest.err >&5
daa2886c 11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11513 (exit $ac_status); } &&
0ebeb530
JW
11514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11515 { (case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11518esac
11519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_try") 2>&5
875927f6
AJ
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
11525 { (case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11528esac
11529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_try") 2>&5
f5818d2f 11531 ac_status=$?
daa2886c 11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11533 (exit $ac_status); }; }; then
73482144 11534 ac_cv_lib_sane_sane_open=yes
f5818d2f
AJ
11535else
11536 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11537sed 's/^/| /' conftest.$ac_ext >&5
11538
fc6ffb29 11539 ac_cv_lib_sane_sane_open=no
f5818d2f 11540fi
fc6ffb29 11541
0ebeb530 11542rm -f core conftest.err conftest.$ac_objext \
875927f6 11543 conftest$ac_exeext conftest.$ac_ext
f5818d2f
AJ
11544LIBS=$ac_check_lib_save_LIBS
11545fi
fc6ffb29
AJ
11546{ echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
11547echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
73482144 11548if test $ac_cv_lib_sane_sane_open = yes; then
f5818d2f 11549
daa2886c 11550cat >>confdefs.h <<\_ACEOF
73482144 11551#define HAVE_SANE 1
daa2886c 11552_ACEOF
e884f9ca 11553
73482144
AJ
11554else
11555 SANELIBS=""
11556 SANEINCL=""
638f169b 11557fi
48957684 11558
73482144
AJ
11559else
11560 SANELIBS=""
11561 SANEINCL=""
48957684 11562fi
daa2886c 11563
f544507b 11564
73482144
AJ
11565 LIBS="$ac_save_LIBS"
11566 CPPFLAGS="$ac_save_CPPFLAGS"
e884f9ca
JP
11567fi
11568
40e7ef3a
MM
11569# Extract the first word of "gphoto2-config", so it can be a program name with args.
11570set dummy gphoto2-config; ac_word=$2
fc6ffb29
AJ
11571{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40e7ef3a
MM
11573if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575else
11576 if test -n "$gphoto2_devel"; then
11577 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
11578else
11579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580for as_dir in $PATH
11581do
11582 IFS=$as_save_IFS
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 11585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
40e7ef3a
MM
11586 ac_cv_prog_gphoto2_devel="gphoto2-config"
11587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 break 2
11589 fi
11590done
11591done
fc6ffb29 11592IFS=$as_save_IFS
40e7ef3a
MM
11593
11594 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
11595fi
11596fi
11597gphoto2_devel=$ac_cv_prog_gphoto2_devel
11598if test -n "$gphoto2_devel"; then
fc6ffb29
AJ
11599 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
11600echo "${ECHO_T}$gphoto2_devel" >&6; }
40e7ef3a 11601else
fc6ffb29
AJ
11602 { echo "$as_me:$LINENO: result: no" >&5
11603echo "${ECHO_T}no" >&6; }
40e7ef3a
MM
11604fi
11605
fc6ffb29 11606
40e7ef3a
MM
11607# Extract the first word of "gphoto2-port-config", so it can be a program name with args.
11608set dummy gphoto2-port-config; ac_word=$2
fc6ffb29
AJ
11609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
40e7ef3a
MM
11611if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11613else
11614 if test -n "$gphoto2port_devel"; then
11615 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
11616else
11617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618for as_dir in $PATH
11619do
11620 IFS=$as_save_IFS
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 11623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
40e7ef3a
MM
11624 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
11625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11626 break 2
11627 fi
11628done
11629done
fc6ffb29 11630IFS=$as_save_IFS
40e7ef3a
MM
11631
11632 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
11633fi
11634fi
11635gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
11636if test -n "$gphoto2port_devel"; then
fc6ffb29
AJ
11637 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
11638echo "${ECHO_T}$gphoto2port_devel" >&6; }
40e7ef3a 11639else
fc6ffb29
AJ
11640 { echo "$as_me:$LINENO: result: no" >&5
11641echo "${ECHO_T}no" >&6; }
40e7ef3a
MM
11642fi
11643
fc6ffb29 11644
40e7ef3a
MM
11645GPHOTO2LIBS=""
11646
11647GPHOTO2INCL=""
11648
11649if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
11650then
11651 GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
11652 GPHOTO2LIBS=""
11653 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
11654 do
11655 case "$i" in
11656 -L/usr/lib|-L/usr/lib64) ;;
11657 -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
11658 esac
11659 done
11660 ac_save_CPPFLAGS="$CPPFLAGS"
11661 ac_save_LIBS="$LIBS"
11662 CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
11663 LIBS="$LIBS $GPHOTO2LIBS"
11664 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
fc6ffb29
AJ
11665 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11666echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
40e7ef3a
MM
11667if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11669fi
fc6ffb29
AJ
11670{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11671echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
40e7ef3a
MM
11672else
11673 # Is the header compilable?
fc6ffb29
AJ
11674{ echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
11675echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
40e7ef3a
MM
11676cat >conftest.$ac_ext <<_ACEOF
11677/* confdefs.h. */
11678_ACEOF
11679cat confdefs.h >>conftest.$ac_ext
11680cat >>conftest.$ac_ext <<_ACEOF
11681/* end confdefs.h. */
11682$ac_includes_default
11683#include <gphoto2-camera.h>
11684_ACEOF
11685rm -f conftest.$ac_objext
0ebeb530
JW
11686if { (ac_try="$ac_compile"
11687case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11690esac
11691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_compile") 2>conftest.er1
40e7ef3a
MM
11693 ac_status=$?
11694 grep -v '^ *+' conftest.er1 >conftest.err
11695 rm -f conftest.er1
11696 cat conftest.err >&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } &&
0ebeb530
JW
11699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11700 { (case "(($ac_try" in
11701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11703esac
11704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_try") 2>&5
40e7ef3a
MM
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; } &&
11709 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
11710 { (case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11713esac
11714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_try") 2>&5
40e7ef3a
MM
11716 ac_status=$?
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); }; }; then
11719 ac_header_compiler=yes
11720else
11721 echo "$as_me: failed program was:" >&5
11722sed 's/^/| /' conftest.$ac_ext >&5
11723
fc6ffb29 11724 ac_header_compiler=no
40e7ef3a 11725fi
fc6ffb29 11726
0ebeb530 11727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29
AJ
11728{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11729echo "${ECHO_T}$ac_header_compiler" >&6; }
40e7ef3a
MM
11730
11731# Is the header present?
fc6ffb29
AJ
11732{ echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
11733echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
40e7ef3a
MM
11734cat >conftest.$ac_ext <<_ACEOF
11735/* confdefs.h. */
11736_ACEOF
11737cat confdefs.h >>conftest.$ac_ext
11738cat >>conftest.$ac_ext <<_ACEOF
11739/* end confdefs.h. */
11740#include <gphoto2-camera.h>
11741_ACEOF
0ebeb530
JW
11742if { (ac_try="$ac_cpp conftest.$ac_ext"
11743case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11746esac
11747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40e7ef3a
MM
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } >/dev/null; then
11755 if test -s conftest.err; then
11756 ac_cpp_err=$ac_c_preproc_warn_flag
11757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11758 else
11759 ac_cpp_err=
11760 fi
11761else
11762 ac_cpp_err=yes
11763fi
11764if test -z "$ac_cpp_err"; then
11765 ac_header_preproc=yes
11766else
11767 echo "$as_me: failed program was:" >&5
11768sed 's/^/| /' conftest.$ac_ext >&5
11769
11770 ac_header_preproc=no
11771fi
fc6ffb29 11772
40e7ef3a 11773rm -f conftest.err conftest.$ac_ext
fc6ffb29
AJ
11774{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11775echo "${ECHO_T}$ac_header_preproc" >&6; }
40e7ef3a
MM
11776
11777# So? What about this header?
11778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11779 yes:no: )
11780 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
11781echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11782 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
11783echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
11784 ac_header_preproc=yes
11785 ;;
11786 no:yes:* )
11787 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
11788echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
11789 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
11790echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
11791 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
11792echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
11793 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
11794echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
11795 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
11796echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
11797 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
11798echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
fc6ffb29 11799 ( cat <<\_ASBOX
40e7ef3a
MM
11800## ------------------------------------ ##
11801## Report this to wine-devel@winehq.org ##
11802## ------------------------------------ ##
11803_ASBOX
fc6ffb29 11804 ) | sed "s/^/$as_me: WARNING: /" >&2
40e7ef3a
MM
11805 ;;
11806esac
fc6ffb29
AJ
11807{ echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11808echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
40e7ef3a
MM
11809if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11811else
11812 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
11813fi
fc6ffb29
AJ
11814{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11815echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
40e7ef3a
MM
11816
11817fi
11818if test $ac_cv_header_gphoto2_camera_h = yes; then
fc6ffb29
AJ
11819 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
11820echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
40e7ef3a
MM
11821if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11823else
11824 ac_check_lib_save_LIBS=$LIBS
11825LIBS="-lgphoto2 $LIBS"
11826cat >conftest.$ac_ext <<_ACEOF
11827/* confdefs.h. */
11828_ACEOF
11829cat confdefs.h >>conftest.$ac_ext
11830cat >>conftest.$ac_ext <<_ACEOF
11831/* end confdefs.h. */
11832
fc6ffb29
AJ
11833/* Override any GCC internal prototype to avoid an error.
11834 Use char because int might match the return type of a GCC
11835 builtin and then its argument prototype would still apply. */
40e7ef3a
MM
11836#ifdef __cplusplus
11837extern "C"
11838#endif
40e7ef3a
MM
11839char gp_camera_new ();
11840int
11841main ()
11842{
fc6ffb29 11843return gp_camera_new ();
40e7ef3a
MM
11844 ;
11845 return 0;
11846}
11847_ACEOF
11848rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11849if { (ac_try="$ac_link"
11850case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11853esac
11854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_link") 2>conftest.er1
40e7ef3a
MM
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
0ebeb530
JW
11862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11863 { (case "(($ac_try" in
11864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865 *) ac_try_echo=$ac_try;;
11866esac
11867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868 (eval "$ac_try") 2>&5
40e7ef3a
MM
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; } &&
11872 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
11873 { (case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11876esac
11877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878 (eval "$ac_try") 2>&5
40e7ef3a
MM
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 ac_cv_lib_gphoto2_gp_camera_new=yes
11883else
11884 echo "$as_me: failed program was:" >&5
11885sed 's/^/| /' conftest.$ac_ext >&5
11886
fc6ffb29 11887 ac_cv_lib_gphoto2_gp_camera_new=no
40e7ef3a 11888fi
fc6ffb29 11889
0ebeb530 11890rm -f core conftest.err conftest.$ac_objext \
40e7ef3a
MM
11891 conftest$ac_exeext conftest.$ac_ext
11892LIBS=$ac_check_lib_save_LIBS
11893fi
fc6ffb29
AJ
11894{ echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11895echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
40e7ef3a
MM
11896if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
11897
11898cat >>confdefs.h <<\_ACEOF
11899#define HAVE_GPHOTO2 1
11900_ACEOF
11901
11902else
11903 GPHOTO2LIBS=""
11904 GPHOTO2INCL=""
11905fi
11906
11907else
11908 GPHOTO2LIBS=""
11909 GPHOTO2INCL=""
11910fi
11911
11912
11913 LIBS="$ac_save_LIBS"
11914 CPPFLAGS="$ac_save_CPPFLAGS"
11915fi
11916
73482144 11917if test "$ac_cv_header_unicode_ubidi_h" = "yes"
6b0720f5 11918then
73482144 11919 saved_libs="$LIBS"
ee112fc7
SB
11920 for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
11921 do
11922 TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
11923 TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
11924 { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
11925echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
11926 LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
11927 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
11928/* confdefs.h. */
11929_ACEOF
11930cat confdefs.h >>conftest.$ac_ext
11931cat >>conftest.$ac_ext <<_ACEOF
11932/* end confdefs.h. */
73482144
AJ
11933#include <unicode/ubidi.h>
11934int
11935main ()
11936{
11937ubidi_open()
11938 ;
11939 return 0;
11940}
daa2886c 11941_ACEOF
73482144 11942rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
11943if { (ac_try="$ac_link"
11944case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11947esac
11948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_link") 2>conftest.er1
daa2886c 11950 ac_status=$?
875927f6
AJ
11951 grep -v '^ *+' conftest.er1 >conftest.err
11952 rm -f conftest.er1
11953 cat conftest.err >&5
daa2886c
AJ
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
0ebeb530
JW
11956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11957 { (case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960esac
11961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_try") 2>&5
875927f6
AJ
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
73482144 11966 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
11967 { (case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11970esac
11971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_try") 2>&5
daa2886c
AJ
11973 ac_status=$?
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
e24bcc77 11976
73482144
AJ
11977cat >>confdefs.h <<\_ACEOF
11978#define HAVE_ICU 1
6b0720f5 11979_ACEOF
73482144 11980
ee112fc7 11981 ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
73482144 11982
ee112fc7 11983 { echo "$as_me:$LINENO: result: yes" >&5
fc6ffb29 11984echo "${ECHO_T}yes" >&6; }
6b0720f5
SQH
11985else
11986 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11987sed 's/^/| /' conftest.$ac_ext >&5
11988
fc6ffb29
AJ
11989 { echo "$as_me:$LINENO: result: no" >&5
11990echo "${ECHO_T}no" >&6; }
6b0720f5 11991fi
fc6ffb29 11992
0ebeb530 11993rm -f core conftest.err conftest.$ac_objext \
73482144 11994 conftest$ac_exeext conftest.$ac_ext
ee112fc7 11995 done
73482144 11996 LIBS="$saved_libs"
6b0720f5 11997fi
daa2886c 11998
2d6d4e96 11999RESOLVLIBS=""
73482144 12000
2d6d4e96 12001if test "$ac_cv_header_resolv_h" = "yes"
73482144 12002then
fc6ffb29
AJ
12003 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
12004echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
2d6d4e96 12005if test "${ac_cv_lib_resolv_res_query+set}" = set; then
6b0720f5
SQH
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12007else
12008 ac_check_lib_save_LIBS=$LIBS
2d6d4e96 12009LIBS="-lresolv $LIBS"
6b0720f5 12010cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
12011/* confdefs.h. */
12012_ACEOF
12013cat confdefs.h >>conftest.$ac_ext
12014cat >>conftest.$ac_ext <<_ACEOF
12015/* end confdefs.h. */
6b0720f5 12016
fc6ffb29
AJ
12017/* Override any GCC internal prototype to avoid an error.
12018 Use char because int might match the return type of a GCC
12019 builtin and then its argument prototype would still apply. */
6b0720f5
SQH
12020#ifdef __cplusplus
12021extern "C"
12022#endif
2d6d4e96 12023char res_query ();
6b0720f5
SQH
12024int
12025main ()
12026{
fc6ffb29 12027return res_query ();
6b0720f5
SQH
12028 ;
12029 return 0;
12030}
12031_ACEOF
12032rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
12033if { (ac_try="$ac_link"
12034case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12037esac
12038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_link") 2>conftest.er1
6b0720f5 12040 ac_status=$?
875927f6
AJ
12041 grep -v '^ *+' conftest.er1 >conftest.err
12042 rm -f conftest.er1
12043 cat conftest.err >&5
daa2886c 12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6b0720f5 12045 (exit $ac_status); } &&
0ebeb530
JW
12046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12047 { (case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12050esac
12051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_try") 2>&5
875927f6
AJ
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; } &&
12056 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
12057 { (case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12060esac
12061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_try") 2>&5
6b0720f5 12063 ac_status=$?
daa2886c 12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6b0720f5 12065 (exit $ac_status); }; }; then
2d6d4e96 12066 ac_cv_lib_resolv_res_query=yes
6b0720f5
SQH
12067else
12068 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12069sed 's/^/| /' conftest.$ac_ext >&5
12070
fc6ffb29 12071 ac_cv_lib_resolv_res_query=no
6b0720f5 12072fi
fc6ffb29 12073
0ebeb530 12074rm -f core conftest.err conftest.$ac_objext \
875927f6 12075 conftest$ac_exeext conftest.$ac_ext
6b0720f5
SQH
12076LIBS=$ac_check_lib_save_LIBS
12077fi
fc6ffb29
AJ
12078{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12079echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
2d6d4e96 12080if test $ac_cv_lib_resolv_res_query = yes; then
6b0720f5 12081
daa2886c 12082cat >>confdefs.h <<\_ACEOF
2d6d4e96 12083#define HAVE_RESOLV 1
daa2886c 12084_ACEOF
6b0720f5 12085
2d6d4e96 12086 RESOLVLIBS="-lresolv"
6b0720f5
SQH
12087fi
12088
6b0720f5
SQH
12089fi
12090
2d6d4e96 12091LCMSLIBS=""
daa2886c 12092
2d6d4e96 12093if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
73482144 12094then
fc6ffb29
AJ
12095 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12096echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
2d6d4e96 12097if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
73482144 12098 echo $ECHO_N "(cached) $ECHO_C" >&6
4ee8290b 12099else
73482144 12100 ac_check_lib_save_LIBS=$LIBS
2d6d4e96
HL
12101LIBS="-llcms $LIBS"
12102cat >conftest.$ac_ext <<_ACEOF
12103/* confdefs.h. */
12104_ACEOF
12105cat confdefs.h >>conftest.$ac_ext
12106cat >>conftest.$ac_ext <<_ACEOF
12107/* end confdefs.h. */
12108
fc6ffb29
AJ
12109/* Override any GCC internal prototype to avoid an error.
12110 Use char because int might match the return type of a GCC
12111 builtin and then its argument prototype would still apply. */
2d6d4e96
HL
12112#ifdef __cplusplus
12113extern "C"
12114#endif
2d6d4e96
HL
12115char cmsOpenProfileFromFile ();
12116int
12117main ()
12118{
fc6ffb29 12119return cmsOpenProfileFromFile ();
2d6d4e96
HL
12120 ;
12121 return 0;
12122}
12123_ACEOF
12124rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
12125if { (ac_try="$ac_link"
12126case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12129esac
12130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_link") 2>conftest.er1
2d6d4e96
HL
12132 ac_status=$?
12133 grep -v '^ *+' conftest.er1 >conftest.err
12134 rm -f conftest.er1
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
0ebeb530
JW
12138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12142esac
12143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
2d6d4e96
HL
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
12149 { (case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12152esac
12153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_try") 2>&5
2d6d4e96
HL
12155 ac_status=$?
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; }; then
12158 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12159else
12160 echo "$as_me: failed program was:" >&5
12161sed 's/^/| /' conftest.$ac_ext >&5
12162
fc6ffb29 12163 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
2d6d4e96 12164fi
fc6ffb29 12165
0ebeb530 12166rm -f core conftest.err conftest.$ac_objext \
2d6d4e96
HL
12167 conftest$ac_exeext conftest.$ac_ext
12168LIBS=$ac_check_lib_save_LIBS
12169fi
fc6ffb29
AJ
12170{ echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12171echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
2d6d4e96
HL
12172if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12173
12174cat >>confdefs.h <<\_ACEOF
12175#define HAVE_LCMS 1
12176_ACEOF
12177
12178 LCMSLIBS="-llcms"
12179fi
12180
12181fi
12182
12183LDAPLIBS=""
12184
12185if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12186then
fc6ffb29
AJ
12187 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12188echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
2d6d4e96
HL
12189if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191else
12192 ac_check_lib_save_LIBS=$LIBS
12193LIBS="-lldap_r $LIBPTHREAD $LIBS"
4ee8290b 12194cat >conftest.$ac_ext <<_ACEOF
4ee8290b
AJ
12195/* confdefs.h. */
12196_ACEOF
12197cat confdefs.h >>conftest.$ac_ext
12198cat >>conftest.$ac_ext <<_ACEOF
12199/* end confdefs.h. */
4ee8290b 12200
fc6ffb29
AJ
12201/* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
73482144
AJ
12204#ifdef __cplusplus
12205extern "C"
12206#endif
20d0e80e 12207char ldap_initialize ();
4ee8290b
AJ
12208int
12209main ()
12210{
fc6ffb29 12211return ldap_initialize ();
4ee8290b
AJ
12212 ;
12213 return 0;
12214}
12215_ACEOF
12216rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
12217if { (ac_try="$ac_link"
12218case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221esac
12222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_link") 2>conftest.er1
4ee8290b 12224 ac_status=$?
875927f6
AJ
12225 grep -v '^ *+' conftest.er1 >conftest.err
12226 rm -f conftest.er1
12227 cat conftest.err >&5
4ee8290b
AJ
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
0ebeb530
JW
12230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12231 { (case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234esac
12235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_try") 2>&5
875927f6
AJ
12237 ac_status=$?
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; } &&
12240 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
12241 { (case "(($ac_try" in
12242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243 *) ac_try_echo=$ac_try;;
12244esac
12245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246 (eval "$ac_try") 2>&5
4ee8290b
AJ
12247 ac_status=$?
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; }; then
ecfc2c15 12250 ac_cv_lib_ldap_r_ldap_initialize=yes
4ee8290b
AJ
12251else
12252 echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
fc6ffb29 12255 ac_cv_lib_ldap_r_ldap_initialize=no
4ee8290b 12256fi
fc6ffb29 12257
0ebeb530 12258rm -f core conftest.err conftest.$ac_objext \
875927f6 12259 conftest$ac_exeext conftest.$ac_ext
73482144 12260LIBS=$ac_check_lib_save_LIBS
4ee8290b 12261fi
fc6ffb29
AJ
12262{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12263echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
ecfc2c15 12264if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
fc6ffb29
AJ
12265 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12266echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
73482144 12267if test "${ac_cv_lib_lber_ber_init+set}" = set; then
d3447022
HL
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12269else
12270 ac_check_lib_save_LIBS=$LIBS
ecfc2c15 12271LIBS="-llber $LIBPTHREAD $LIBS"
d3447022
HL
12272cat >conftest.$ac_ext <<_ACEOF
12273/* confdefs.h. */
12274_ACEOF
12275cat confdefs.h >>conftest.$ac_ext
12276cat >>conftest.$ac_ext <<_ACEOF
12277/* end confdefs.h. */
12278
fc6ffb29
AJ
12279/* Override any GCC internal prototype to avoid an error.
12280 Use char because int might match the return type of a GCC
12281 builtin and then its argument prototype would still apply. */
d3447022
HL
12282#ifdef __cplusplus
12283extern "C"
12284#endif
73482144 12285char ber_init ();
d3447022
HL
12286int
12287main ()
12288{
fc6ffb29 12289return ber_init ();
d3447022
HL
12290 ;
12291 return 0;
12292}
12293_ACEOF
12294rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
12295if { (ac_try="$ac_link"
12296case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12299esac
12300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301 (eval "$ac_link") 2>conftest.er1
d3447022
HL
12302 ac_status=$?
12303 grep -v '^ *+' conftest.er1 >conftest.err
12304 rm -f conftest.er1
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } &&
0ebeb530
JW
12308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12309 { (case "(($ac_try" in
12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311 *) ac_try_echo=$ac_try;;
12312esac
12313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314 (eval "$ac_try") 2>&5
d3447022
HL
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; } &&
12318 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
12319 { (case "(($ac_try" in
12320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12322esac
12323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_try") 2>&5
d3447022
HL
12325 ac_status=$?
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; }; then
73482144 12328 ac_cv_lib_lber_ber_init=yes
d3447022
HL
12329else
12330 echo "$as_me: failed program was:" >&5
12331sed 's/^/| /' conftest.$ac_ext >&5
12332
fc6ffb29 12333 ac_cv_lib_lber_ber_init=no
d3447022 12334fi
fc6ffb29 12335
0ebeb530 12336rm -f core conftest.err conftest.$ac_objext \
d3447022
HL
12337 conftest$ac_exeext conftest.$ac_ext
12338LIBS=$ac_check_lib_save_LIBS
12339fi
fc6ffb29
AJ
12340{ echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12341echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
73482144 12342if test $ac_cv_lib_lber_ber_init = yes; then
d3447022
HL
12343
12344cat >>confdefs.h <<\_ACEOF
73482144 12345#define HAVE_LDAP 1
d3447022
HL
12346_ACEOF
12347
ecfc2c15 12348 LDAPLIBS="-lldap_r -llber"
d3447022
HL
12349fi
12350
12351fi
12352
2d1a6274
AJ
12353 ac_wine_check_funcs_save_LIBS="$LIBS"
12354LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
b2c62c94
HL
12355
12356
12357
12358
12359for ac_func in \
12360 ldap_count_references \
12361 ldap_first_reference \
12362 ldap_next_reference \
12363 ldap_parse_reference
12364do
12365as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
fc6ffb29
AJ
12366{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12367echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12368if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
b2c62c94
HL
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12370else
12371 cat >conftest.$ac_ext <<_ACEOF
12372/* confdefs.h. */
12373_ACEOF
12374cat confdefs.h >>conftest.$ac_ext
12375cat >>conftest.$ac_ext <<_ACEOF
12376/* end confdefs.h. */
12377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12379#define $ac_func innocuous_$ac_func
12380
12381/* System header to define __stub macros and hopefully few prototypes,
12382 which can conflict with char $ac_func (); below.
12383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12384 <limits.h> exists even on freestanding compilers. */
12385
12386#ifdef __STDC__
12387# include <limits.h>
12388#else
12389# include <assert.h>
12390#endif
12391
12392#undef $ac_func
12393
fc6ffb29
AJ
12394/* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
b2c62c94
HL
12397#ifdef __cplusplus
12398extern "C"
b2c62c94 12399#endif
b2c62c94
HL
12400char $ac_func ();
12401/* The GNU C library defines this for functions which it implements
12402 to always fail with ENOSYS. Some functions are actually named
12403 something starting with __ and the normal name is an alias. */
fc6ffb29 12404#if defined __stub_$ac_func || defined __stub___$ac_func
b2c62c94 12405choke me
b2c62c94
HL
12406#endif
12407
12408int
12409main ()
12410{
fc6ffb29 12411return $ac_func ();
b2c62c94
HL
12412 ;
12413 return 0;
12414}
12415_ACEOF
12416rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
12417if { (ac_try="$ac_link"
12418case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12421esac
12422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_link") 2>conftest.er1
b2c62c94
HL
12424 ac_status=$?
12425 grep -v '^ *+' conftest.er1 >conftest.err
12426 rm -f conftest.er1
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } &&
0ebeb530
JW
12430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12431 { (case "(($ac_try" in
12432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12434esac
12435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436 (eval "$ac_try") 2>&5
b2c62c94
HL
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
12441 { (case "(($ac_try" in
12442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12443 *) ac_try_echo=$ac_try;;
12444esac
12445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12446 (eval "$ac_try") 2>&5
b2c62c94
HL
12447 ac_status=$?
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12450 eval "$as_ac_var=yes"
12451else
12452 echo "$as_me: failed program was:" >&5
12453sed 's/^/| /' conftest.$ac_ext >&5
12454
fc6ffb29 12455 eval "$as_ac_var=no"
b2c62c94 12456fi
fc6ffb29 12457
0ebeb530 12458rm -f core conftest.err conftest.$ac_objext \
b2c62c94
HL
12459 conftest$ac_exeext conftest.$ac_ext
12460fi
fc6ffb29
AJ
12461ac_res=`eval echo '${'$as_ac_var'}'`
12462 { echo "$as_me:$LINENO: result: $ac_res" >&5
12463echo "${ECHO_T}$ac_res" >&6; }
b2c62c94
HL
12464if test `eval echo '${'$as_ac_var'}'` = yes; then
12465 cat >>confdefs.h <<_ACEOF
12466#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12467_ACEOF
12468
12469fi
12470done
12471
2d1a6274 12472LIBS="$ac_wine_check_funcs_save_LIBS"
73482144 12473fi
ea524def 12474
82776020
AJ
12475FREETYPELIBS=""
12476
12477FREETYPEINCL=""
12478
d9ef88cd
MM
12479# Extract the first word of "freetype-config", so it can be a program name with args.
12480set dummy freetype-config; ac_word=$2
12481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12483if test "${ac_cv_prog_ft_devel+set}" = set; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12485else
12486 if test -n "$ft_devel"; then
12487 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
12488else
12489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12490for as_dir in $PATH
12491do
12492 IFS=$as_save_IFS
12493 test -z "$as_dir" && as_dir=.
12494 for ac_exec_ext in '' $ac_executable_extensions; do
12495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12496 ac_cv_prog_ft_devel="freetype-config"
12497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12498 break 2
12499 fi
12500done
12501done
12502IFS=$as_save_IFS
12503
12504 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
12505fi
12506fi
12507ft_devel=$ac_cv_prog_ft_devel
12508if test -n "$ft_devel"; then
12509 { echo "$as_me:$LINENO: result: $ft_devel" >&5
12510echo "${ECHO_T}$ft_devel" >&6; }
12511else
12512 { echo "$as_me:$LINENO: result: no" >&5
12513echo "${ECHO_T}no" >&6; }
12514fi
12515
12516
12517if test "$ft_devel" = "no"
12518then
12519 # Extract the first word of "freetype2-config", so it can be a program name with args.
12520set dummy freetype2-config; ac_word=$2
12521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12523if test "${ac_cv_prog_ft_devel2+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12525else
12526 if test -n "$ft_devel2"; then
12527 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
12528else
12529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530for as_dir in $PATH
12531do
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
12534 for ac_exec_ext in '' $ac_executable_extensions; do
12535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12536 ac_cv_prog_ft_devel2="freetype2-config"
12537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12538 break 2
12539 fi
12540done
12541done
12542IFS=$as_save_IFS
12543
12544 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
12545fi
12546fi
12547ft_devel2=$ac_cv_prog_ft_devel2
12548if test -n "$ft_devel2"; then
12549 { echo "$as_me:$LINENO: result: $ft_devel2" >&5
12550echo "${ECHO_T}$ft_devel2" >&6; }
12551else
12552 { echo "$as_me:$LINENO: result: no" >&5
12553echo "${ECHO_T}no" >&6; }
12554fi
12555
12556
12557 if test "$ft_devel2" = "freetype2-config"
12558 then
12559 ft_devel=$ft_devel2
12560 fi
12561fi
12562
12563if test "$ft_devel" = "no"
12564then
12565 wine_cv_msg_freetype=yes
12566else
12567 FREETYPELIBS=`$ft_devel --libs`
12568 FREETYPEINCL=`$ft_devel --cflags`
12569 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
fc6ffb29 12570echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
73482144 12571if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
ea524def
HL
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573else
12574 ac_check_lib_save_LIBS=$LIBS
d9ef88cd 12575LIBS="-lfreetype $FREETYPELIBS $LIBS"
ea524def
HL
12576cat >conftest.$ac_ext <<_ACEOF
12577/* confdefs.h. */
12578_ACEOF
12579cat confdefs.h >>conftest.$ac_ext
12580cat >>conftest.$ac_ext <<_ACEOF
12581/* end confdefs.h. */
12582
fc6ffb29
AJ
12583/* Override any GCC internal prototype to avoid an error.
12584 Use char because int might match the return type of a GCC
12585 builtin and then its argument prototype would still apply. */
ea524def
HL
12586#ifdef __cplusplus
12587extern "C"
12588#endif
73482144 12589char FT_Init_FreeType ();
ea524def
HL
12590int
12591main ()
12592{
fc6ffb29 12593return FT_Init_FreeType ();
ea524def
HL
12594 ;
12595 return 0;
12596}
12597_ACEOF
12598rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
12599if { (ac_try="$ac_link"
12600case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603esac
12604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_link") 2>conftest.er1
ea524def
HL
12606 ac_status=$?
12607 grep -v '^ *+' conftest.er1 >conftest.err
12608 rm -f conftest.er1
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
0ebeb530
JW
12612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12613 { (case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616esac
12617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_try") 2>&5
ea524def
HL
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; } &&
12622 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
12623 { (case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626esac
12627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_try") 2>&5
ea524def
HL
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
73482144 12632 ac_cv_lib_freetype_FT_Init_FreeType=yes
ea524def
HL
12633else
12634 echo "$as_me: failed program was:" >&5
12635sed 's/^/| /' conftest.$ac_ext >&5
12636
fc6ffb29 12637 ac_cv_lib_freetype_FT_Init_FreeType=no
ea524def 12638fi
fc6ffb29 12639
0ebeb530 12640rm -f core conftest.err conftest.$ac_objext \
ea524def
HL
12641 conftest$ac_exeext conftest.$ac_ext
12642LIBS=$ac_check_lib_save_LIBS
12643fi
fc6ffb29
AJ
12644{ echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
12645echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
73482144
AJ
12646if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
12647 ft_lib=yes
ea524def 12648else
73482144
AJ
12649 ft_lib=no
12650fi
563598d4 12651
d9ef88cd 12652 if test "$ft_lib" = "no"
563598d4 12653 then
563598d4 12654 wine_cv_msg_freetype=yes
d9ef88cd
MM
12655 FREETYPELIBS=""
12656 FREETYPEINCL=""
563598d4 12657 else
40432fef
IP
12658 ac_save_CPPFLAGS="$CPPFLAGS"
12659 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
f5818d2f 12660
daa2886c
AJ
12661
12662
12663
12664
12665
12666
12667
e617a9c5 12668
c2217183 12669
603d21cb 12670
e617a9c5
RK
12671for ac_header in ft2build.h \
12672 freetype/freetype.h \
40432fef
IP
12673 freetype/ftglyph.h \
12674 freetype/tttables.h \
12675 freetype/ftnames.h \
12676 freetype/ftsnames.h \
814654ef 12677 freetype/ttnameid.h \
4e2024e8 12678 freetype/ftoutln.h \
c2217183 12679 freetype/ftwinfnt.h \
603d21cb 12680 freetype/ftmodapi.h \
4e2024e8 12681 freetype/internal/sfnt.h
40432fef 12682do
f5818d2f 12683as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
fc6ffb29
AJ
12684{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f
AJ
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12688else
9c269172 12689 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
12690/* confdefs.h. */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
12694/* end confdefs.h. */
9c269172
RK
12695#if HAVE_FT2BUILD_H
12696 #include <ft2build.h>
12697 #endif
12698
daa2886c
AJ
12699#include <$ac_header>
12700_ACEOF
12701rm -f conftest.$ac_objext
0ebeb530
JW
12702if { (ac_try="$ac_compile"
12703case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12706esac
12707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_compile") 2>conftest.er1
daa2886c 12709 ac_status=$?
875927f6
AJ
12710 grep -v '^ *+' conftest.er1 >conftest.err
12711 rm -f conftest.er1
12712 cat conftest.err >&5
daa2886c
AJ
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } &&
0ebeb530
JW
12715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12716 { (case "(($ac_try" in
12717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12718 *) ac_try_echo=$ac_try;;
12719esac
12720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12721 (eval "$ac_try") 2>&5
875927f6
AJ
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; } &&
12725 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
12726 { (case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12729esac
12730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_try") 2>&5
daa2886c
AJ
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; }; then
9c269172 12735 eval "$as_ac_Header=yes"
daa2886c
AJ
12736else
12737 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12738sed 's/^/| /' conftest.$ac_ext >&5
12739
fc6ffb29 12740 eval "$as_ac_Header=no"
daa2886c 12741fi
fc6ffb29 12742
0ebeb530 12743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40432fef 12744fi
fc6ffb29
AJ
12745ac_res=`eval echo '${'$as_ac_Header'}'`
12746 { echo "$as_me:$LINENO: result: $ac_res" >&5
12747echo "${ECHO_T}$ac_res" >&6; }
f5818d2f 12748if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 12749 cat >>confdefs.h <<_ACEOF
f5818d2f 12750#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 12751_ACEOF
f5818d2f 12752
40432fef 12753fi
daa2886c 12754
40432fef
IP
12755done
12756
f5818d2f 12757 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
12758/* confdefs.h. */
12759_ACEOF
12760cat confdefs.h >>conftest.$ac_ext
12761cat >>conftest.$ac_ext <<_ACEOF
12762/* end confdefs.h. */
18d7573c
AJ
12763#include <ft2build.h>
12764 #include <freetype/fttrigon.h>
f5818d2f 12765_ACEOF
0ebeb530
JW
12766if { (ac_try="$ac_cpp conftest.$ac_ext"
12767case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12770esac
12771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
f5818d2f 12773 ac_status=$?
11af04e3 12774 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
12775 rm -f conftest.er1
12776 cat conftest.err >&5
daa2886c 12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12778 (exit $ac_status); } >/dev/null; then
12779 if test -s conftest.err; then
12780 ac_cpp_err=$ac_c_preproc_warn_flag
875927f6 12781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f5818d2f
AJ
12782 else
12783 ac_cpp_err=
12784 fi
12785else
12786 ac_cpp_err=yes
12787fi
12788if test -z "$ac_cpp_err"; then
12789
daa2886c 12790cat >>confdefs.h <<\_ACEOF
18d7573c 12791#define HAVE_FREETYPE_FTTRIGON_H 1
daa2886c 12792_ACEOF
18d7573c 12793
c1d38132 12794 wine_cv_fttrigon=yes
18d7573c 12795else
f5818d2f 12796 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12797sed 's/^/| /' conftest.$ac_ext >&5
12798
c1d38132 12799 wine_cv_fttrigon=no
18d7573c 12800fi
fc6ffb29 12801
f5818d2f 12802rm -f conftest.err conftest.$ac_ext
fc6ffb29
AJ
12803 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
12804echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
d8a6c278
HD
12805if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12807else
12808 cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814#include <freetype/ftmodapi.h>
12815
fc6ffb29 12816typedef FT_TrueTypeEngineType ac__type_new_;
d8a6c278
HD
12817int
12818main ()
12819{
fc6ffb29 12820if ((ac__type_new_ *) 0)
d8a6c278 12821 return 0;
fc6ffb29 12822if (sizeof (ac__type_new_))
d8a6c278
HD
12823 return 0;
12824 ;
12825 return 0;
12826}
12827_ACEOF
12828rm -f conftest.$ac_objext
0ebeb530
JW
12829if { (ac_try="$ac_compile"
12830case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12833esac
12834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_compile") 2>conftest.er1
d8a6c278
HD
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
0ebeb530
JW
12842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12843 { (case "(($ac_try" in
12844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12845 *) ac_try_echo=$ac_try;;
12846esac
12847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12848 (eval "$ac_try") 2>&5
d8a6c278
HD
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
12853 { (case "(($ac_try" in
12854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12856esac
12857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_try") 2>&5
d8a6c278
HD
12859 ac_status=$?
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12862 ac_cv_type_FT_TrueTypeEngineType=yes
12863else
12864 echo "$as_me: failed program was:" >&5
12865sed 's/^/| /' conftest.$ac_ext >&5
12866
fc6ffb29 12867 ac_cv_type_FT_TrueTypeEngineType=no
d8a6c278 12868fi
fc6ffb29 12869
0ebeb530 12870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d8a6c278 12871fi
fc6ffb29
AJ
12872{ echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
12873echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
d8a6c278
HD
12874if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
12875
12876cat >>confdefs.h <<_ACEOF
12877#define HAVE_FT_TRUETYPEENGINETYPE 1
12878_ACEOF
12879
12880
12881fi
12882
35bca77f
HD
12883 ac_save_CFLAGS="$CFLAGS"
12884 CFLAGS="$CFLAGS $FREETYPELIBS"
12885
12886for ac_func in FT_Load_Sfnt_Table
12887do
12888as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
fc6ffb29
AJ
12889{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12890echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12891if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35bca77f
HD
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12893else
12894 cat >conftest.$ac_ext <<_ACEOF
12895/* confdefs.h. */
12896_ACEOF
12897cat confdefs.h >>conftest.$ac_ext
12898cat >>conftest.$ac_ext <<_ACEOF
12899/* end confdefs.h. */
12900/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12902#define $ac_func innocuous_$ac_func
12903
12904/* System header to define __stub macros and hopefully few prototypes,
12905 which can conflict with char $ac_func (); below.
12906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12907 <limits.h> exists even on freestanding compilers. */
12908
12909#ifdef __STDC__
12910# include <limits.h>
12911#else
12912# include <assert.h>
12913#endif
12914
12915#undef $ac_func
12916
fc6ffb29
AJ
12917/* Override any GCC internal prototype to avoid an error.
12918 Use char because int might match the return type of a GCC
12919 builtin and then its argument prototype would still apply. */
35bca77f
HD
12920#ifdef __cplusplus
12921extern "C"
35bca77f 12922#endif
35bca77f
HD
12923char $ac_func ();
12924/* The GNU C library defines this for functions which it implements
12925 to always fail with ENOSYS. Some functions are actually named
12926 something starting with __ and the normal name is an alias. */
fc6ffb29 12927#if defined __stub_$ac_func || defined __stub___$ac_func
35bca77f 12928choke me
35bca77f
HD
12929#endif
12930
12931int
12932main ()
12933{
fc6ffb29 12934return $ac_func ();
35bca77f
HD
12935 ;
12936 return 0;
12937}
12938_ACEOF
12939rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
12940if { (ac_try="$ac_link"
12941case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12944esac
12945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_link") 2>conftest.er1
35bca77f
HD
12947 ac_status=$?
12948 grep -v '^ *+' conftest.er1 >conftest.err
12949 rm -f conftest.er1
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
0ebeb530
JW
12953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12954 { (case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957esac
12958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_try") 2>&5
35bca77f
HD
12960 ac_status=$?
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); }; } &&
12963 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
12964 { (case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12967esac
12968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
35bca77f
HD
12970 ac_status=$?
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; }; then
12973 eval "$as_ac_var=yes"
12974else
12975 echo "$as_me: failed program was:" >&5
12976sed 's/^/| /' conftest.$ac_ext >&5
12977
fc6ffb29 12978 eval "$as_ac_var=no"
35bca77f 12979fi
fc6ffb29 12980
0ebeb530 12981rm -f core conftest.err conftest.$ac_objext \
35bca77f
HD
12982 conftest$ac_exeext conftest.$ac_ext
12983fi
fc6ffb29
AJ
12984ac_res=`eval echo '${'$as_ac_var'}'`
12985 { echo "$as_me:$LINENO: result: $ac_res" >&5
12986echo "${ECHO_T}$ac_res" >&6; }
35bca77f
HD
12987if test `eval echo '${'$as_ac_var'}'` = yes; then
12988 cat >>confdefs.h <<_ACEOF
12989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12990_ACEOF
12991
12992fi
12993done
12994
12995 CFLAGS="$ac_save_CFLAGS"
40432fef 12996 CPPFLAGS="$ac_save_CPPFLAGS"
c1d38132 12997 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9b1d3726 12998 then
f5818d2f 12999
daa2886c 13000cat >>confdefs.h <<\_ACEOF
9b1d3726 13001#define HAVE_FREETYPE 1
daa2886c 13002_ACEOF
9b1d3726
HD
13003
13004 wine_cv_msg_freetype=no
13005 else
00acb5f7 13006 FREETYPELIBS=""
9b1d3726
HD
13007 FREETYPEINCL=""
13008 wine_cv_msg_freetype=yes
13009 fi
563598d4
IP
13010 fi
13011fi
13012
00acb5f7
HD
13013if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
13014then
13015 FONTSSUBDIRS="fonts"
13016
13017fi
13018
fc6ffb29
AJ
13019{ echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
13020echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
f5818d2f
AJ
13021if test "${ac_cv_c_ppdev+set}" = set; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
6509fa93 13023else
f5818d2f 13024 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
13025/* confdefs.h. */
13026_ACEOF
13027cat confdefs.h >>conftest.$ac_ext
13028cat >>conftest.$ac_ext <<_ACEOF
13029/* end confdefs.h. */
6509fa93 13030#include <linux/ppdev.h>
f5818d2f
AJ
13031int
13032main ()
13033{
6509fa93 13034ioctl (1,PPCLAIM,0)
f5818d2f
AJ
13035 ;
13036 return 0;
13037}
13038_ACEOF
13039rm -f conftest.$ac_objext
0ebeb530
JW
13040if { (ac_try="$ac_compile"
13041case "(($ac_try" in
13042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043 *) ac_try_echo=$ac_try;;
13044esac
13045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046 (eval "$ac_compile") 2>conftest.er1
f5818d2f 13047 ac_status=$?
875927f6
AJ
13048 grep -v '^ *+' conftest.er1 >conftest.err
13049 rm -f conftest.er1
13050 cat conftest.err >&5
daa2886c 13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 13052 (exit $ac_status); } &&
0ebeb530
JW
13053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13054 { (case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13057esac
13058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_try") 2>&5
875927f6
AJ
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; } &&
13063 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
13064 { (case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13067esac
13068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_try") 2>&5
f5818d2f 13070 ac_status=$?
daa2886c 13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 13072 (exit $ac_status); }; }; then
6509fa93
UB
13073 ac_cv_c_ppdev="yes"
13074else
f5818d2f 13075 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13076sed 's/^/| /' conftest.$ac_ext >&5
13077
fc6ffb29 13078 ac_cv_c_ppdev="no"
6509fa93 13079fi
fc6ffb29 13080
0ebeb530 13081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6509fa93 13082
f5818d2f 13083fi
fc6ffb29
AJ
13084{ echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13085echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
6509fa93
UB
13086if test "$ac_cv_c_ppdev" = "yes"
13087then
f5818d2f 13088
daa2886c 13089cat >>confdefs.h <<\_ACEOF
6509fa93 13090#define HAVE_PPDEV 1
daa2886c 13091_ACEOF
6509fa93
UB
13092
13093fi
13094
fc6ffb29
AJ
13095{ echo "$as_me:$LINENO: checking for va_copy" >&5
13096echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
5ee517ac
MM
13097if test "${ac_cv_c_va_copy+set}" = set; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13099else
13100 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
13101/* confdefs.h. */
13102_ACEOF
13103cat confdefs.h >>conftest.$ac_ext
13104cat >>conftest.$ac_ext <<_ACEOF
13105/* end confdefs.h. */
5ee517ac 13106#include <stdarg.h>
5ee517ac
MM
13107int
13108main ()
13109{
13110va_list ap1, ap2;
13111 va_copy(ap1,ap2);
13112
13113 ;
13114 return 0;
13115}
13116_ACEOF
13117rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
13118if { (ac_try="$ac_link"
13119case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122esac
13123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_link") 2>conftest.er1
5ee517ac 13125 ac_status=$?
875927f6
AJ
13126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
5ee517ac
MM
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } &&
0ebeb530
JW
13131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13132 { (case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13135esac
13136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_try") 2>&5
875927f6
AJ
13138 ac_status=$?
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; } &&
13141 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
13142 { (case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145esac
13146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_try") 2>&5
5ee517ac
MM
13148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; }; then
13151 ac_cv_c_va_copy="yes"
13152else
13153 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13154sed 's/^/| /' conftest.$ac_ext >&5
13155
fc6ffb29 13156 ac_cv_c_va_copy="no"
5ee517ac 13157fi
fc6ffb29 13158
0ebeb530 13159rm -f core conftest.err conftest.$ac_objext \
875927f6 13160 conftest$ac_exeext conftest.$ac_ext
5ee517ac
MM
13161
13162fi
fc6ffb29
AJ
13163{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13164echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
5ee517ac
MM
13165if test "$ac_cv_c_va_copy" = "yes"
13166then
13167
13168cat >>confdefs.h <<\_ACEOF
13169#define HAVE_VA_COPY 1
13170_ACEOF
13171
13172fi
fc6ffb29
AJ
13173{ echo "$as_me:$LINENO: checking for __va_copy" >&5
13174echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
5ee517ac
MM
13175if test "${ac_cv_c___va_copy+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13177else
13178 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
13179/* confdefs.h. */
13180_ACEOF
13181cat confdefs.h >>conftest.$ac_ext
13182cat >>conftest.$ac_ext <<_ACEOF
13183/* end confdefs.h. */
5ee517ac 13184#include <stdarg.h>
5ee517ac
MM
13185int
13186main ()
13187{
13188va_list ap1, ap2;
13189 __va_copy(ap1,ap2);
13190
13191 ;
13192 return 0;
13193}
13194_ACEOF
13195rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
13196if { (ac_try="$ac_link"
13197case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13200esac
13201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_link") 2>conftest.er1
5ee517ac 13203 ac_status=$?
875927f6
AJ
13204 grep -v '^ *+' conftest.er1 >conftest.err
13205 rm -f conftest.er1
13206 cat conftest.err >&5
5ee517ac
MM
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
0ebeb530
JW
13209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13210 { (case "(($ac_try" in
13211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212 *) ac_try_echo=$ac_try;;
13213esac
13214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13215 (eval "$ac_try") 2>&5
875927f6
AJ
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; } &&
13219 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
13220 { (case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223esac
13224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13225 (eval "$ac_try") 2>&5
5ee517ac
MM
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
13229 ac_cv_c___va_copy="yes"
13230else
13231 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13232sed 's/^/| /' conftest.$ac_ext >&5
13233
fc6ffb29 13234 ac_cv_c___va_copy="no"
5ee517ac 13235fi
fc6ffb29 13236
0ebeb530 13237rm -f core conftest.err conftest.$ac_objext \
875927f6 13238 conftest$ac_exeext conftest.$ac_ext
5ee517ac
MM
13239
13240fi
fc6ffb29
AJ
13241{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13242echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
5ee517ac
MM
13243if test "$ac_cv_c___va_copy" = "yes"
13244then
13245
13246cat >>confdefs.h <<\_ACEOF
13247#define HAVE___VA_COPY 1
13248_ACEOF
13249
13250fi
13251
fc6ffb29
AJ
13252{ echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13253echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
b2d937d5
AJ
13254if test "${ac_cv_c_sigsetjmp+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13256else
13257 cat >conftest.$ac_ext <<_ACEOF
b2d937d5
AJ
13258/* confdefs.h. */
13259_ACEOF
13260cat confdefs.h >>conftest.$ac_ext
13261cat >>conftest.$ac_ext <<_ACEOF
13262/* end confdefs.h. */
13263#include <setjmp.h>
13264int
13265main ()
13266{
13267sigjmp_buf buf;
13268 sigsetjmp( buf, 1 );
13269 siglongjmp( buf, 1 );
13270 ;
13271 return 0;
13272}
13273_ACEOF
13274rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
13275if { (ac_try="$ac_link"
13276case "(($ac_try" in
13277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13278 *) ac_try_echo=$ac_try;;
13279esac
13280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13281 (eval "$ac_link") 2>conftest.er1
b2d937d5 13282 ac_status=$?
875927f6
AJ
13283 grep -v '^ *+' conftest.er1 >conftest.err
13284 rm -f conftest.er1
13285 cat conftest.err >&5
b2d937d5
AJ
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } &&
0ebeb530
JW
13288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13289 { (case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13292esac
13293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294 (eval "$ac_try") 2>&5
875927f6
AJ
13295 ac_status=$?
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; } &&
13298 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
13299 { (case "(($ac_try" in
13300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13301 *) ac_try_echo=$ac_try;;
13302esac
13303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13304 (eval "$ac_try") 2>&5
b2d937d5
AJ
13305 ac_status=$?
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); }; }; then
13308 ac_cv_c_sigsetjmp="yes"
13309else
13310 echo "$as_me: failed program was:" >&5
13311sed 's/^/| /' conftest.$ac_ext >&5
13312
fc6ffb29 13313 ac_cv_c_sigsetjmp="no"
b2d937d5 13314fi
fc6ffb29 13315
0ebeb530 13316rm -f core conftest.err conftest.$ac_objext \
875927f6 13317 conftest$ac_exeext conftest.$ac_ext
b2d937d5
AJ
13318
13319fi
fc6ffb29
AJ
13320{ echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13321echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
b2d937d5
AJ
13322if test "$ac_cv_c_sigsetjmp" = "yes"
13323then
13324
13325cat >>confdefs.h <<\_ACEOF
13326#define HAVE_SIGSETJMP 1
13327_ACEOF
13328
13329fi
13330
fc6ffb29
AJ
13331{ echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13332echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
80e34dbb
AJ
13333if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335else
13336 cat >conftest.$ac_ext <<_ACEOF
80e34dbb
AJ
13337/* confdefs.h. */
13338_ACEOF
13339cat confdefs.h >>conftest.$ac_ext
13340cat >>conftest.$ac_ext <<_ACEOF
13341/* end confdefs.h. */
13342#define _GNU_SOURCE
13343#include <pthread.h>
13344
fc6ffb29 13345typedef pthread_rwlock_t ac__type_new_;
80e34dbb
AJ
13346int
13347main ()
13348{
fc6ffb29 13349if ((ac__type_new_ *) 0)
80e34dbb 13350 return 0;
fc6ffb29 13351if (sizeof (ac__type_new_))
80e34dbb
AJ
13352 return 0;
13353 ;
13354 return 0;
13355}
13356_ACEOF
13357rm -f conftest.$ac_objext
0ebeb530
JW
13358if { (ac_try="$ac_compile"
13359case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13362esac
13363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_compile") 2>conftest.er1
80e34dbb 13365 ac_status=$?
875927f6
AJ
13366 grep -v '^ *+' conftest.er1 >conftest.err
13367 rm -f conftest.er1
13368 cat conftest.err >&5
80e34dbb
AJ
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
0ebeb530
JW
13371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13372 { (case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13375esac
13376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_try") 2>&5
875927f6
AJ
13378 ac_status=$?
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
13382 { (case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13385esac
13386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_try") 2>&5
80e34dbb
AJ
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_type_pthread_rwlock_t=yes
13392else
13393 echo "$as_me: failed program was:" >&5
13394sed 's/^/| /' conftest.$ac_ext >&5
13395
fc6ffb29 13396 ac_cv_type_pthread_rwlock_t=no
80e34dbb 13397fi
fc6ffb29 13398
0ebeb530 13399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80e34dbb 13400fi
fc6ffb29
AJ
13401{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
13402echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
80e34dbb
AJ
13403if test $ac_cv_type_pthread_rwlock_t = yes; then
13404
13405cat >>confdefs.h <<_ACEOF
13406#define HAVE_PTHREAD_RWLOCK_T 1
13407_ACEOF
13408
13409
13410fi
fc6ffb29
AJ
13411{ echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
13412echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
80e34dbb
AJ
13413if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13415else
13416 cat >conftest.$ac_ext <<_ACEOF
80e34dbb
AJ
13417/* confdefs.h. */
13418_ACEOF
13419cat confdefs.h >>conftest.$ac_ext
13420cat >>conftest.$ac_ext <<_ACEOF
13421/* end confdefs.h. */
13422#define _GNU_SOURCE
13423#include <pthread.h>
13424
fc6ffb29 13425typedef pthread_rwlockattr_t ac__type_new_;
80e34dbb
AJ
13426int
13427main ()
13428{
fc6ffb29 13429if ((ac__type_new_ *) 0)
80e34dbb 13430 return 0;
fc6ffb29 13431if (sizeof (ac__type_new_))
80e34dbb
AJ
13432 return 0;
13433 ;
13434 return 0;
13435}
13436_ACEOF
13437rm -f conftest.$ac_objext
0ebeb530
JW
13438if { (ac_try="$ac_compile"
13439case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13442esac
13443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_compile") 2>conftest.er1
80e34dbb 13445 ac_status=$?
875927f6
AJ
13446 grep -v '^ *+' conftest.er1 >conftest.err
13447 rm -f conftest.er1
13448 cat conftest.err >&5
80e34dbb
AJ
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
0ebeb530
JW
13451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455esac
13456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
875927f6
AJ
13458 ac_status=$?
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; } &&
13461 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
13462 { (case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13465esac
13466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_try") 2>&5
80e34dbb
AJ
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13471 ac_cv_type_pthread_rwlockattr_t=yes
13472else
13473 echo "$as_me: failed program was:" >&5
13474sed 's/^/| /' conftest.$ac_ext >&5
13475
fc6ffb29 13476 ac_cv_type_pthread_rwlockattr_t=no
80e34dbb 13477fi
fc6ffb29 13478
0ebeb530 13479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80e34dbb 13480fi
fc6ffb29
AJ
13481{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
13482echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
80e34dbb
AJ
13483if test $ac_cv_type_pthread_rwlockattr_t = yes; then
13484
13485cat >>confdefs.h <<_ACEOF
13486#define HAVE_PTHREAD_RWLOCKATTR_T 1
13487_ACEOF
13488
13489
13490fi
13491
13492
2d1a6274 13493ac_wine_check_funcs_save_LIBS="$LIBS"
821ab863
AJ
13494LIBS="$LIBS $LIBPTHREAD"
13495
d110e1f2
EM
13496
13497
fc8172f7 13498
d110e1f2 13499for ac_func in \
fc8172f7 13500 pthread_attr_get_np \
d110e1f2
EM
13501 pthread_getattr_np \
13502 pthread_get_stackaddr_np \
2d1a6274 13503 pthread_get_stacksize_np
821ab863
AJ
13504do
13505as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
fc6ffb29
AJ
13506{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13507echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13508if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
821ab863
AJ
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13510else
13511 cat >conftest.$ac_ext <<_ACEOF
821ab863
AJ
13512/* confdefs.h. */
13513_ACEOF
13514cat confdefs.h >>conftest.$ac_ext
13515cat >>conftest.$ac_ext <<_ACEOF
13516/* end confdefs.h. */
875927f6
AJ
13517/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13519#define $ac_func innocuous_$ac_func
13520
821ab863
AJ
13521/* System header to define __stub macros and hopefully few prototypes,
13522 which can conflict with char $ac_func (); below.
13523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13524 <limits.h> exists even on freestanding compilers. */
875927f6 13525
821ab863
AJ
13526#ifdef __STDC__
13527# include <limits.h>
13528#else
13529# include <assert.h>
13530#endif
875927f6
AJ
13531
13532#undef $ac_func
13533
fc6ffb29
AJ
13534/* Override any GCC internal prototype to avoid an error.
13535 Use char because int might match the return type of a GCC
13536 builtin and then its argument prototype would still apply. */
821ab863
AJ
13537#ifdef __cplusplus
13538extern "C"
821ab863 13539#endif
821ab863
AJ
13540char $ac_func ();
13541/* The GNU C library defines this for functions which it implements
13542 to always fail with ENOSYS. Some functions are actually named
13543 something starting with __ and the normal name is an alias. */
fc6ffb29 13544#if defined __stub_$ac_func || defined __stub___$ac_func
821ab863 13545choke me
821ab863
AJ
13546#endif
13547
13548int
13549main ()
13550{
fc6ffb29 13551return $ac_func ();
821ab863
AJ
13552 ;
13553 return 0;
13554}
13555_ACEOF
13556rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
13557if { (ac_try="$ac_link"
13558case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13561esac
13562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_link") 2>conftest.er1
821ab863 13564 ac_status=$?
875927f6
AJ
13565 grep -v '^ *+' conftest.er1 >conftest.err
13566 rm -f conftest.er1
13567 cat conftest.err >&5
821ab863
AJ
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } &&
0ebeb530
JW
13570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13571 { (case "(($ac_try" in
13572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13573 *) ac_try_echo=$ac_try;;
13574esac
13575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13576 (eval "$ac_try") 2>&5
875927f6
AJ
13577 ac_status=$?
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); }; } &&
13580 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
13581 { (case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13584esac
13585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_try") 2>&5
821ab863
AJ
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 eval "$as_ac_var=yes"
13591else
13592 echo "$as_me: failed program was:" >&5
13593sed 's/^/| /' conftest.$ac_ext >&5
13594
fc6ffb29 13595 eval "$as_ac_var=no"
821ab863 13596fi
fc6ffb29 13597
0ebeb530 13598rm -f core conftest.err conftest.$ac_objext \
875927f6 13599 conftest$ac_exeext conftest.$ac_ext
821ab863 13600fi
fc6ffb29
AJ
13601ac_res=`eval echo '${'$as_ac_var'}'`
13602 { echo "$as_me:$LINENO: result: $ac_res" >&5
13603echo "${ECHO_T}$ac_res" >&6; }
821ab863
AJ
13604if test `eval echo '${'$as_ac_var'}'` = yes; then
13605 cat >>confdefs.h <<_ACEOF
13606#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13607_ACEOF
13608
13609fi
13610done
13611
2d1a6274 13612LIBS="$ac_wine_check_funcs_save_LIBS"
821ab863 13613
82776020
AJ
13614# Extract the first word of "artsc-config", so it can be a program name with args.
13615set dummy artsc-config; ac_word=$2
fc6ffb29
AJ
13616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
82776020 13618if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
daa2886c 13619 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c 13620else
82776020
AJ
13621 case $ARTSCCONFIG in
13622 [\\/]* | ?:[\\/]*)
13623 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
13624 ;;
13625 *)
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627for as_dir in $PATH
13628do
13629 IFS=$as_save_IFS
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 13632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
82776020
AJ
13633 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
13634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13635 break 2
13636 fi
13637done
13638done
fc6ffb29 13639IFS=$as_save_IFS
82776020
AJ
13640
13641 ;;
13642esac
13643fi
13644ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
82776020 13645if test -n "$ARTSCCONFIG"; then
fc6ffb29
AJ
13646 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
13647echo "${ECHO_T}$ARTSCCONFIG" >&6; }
82776020 13648else
fc6ffb29
AJ
13649 { echo "$as_me:$LINENO: result: no" >&5
13650echo "${ECHO_T}no" >&6; }
82776020
AJ
13651fi
13652
fc6ffb29 13653
82776020
AJ
13654if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
13655then
13656 ARTSC_CFLAGS=""
13657 for i in `$ARTSCCONFIG --cflags`
13658 do
13659 case "$i" in
13660 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
13661 esac
13662 done
197a7d04
AJ
13663 ARTSC_LIBS=""
13664 for i in `$ARTSCCONFIG --libs`
13665 do
13666 case "$i" in
13667 -L/usr/lib|-L/usr/lib64) ;;
13668 -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
13669 esac
13670 done
82776020
AJ
13671 save_CFLAGS="$CFLAGS"
13672 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
fc6ffb29
AJ
13673 { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
13674echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
82776020
AJ
13675if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13677else
13678 ac_check_lib_save_LIBS=$LIBS
13679LIBS="-lartsc $ARTSC_LIBS $LIBS"
13680cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
13681/* confdefs.h. */
13682_ACEOF
13683cat confdefs.h >>conftest.$ac_ext
13684cat >>conftest.$ac_ext <<_ACEOF
13685/* end confdefs.h. */
73482144 13686
fc6ffb29
AJ
13687/* Override any GCC internal prototype to avoid an error.
13688 Use char because int might match the return type of a GCC
13689 builtin and then its argument prototype would still apply. */
82776020
AJ
13690#ifdef __cplusplus
13691extern "C"
13692#endif
82776020 13693char arts_init ();
73482144
AJ
13694int
13695main ()
13696{
fc6ffb29 13697return arts_init ();
73482144
AJ
13698 ;
13699 return 0;
13700}
daa2886c 13701_ACEOF
82776020 13702rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
13703if { (ac_try="$ac_link"
13704case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707esac
13708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_link") 2>conftest.er1
daa2886c 13710 ac_status=$?
875927f6
AJ
13711 grep -v '^ *+' conftest.er1 >conftest.err
13712 rm -f conftest.er1
13713 cat conftest.err >&5
daa2886c
AJ
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } &&
0ebeb530
JW
13716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13717 { (case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13720esac
13721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_try") 2>&5
875927f6
AJ
13723 ac_status=$?
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
82776020 13726 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
13727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730esac
13731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_try") 2>&5
daa2886c
AJ
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; }; then
82776020 13736 ac_cv_lib_artsc_arts_init=yes
daa2886c
AJ
13737else
13738 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13739sed 's/^/| /' conftest.$ac_ext >&5
13740
fc6ffb29 13741 ac_cv_lib_artsc_arts_init=no
f92b7c06 13742fi
fc6ffb29 13743
0ebeb530 13744rm -f core conftest.err conftest.$ac_objext \
875927f6 13745 conftest$ac_exeext conftest.$ac_ext
f92b7c06
AJ
13746LIBS=$ac_check_lib_save_LIBS
13747fi
fc6ffb29
AJ
13748{ echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
13749echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
73482144 13750if test $ac_cv_lib_artsc_arts_init = yes; then
151015fa
VB
13751 cat >conftest.$ac_ext <<_ACEOF
13752/* confdefs.h. */
13753_ACEOF
13754cat confdefs.h >>conftest.$ac_ext
13755cat >>conftest.$ac_ext <<_ACEOF
13756/* end confdefs.h. */
73482144 13757#include <artsc.h>
151015fa
VB
13758int
13759main ()
13760{
73482144 13761arts_stream_t stream;
151015fa
VB
13762 ;
13763 return 0;
13764}
13765_ACEOF
13766rm -f conftest.$ac_objext
0ebeb530
JW
13767if { (ac_try="$ac_compile"
13768case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13771esac
13772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_compile") 2>conftest.er1
151015fa
VB
13774 ac_status=$?
13775 grep -v '^ *+' conftest.er1 >conftest.err
13776 rm -f conftest.er1
13777 cat conftest.err >&5
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); } &&
0ebeb530
JW
13780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13781 { (case "(($ac_try" in
13782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783 *) ac_try_echo=$ac_try;;
13784esac
13785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786 (eval "$ac_try") 2>&5
151015fa
VB
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
13791 { (case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13794esac
13795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796 (eval "$ac_try") 2>&5
151015fa
VB
13797 ac_status=$?
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; }; then
73482144
AJ
13800 ARTSLIBS=$ARTSC_LIBS
13801
13802 ARTSINCL=$ARTSC_CFLAGS
13803
f92b7c06
AJ
13804
13805cat >>confdefs.h <<\_ACEOF
73482144 13806#define HAVE_ARTS 1
f92b7c06
AJ
13807_ACEOF
13808
151015fa
VB
13809else
13810 echo "$as_me: failed program was:" >&5
13811sed 's/^/| /' conftest.$ac_ext >&5
13812
fc6ffb29 13813
151015fa 13814fi
fc6ffb29 13815
0ebeb530 13816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f92b7c06
AJ
13817fi
13818
73482144 13819 CFLAGS="$save_CFLAGS"
f92b7c06
AJ
13820fi
13821
73482144
AJ
13822# Extract the first word of "esd-config", so it can be a program name with args.
13823set dummy esd-config; ac_word=$2
fc6ffb29
AJ
13824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
73482144
AJ
13826if test "${ac_cv_path_ESDCONFIG+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13828else
13829 case $ESDCONFIG in
13830 [\\/]* | ?:[\\/]*)
13831 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
13832 ;;
13833 *)
13834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13835for as_dir in $PATH
13836do
13837 IFS=$as_save_IFS
13838 test -z "$as_dir" && as_dir=.
13839 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 13840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
73482144
AJ
13841 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
13842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13843 break 2
13844 fi
13845done
13846done
fc6ffb29 13847IFS=$as_save_IFS
daa2886c 13848
73482144
AJ
13849 ;;
13850esac
13851fi
13852ESDCONFIG=$ac_cv_path_ESDCONFIG
73482144 13853if test -n "$ESDCONFIG"; then
fc6ffb29
AJ
13854 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
13855echo "${ECHO_T}$ESDCONFIG" >&6; }
73482144 13856else
fc6ffb29
AJ
13857 { echo "$as_me:$LINENO: result: no" >&5
13858echo "${ECHO_T}no" >&6; }
73482144 13859fi
2a91e3f9 13860
fc6ffb29 13861
73482144
AJ
13862if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
13863then
13864 ESD_CFLAGS=""
13865 for i in `$ESDCONFIG --cflags`
13866 do
13867 case "$i" in
13868 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
13869 esac
13870 done
13871 ESD_LIBS=`$ESDCONFIG --libs`
13872 save_CFLAGS="$CFLAGS"
13873 CFLAGS="$CFLAGS $ESD_CFLAGS"
fc6ffb29
AJ
13874 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
13875echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
73482144 13876if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
2a91e3f9 13877 echo $ECHO_N "(cached) $ECHO_C" >&6
2a91e3f9 13878else
73482144
AJ
13879 ac_check_lib_save_LIBS=$LIBS
13880LIBS="-lesd $LIBS"
2a91e3f9 13881cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
13882/* confdefs.h. */
13883_ACEOF
13884cat confdefs.h >>conftest.$ac_ext
13885cat >>conftest.$ac_ext <<_ACEOF
13886/* end confdefs.h. */
73482144 13887
fc6ffb29
AJ
13888/* Override any GCC internal prototype to avoid an error.
13889 Use char because int might match the return type of a GCC
13890 builtin and then its argument prototype would still apply. */
73482144
AJ
13891#ifdef __cplusplus
13892extern "C"
13893#endif
73482144
AJ
13894char esd_open_sound ();
13895int
13896main ()
13897{
fc6ffb29 13898return esd_open_sound ();
73482144
AJ
13899 ;
13900 return 0;
13901}
2a91e3f9 13902_ACEOF
73482144 13903rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
13904if { (ac_try="$ac_link"
13905case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13908esac
13909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13910 (eval "$ac_link") 2>conftest.er1
2a91e3f9 13911 ac_status=$?
875927f6
AJ
13912 grep -v '^ *+' conftest.er1 >conftest.err
13913 rm -f conftest.er1
13914 cat conftest.err >&5
2a91e3f9
RL
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } &&
0ebeb530
JW
13917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13918 { (case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13921esac
13922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_try") 2>&5
875927f6
AJ
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; } &&
73482144 13927 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
13928 { (case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13931esac
13932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_try") 2>&5
2a91e3f9
RL
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }; then
73482144 13937 ac_cv_lib_esd_esd_open_sound=yes
2a91e3f9
RL
13938else
13939 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13940sed 's/^/| /' conftest.$ac_ext >&5
13941
fc6ffb29 13942 ac_cv_lib_esd_esd_open_sound=no
2a91e3f9 13943fi
fc6ffb29 13944
0ebeb530 13945rm -f core conftest.err conftest.$ac_objext \
73482144
AJ
13946 conftest$ac_exeext conftest.$ac_ext
13947LIBS=$ac_check_lib_save_LIBS
13948fi
fc6ffb29
AJ
13949{ echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
13950echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
73482144
AJ
13951if test $ac_cv_lib_esd_esd_open_sound = yes; then
13952 ESDLIBS=$ESD_LIBS
2a91e3f9 13953
73482144
AJ
13954 ESDINCL=$ESD_CFLAGS
13955
13956
13957cat >>confdefs.h <<\_ACEOF
13958#define HAVE_ESD 1
2a91e3f9 13959_ACEOF
e24bcc77 13960
2a91e3f9 13961fi
875927f6 13962
73482144 13963 CFLAGS="$save_CFLAGS"
2a91e3f9 13964fi
2a91e3f9 13965
73482144
AJ
13966ALSALIBS=""
13967
13968if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
13969then
fc6ffb29
AJ
13970 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
13971echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
73482144 13972if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
2a91e3f9
RL
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13974else
13975 ac_check_lib_save_LIBS=$LIBS
73482144 13976LIBS="-lasound $LIBS"
2a91e3f9 13977cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
13978/* confdefs.h. */
13979_ACEOF
13980cat confdefs.h >>conftest.$ac_ext
13981cat >>conftest.$ac_ext <<_ACEOF
13982/* end confdefs.h. */
2a91e3f9 13983
fc6ffb29
AJ
13984/* Override any GCC internal prototype to avoid an error.
13985 Use char because int might match the return type of a GCC
13986 builtin and then its argument prototype would still apply. */
2a91e3f9
RL
13987#ifdef __cplusplus
13988extern "C"
13989#endif
73482144 13990char snd_pcm_hw_params_get_access ();
2a91e3f9
RL
13991int
13992main ()
13993{
fc6ffb29 13994return snd_pcm_hw_params_get_access ();
2a91e3f9
RL
13995 ;
13996 return 0;
13997}
13998_ACEOF
13999rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
14000if { (ac_try="$ac_link"
14001case "(($ac_try" in
14002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14003 *) ac_try_echo=$ac_try;;
14004esac
14005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14006 (eval "$ac_link") 2>conftest.er1
2a91e3f9 14007 ac_status=$?
875927f6
AJ
14008 grep -v '^ *+' conftest.er1 >conftest.err
14009 rm -f conftest.er1
14010 cat conftest.err >&5
2a91e3f9
RL
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); } &&
0ebeb530
JW
14013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14014 { (case "(($ac_try" in
14015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016 *) ac_try_echo=$ac_try;;
14017esac
14018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14019 (eval "$ac_try") 2>&5
875927f6
AJ
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; } &&
14023 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
14024 { (case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14027esac
14028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_try") 2>&5
2a91e3f9
RL
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; }; then
73482144 14033 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
2a91e3f9
RL
14034else
14035 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14036sed 's/^/| /' conftest.$ac_ext >&5
14037
fc6ffb29 14038 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
2a91e3f9 14039fi
fc6ffb29 14040
0ebeb530 14041rm -f core conftest.err conftest.$ac_objext \
875927f6 14042 conftest$ac_exeext conftest.$ac_ext
2a91e3f9
RL
14043LIBS=$ac_check_lib_save_LIBS
14044fi
fc6ffb29
AJ
14045{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
14046echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
73482144
AJ
14047if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
14048 cat >conftest.$ac_ext <<_ACEOF
00fdd9fc
AJ
14049/* confdefs.h. */
14050_ACEOF
14051cat confdefs.h >>conftest.$ac_ext
14052cat >>conftest.$ac_ext <<_ACEOF
14053/* end confdefs.h. */
73482144
AJ
14054#ifdef HAVE_ALSA_ASOUNDLIB_H
14055#include <alsa/asoundlib.h>
14056#elif defined(HAVE_SYS_ASOUNDLIB_H)
14057#include <sys/asoundlib.h>
14058#endif
14059int
14060main ()
14061{
14062int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14063 ;
14064 return 0;
14065}
00fdd9fc
AJ
14066_ACEOF
14067rm -f conftest.$ac_objext
0ebeb530
JW
14068if { (ac_try="$ac_compile"
14069case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14072esac
14073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_compile") 2>conftest.er1
00fdd9fc 14075 ac_status=$?
875927f6
AJ
14076 grep -v '^ *+' conftest.er1 >conftest.err
14077 rm -f conftest.er1
14078 cat conftest.err >&5
00fdd9fc
AJ
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } &&
0ebeb530
JW
14081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14082 { (case "(($ac_try" in
14083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084 *) ac_try_echo=$ac_try;;
14085esac
14086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087 (eval "$ac_try") 2>&5
875927f6
AJ
14088 ac_status=$?
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; } &&
14091 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
14092 { (case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14095esac
14096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_try") 2>&5
00fdd9fc
AJ
14098 ac_status=$?
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); }; }; then
00fdd9fc 14101
73482144
AJ
14102cat >>confdefs.h <<\_ACEOF
14103#define HAVE_ALSA 1
00fdd9fc 14104_ACEOF
73482144
AJ
14105
14106 ALSALIBS="-lasound"
00fdd9fc
AJ
14107else
14108 echo "$as_me: failed program was:" >&5
14109sed 's/^/| /' conftest.$ac_ext >&5
14110
fc6ffb29 14111
00fdd9fc 14112fi
fc6ffb29 14113
0ebeb530 14114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
00fdd9fc 14115fi
00fdd9fc
AJ
14116
14117fi
00fdd9fc
AJ
14118
14119
73482144
AJ
14120AUDIOIOLIBS=""
14121
14122if test "$ac_cv_header_libaudioio_h" = "yes"
14123then
fc6ffb29
AJ
14124 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14125echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
73482144 14126if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
00fdd9fc 14127 echo $ECHO_N "(cached) $ECHO_C" >&6
00fdd9fc 14128else
73482144
AJ
14129 ac_check_lib_save_LIBS=$LIBS
14130LIBS="-laudioio $LIBS"
00fdd9fc 14131cat >conftest.$ac_ext <<_ACEOF
00fdd9fc
AJ
14132/* confdefs.h. */
14133_ACEOF
14134cat confdefs.h >>conftest.$ac_ext
14135cat >>conftest.$ac_ext <<_ACEOF
14136/* end confdefs.h. */
73482144 14137
fc6ffb29
AJ
14138/* Override any GCC internal prototype to avoid an error.
14139 Use char because int might match the return type of a GCC
14140 builtin and then its argument prototype would still apply. */
73482144
AJ
14141#ifdef __cplusplus
14142extern "C"
14143#endif
73482144
AJ
14144char AudioIOGetVersion ();
14145int
14146main ()
14147{
fc6ffb29 14148return AudioIOGetVersion ();
73482144
AJ
14149 ;
14150 return 0;
14151}
00fdd9fc 14152_ACEOF
73482144 14153rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
14154if { (ac_try="$ac_link"
14155case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14158esac
14159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_link") 2>conftest.er1
00fdd9fc 14161 ac_status=$?
875927f6
AJ
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
00fdd9fc
AJ
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
0ebeb530
JW
14167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14168 { (case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14171esac
14172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_try") 2>&5
875927f6
AJ
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
73482144 14177 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
14178 { (case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14181esac
14182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_try") 2>&5
73482144
AJ
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_cv_lib_audioio_AudioIOGetVersion=yes
00fdd9fc
AJ
14188else
14189 echo "$as_me: failed program was:" >&5
14190sed 's/^/| /' conftest.$ac_ext >&5
14191
fc6ffb29 14192 ac_cv_lib_audioio_AudioIOGetVersion=no
00fdd9fc 14193fi
fc6ffb29 14194
0ebeb530 14195rm -f core conftest.err conftest.$ac_objext \
73482144
AJ
14196 conftest$ac_exeext conftest.$ac_ext
14197LIBS=$ac_check_lib_save_LIBS
14198fi
fc6ffb29
AJ
14199{ echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14200echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
73482144
AJ
14201if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14202 AUDIOIOLIBS="-laudioio"
14203
14204cat >>confdefs.h <<\_ACEOF
14205#define HAVE_LIBAUDIOIO 1
14206_ACEOF
00fdd9fc 14207
00fdd9fc 14208fi
00fdd9fc
AJ
14209
14210fi
00fdd9fc 14211
73482144
AJ
14212
14213if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14214then
fc6ffb29
AJ
14215 { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
14216echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
00fdd9fc
AJ
14217if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219else
14220 ac_check_lib_save_LIBS=$LIBS
14221LIBS="-lcapi20 $LIBS"
14222cat >conftest.$ac_ext <<_ACEOF
00fdd9fc
AJ
14223/* confdefs.h. */
14224_ACEOF
14225cat confdefs.h >>conftest.$ac_ext
14226cat >>conftest.$ac_ext <<_ACEOF
14227/* end confdefs.h. */
14228
fc6ffb29
AJ
14229/* Override any GCC internal prototype to avoid an error.
14230 Use char because int might match the return type of a GCC
14231 builtin and then its argument prototype would still apply. */
00fdd9fc
AJ
14232#ifdef __cplusplus
14233extern "C"
14234#endif
00fdd9fc
AJ
14235char capi20_register ();
14236int
14237main ()
14238{
fc6ffb29 14239return capi20_register ();
00fdd9fc
AJ
14240 ;
14241 return 0;
14242}
14243_ACEOF
14244rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
14245if { (ac_try="$ac_link"
14246case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14249esac
14250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_link") 2>conftest.er1
00fdd9fc 14252 ac_status=$?
875927f6
AJ
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
00fdd9fc
AJ
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } &&
0ebeb530
JW
14258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14259 { (case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14262esac
14263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_try") 2>&5
875927f6
AJ
14265 ac_status=$?
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; } &&
14268 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
14269 { (case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14272esac
14273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_try") 2>&5
00fdd9fc
AJ
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }; then
14278 ac_cv_lib_capi20_capi20_register=yes
14279else
14280 echo "$as_me: failed program was:" >&5
14281sed 's/^/| /' conftest.$ac_ext >&5
14282
fc6ffb29 14283 ac_cv_lib_capi20_capi20_register=no
00fdd9fc 14284fi
fc6ffb29 14285
0ebeb530 14286rm -f core conftest.err conftest.$ac_objext \
875927f6 14287 conftest$ac_exeext conftest.$ac_ext
00fdd9fc
AJ
14288LIBS=$ac_check_lib_save_LIBS
14289fi
fc6ffb29
AJ
14290{ echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
14291echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
00fdd9fc
AJ
14292if test $ac_cv_lib_capi20_capi20_register = yes; then
14293
00fdd9fc
AJ
14294cat >>confdefs.h <<\_ACEOF
14295#define HAVE_CAPI4LINUX 1
14296_ACEOF
14297
00fdd9fc
AJ
14298fi
14299
00fdd9fc
AJ
14300fi
14301
00fdd9fc 14302
fc09423d
AJ
14303EXTRACFLAGS=""
14304
4f8c37b4
AJ
14305if test "x${GCC}" = "xyes"
14306then
d17b2327 14307 EXTRACFLAGS="-Wall -pipe"
c509bc4d 14308
fc6ffb29
AJ
14309 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14310echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
f5818d2f
AJ
14311if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14312 echo $ECHO_N "(cached) $ECHO_C" >&6
4f8c37b4
AJ
14313else
14314 if test "$cross_compiling" = yes; then
14315 ac_cv_c_gcc_strength_bug="yes"
14316else
f5818d2f 14317 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
14318/* confdefs.h. */
14319_ACEOF
14320cat confdefs.h >>conftest.$ac_ext
14321cat >>conftest.$ac_ext <<_ACEOF
14322/* end confdefs.h. */
4f8c37b4 14323
5aee80f6 14324int L[4] = {0,1,2,3};
4f8c37b4 14325int main(void) {
d2e1c1a4 14326 static int Array[3];
4f8c37b4
AJ
14327 unsigned int B = 3;
14328 int i;
d2e1c1a4 14329 for(i=0; i<B; i++) Array[i] = i - 3;
5aee80f6
EP
14330 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14331 L[i] = 4;
f5818d2f 14332
f41c2b21
DP
14333 exit( Array[1] != -2 || L[2] != 3);
14334}
14335_ACEOF
14336rm -f conftest$ac_exeext
0ebeb530
JW
14337if { (ac_try="$ac_link"
14338case "(($ac_try" in
14339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14340 *) ac_try_echo=$ac_try;;
14341esac
14342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14343 (eval "$ac_link") 2>&5
f41c2b21
DP
14344 ac_status=$?
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
0ebeb530
JW
14347 { (case "(($ac_try" in
14348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14349 *) ac_try_echo=$ac_try;;
14350esac
14351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14352 (eval "$ac_try") 2>&5
f41c2b21
DP
14353 ac_status=$?
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); }; }; then
14356 ac_cv_c_gcc_strength_bug="no"
14357else
14358 echo "$as_me: program exited with status $ac_status" >&5
14359echo "$as_me: failed program was:" >&5
14360sed 's/^/| /' conftest.$ac_ext >&5
14361
14362( exit $ac_status )
14363ac_cv_c_gcc_strength_bug="yes"
14364fi
fc6ffb29 14365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f41c2b21 14366fi
fc6ffb29
AJ
14367
14368
f41c2b21 14369fi
fc6ffb29
AJ
14370{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
14371echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
f41c2b21
DP
14372 if test "$ac_cv_c_gcc_strength_bug" = "yes"
14373 then
14374 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
14375 fi
14376
182d150a
AJ
14377
14378 { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
14379echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
14380if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
f41c2b21
DP
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14382else
14383 ac_wine_try_cflags_saved=$CFLAGS
14384CFLAGS="$CFLAGS -fshort-wchar"
14385cat >conftest.$ac_ext <<_ACEOF
14386/* confdefs.h. */
14387_ACEOF
14388cat confdefs.h >>conftest.$ac_ext
14389cat >>conftest.$ac_ext <<_ACEOF
14390/* end confdefs.h. */
14391
14392int
14393main ()
14394{
14395
14396 ;
14397 return 0;
4f8c37b4 14398}
f5818d2f 14399_ACEOF
f41c2b21 14400rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
14401if { (ac_try="$ac_link"
14402case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14405esac
14406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_link") 2>conftest.er1
f5818d2f 14408 ac_status=$?
f41c2b21
DP
14409 grep -v '^ *+' conftest.er1 >conftest.err
14410 rm -f conftest.er1
14411 cat conftest.err >&5
daa2886c 14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f41c2b21 14413 (exit $ac_status); } &&
0ebeb530
JW
14414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14415 { (case "(($ac_try" in
14416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14417 *) ac_try_echo=$ac_try;;
14418esac
14419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420 (eval "$ac_try") 2>&5
f41c2b21
DP
14421 ac_status=$?
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); }; } &&
14424 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
14425 { (case "(($ac_try" in
14426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14427 *) ac_try_echo=$ac_try;;
14428esac
14429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14430 (eval "$ac_try") 2>&5
f5818d2f 14431 ac_status=$?
daa2886c 14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 14433 (exit $ac_status); }; }; then
182d150a 14434 ac_cv_cflags__fshort_wchar=yes
4f8c37b4 14435else
f41c2b21 14436 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14437sed 's/^/| /' conftest.$ac_ext >&5
14438
182d150a 14439 ac_cv_cflags__fshort_wchar=no
4f8c37b4 14440fi
fc6ffb29 14441
0ebeb530 14442rm -f core conftest.err conftest.$ac_objext \
f41c2b21
DP
14443 conftest$ac_exeext conftest.$ac_ext
14444CFLAGS=$ac_wine_try_cflags_saved
4f8c37b4 14445fi
182d150a
AJ
14446{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
14447echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
14448if test $ac_cv_cflags__fshort_wchar = yes; then
f41c2b21
DP
14449
14450cat >>confdefs.h <<\_ACEOF
14451#define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
14452_ACEOF
14453
182d150a 14454fi
f9b94cb9 14455
182d150a
AJ
14456 { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
14457echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
14458if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
efca0f6a
AJ
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14460else
14461 ac_wine_try_cflags_saved=$CFLAGS
14462CFLAGS="$CFLAGS -fno-strict-aliasing"
14463cat >conftest.$ac_ext <<_ACEOF
efca0f6a
AJ
14464/* confdefs.h. */
14465_ACEOF
14466cat confdefs.h >>conftest.$ac_ext
14467cat >>conftest.$ac_ext <<_ACEOF
14468/* end confdefs.h. */
14469
14470int
14471main ()
14472{
14473
14474 ;
14475 return 0;
14476}
14477_ACEOF
14478rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
14479if { (ac_try="$ac_link"
14480case "(($ac_try" in
14481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482 *) ac_try_echo=$ac_try;;
14483esac
14484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485 (eval "$ac_link") 2>conftest.er1
efca0f6a 14486 ac_status=$?
875927f6
AJ
14487 grep -v '^ *+' conftest.er1 >conftest.err
14488 rm -f conftest.er1
14489 cat conftest.err >&5
efca0f6a
AJ
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } &&
0ebeb530
JW
14492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14493 { (case "(($ac_try" in
14494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495 *) ac_try_echo=$ac_try;;
14496esac
14497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14498 (eval "$ac_try") 2>&5
875927f6
AJ
14499 ac_status=$?
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; } &&
14502 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
14503 { (case "(($ac_try" in
14504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14505 *) ac_try_echo=$ac_try;;
14506esac
14507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14508 (eval "$ac_try") 2>&5
efca0f6a
AJ
14509 ac_status=$?
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
182d150a 14512 ac_cv_cflags__fno_strict_aliasing=yes
efca0f6a
AJ
14513else
14514 echo "$as_me: failed program was:" >&5
14515sed 's/^/| /' conftest.$ac_ext >&5
14516
182d150a 14517 ac_cv_cflags__fno_strict_aliasing=no
efca0f6a 14518fi
fc6ffb29 14519
0ebeb530 14520rm -f core conftest.err conftest.$ac_objext \
875927f6 14521 conftest$ac_exeext conftest.$ac_ext
efca0f6a
AJ
14522CFLAGS=$ac_wine_try_cflags_saved
14523fi
182d150a
AJ
14524{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
14525echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
14526if test $ac_cv_cflags__fno_strict_aliasing = yes; then
14527 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
14528fi
efca0f6a 14529
182d150a
AJ
14530 { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
14531echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
14532if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
f8cb48b5
AJ
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14534else
14535 ac_wine_try_cflags_saved=$CFLAGS
14536CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14537cat >conftest.$ac_ext <<_ACEOF
14538/* confdefs.h. */
14539_ACEOF
14540cat confdefs.h >>conftest.$ac_ext
14541cat >>conftest.$ac_ext <<_ACEOF
14542/* end confdefs.h. */
14543
14544int
14545main ()
14546{
14547
14548 ;
14549 return 0;
14550}
14551_ACEOF
14552rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
14553if { (ac_try="$ac_link"
14554case "(($ac_try" in
14555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556 *) ac_try_echo=$ac_try;;
14557esac
14558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559 (eval "$ac_link") 2>conftest.er1
f8cb48b5
AJ
14560 ac_status=$?
14561 grep -v '^ *+' conftest.er1 >conftest.err
14562 rm -f conftest.er1
14563 cat conftest.err >&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } &&
0ebeb530
JW
14566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14567 { (case "(($ac_try" in
14568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569 *) ac_try_echo=$ac_try;;
14570esac
14571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572 (eval "$ac_try") 2>&5
f8cb48b5
AJ
14573 ac_status=$?
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); }; } &&
14576 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
14577 { (case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14580esac
14581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_try") 2>&5
f8cb48b5
AJ
14583 ac_status=$?
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
182d150a 14586 ac_cv_cflags__Wdeclaration_after_statement=yes
f8cb48b5
AJ
14587else
14588 echo "$as_me: failed program was:" >&5
14589sed 's/^/| /' conftest.$ac_ext >&5
14590
182d150a 14591 ac_cv_cflags__Wdeclaration_after_statement=no
f8cb48b5 14592fi
fc6ffb29 14593
0ebeb530 14594rm -f core conftest.err conftest.$ac_objext \
f8cb48b5
AJ
14595 conftest$ac_exeext conftest.$ac_ext
14596CFLAGS=$ac_wine_try_cflags_saved
14597fi
182d150a
AJ
14598{ echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
14599echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
14600if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
14601 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
14602fi
f8cb48b5 14603
182d150a
AJ
14604 { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
14605echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
14606if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
d75cc5aa
AJ
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
14608else
14609 ac_wine_try_cflags_saved=$CFLAGS
14610CFLAGS="$CFLAGS -Wwrite-strings"
14611cat >conftest.$ac_ext <<_ACEOF
14612/* confdefs.h. */
14613_ACEOF
14614cat confdefs.h >>conftest.$ac_ext
14615cat >>conftest.$ac_ext <<_ACEOF
14616/* end confdefs.h. */
14617
14618int
14619main ()
14620{
14621
14622 ;
14623 return 0;
14624}
14625_ACEOF
14626rm -f conftest.$ac_objext conftest$ac_exeext
14627if { (ac_try="$ac_link"
14628case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631esac
14632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_link") 2>conftest.er1
14634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } &&
14640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14641 { (case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644esac
14645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_try") 2>&5
14647 ac_status=$?
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; } &&
14650 { ac_try='test -s conftest$ac_exeext'
14651 { (case "(($ac_try" in
14652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653 *) ac_try_echo=$ac_try;;
14654esac
14655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656 (eval "$ac_try") 2>&5
14657 ac_status=$?
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; }; then
182d150a 14660 ac_cv_cflags__Wwrite_strings=yes
d75cc5aa
AJ
14661else
14662 echo "$as_me: failed program was:" >&5
14663sed 's/^/| /' conftest.$ac_ext >&5
14664
182d150a 14665 ac_cv_cflags__Wwrite_strings=no
d75cc5aa
AJ
14666fi
14667
14668rm -f core conftest.err conftest.$ac_objext \
14669 conftest$ac_exeext conftest.$ac_ext
14670CFLAGS=$ac_wine_try_cflags_saved
14671fi
182d150a
AJ
14672{ echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
14673echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
14674if test $ac_cv_cflags__Wwrite_strings = yes; then
14675 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
14676fi
14677
d75cc5aa 14678
4d52d379 14679 saved_CFLAGS="$CFLAGS"
c509bc4d 14680 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
fc6ffb29
AJ
14681 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
14682echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
c509bc4d
MM
14683if test "${ac_cv_c_string_h_warnings+set}" = set; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14685else
14686 cat >conftest.$ac_ext <<_ACEOF
c509bc4d
MM
14687/* confdefs.h. */
14688_ACEOF
14689cat confdefs.h >>conftest.$ac_ext
14690cat >>conftest.$ac_ext <<_ACEOF
14691/* end confdefs.h. */
14692#include <string.h>
14693int
14694main ()
14695{
14696
14697 ;
14698 return 0;
14699}
14700_ACEOF
14701rm -f conftest.$ac_objext
0ebeb530
JW
14702if { (ac_try="$ac_compile"
14703case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14706esac
14707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_compile") 2>conftest.er1
c509bc4d 14709 ac_status=$?
875927f6
AJ
14710 grep -v '^ *+' conftest.er1 >conftest.err
14711 rm -f conftest.er1
14712 cat conftest.err >&5
c509bc4d
MM
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } &&
0ebeb530
JW
14715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14716 { (case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14719esac
14720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_try") 2>&5
875927f6
AJ
14722 ac_status=$?
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; } &&
14725 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
14726 { (case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14729esac
14730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_try") 2>&5
c509bc4d
MM
14732 ac_status=$?
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; }; then
14735 ac_cv_c_string_h_warnings=no
14736else
14737 echo "$as_me: failed program was:" >&5
14738sed 's/^/| /' conftest.$ac_ext >&5
14739
fc6ffb29 14740 ac_cv_c_string_h_warnings=yes
c509bc4d 14741fi
fc6ffb29 14742
0ebeb530 14743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c509bc4d 14744fi
fc6ffb29
AJ
14745{ echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
14746echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
4d52d379 14747 CFLAGS="$saved_CFLAGS"
c509bc4d
MM
14748 if test "$ac_cv_c_string_h_warnings" = "no"
14749 then
fc09423d 14750 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
c509bc4d 14751 fi
b7443722
MM
14752
14753 BUILTINFLAG=""
14754
14755 saved_CFLAGS="$CFLAGS"
14756 CFLAGS="$CFLAGS -Werror"
fc6ffb29
AJ
14757 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
14758echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
b7443722
MM
14759if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14761else
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
14769int
14770main ()
14771{
14772int iswlower(unsigned short);
14773 ;
14774 return 0;
14775}
14776_ACEOF
14777rm -f conftest.$ac_objext
0ebeb530
JW
14778if { (ac_try="$ac_compile"
14779case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14782esac
14783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_compile") 2>conftest.er1
b7443722
MM
14785 ac_status=$?
14786 grep -v '^ *+' conftest.er1 >conftest.err
14787 rm -f conftest.er1
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } &&
0ebeb530
JW
14791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14792 { (case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14795esac
14796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797 (eval "$ac_try") 2>&5
b7443722
MM
14798 ac_status=$?
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; } &&
14801 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
14802 { (case "(($ac_try" in
14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804 *) ac_try_echo=$ac_try;;
14805esac
14806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807 (eval "$ac_try") 2>&5
b7443722
MM
14808 ac_status=$?
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; }; then
14811 ac_cv_c_builtin_wchar_ctype=no
14812else
14813 echo "$as_me: failed program was:" >&5
14814sed 's/^/| /' conftest.$ac_ext >&5
14815
fc6ffb29 14816 ac_cv_c_builtin_wchar_ctype=yes
b7443722 14817fi
fc6ffb29 14818
0ebeb530 14819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b7443722 14820fi
fc6ffb29
AJ
14821{ echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
14822echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
b7443722
MM
14823 CFLAGS="$saved_CFLAGS"
14824 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
14825 then
a26dabe3 14826 BUILTINFLAG="-fno-builtin"
b7443722 14827 fi
4f8c37b4
AJ
14828fi
14829
daa2886c 14830
fc6ffb29
AJ
14831{ echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
14832echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
84555cc7
AJ
14833if test "${ac_cv_asm_func_def+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14835else
14836 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
14837/* confdefs.h. */
14838_ACEOF
14839cat confdefs.h >>conftest.$ac_ext
14840cat >>conftest.$ac_ext <<_ACEOF
14841/* end confdefs.h. */
520852c7 14842void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
c77cbbcd 14843
f5818d2f
AJ
14844int
14845main ()
14846{
c77cbbcd 14847
f5818d2f
AJ
14848 ;
14849 return 0;
14850}
14851_ACEOF
14852rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
14853if { (ac_try="$ac_link"
14854case "(($ac_try" in
14855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856 *) ac_try_echo=$ac_try;;
14857esac
14858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859 (eval "$ac_link") 2>conftest.er1
f5818d2f 14860 ac_status=$?
875927f6
AJ
14861 grep -v '^ *+' conftest.er1 >conftest.err
14862 rm -f conftest.er1
14863 cat conftest.err >&5
daa2886c 14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 14865 (exit $ac_status); } &&
0ebeb530
JW
14866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14867 { (case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870esac
14871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_try") 2>&5
875927f6
AJ
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; } &&
14876 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
14877 { (case "(($ac_try" in
14878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879 *) ac_try_echo=$ac_try;;
14880esac
14881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882 (eval "$ac_try") 2>&5
f5818d2f 14883 ac_status=$?
daa2886c 14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 14885 (exit $ac_status); }; }; then
84555cc7 14886 ac_cv_asm_func_def=".def"
c77cbbcd 14887else
f5818d2f 14888 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14889sed 's/^/| /' conftest.$ac_ext >&5
14890
fc6ffb29 14891 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
14892/* confdefs.h. */
14893_ACEOF
14894cat confdefs.h >>conftest.$ac_ext
14895cat >>conftest.$ac_ext <<_ACEOF
14896/* end confdefs.h. */
520852c7 14897void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
c77cbbcd 14898
84555cc7
AJ
14899int
14900main ()
14901{
daa2886c 14902
84555cc7
AJ
14903 ;
14904 return 0;
14905}
14906_ACEOF
14907rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
14908if { (ac_try="$ac_link"
14909case "(($ac_try" in
14910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14912esac
14913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914 (eval "$ac_link") 2>conftest.er1
84555cc7 14915 ac_status=$?
875927f6
AJ
14916 grep -v '^ *+' conftest.er1 >conftest.err
14917 rm -f conftest.er1
14918 cat conftest.err >&5
84555cc7
AJ
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } &&
0ebeb530
JW
14921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14922 { (case "(($ac_try" in
14923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14925esac
14926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_try") 2>&5
875927f6
AJ
14928 ac_status=$?
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; } &&
14931 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
14932 { (case "(($ac_try" in
14933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934 *) ac_try_echo=$ac_try;;
14935esac
14936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14937 (eval "$ac_try") 2>&5
84555cc7
AJ
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_cv_asm_func_def=".type @function"
57807fa1 14942else
84555cc7 14943 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14944sed 's/^/| /' conftest.$ac_ext >&5
14945
fc6ffb29 14946 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
14951/* end confdefs.h. */
520852c7 14952void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
57807fa1 14953
57807fa1
GM
14954int
14955main ()
14956{
14957
14958 ;
14959 return 0;
14960}
14961_ACEOF
14962rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
14963if { (ac_try="$ac_link"
14964case "(($ac_try" in
14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14967esac
14968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_link") 2>conftest.er1
57807fa1 14970 ac_status=$?
875927f6
AJ
14971 grep -v '^ *+' conftest.er1 >conftest.err
14972 rm -f conftest.er1
14973 cat conftest.err >&5
57807fa1
GM
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } &&
0ebeb530
JW
14976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14977 { (case "(($ac_try" in
14978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14979 *) ac_try_echo=$ac_try;;
14980esac
14981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14982 (eval "$ac_try") 2>&5
875927f6
AJ
14983 ac_status=$?
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; } &&
14986 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
14987 { (case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14990esac
14991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_try") 2>&5
57807fa1
GM
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
84555cc7 14996 ac_cv_asm_func_def=".type 2"
57807fa1
GM
14997else
14998 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14999sed 's/^/| /' conftest.$ac_ext >&5
15000
fc6ffb29 15001 ac_cv_asm_func_def="unknown"
57807fa1 15002fi
fc6ffb29 15003
0ebeb530 15004rm -f core conftest.err conftest.$ac_objext \
875927f6 15005 conftest$ac_exeext conftest.$ac_ext
57807fa1 15006fi
fc6ffb29 15007
0ebeb530 15008rm -f core conftest.err conftest.$ac_objext \
875927f6 15009 conftest$ac_exeext conftest.$ac_ext
84555cc7 15010fi
fc6ffb29 15011
0ebeb530 15012rm -f core conftest.err conftest.$ac_objext \
875927f6 15013 conftest$ac_exeext conftest.$ac_ext
84555cc7 15014fi
fc6ffb29
AJ
15015{ echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15016echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
57807fa1 15017
57807fa1 15018
84555cc7
AJ
15019
15020case "$ac_cv_asm_func_def" in
15021 ".def")
15022 cat >>confdefs.h <<\_ACEOF
15023#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
15024_ACEOF
15025 ;;
15026 ".type @function")
15027 cat >>confdefs.h <<\_ACEOF
15028#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15029_ACEOF
15030 ;;
15031 ".type 2")
15032 cat >>confdefs.h <<\_ACEOF
15033#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15034_ACEOF
15035 ;;
15036 *)
15037 cat >>confdefs.h <<\_ACEOF
15038#define __ASM_FUNC(name) ""
15039_ACEOF
15040 ;;
15041esac
57807fa1
GM
15042
15043
fc6ffb29
AJ
15044{ echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15045echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
f5818d2f
AJ
15046if test "${ac_cv_c_extern_prefix+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
8cc3a5e4 15048else
84555cc7 15049 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
15050/* confdefs.h. */
15051_ACEOF
15052cat confdefs.h >>conftest.$ac_ext
15053cat >>conftest.$ac_ext <<_ACEOF
15054/* end confdefs.h. */
520852c7 15055void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
8cc3a5e4 15056extern int ac_test;
f5818d2f
AJ
15057int
15058main ()
15059{
8cc3a5e4 15060if (ac_test) return 1
f5818d2f
AJ
15061 ;
15062 return 0;
15063}
15064_ACEOF
fa3a5360 15065rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15066if { (ac_try="$ac_link"
15067case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15070esac
15071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_link") 2>conftest.er1
fa3a5360 15073 ac_status=$?
875927f6
AJ
15074 grep -v '^ *+' conftest.er1 >conftest.err
15075 rm -f conftest.er1
15076 cat conftest.err >&5
fa3a5360
AJ
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
0ebeb530
JW
15079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15080 { (case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15083esac
15084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_try") 2>&5
875927f6
AJ
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; } &&
15089 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
15090 { (case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15093esac
15094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_try") 2>&5
fa3a5360
AJ
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
15099 ac_cv_c_extern_prefix="yes"
15100else
15101 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15102sed 's/^/| /' conftest.$ac_ext >&5
15103
fc6ffb29 15104 ac_cv_c_extern_prefix="no"
fa3a5360 15105fi
fc6ffb29 15106
0ebeb530 15107rm -f core conftest.err conftest.$ac_objext \
875927f6 15108 conftest$ac_exeext conftest.$ac_ext
fa3a5360 15109fi
fc6ffb29
AJ
15110{ echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15111echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
84555cc7
AJ
15112
15113
15114
fa3a5360
AJ
15115if test "$ac_cv_c_extern_prefix" = "yes"
15116then
84555cc7
AJ
15117 cat >>confdefs.h <<\_ACEOF
15118#define __ASM_NAME(name) "_" name
15119_ACEOF
fa3a5360 15120
84555cc7
AJ
15121else
15122 cat >>confdefs.h <<\_ACEOF
15123#define __ASM_NAME(name) name
fa3a5360
AJ
15124_ACEOF
15125
15126fi
15127
15128
7bf07d15
AJ
15129DLLEXT=""
15130
fc09423d 15131DLLFLAGS="-D_REENTRANT"
7bf07d15 15132
7bf07d15
AJ
15133LDSHARED=""
15134
f41c2b21 15135LDDLLFLAGS=""
6ac34ac6 15136
ada5e652
AJ
15137LIBEXT="so"
15138
15139IMPLIBEXT="def"
15140
13a93b4a
AJ
15141LIBWINE_LDFLAGS=""
15142
7bf07d15 15143
fc01b729
AJ
15144case $host_os in
15145 cygwin*|mingw32*)
ada5e652
AJ
15146 if test -n "$ac_tool_prefix"; then
15147 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15148set dummy ${ac_tool_prefix}dlltool; ac_word=$2
fc6ffb29
AJ
15149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ada5e652
AJ
15151if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15153else
15154 if test -n "$DLLTOOL"; then
15155 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15156else
15157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15158for as_dir in $PATH
15159do
15160 IFS=$as_save_IFS
15161 test -z "$as_dir" && as_dir=.
15162 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 15163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ada5e652
AJ
15164 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15166 break 2
15167 fi
15168done
15169done
fc6ffb29 15170IFS=$as_save_IFS
ada5e652
AJ
15171
15172fi
15173fi
15174DLLTOOL=$ac_cv_prog_DLLTOOL
15175if test -n "$DLLTOOL"; then
fc6ffb29
AJ
15176 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15177echo "${ECHO_T}$DLLTOOL" >&6; }
ada5e652 15178else
fc6ffb29
AJ
15179 { echo "$as_me:$LINENO: result: no" >&5
15180echo "${ECHO_T}no" >&6; }
ada5e652
AJ
15181fi
15182
fc6ffb29 15183
ada5e652
AJ
15184fi
15185if test -z "$ac_cv_prog_DLLTOOL"; then
15186 ac_ct_DLLTOOL=$DLLTOOL
15187 # Extract the first word of "dlltool", so it can be a program name with args.
15188set dummy dlltool; ac_word=$2
fc6ffb29
AJ
15189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
ada5e652
AJ
15191if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15193else
15194 if test -n "$ac_ct_DLLTOOL"; then
15195 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15196else
15197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15198for as_dir in $PATH
15199do
15200 IFS=$as_save_IFS
15201 test -z "$as_dir" && as_dir=.
15202 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 15203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
ada5e652
AJ
15204 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15206 break 2
15207 fi
15208done
15209done
fc6ffb29 15210IFS=$as_save_IFS
ada5e652 15211
ada5e652
AJ
15212fi
15213fi
15214ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15215if test -n "$ac_ct_DLLTOOL"; then
fc6ffb29
AJ
15216 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15217echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
ada5e652 15218else
fc6ffb29
AJ
15219 { echo "$as_me:$LINENO: result: no" >&5
15220echo "${ECHO_T}no" >&6; }
ada5e652
AJ
15221fi
15222
fc6ffb29
AJ
15223 if test "x$ac_ct_DLLTOOL" = x; then
15224 DLLTOOL="false"
15225 else
15226 case $cross_compiling:$ac_tool_warned in
15227yes:)
15228{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15229whose name does not start with the host triplet. If you think this
15230configuration is useful to you, please write to autoconf@gnu.org." >&5
15231echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15232whose name does not start with the host triplet. If you think this
15233configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15234ac_tool_warned=yes ;;
15235esac
15236 DLLTOOL=$ac_ct_DLLTOOL
15237 fi
fa3a5360 15238else
73482144 15239 DLLTOOL="$ac_cv_prog_DLLTOOL"
fa3a5360 15240fi
73482144
AJ
15241
15242 if test -n "$ac_tool_prefix"; then
15243 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
15244set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
fc6ffb29
AJ
15245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
73482144
AJ
15247if test "${ac_cv_prog_DLLWRAP+set}" = set; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
fa3a5360 15249else
73482144
AJ
15250 if test -n "$DLLWRAP"; then
15251 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15252else
15253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15254for as_dir in $PATH
15255do
15256 IFS=$as_save_IFS
15257 test -z "$as_dir" && as_dir=.
15258 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 15259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
73482144
AJ
15260 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
15261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15262 break 2
15263 fi
15264done
15265done
fc6ffb29 15266IFS=$as_save_IFS
e24bcc77 15267
fa3a5360 15268fi
73482144
AJ
15269fi
15270DLLWRAP=$ac_cv_prog_DLLWRAP
15271if test -n "$DLLWRAP"; then
fc6ffb29
AJ
15272 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
15273echo "${ECHO_T}$DLLWRAP" >&6; }
73482144 15274else
fc6ffb29
AJ
15275 { echo "$as_me:$LINENO: result: no" >&5
15276echo "${ECHO_T}no" >&6; }
73482144 15277fi
8cc3a5e4 15278
fc6ffb29 15279
73482144
AJ
15280fi
15281if test -z "$ac_cv_prog_DLLWRAP"; then
15282 ac_ct_DLLWRAP=$DLLWRAP
15283 # Extract the first word of "dllwrap", so it can be a program name with args.
15284set dummy dllwrap; ac_word=$2
fc6ffb29
AJ
15285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
73482144 15287if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
fa3a5360
AJ
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15289else
73482144
AJ
15290 if test -n "$ac_ct_DLLWRAP"; then
15291 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
15292else
15293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15294for as_dir in $PATH
15295do
15296 IFS=$as_save_IFS
15297 test -z "$as_dir" && as_dir=.
15298 for ac_exec_ext in '' $ac_executable_extensions; do
fc6ffb29 15299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
73482144
AJ
15300 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
15301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15302 break 2
15303 fi
15304done
15305done
fc6ffb29 15306IFS=$as_save_IFS
73482144 15307
73482144
AJ
15308fi
15309fi
15310ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
15311if test -n "$ac_ct_DLLWRAP"; then
fc6ffb29
AJ
15312 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
15313echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
73482144 15314else
fc6ffb29
AJ
15315 { echo "$as_me:$LINENO: result: no" >&5
15316echo "${ECHO_T}no" >&6; }
8cc3a5e4
AJ
15317fi
15318
fc6ffb29
AJ
15319 if test "x$ac_ct_DLLWRAP" = x; then
15320 DLLWRAP="false"
15321 else
15322 case $cross_compiling:$ac_tool_warned in
15323yes:)
15324{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15325whose name does not start with the host triplet. If you think this
15326configuration is useful to you, please write to autoconf@gnu.org." >&5
15327echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15328whose name does not start with the host triplet. If you think this
15329configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15330ac_tool_warned=yes ;;
15331esac
e533e972
AJ
15332 DLLWRAP=$ac_ct_DLLWRAP
15333 fi
15334else
15335 DLLWRAP="$ac_cv_prog_DLLWRAP"
15336fi
15337
15338 if test "$DLLWRAP" = "false"; then
15339 LIBEXT="a"
15340 else
15341 LIBEXT="dll"
15342 fi
15343 IMPLIBEXT="a"
15344 WIN16_FILES=""
15345 WIN16_INSTALL=""
15346 ;;
42b81ea0
AJ
15347 darwin*|macosx*)
15348 DLLEXT=".so"
15349 LIBEXT="dylib"
15350 DLLFLAGS="$DLLFLAGS -fPIC"
15351 LDDLLFLAGS="-bundle -multiply_defined suppress"
13a93b4a 15352 LIBWINE_LDFLAGS="-multiply_defined suppress"
42b81ea0
AJ
15353 LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
15354 STRIP="$STRIP -u -r"
15355 COREFOUNDATIONLIB="-framework CoreFoundation"
15356
15357 IOKITLIB="-framework IOKit -framework CoreFoundation"
15358
6735eb2e
AJ
15359 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
15360
42b81ea0
AJ
15361 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
15362
15363 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
15364 then
15365 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
15366
15367 fi
15368 case $host_cpu in
15369 *powerpc*)
15370 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
15371 esac
15372 ;;
e533e972 15373 *)
42b81ea0
AJ
15374 DLLFLAGS="$DLLFLAGS -fPIC"
15375 DLLEXT=".so"
15376 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
e533e972
AJ
15377echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
15378if test "${ac_cv_c_dll_gnuelf+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15380else
15381 ac_wine_try_cflags_saved=$CFLAGS
15382CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
15383cat >conftest.$ac_ext <<_ACEOF
15384void myfunc() {}
15385_ACEOF
15386rm -f conftest.$ac_objext conftest$ac_exeext
15387if { (ac_try="$ac_link"
15388case "(($ac_try" in
15389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390 *) ac_try_echo=$ac_try;;
15391esac
15392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393 (eval "$ac_link") 2>conftest.er1
15394 ac_status=$?
15395 grep -v '^ *+' conftest.er1 >conftest.err
15396 rm -f conftest.er1
15397 cat conftest.err >&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); } &&
15400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15401 { (case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15404esac
15405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_try") 2>&5
15407 ac_status=$?
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; } &&
15410 { ac_try='test -s conftest$ac_exeext'
15411 { (case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414esac
15415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_try") 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420 ac_cv_c_dll_gnuelf="yes"
73482144 15421else
e533e972
AJ
15422 echo "$as_me: failed program was:" >&5
15423sed 's/^/| /' conftest.$ac_ext >&5
73482144 15424
e533e972
AJ
15425 ac_cv_c_dll_gnuelf="no"
15426fi
daa2886c 15427
e533e972
AJ
15428rm -f core conftest.err conftest.$ac_objext \
15429 conftest$ac_exeext conftest.$ac_ext
15430CFLAGS=$ac_wine_try_cflags_saved
15431fi
15432{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
15433echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
42b81ea0
AJ
15434 if test "$ac_cv_c_dll_gnuelf" = "yes"
15435 then
15436 LDSHARED="\$(CC) -shared"
15437 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
182d150a
AJ
15438 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
15439echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
15440if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
f5818d2f 15441 echo $ECHO_N "(cached) $ECHO_C" >&6
93a5b868 15442else
e533e972
AJ
15443 ac_wine_try_cflags_saved=$CFLAGS
15444CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
15445cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
15446/* confdefs.h. */
15447_ACEOF
15448cat confdefs.h >>conftest.$ac_ext
15449cat >>conftest.$ac_ext <<_ACEOF
15450/* end confdefs.h. */
fa3a5360 15451
e24bcc77
AJ
15452int
15453main ()
15454{
e533e972 15455
f5818d2f
AJ
15456 ;
15457 return 0;
15458}
15459_ACEOF
15460rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15461if { (ac_try="$ac_link"
15462case "(($ac_try" in
15463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464 *) ac_try_echo=$ac_try;;
15465esac
15466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467 (eval "$ac_link") 2>conftest.er1
f5818d2f 15468 ac_status=$?
875927f6
AJ
15469 grep -v '^ *+' conftest.er1 >conftest.err
15470 rm -f conftest.er1
15471 cat conftest.err >&5
daa2886c 15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15473 (exit $ac_status); } &&
0ebeb530
JW
15474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15475 { (case "(($ac_try" in
15476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15477 *) ac_try_echo=$ac_try;;
15478esac
15479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15480 (eval "$ac_try") 2>&5
875927f6
AJ
15481 ac_status=$?
15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483 (exit $ac_status); }; } &&
15484 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
15485 { (case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15488esac
15489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_try") 2>&5
f5818d2f 15491 ac_status=$?
daa2886c 15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15493 (exit $ac_status); }; }; then
182d150a 15494 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
93a5b868 15495else
f5818d2f 15496 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15497sed 's/^/| /' conftest.$ac_ext >&5
15498
182d150a 15499 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
93a5b868 15500fi
fc6ffb29 15501
0ebeb530 15502rm -f core conftest.err conftest.$ac_objext \
875927f6 15503 conftest$ac_exeext conftest.$ac_ext
e533e972 15504CFLAGS=$ac_wine_try_cflags_saved
93a5b868 15505fi
182d150a
AJ
15506{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
15507echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
15508if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
15509 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
15510else
15511 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
15512echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
15513if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
f5818d2f 15514 echo $ECHO_N "(cached) $ECHO_C" >&6
0623a6f3 15515else
e533e972
AJ
15516 ac_wine_try_cflags_saved=$CFLAGS
15517CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
f5818d2f 15518cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
15519/* confdefs.h. */
15520_ACEOF
15521cat confdefs.h >>conftest.$ac_ext
15522cat >>conftest.$ac_ext <<_ACEOF
15523/* end confdefs.h. */
0623a6f3 15524
f5818d2f
AJ
15525int
15526main ()
15527{
e533e972 15528
f5818d2f
AJ
15529 ;
15530 return 0;
15531}
15532_ACEOF
15533rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15534if { (ac_try="$ac_link"
15535case "(($ac_try" in
15536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15537 *) ac_try_echo=$ac_try;;
15538esac
15539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15540 (eval "$ac_link") 2>conftest.er1
f5818d2f 15541 ac_status=$?
875927f6
AJ
15542 grep -v '^ *+' conftest.er1 >conftest.err
15543 rm -f conftest.er1
15544 cat conftest.err >&5
daa2886c 15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15546 (exit $ac_status); } &&
0ebeb530
JW
15547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15548 { (case "(($ac_try" in
15549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550 *) ac_try_echo=$ac_try;;
15551esac
15552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15553 (eval "$ac_try") 2>&5
875927f6
AJ
15554 ac_status=$?
15555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; } &&
15557 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
15558 { (case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15561esac
15562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_try") 2>&5
f5818d2f 15564 ac_status=$?
daa2886c 15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15566 (exit $ac_status); }; }; then
182d150a 15567 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
0623a6f3 15568else
f5818d2f 15569 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15570sed 's/^/| /' conftest.$ac_ext >&5
15571
182d150a 15572 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
0623a6f3 15573fi
fc6ffb29 15574
0ebeb530 15575rm -f core conftest.err conftest.$ac_objext \
875927f6 15576 conftest$ac_exeext conftest.$ac_ext
e533e972 15577CFLAGS=$ac_wine_try_cflags_saved
fa3a5360 15578fi
182d150a
AJ
15579{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
15580echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
15581if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
15582 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
15583fi
15584
15585fi
15586
266c609d 15587
182d150a
AJ
15588 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
15589echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
15590if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
266c609d
AJ
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15592else
e533e972
AJ
15593 ac_wine_try_cflags_saved=$CFLAGS
15594CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
15595cat >conftest.$ac_ext <<_ACEOF
266c609d
AJ
15596/* confdefs.h. */
15597_ACEOF
15598cat confdefs.h >>conftest.$ac_ext
15599cat >>conftest.$ac_ext <<_ACEOF
15600/* end confdefs.h. */
266c609d
AJ
15601
15602int
15603main ()
15604{
e533e972 15605
266c609d
AJ
15606 ;
15607 return 0;
15608}
15609_ACEOF
15610rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15611if { (ac_try="$ac_link"
15612case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15615esac
15616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_link") 2>conftest.er1
266c609d
AJ
15618 ac_status=$?
15619 grep -v '^ *+' conftest.er1 >conftest.err
15620 rm -f conftest.er1
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
0ebeb530
JW
15624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15625 { (case "(($ac_try" in
15626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627 *) ac_try_echo=$ac_try;;
15628esac
15629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_try") 2>&5
266c609d
AJ
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
15635 { (case "(($ac_try" in
15636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15638esac
15639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_try") 2>&5
266c609d
AJ
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
182d150a 15644 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
266c609d
AJ
15645else
15646 echo "$as_me: failed program was:" >&5
15647sed 's/^/| /' conftest.$ac_ext >&5
15648
182d150a 15649 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
266c609d 15650fi
fc6ffb29 15651
0ebeb530 15652rm -f core conftest.err conftest.$ac_objext \
266c609d 15653 conftest$ac_exeext conftest.$ac_ext
e533e972 15654CFLAGS=$ac_wine_try_cflags_saved
266c609d 15655fi
182d150a
AJ
15656{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
15657echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
15658if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
15659 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
15660fi
fa3a5360 15661
182d150a
AJ
15662
15663 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
15664echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
15665if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
f5818d2f 15666 echo $ECHO_N "(cached) $ECHO_C" >&6
7e6ae4ba 15667else
67e8dc68 15668 ac_wine_try_cflags_saved=$CFLAGS
e533e972 15669CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
67e8dc68 15670cat >conftest.$ac_ext <<_ACEOF
e533e972
AJ
15671/* confdefs.h. */
15672_ACEOF
15673cat confdefs.h >>conftest.$ac_ext
15674cat >>conftest.$ac_ext <<_ACEOF
15675/* end confdefs.h. */
15676
15677int
15678main ()
15679{
15680
15681 ;
15682 return 0;
15683}
f5818d2f
AJ
15684_ACEOF
15685rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15686if { (ac_try="$ac_link"
15687case "(($ac_try" in
15688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689 *) ac_try_echo=$ac_try;;
15690esac
15691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15692 (eval "$ac_link") 2>conftest.er1
f5818d2f 15693 ac_status=$?
875927f6
AJ
15694 grep -v '^ *+' conftest.er1 >conftest.err
15695 rm -f conftest.er1
15696 cat conftest.err >&5
daa2886c 15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15698 (exit $ac_status); } &&
0ebeb530
JW
15699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15700 { (case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15703esac
15704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15705 (eval "$ac_try") 2>&5
875927f6
AJ
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; } &&
15709 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
15710 { (case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15713esac
15714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_try") 2>&5
f5818d2f 15716 ac_status=$?
daa2886c 15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15718 (exit $ac_status); }; }; then
182d150a 15719 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
7e6ae4ba 15720else
f5818d2f 15721 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15722sed 's/^/| /' conftest.$ac_ext >&5
15723
182d150a 15724 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
7e6ae4ba 15725fi
fc6ffb29 15726
0ebeb530 15727rm -f core conftest.err conftest.$ac_objext \
875927f6 15728 conftest$ac_exeext conftest.$ac_ext
67e8dc68 15729CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 15730fi
182d150a
AJ
15731{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
15732echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
15733if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
15734 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
15735fi
15736
e533e972 15737
182d150a
AJ
15738 echo '{ global: *; };' >conftest.map
15739 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
15740echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
15741if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
0ebeb530
JW
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15743else
182d150a 15744 ac_wine_try_cflags_saved=$CFLAGS
e533e972 15745CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
0ebeb530
JW
15746cat >conftest.$ac_ext <<_ACEOF
15747/* confdefs.h. */
15748_ACEOF
15749cat confdefs.h >>conftest.$ac_ext
15750cat >>conftest.$ac_ext <<_ACEOF
15751/* end confdefs.h. */
15752
15753int
15754main ()
15755{
15756
15757 ;
15758 return 0;
15759}
15760_ACEOF
15761rm -f conftest.$ac_objext conftest$ac_exeext
15762if { (ac_try="$ac_link"
15763case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15766esac
15767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15768 (eval "$ac_link") 2>conftest.er1
15769 ac_status=$?
15770 grep -v '^ *+' conftest.er1 >conftest.err
15771 rm -f conftest.er1
15772 cat conftest.err >&5
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } &&
15775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15776 { (case "(($ac_try" in
15777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15779esac
15780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_try") 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; } &&
15785 { ac_try='test -s conftest$ac_exeext'
15786 { (case "(($ac_try" in
15787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15788 *) ac_try_echo=$ac_try;;
15789esac
15790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15791 (eval "$ac_try") 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
182d150a 15795 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
0ebeb530
JW
15796else
15797 echo "$as_me: failed program was:" >&5
15798sed 's/^/| /' conftest.$ac_ext >&5
15799
182d150a 15800 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
0ebeb530
JW
15801fi
15802
15803rm -f core conftest.err conftest.$ac_objext \
15804 conftest$ac_exeext conftest.$ac_ext
15805CFLAGS=$ac_wine_try_cflags_saved
15806fi
182d150a
AJ
15807{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
15808echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
15809if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
15810 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
15811fi
15812
15813 rm -f conftest.map
e533e972 15814
182d150a
AJ
15815 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
15816echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
15817if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
0ebeb530
JW
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15819else
15820 ac_wine_try_cflags_saved=$CFLAGS
e533e972 15821CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
0ebeb530
JW
15822cat >conftest.$ac_ext <<_ACEOF
15823/* confdefs.h. */
15824_ACEOF
15825cat confdefs.h >>conftest.$ac_ext
15826cat >>conftest.$ac_ext <<_ACEOF
15827/* end confdefs.h. */
15828
15829int
15830main ()
15831{
15832
15833 ;
15834 return 0;
15835}
15836_ACEOF
15837rm -f conftest.$ac_objext conftest$ac_exeext
15838if { (ac_try="$ac_link"
15839case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15842esac
15843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_link") 2>conftest.er1
15845 ac_status=$?
15846 grep -v '^ *+' conftest.er1 >conftest.err
15847 rm -f conftest.er1
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } &&
15851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15852 { (case "(($ac_try" in
15853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854 *) ac_try_echo=$ac_try;;
15855esac
15856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857 (eval "$ac_try") 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }; } &&
15861 { ac_try='test -s conftest$ac_exeext'
15862 { (case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15865esac
15866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_try") 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; }; then
182d150a 15871 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
0ebeb530
JW
15872else
15873 echo "$as_me: failed program was:" >&5
15874sed 's/^/| /' conftest.$ac_ext >&5
15875
182d150a 15876 ac_cv_cflags__fPIC__Wl___export_dynamic=no
0ebeb530
JW
15877fi
15878
15879rm -f core conftest.err conftest.$ac_objext \
15880 conftest$ac_exeext conftest.$ac_ext
15881CFLAGS=$ac_wine_try_cflags_saved
15882fi
182d150a
AJ
15883{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
15884echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
15885if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
15886 LDEXECFLAGS="-Wl,--export-dynamic"
15887
15888fi
e533e972 15889
0ebeb530 15890
182d150a
AJ
15891 as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
15892{ echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
15893echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
15894if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
f2abe47d
AJ
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15896else
15897 ac_wine_try_cflags_saved=$CFLAGS
e533e972 15898CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
f2abe47d 15899cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
15900/* confdefs.h. */
15901_ACEOF
15902cat confdefs.h >>conftest.$ac_ext
15903cat >>conftest.$ac_ext <<_ACEOF
15904/* end confdefs.h. */
f2abe47d
AJ
15905
15906int
15907main ()
15908{
15909
15910 ;
15911 return 0;
15912}
15913_ACEOF
15914rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15915if { (ac_try="$ac_link"
15916case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15919esac
15920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_link") 2>conftest.er1
f2abe47d 15922 ac_status=$?
875927f6
AJ
15923 grep -v '^ *+' conftest.er1 >conftest.err
15924 rm -f conftest.er1
15925 cat conftest.err >&5
f2abe47d
AJ
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); } &&
0ebeb530
JW
15928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15929 { (case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15932esac
15933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_try") 2>&5
875927f6
AJ
15935 ac_status=$?
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; } &&
15938 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
15939 { (case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15942esac
15943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_try") 2>&5
f2abe47d
AJ
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
182d150a 15948 eval "$as_ac_var=yes"
f2abe47d
AJ
15949else
15950 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15951sed 's/^/| /' conftest.$ac_ext >&5
15952
182d150a 15953 eval "$as_ac_var=no"
f2abe47d 15954fi
fc6ffb29 15955
0ebeb530 15956rm -f core conftest.err conftest.$ac_objext \
875927f6 15957 conftest$ac_exeext conftest.$ac_ext
f2abe47d
AJ
15958CFLAGS=$ac_wine_try_cflags_saved
15959fi
182d150a
AJ
15960ac_res=`eval echo '${'$as_ac_var'}'`
15961 { echo "$as_me:$LINENO: result: $ac_res" >&5
15962echo "${ECHO_T}$ac_res" >&6; }
15963if test `eval echo '${'$as_ac_var'}'` = yes; then
13a93b4a 15964 LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
182d150a 15965fi
e533e972 15966
4d52d379 15967
42b81ea0
AJ
15968 case $host_cpu in
15969 *i[3456789]86* | x86_64)
182d150a
AJ
15970 { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
15971echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
15972if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
36048242
AJ
15973 echo $ECHO_N "(cached) $ECHO_C" >&6
15974else
15975 ac_wine_try_cflags_saved=$CFLAGS
e533e972 15976CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
36048242
AJ
15977cat >conftest.$ac_ext <<_ACEOF
15978/* confdefs.h. */
15979_ACEOF
15980cat confdefs.h >>conftest.$ac_ext
15981cat >>conftest.$ac_ext <<_ACEOF
15982/* end confdefs.h. */
15983
15984int
15985main ()
15986{
15987
15988 ;
15989 return 0;
15990}
15991_ACEOF
15992rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
15993if { (ac_try="$ac_link"
15994case "(($ac_try" in
15995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996 *) ac_try_echo=$ac_try;;
15997esac
15998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999 (eval "$ac_link") 2>conftest.er1
36048242
AJ
16000 ac_status=$?
16001 grep -v '^ *+' conftest.er1 >conftest.err
16002 rm -f conftest.er1
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } &&
0ebeb530
JW
16006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16007 { (case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16010esac
16011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012 (eval "$ac_try") 2>&5
36048242
AJ
16013 ac_status=$?
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; } &&
16016 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
16017 { (case "(($ac_try" in
16018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019 *) ac_try_echo=$ac_try;;
16020esac
16021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16022 (eval "$ac_try") 2>&5
36048242
AJ
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; }; then
182d150a 16026 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
36048242
AJ
16027else
16028 echo "$as_me: failed program was:" >&5
16029sed 's/^/| /' conftest.$ac_ext >&5
16030
182d150a 16031 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
36048242 16032fi
fc6ffb29 16033
0ebeb530 16034rm -f core conftest.err conftest.$ac_objext \
36048242
AJ
16035 conftest$ac_exeext conftest.$ac_ext
16036CFLAGS=$ac_wine_try_cflags_saved
16037fi
182d150a
AJ
16038{ echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
16039echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
16040if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
16041 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
16042fi
16043
42b81ea0
AJ
16044 ;;
16045 esac
36048242 16046
42b81ea0
AJ
16047 else
16048 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
e533e972
AJ
16049echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
16050if test "${ac_cv_c_dll_unixware+set}" = set; then
440ff6db
AJ
16051 echo $ECHO_N "(cached) $ECHO_C" >&6
16052else
e533e972
AJ
16053 ac_wine_try_cflags_saved=$CFLAGS
16054CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
440ff6db 16055cat >conftest.$ac_ext <<_ACEOF
e533e972 16056void myfunc() {}
440ff6db
AJ
16057_ACEOF
16058rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
16059if { (ac_try="$ac_link"
16060case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063esac
16064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_link") 2>conftest.er1
440ff6db
AJ
16066 ac_status=$?
16067 grep -v '^ *+' conftest.er1 >conftest.err
16068 rm -f conftest.er1
16069 cat conftest.err >&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
0ebeb530
JW
16072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16073 { (case "(($ac_try" in
16074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075 *) ac_try_echo=$ac_try;;
16076esac
16077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_try") 2>&5
440ff6db
AJ
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
16083 { (case "(($ac_try" in
16084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085 *) ac_try_echo=$ac_try;;
16086esac
16087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088 (eval "$ac_try") 2>&5
440ff6db
AJ
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
e533e972 16092 ac_cv_c_dll_unixware="yes"
440ff6db
AJ
16093else
16094 echo "$as_me: failed program was:" >&5
16095sed 's/^/| /' conftest.$ac_ext >&5
16096
e533e972 16097 ac_cv_c_dll_unixware="no"
440ff6db 16098fi
fc6ffb29 16099
0ebeb530 16100rm -f core conftest.err conftest.$ac_objext \
440ff6db
AJ
16101 conftest$ac_exeext conftest.$ac_ext
16102CFLAGS=$ac_wine_try_cflags_saved
440ff6db 16103fi
e533e972
AJ
16104{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
16105echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
42b81ea0
AJ
16106 if test "$ac_cv_c_dll_unixware" = "yes"
16107 then
16108 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
16109 LDDLLFLAGS="-Wl,-G,-B,symbolic"
e533e972 16110
42b81ea0
AJ
16111 else
16112 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
e533e972
AJ
16113echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
16114if test "${ac_cv_c_dll_hpux+set}" = set; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16116else
16117 ac_wine_try_cflags_saved=$CFLAGS
16118CFLAGS="$CFLAGS -shared"
16119cat >conftest.$ac_ext <<_ACEOF
16120void myfunc() {}
ef2d04d4
AJ
16121_ACEOF
16122rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
16123if { (ac_try="$ac_link"
16124case "(($ac_try" in
16125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16126 *) ac_try_echo=$ac_try;;
16127esac
16128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16129 (eval "$ac_link") 2>conftest.er1
ef2d04d4 16130 ac_status=$?
875927f6
AJ
16131 grep -v '^ *+' conftest.er1 >conftest.err
16132 rm -f conftest.er1
16133 cat conftest.err >&5
ef2d04d4
AJ
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } &&
0ebeb530
JW
16136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16137 { (case "(($ac_try" in
16138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16139 *) ac_try_echo=$ac_try;;
16140esac
16141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16142 (eval "$ac_try") 2>&5
875927f6
AJ
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; } &&
16146 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
16147 { (case "(($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_try") 2>&5
ef2d04d4
AJ
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; }; then
e533e972 16156 ac_cv_c_dll_hpux="yes"
ef2d04d4
AJ
16157else
16158 echo "$as_me: failed program was:" >&5
16159sed 's/^/| /' conftest.$ac_ext >&5
16160
e533e972 16161 ac_cv_c_dll_hpux="no"
ef2d04d4 16162fi
fc6ffb29 16163
0ebeb530 16164rm -f core conftest.err conftest.$ac_objext \
875927f6 16165 conftest$ac_exeext conftest.$ac_ext
ef2d04d4
AJ
16166CFLAGS=$ac_wine_try_cflags_saved
16167fi
e533e972
AJ
16168{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
16169echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
42b81ea0
AJ
16170 if test "$ac_cv_c_dll_hpux" = "yes"
16171 then
16172 LIBEXT="sl"
16173 DLLEXT=".sl"
16174 LDDLLFLAGS="-shared -fPIC"
16175 LDSHARED="\$(CC) -shared"
e533e972
AJ
16176 fi
16177 fi
42b81ea0 16178 fi
e533e972
AJ
16179
16180 CROSSTEST=""
16181
16182 if test "$cross_compiling" = "no"
16183 then
5af9402e 16184 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc
e533e972
AJ
16185do
16186 # Extract the first word of "$ac_prog", so it can be a program name with args.
16187set dummy $ac_prog; ac_word=$2
16188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16190if test "${ac_cv_prog_CROSSCC+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16192else
16193 if test -n "$CROSSCC"; then
16194 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
16195else
16196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16197for as_dir in $PATH
16198do
16199 IFS=$as_save_IFS
16200 test -z "$as_dir" && as_dir=.
16201 for ac_exec_ext in '' $ac_executable_extensions; do
16202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16203 ac_cv_prog_CROSSCC="$ac_prog"
16204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16205 break 2
16206 fi
16207done
16208done
16209IFS=$as_save_IFS
16210
16211fi
16212fi
16213CROSSCC=$ac_cv_prog_CROSSCC
16214if test -n "$CROSSCC"; then
16215 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
16216echo "${ECHO_T}$CROSSCC" >&6; }
16217else
16218 { echo "$as_me:$LINENO: result: no" >&5
16219echo "${ECHO_T}no" >&6; }
16220fi
16221
16222
16223 test -n "$CROSSCC" && break
16224done
16225test -n "$CROSSCC" || CROSSCC="false"
16226
5af9402e 16227 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool
e533e972
AJ
16228do
16229 # Extract the first word of "$ac_prog", so it can be a program name with args.
16230set dummy $ac_prog; ac_word=$2
16231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16233if test "${ac_cv_prog_DLLTOOL+set}" = set; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16235else
16236 if test -n "$DLLTOOL"; then
16237 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16238else
16239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16240for as_dir in $PATH
16241do
16242 IFS=$as_save_IFS
16243 test -z "$as_dir" && as_dir=.
16244 for ac_exec_ext in '' $ac_executable_extensions; do
16245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16246 ac_cv_prog_DLLTOOL="$ac_prog"
16247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16248 break 2
16249 fi
16250done
16251done
16252IFS=$as_save_IFS
16253
16254fi
16255fi
16256DLLTOOL=$ac_cv_prog_DLLTOOL
16257if test -n "$DLLTOOL"; then
16258 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
16259echo "${ECHO_T}$DLLTOOL" >&6; }
16260else
16261 { echo "$as_me:$LINENO: result: no" >&5
16262echo "${ECHO_T}no" >&6; }
16263fi
16264
16265
16266 test -n "$DLLTOOL" && break
16267done
16268test -n "$DLLTOOL" || DLLTOOL="false"
16269
5af9402e 16270 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw32-windres mingw-windres
e533e972
AJ
16271do
16272 # Extract the first word of "$ac_prog", so it can be a program name with args.
16273set dummy $ac_prog; ac_word=$2
16274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16276if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6
16278else
16279 if test -n "$CROSSWINDRES"; then
16280 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
16281else
16282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16283for as_dir in $PATH
16284do
16285 IFS=$as_save_IFS
16286 test -z "$as_dir" && as_dir=.
16287 for ac_exec_ext in '' $ac_executable_extensions; do
16288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16289 ac_cv_prog_CROSSWINDRES="$ac_prog"
16290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16291 break 2
16292 fi
16293done
16294done
16295IFS=$as_save_IFS
16296
16297fi
16298fi
16299CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
16300if test -n "$CROSSWINDRES"; then
16301 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
16302echo "${ECHO_T}$CROSSWINDRES" >&6; }
16303else
16304 { echo "$as_me:$LINENO: result: no" >&5
16305echo "${ECHO_T}no" >&6; }
16306fi
16307
16308
16309 test -n "$CROSSWINDRES" && break
16310done
16311test -n "$CROSSWINDRES" || CROSSWINDRES="false"
16312
16313 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
16314 fi
16315 ;;
16316esac
16317
16318if test "$LIBEXT" = "a"; then
16319 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
16320It is currently not possible to build Wine without shared library
16321(.so) support to allow transparent switch between .so and .dll files.
16322If you are using Linux, you will need a newer binutils.
16323" >&5
16324echo "$as_me: error: could not find a way to build shared libraries.
16325It is currently not possible to build Wine without shared library
16326(.so) support to allow transparent switch between .so and .dll files.
16327If you are using Linux, you will need a newer binutils.
16328" >&2;}
16329 { (exit 1); exit 1; }; }
16330fi
16331
16332case $build_os in
16333 cygwin*|mingw32*)
16334 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
16335 ;;
16336 darwin*|macosx*)
16337 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
16338 ;;
16339 *)
16340 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
16341 ;;
16342esac
16343
16344case $host_os in
16345 mingw32*)
16346 CRTLIBS="-lmsvcrt"
16347
16348 SOCKETLIBS="-lws2_32"
16349
16350 ;;
16351esac
16352
16353MAIN_BINARY="wine-pthread"
16354 case $host_cpu in
16355 *i[3456789]86*)
16356 case $host_os in
16357 linux* | k*bsd*-gnu)
16358 MAIN_BINARY="wine-glibc"
16359
16360 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
16361 ;;
16362 esac
16363 ;;
16364esac
16365
16366
16367if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
16368then
16369 # Extract the first word of "ldd", so it can be a program name with args.
16370set dummy ldd; ac_word=$2
16371{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16373if test "${ac_cv_path_LDD+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16375else
16376 case $LDD in
16377 [\\/]* | ?:[\\/]*)
16378 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
16379 ;;
16380 *)
16381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16382as_dummy="/sbin:/usr/sbin:$PATH"
16383for as_dir in $as_dummy
16384do
16385 IFS=$as_save_IFS
16386 test -z "$as_dir" && as_dir=.
16387 for ac_exec_ext in '' $ac_executable_extensions; do
16388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16389 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
16390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16391 break 2
16392 fi
16393done
16394done
16395IFS=$as_save_IFS
16396
16397 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
16398 ;;
16399esac
16400fi
16401LDD=$ac_cv_path_LDD
16402if test -n "$LDD"; then
16403 { echo "$as_me:$LINENO: result: $LDD" >&5
16404echo "${ECHO_T}$LDD" >&6; }
16405else
16406 { echo "$as_me:$LINENO: result: no" >&5
16407echo "${ECHO_T}no" >&6; }
16408fi
c6d44be3 16409
c6d44be3 16410
e533e972
AJ
16411{ echo "$as_me:$LINENO: checking for -lX11 soname" >&5
16412echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
16413if test "${ac_cv_lib_soname_X11+set}" = set; then
5ed59015
AJ
16414 echo $ECHO_N "(cached) $ECHO_C" >&6
16415else
e533e972
AJ
16416 ac_get_soname_save_LIBS=$LIBS
16417LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
16418 cat >conftest.$ac_ext <<_ACEOF
5ed59015
AJ
16419/* confdefs.h. */
16420_ACEOF
16421cat confdefs.h >>conftest.$ac_ext
16422cat >>conftest.$ac_ext <<_ACEOF
16423/* end confdefs.h. */
16424
e533e972
AJ
16425/* Override any GCC internal prototype to avoid an error.
16426 Use char because int might match the return type of a GCC
16427 builtin and then its argument prototype would still apply. */
16428#ifdef __cplusplus
16429extern "C"
16430#endif
16431char XCreateWindow ();
5ed59015
AJ
16432int
16433main ()
16434{
e533e972 16435return XCreateWindow ();
5ed59015
AJ
16436 ;
16437 return 0;
16438}
16439_ACEOF
16440rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
16441if { (ac_try="$ac_link"
16442case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445esac
16446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_link") 2>conftest.er1
5ed59015
AJ
16448 ac_status=$?
16449 grep -v '^ *+' conftest.er1 >conftest.err
16450 rm -f conftest.er1
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453 (exit $ac_status); } &&
0ebeb530
JW
16454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16455 { (case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16458esac
16459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_try") 2>&5
5ed59015
AJ
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; } &&
16464 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
16465 { (case "(($ac_try" in
16466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16467 *) ac_try_echo=$ac_try;;
16468esac
16469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16470 (eval "$ac_try") 2>&5
5ed59015
AJ
16471 ac_status=$?
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
e533e972
AJ
16474 case "$LIBEXT" in
16475 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'` ;;
16476 so) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed -e "s/^.*\(libX11\.so[^ ]*\).*$/\1/"';2,$d'` ;;
16477 esac
16478 if test "x$ac_cv_lib_soname_X11" = "x"
16479 then
16480 ac_cv_lib_soname_X11="libX11.$LIBEXT"
16481 fi
5ed59015
AJ
16482else
16483 echo "$as_me: failed program was:" >&5
16484sed 's/^/| /' conftest.$ac_ext >&5
16485
e533e972 16486 ac_cv_lib_soname_X11="libX11.$LIBEXT"
5ed59015 16487fi
fc6ffb29 16488
0ebeb530 16489rm -f core conftest.err conftest.$ac_objext \
5ed59015 16490 conftest$ac_exeext conftest.$ac_ext
e533e972 16491 LIBS=$ac_get_soname_save_LIBS
5ed59015 16492fi
e533e972
AJ
16493{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
16494echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
16495if test "${ac_cv_lib_soname_X11+set}" = set; then
5ed59015 16496
e533e972
AJ
16497cat >>confdefs.h <<_ACEOF
16498#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
16499_ACEOF
1fd32cfa 16500
e533e972 16501fi
5ed59015 16502
e533e972
AJ
16503 { echo "$as_me:$LINENO: checking for -lXext soname" >&5
16504echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
16505if test "${ac_cv_lib_soname_Xext+set}" = set; then
c6d44be3
AJ
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16507else
e533e972
AJ
16508 ac_get_soname_save_LIBS=$LIBS
16509LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
16510 cat >conftest.$ac_ext <<_ACEOF
c6d44be3
AJ
16511/* confdefs.h. */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h. */
b1abca8a 16516
e533e972
AJ
16517/* Override any GCC internal prototype to avoid an error.
16518 Use char because int might match the return type of a GCC
16519 builtin and then its argument prototype would still apply. */
16520#ifdef __cplusplus
16521extern "C"
16522#endif
16523char XextCreateExtension ();
b1abca8a
AJ
16524int
16525main ()
16526{
e533e972 16527return XextCreateExtension ();
b1abca8a
AJ
16528 ;
16529 return 0;
16530}
c6d44be3 16531_ACEOF
b1abca8a 16532rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
16533if { (ac_try="$ac_link"
16534case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16537esac
16538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_link") 2>conftest.er1
c6d44be3 16540 ac_status=$?
b1abca8a
AJ
16541 grep -v '^ *+' conftest.er1 >conftest.err
16542 rm -f conftest.er1
16543 cat conftest.err >&5
c6d44be3 16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
b1abca8a 16545 (exit $ac_status); } &&
0ebeb530
JW
16546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16547 { (case "(($ac_try" in
16548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16550esac
16551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552 (eval "$ac_try") 2>&5
b1abca8a
AJ
16553 ac_status=$?
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; } &&
16556 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
16557 { (case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16560esac
16561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_try") 2>&5
c6d44be3
AJ
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
e533e972
AJ
16566 case "$LIBEXT" in
16567 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'` ;;
16568 so) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed -e "s/^.*\(libXext\.so[^ ]*\).*$/\1/"';2,$d'` ;;
16569 esac
16570 if test "x$ac_cv_lib_soname_Xext" = "x"
16571 then
16572 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
16573 fi
c6d44be3 16574else
b1abca8a 16575 echo "$as_me: failed program was:" >&5
c6d44be3
AJ
16576sed 's/^/| /' conftest.$ac_ext >&5
16577
e533e972 16578 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
c6d44be3 16579fi
fc6ffb29 16580
0ebeb530 16581rm -f core conftest.err conftest.$ac_objext \
b1abca8a 16582 conftest$ac_exeext conftest.$ac_ext
e533e972 16583 LIBS=$ac_get_soname_save_LIBS
c6d44be3 16584fi
e533e972
AJ
16585{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
16586echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
16587if test "${ac_cv_lib_soname_Xext+set}" = set; then
c6d44be3 16588
e533e972
AJ
16589cat >>confdefs.h <<_ACEOF
16590#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
f5818d2f 16591_ACEOF
fc6ffb29 16592
f5818d2f 16593fi
794bf0fd 16594
e533e972
AJ
16595 { echo "$as_me:$LINENO: checking for -lXi soname" >&5
16596echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
16597if test "${ac_cv_lib_soname_Xi+set}" = set; then
794bf0fd
PH
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16599else
e533e972
AJ
16600 ac_get_soname_save_LIBS=$LIBS
16601LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16602 cat >conftest.$ac_ext <<_ACEOF
16603/* confdefs.h. */
794bf0fd 16604_ACEOF
e533e972
AJ
16605cat confdefs.h >>conftest.$ac_ext
16606cat >>conftest.$ac_ext <<_ACEOF
16607/* end confdefs.h. */
16608
16609/* Override any GCC internal prototype to avoid an error.
16610 Use char because int might match the return type of a GCC
16611 builtin and then its argument prototype would still apply. */
16612#ifdef __cplusplus
16613extern "C"
16614#endif
16615char XOpenDevice ();
16616int
16617main ()
16618{
16619return XOpenDevice ();
16620 ;
16621 return 0;
16622}
421e8b92
WB
16623_ACEOF
16624rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
16625if { (ac_try="$ac_link"
16626case "(($ac_try" in
16627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16628 *) ac_try_echo=$ac_try;;
16629esac
16630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16631 (eval "$ac_link") 2>conftest.er1
421e8b92
WB
16632 ac_status=$?
16633 grep -v '^ *+' conftest.er1 >conftest.err
16634 rm -f conftest.er1
16635 cat conftest.err >&5
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); } &&
0ebeb530
JW
16638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16639 { (case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16642esac
16643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644 (eval "$ac_try") 2>&5
421e8b92
WB
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; } &&
16648 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
16649 { (case "(($ac_try" in
16650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651 *) ac_try_echo=$ac_try;;
16652esac
16653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16654 (eval "$ac_try") 2>&5
421e8b92
WB
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; }; then
e533e972
AJ
16658 case "$LIBEXT" in
16659 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'` ;;
16660 so) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed -e "s/^.*\(libXi\.so[^ ]*\).*$/\1/"';2,$d'` ;;
16661 esac
16662 if test "x$ac_cv_lib_soname_Xi" = "x"
16663 then
16664 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
16665 fi
421e8b92
WB
16666else
16667 echo "$as_me: failed program was:" >&5
16668sed 's/^/| /' conftest.$ac_ext >&5
16669
e533e972 16670 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
421e8b92 16671fi
fc6ffb29 16672
0ebeb530 16673rm -f core conftest.err conftest.$ac_objext \
421e8b92 16674 conftest$ac_exeext conftest.$ac_ext
e533e972 16675 LIBS=$ac_get_soname_save_LIBS
c3c587eb 16676fi
e533e972
AJ
16677{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
16678echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
16679if test "${ac_cv_lib_soname_Xi+set}" = set; then
c3c587eb 16680
e533e972
AJ
16681cat >>confdefs.h <<_ACEOF
16682#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
16683_ACEOF
fc6ffb29 16684
7d00b050
AJ
16685fi
16686
16687 { echo "$as_me:$LINENO: checking for -lXinerama soname" >&5
16688echo $ECHO_N "checking for -lXinerama soname... $ECHO_C" >&6; }
16689if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16691else
16692 ac_get_soname_save_LIBS=$LIBS
16693LIBS="-lXinerama $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16694 cat >conftest.$ac_ext <<_ACEOF
16695/* confdefs.h. */
16696_ACEOF
16697cat confdefs.h >>conftest.$ac_ext
16698cat >>conftest.$ac_ext <<_ACEOF
16699/* end confdefs.h. */
16700
16701/* Override any GCC internal prototype to avoid an error.
16702 Use char because int might match the return type of a GCC
16703 builtin and then its argument prototype would still apply. */
16704#ifdef __cplusplus
16705extern "C"
16706#endif
16707char XineramaQueryScreens ();
16708int
16709main ()
16710{
16711return XineramaQueryScreens ();
16712 ;
16713 return 0;
16714}
16715_ACEOF
16716rm -f conftest.$ac_objext conftest$ac_exeext
16717if { (ac_try="$ac_link"
16718case "(($ac_try" in
16719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720 *) ac_try_echo=$ac_try;;
16721esac
16722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16723 (eval "$ac_link") 2>conftest.er1
16724 ac_status=$?
16725 grep -v '^ *+' conftest.er1 >conftest.err
16726 rm -f conftest.er1
16727 cat conftest.err >&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
16730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16731 { (case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16734esac
16735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_try") 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; } &&
16740 { ac_try='test -s conftest$ac_exeext'
16741 { (case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16744esac
16745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_try") 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16750 case "$LIBEXT" in
16751 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'` ;;
16752 so) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep libXinerama\\.so | sed -e "s/^.*\(libXinerama\.so[^ ]*\).*$/\1/"';2,$d'` ;;
16753 esac
16754 if test "x$ac_cv_lib_soname_Xinerama" = "x"
16755 then
16756 ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
16757 fi
16758else
16759 echo "$as_me: failed program was:" >&5
16760sed 's/^/| /' conftest.$ac_ext >&5
16761
16762 ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT"
16763fi
16764
16765rm -f core conftest.err conftest.$ac_objext \
16766 conftest$ac_exeext conftest.$ac_ext
16767 LIBS=$ac_get_soname_save_LIBS
16768fi
16769{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xinerama" >&5
16770echo "${ECHO_T}$ac_cv_lib_soname_Xinerama" >&6; }
16771if test "${ac_cv_lib_soname_Xinerama+set}" = set; then
16772
16773cat >>confdefs.h <<_ACEOF
16774#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
16775_ACEOF
16776
c3c587eb
AJ
16777fi
16778
e533e972
AJ
16779 { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
16780echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
16781if test "${ac_cv_lib_soname_Xrender+set}" = set; then
21ee3295
AJ
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16783else
e533e972
AJ
16784 ac_get_soname_save_LIBS=$LIBS
16785LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16786 cat >conftest.$ac_ext <<_ACEOF
16787/* confdefs.h. */
16788_ACEOF
16789cat confdefs.h >>conftest.$ac_ext
16790cat >>conftest.$ac_ext <<_ACEOF
16791/* end confdefs.h. */
21ee3295 16792
e533e972
AJ
16793/* Override any GCC internal prototype to avoid an error.
16794 Use char because int might match the return type of a GCC
16795 builtin and then its argument prototype would still apply. */
16796#ifdef __cplusplus
16797extern "C"
16798#endif
16799char XRenderQueryExtension ();
16800int
16801main ()
16802{
16803return XRenderQueryExtension ();
16804 ;
16805 return 0;
16806}
16807_ACEOF
16808rm -f conftest.$ac_objext conftest$ac_exeext
16809if { (ac_try="$ac_link"
16810case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
fa3a5360 16813esac
e533e972
AJ
16814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_link") 2>conftest.er1
16816 ac_status=$?
16817 grep -v '^ *+' conftest.er1 >conftest.err
16818 rm -f conftest.er1
16819 cat conftest.err >&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } &&
16822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16823 { (case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16826esac
16827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_try") 2>&5
16829 ac_status=$?
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; } &&
16832 { ac_try='test -s conftest$ac_exeext'
16833 { (case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
fc01b729 16836esac
e533e972
AJ
16837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_try") 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; }; then
16842 case "$LIBEXT" in
16843 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'` ;;
16844 so) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed -e "s/^.*\(libXrender\.so[^ ]*\).*$/\1/"';2,$d'` ;;
16845 esac
16846 if test "x$ac_cv_lib_soname_Xrender" = "x"
16847 then
16848 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
16849 fi
16850else
16851 echo "$as_me: failed program was:" >&5
16852sed 's/^/| /' conftest.$ac_ext >&5
fc01b729 16853
e533e972
AJ
16854 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
16855fi
546839f4 16856
e533e972
AJ
16857rm -f core conftest.err conftest.$ac_objext \
16858 conftest$ac_exeext conftest.$ac_ext
16859 LIBS=$ac_get_soname_save_LIBS
16860fi
16861{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
16862echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
16863if test "${ac_cv_lib_soname_Xrender+set}" = set; then
546839f4 16864
e533e972
AJ
16865cat >>confdefs.h <<_ACEOF
16866#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
16867_ACEOF
daa2886c 16868
e533e972 16869fi
daa2886c 16870
e533e972
AJ
16871 { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
16872echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
16873if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
67e8dc68
AJ
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16875else
e533e972
AJ
16876 ac_get_soname_save_LIBS=$LIBS
16877LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16878 cat >conftest.$ac_ext <<_ACEOF
16879/* confdefs.h. */
16880_ACEOF
16881cat confdefs.h >>conftest.$ac_ext
16882cat >>conftest.$ac_ext <<_ACEOF
16883/* end confdefs.h. */
67e8dc68 16884
e533e972
AJ
16885/* Override any GCC internal prototype to avoid an error.
16886 Use char because int might match the return type of a GCC
16887 builtin and then its argument prototype would still apply. */
16888#ifdef __cplusplus
16889extern "C"
16890#endif
16891char XRRQueryExtension ();
16892int
16893main ()
16894{
16895return XRRQueryExtension ();
16896 ;
16897 return 0;
16898}
16899_ACEOF
16900rm -f conftest.$ac_objext conftest$ac_exeext
16901if { (ac_try="$ac_link"
16902case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
67e8dc68 16905esac
e533e972
AJ
16906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_link") 2>conftest.er1
16908 ac_status=$?
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
16914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16915 { (case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16918esac
16919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_try") 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; } &&
16924 { ac_try='test -s conftest$ac_exeext'
16925 { (case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16928esac
16929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_try") 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 case "$LIBEXT" in
16935 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'` ;;
16936 so) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.so | sed -e "s/^.*\(libXrandr\.so[^ ]*\).*$/\1/"';2,$d'` ;;
16937 esac
16938 if test "x$ac_cv_lib_soname_Xrandr" = "x"
16939 then
16940 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
16941 fi
67e8dc68 16942else
e533e972
AJ
16943 echo "$as_me: failed program was:" >&5
16944sed 's/^/| /' conftest.$ac_ext >&5
16945
16946 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
16947fi
16948
16949rm -f core conftest.err conftest.$ac_objext \
16950 conftest$ac_exeext conftest.$ac_ext
16951 LIBS=$ac_get_soname_save_LIBS
67e8dc68 16952fi
e533e972
AJ
16953{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
16954echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
16955if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
16956
16957cat >>confdefs.h <<_ACEOF
16958#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
16959_ACEOF
67e8dc68 16960
e533e972 16961fi
fc6ffb29 16962
e533e972
AJ
16963 { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
16964echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
16965if test "${ac_cv_lib_soname_freetype+set}" = set; then
67e8dc68
AJ
16966 echo $ECHO_N "(cached) $ECHO_C" >&6
16967else
16968 ac_get_soname_save_LIBS=$LIBS
e533e972 16969LIBS="-lfreetype $X_LIBS $LIBS"
67e8dc68 16970 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
16971/* confdefs.h. */
16972_ACEOF
16973cat confdefs.h >>conftest.$ac_ext
16974cat >>conftest.$ac_ext <<_ACEOF
16975/* end confdefs.h. */
fa3a5360 16976
fc6ffb29
AJ
16977/* Override any GCC internal prototype to avoid an error.
16978 Use char because int might match the return type of a GCC
16979 builtin and then its argument prototype would still apply. */
67e8dc68
AJ
16980#ifdef __cplusplus
16981extern "C"
16982#endif
e533e972 16983char FT_Init_FreeType ();
67e8dc68
AJ
16984int
16985main ()
16986{
e533e972 16987return FT_Init_FreeType ();
67e8dc68
AJ
16988 ;
16989 return 0;
16990}
16991_ACEOF
16992rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
16993if { (ac_try="$ac_link"
16994case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16997esac
16998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_link") 2>conftest.er1
67e8dc68 17000 ac_status=$?
875927f6
AJ
17001 grep -v '^ *+' conftest.er1 >conftest.err
17002 rm -f conftest.er1
17003 cat conftest.err >&5
67e8dc68
AJ
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); } &&
0ebeb530
JW
17006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17007 { (case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17010esac
17011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012 (eval "$ac_try") 2>&5
875927f6
AJ
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; } &&
17016 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
17017 { (case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17020esac
17021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_try") 2>&5
67e8dc68
AJ
17023 ac_status=$?
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; }; then
bdbffd97 17026 case "$LIBEXT" in
e533e972
AJ
17027 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'` ;;
17028 so) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed -e "s/^.*\(libfreetype\.so[^ ]*\).*$/\1/"';2,$d'` ;;
bdbffd97 17029 esac
e533e972 17030 if test "x$ac_cv_lib_soname_freetype" = "x"
67e8dc68 17031 then
e533e972 17032 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
67e8dc68
AJ
17033 fi
17034else
17035 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
17036sed 's/^/| /' conftest.$ac_ext >&5
17037
e533e972 17038 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
67e8dc68 17039fi
fc6ffb29 17040
0ebeb530 17041rm -f core conftest.err conftest.$ac_objext \
875927f6 17042 conftest$ac_exeext conftest.$ac_ext
67e8dc68
AJ
17043 LIBS=$ac_get_soname_save_LIBS
17044fi
e533e972
AJ
17045{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
17046echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
17047if test "${ac_cv_lib_soname_freetype+set}" = set; then
30de3e8e 17048
67e8dc68 17049cat >>confdefs.h <<_ACEOF
e533e972 17050#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
67e8dc68 17051_ACEOF
30de3e8e 17052
67e8dc68 17053fi
0adad95d 17054
e533e972
AJ
17055 { echo "$as_me:$LINENO: checking for -lGL soname" >&5
17056echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
17057if test "${ac_cv_lib_soname_GL+set}" = set; then
67e8dc68
AJ
17058 echo $ECHO_N "(cached) $ECHO_C" >&6
17059else
17060 ac_get_soname_save_LIBS=$LIBS
e533e972 17061LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
67e8dc68 17062 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
17063/* confdefs.h. */
17064_ACEOF
17065cat confdefs.h >>conftest.$ac_ext
17066cat >>conftest.$ac_ext <<_ACEOF
17067/* end confdefs.h. */
67e8dc68 17068
fc6ffb29
AJ
17069/* Override any GCC internal prototype to avoid an error.
17070 Use char because int might match the return type of a GCC
17071 builtin and then its argument prototype would still apply. */
67e8dc68
AJ
17072#ifdef __cplusplus
17073extern "C"
17074#endif
e533e972 17075char glXQueryExtension ();
67e8dc68
AJ
17076int
17077main ()
17078{
e533e972 17079return glXQueryExtension ();
67e8dc68
AJ
17080 ;
17081 return 0;
17082}
17083_ACEOF
17084rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
17085if { (ac_try="$ac_link"
17086case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089esac
17090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_link") 2>conftest.er1
67e8dc68 17092 ac_status=$?
875927f6
AJ
17093 grep -v '^ *+' conftest.er1 >conftest.err
17094 rm -f conftest.er1
17095 cat conftest.err >&5
67e8dc68
AJ
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } &&
0ebeb530
JW
17098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17099 { (case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17102esac
17103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_try") 2>&5
875927f6
AJ
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; } &&
17108 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
17109 { (case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17112esac
17113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17114 (eval "$ac_try") 2>&5
67e8dc68
AJ
17115 ac_status=$?
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
bdbffd97 17118 case "$LIBEXT" in
e533e972
AJ
17119 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'` ;;
17120 so) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed -e "s/^.*\(libGL\.so[^ ]*\).*$/\1/"';2,$d'` ;;
bdbffd97 17121 esac
e533e972 17122 if test "x$ac_cv_lib_soname_GL" = "x"
67e8dc68 17123 then
e533e972 17124 ac_cv_lib_soname_GL="libGL.$LIBEXT"
67e8dc68
AJ
17125 fi
17126else
17127 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
17128sed 's/^/| /' conftest.$ac_ext >&5
17129
e533e972 17130 ac_cv_lib_soname_GL="libGL.$LIBEXT"
67e8dc68 17131fi
fc6ffb29 17132
0ebeb530 17133rm -f core conftest.err conftest.$ac_objext \
875927f6 17134 conftest$ac_exeext conftest.$ac_ext
67e8dc68
AJ
17135 LIBS=$ac_get_soname_save_LIBS
17136fi
e533e972
AJ
17137{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
17138echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
17139if test "${ac_cv_lib_soname_GL+set}" = set; then
30de3e8e 17140
67e8dc68 17141cat >>confdefs.h <<_ACEOF
e533e972 17142#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
67e8dc68 17143_ACEOF
30de3e8e 17144
2eebf3c7
AS
17145fi
17146
e533e972
AJ
17147 { echo "$as_me:$LINENO: checking for -lhal soname" >&5
17148echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
17149if test "${ac_cv_lib_soname_hal+set}" = set; then
67e8dc68
AJ
17150 echo $ECHO_N "(cached) $ECHO_C" >&6
17151else
17152 ac_get_soname_save_LIBS=$LIBS
e533e972 17153LIBS="-lhal $LIBS"
67e8dc68 17154 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
17155/* confdefs.h. */
17156_ACEOF
17157cat confdefs.h >>conftest.$ac_ext
17158cat >>conftest.$ac_ext <<_ACEOF
17159/* end confdefs.h. */
67e8dc68 17160
fc6ffb29
AJ
17161/* Override any GCC internal prototype to avoid an error.
17162 Use char because int might match the return type of a GCC
17163 builtin and then its argument prototype would still apply. */
67e8dc68
AJ
17164#ifdef __cplusplus
17165extern "C"
17166#endif
e533e972 17167char libhal_ctx_new ();
67e8dc68
AJ
17168int
17169main ()
17170{
e533e972 17171return libhal_ctx_new ();
67e8dc68
AJ
17172 ;
17173 return 0;
17174}
17175_ACEOF
17176rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
17177if { (ac_try="$ac_link"
17178case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17181esac
17182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_link") 2>conftest.er1
67e8dc68 17184 ac_status=$?
875927f6
AJ
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
67e8dc68
AJ
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } &&
0ebeb530
JW
17190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17191 { (case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17194esac
17195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_try") 2>&5
875927f6
AJ
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; } &&
17200 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
17201 { (case "(($ac_try" in
17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203 *) ac_try_echo=$ac_try;;
17204esac
17205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17206 (eval "$ac_try") 2>&5
67e8dc68
AJ
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
bdbffd97 17210 case "$LIBEXT" in
e533e972
AJ
17211 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'` ;;
17212 so) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.so | sed -e "s/^.*\(libhal\.so[^ ]*\).*$/\1/"';2,$d'` ;;
bdbffd97 17213 esac
e533e972 17214 if test "x$ac_cv_lib_soname_hal" = "x"
67e8dc68 17215 then
e533e972 17216 ac_cv_lib_soname_hal="libhal.$LIBEXT"
67e8dc68
AJ
17217 fi
17218else
17219 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
17220sed 's/^/| /' conftest.$ac_ext >&5
17221
e533e972 17222 ac_cv_lib_soname_hal="libhal.$LIBEXT"
67e8dc68 17223fi
fc6ffb29 17224
0ebeb530 17225rm -f core conftest.err conftest.$ac_objext \
875927f6 17226 conftest$ac_exeext conftest.$ac_ext
67e8dc68
AJ
17227 LIBS=$ac_get_soname_save_LIBS
17228fi
e533e972
AJ
17229{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
17230echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
17231if test "${ac_cv_lib_soname_hal+set}" = set; then
30de3e8e 17232
67e8dc68 17233cat >>confdefs.h <<_ACEOF
e533e972 17234#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
67e8dc68 17235_ACEOF
30de3e8e 17236
67e8dc68
AJ
17237fi
17238
e533e972
AJ
17239 { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
17240echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
17241if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
c7c9f939
MM
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17243else
17244 ac_get_soname_save_LIBS=$LIBS
e533e972 17245LIBS="-ltxc_dxtn $LIBS"
c7c9f939
MM
17246 cat >conftest.$ac_ext <<_ACEOF
17247/* confdefs.h. */
17248_ACEOF
17249cat confdefs.h >>conftest.$ac_ext
17250cat >>conftest.$ac_ext <<_ACEOF
17251/* end confdefs.h. */
17252
fc6ffb29
AJ
17253/* Override any GCC internal prototype to avoid an error.
17254 Use char because int might match the return type of a GCC
17255 builtin and then its argument prototype would still apply. */
c7c9f939
MM
17256#ifdef __cplusplus
17257extern "C"
17258#endif
e533e972 17259char fetch_2d_texel_rgba_dxt1 ();
c7c9f939
MM
17260int
17261main ()
17262{
e533e972 17263return fetch_2d_texel_rgba_dxt1 ();
c7c9f939
MM
17264 ;
17265 return 0;
17266}
17267_ACEOF
17268rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
17269if { (ac_try="$ac_link"
17270case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17273esac
17274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_link") 2>conftest.er1
c7c9f939
MM
17276 ac_status=$?
17277 grep -v '^ *+' conftest.er1 >conftest.err
17278 rm -f conftest.er1
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } &&
0ebeb530
JW
17282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17283 { (case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17286esac
17287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_try") 2>&5
c7c9f939
MM
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; } &&
17292 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
17293 { (case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17296esac
17297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_try") 2>&5
c7c9f939
MM
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
bdbffd97 17302 case "$LIBEXT" in
e533e972
AJ
17303 dylib) ac_cv_lib_soname_txc_dxtn=`otool -L conftest$ac_exeext | grep libtxc_dxtn\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libtxc_dxtn\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17304 so) ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.so | sed -e "s/^.*\(libtxc_dxtn\.so[^ ]*\).*$/\1/"';2,$d'` ;;
bdbffd97 17305 esac
e533e972 17306 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
c7c9f939 17307 then
e533e972 17308 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
c7c9f939
MM
17309 fi
17310else
17311 echo "$as_me: failed program was:" >&5
17312sed 's/^/| /' conftest.$ac_ext >&5
17313
e533e972 17314 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
c7c9f939 17315fi
fc6ffb29 17316
0ebeb530 17317rm -f core conftest.err conftest.$ac_objext \
c7c9f939
MM
17318 conftest$ac_exeext conftest.$ac_ext
17319 LIBS=$ac_get_soname_save_LIBS
17320fi
e533e972
AJ
17321{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
17322echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
17323if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
30de3e8e 17324
c7c9f939 17325cat >>confdefs.h <<_ACEOF
e533e972 17326#define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
c7c9f939 17327_ACEOF
30de3e8e 17328
c7c9f939
MM
17329fi
17330
e533e972
AJ
17331 { echo "$as_me:$LINENO: checking for -lcups soname" >&5
17332echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
17333if test "${ac_cv_lib_soname_cups+set}" = set; then
67e8dc68
AJ
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17335else
17336 ac_get_soname_save_LIBS=$LIBS
e533e972 17337LIBS="-lcups $LIBS"
67e8dc68 17338 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
17339/* confdefs.h. */
17340_ACEOF
17341cat confdefs.h >>conftest.$ac_ext
17342cat >>conftest.$ac_ext <<_ACEOF
17343/* end confdefs.h. */
67e8dc68 17344
fc6ffb29
AJ
17345/* Override any GCC internal prototype to avoid an error.
17346 Use char because int might match the return type of a GCC
17347 builtin and then its argument prototype would still apply. */
67e8dc68
AJ
17348#ifdef __cplusplus
17349extern "C"
17350#endif
e533e972 17351char cupsGetDefault ();
67e8dc68
AJ
17352int
17353main ()
17354{
e533e972 17355return cupsGetDefault ();
67e8dc68
AJ
17356 ;
17357 return 0;
17358}
17359_ACEOF
17360rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
17361if { (ac_try="$ac_link"
17362case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17365esac
17366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_link") 2>conftest.er1
67e8dc68 17368 ac_status=$?
875927f6
AJ
17369 grep -v '^ *+' conftest.er1 >conftest.err
17370 rm -f conftest.er1
17371 cat conftest.err >&5
67e8dc68
AJ
17372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373 (exit $ac_status); } &&
0ebeb530
JW
17374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17375 { (case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17378esac
17379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_try") 2>&5
875927f6
AJ
17381 ac_status=$?
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; } &&
17384 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
17385 { (case "(($ac_try" in
17386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17387 *) ac_try_echo=$ac_try;;
17388esac
17389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17390 (eval "$ac_try") 2>&5
67e8dc68
AJ
17391 ac_status=$?
17392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393 (exit $ac_status); }; }; then
bdbffd97 17394 case "$LIBEXT" in
e533e972
AJ
17395 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'` ;;
17396 so) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed -e "s/^.*\(libcups\.so[^ ]*\).*$/\1/"';2,$d'` ;;
bdbffd97 17397 esac
e533e972 17398 if test "x$ac_cv_lib_soname_cups" = "x"
67e8dc68 17399 then
e533e972 17400 ac_cv_lib_soname_cups="libcups.$LIBEXT"
67e8dc68
AJ
17401 fi
17402else
17403 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
17404sed 's/^/| /' conftest.$ac_ext >&5
17405
e533e972 17406 ac_cv_lib_soname_cups="libcups.$LIBEXT"
67e8dc68 17407fi
fc6ffb29 17408
0ebeb530 17409rm -f core conftest.err conftest.$ac_objext \
875927f6 17410 conftest$ac_exeext conftest.$ac_ext
67e8dc68
AJ
17411 LIBS=$ac_get_soname_save_LIBS
17412fi
e533e972
AJ
17413{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
17414echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
17415if test "${ac_cv_lib_soname_cups+set}" = set; then
30de3e8e 17416
67e8dc68 17417cat >>confdefs.h <<_ACEOF
e533e972 17418#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
67e8dc68 17419_ACEOF
30de3e8e 17420
67e8dc68 17421fi
f061f767 17422
e533e972
AJ
17423 { echo "$as_me:$LINENO: checking for -ljack soname" >&5
17424echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
17425if test "${ac_cv_lib_soname_jack+set}" = set; then
56ab2b3e
LU
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17427else
17428 ac_get_soname_save_LIBS=$LIBS
e533e972 17429LIBS="-ljack $LIBS"
56ab2b3e 17430 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
17431/* confdefs.h. */
17432_ACEOF
17433cat confdefs.h >>conftest.$ac_ext
17434cat >>conftest.$ac_ext <<_ACEOF
17435/* end confdefs.h. */
56ab2b3e 17436
fc6ffb29
AJ
17437/* Override any GCC internal prototype to avoid an error.
17438 Use char because int might match the return type of a GCC
17439 builtin and then its argument prototype would still apply. */
56ab2b3e
LU
17440#ifdef __cplusplus
17441extern "C"
17442#endif
e533e972 17443char jack_client_new ();
56ab2b3e
LU
17444int
17445main ()
17446{
e533e972 17447return jack_client_new ();
56ab2b3e
LU
17448 ;
17449 return 0;
17450}
17451_ACEOF
17452rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
17453if { (ac_try="$ac_link"
17454case "(($ac_try" in
17455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17456 *) ac_try_echo=$ac_try;;
17457esac
17458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459 (eval "$ac_link") 2>conftest.er1
56ab2b3e 17460 ac_status=$?
875927f6
AJ
17461 grep -v '^ *+' conftest.er1 >conftest.err
17462 rm -f conftest.er1
17463 cat conftest.err >&5
56ab2b3e
LU
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } &&
0ebeb530
JW
17466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17467 { (case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17470esac
17471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_try") 2>&5
875927f6
AJ
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
17477 { (case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17480esac
17481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_try") 2>&5
56ab2b3e
LU
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; }; then
bdbffd97 17486 case "$LIBEXT" in
e533e972
AJ
17487 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'` ;;
17488 so) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed -e "s/^.*\(libjack\.so[^ ]*\).*$/\1/"';2,$d'` ;;
bdbffd97 17489 esac
e533e972 17490 if test "x$ac_cv_lib_soname_jack" = "x"
56ab2b3e 17491 then
e533e972 17492 ac_cv_lib_soname_jack="libjack.$LIBEXT"
56ab2b3e
LU
17493 fi
17494else
17495 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
17496sed 's/^/| /' conftest.$ac_ext >&5
17497
e533e972 17498 ac_cv_lib_soname_jack="libjack.$LIBEXT"
56ab2b3e 17499fi
fc6ffb29 17500
0ebeb530 17501rm -f core conftest.err conftest.$ac_objext \
875927f6 17502 conftest$ac_exeext conftest.$ac_ext
56ab2b3e
LU
17503 LIBS=$ac_get_soname_save_LIBS
17504fi
e533e972
AJ
17505{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
17506echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
17507if test "${ac_cv_lib_soname_jack+set}" = set; then
30de3e8e 17508
56ab2b3e 17509cat >>confdefs.h <<_ACEOF
e533e972 17510#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
56ab2b3e 17511_ACEOF
30de3e8e 17512
00068989
AJ
17513fi
17514
e533e972
AJ
17515 { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
17516echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
17517if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
00068989
AJ
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17519else
17520 ac_get_soname_save_LIBS=$LIBS
e533e972 17521LIBS="-lfontconfig $LIBS"
00068989
AJ
17522 cat >conftest.$ac_ext <<_ACEOF
17523/* confdefs.h. */
17524_ACEOF
17525cat confdefs.h >>conftest.$ac_ext
17526cat >>conftest.$ac_ext <<_ACEOF
17527/* end confdefs.h. */
17528
fc6ffb29
AJ
17529/* Override any GCC internal prototype to avoid an error.
17530 Use char because int might match the return type of a GCC
17531 builtin and then its argument prototype would still apply. */
00068989
AJ
17532#ifdef __cplusplus
17533extern "C"
17534#endif
e533e972 17535char FcInit ();
00068989
AJ
17536int
17537main ()
17538{
e533e972 17539return FcInit ();
00068989
AJ
17540 ;
17541 return 0;
17542}
17543_ACEOF
17544rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
17545if { (ac_try="$ac_link"
17546case "(($ac_try" in
17547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17548 *) ac_try_echo=$ac_try;;
17549esac
17550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17551 (eval "$ac_link") 2>conftest.er1
00068989
AJ
17552 ac_status=$?
17553 grep -v '^ *+' conftest.er1 >conftest.err
17554 rm -f conftest.er1
17555 cat conftest.err >&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); } &&
0ebeb530
JW
17558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17559 { (case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17562esac
17563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_try") 2>&5
00068989
AJ
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; } &&
17568 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
17569 { (case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17572esac
17573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_try") 2>&5
00068989
AJ
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; }; then
bdbffd97 17578 case "$LIBEXT" in
e533e972
AJ
17579 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'` ;;
17580 so) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed -e "s/^.*\(libfontconfig\.so[^ ]*\).*$/\1/"';2,$d'` ;;
bdbffd97 17581 esac
e533e972 17582 if test "x$ac_cv_lib_soname_fontconfig" = "x"
00068989 17583 then
e533e972 17584 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
00068989
AJ
17585 fi
17586else
17587 echo "$as_me: failed program was:" >&5
17588sed 's/^/| /' conftest.$ac_ext >&5
17589
e533e972 17590 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
00068989 17591fi
fc6ffb29 17592
0ebeb530 17593rm -f core conftest.err conftest.$ac_objext \
00068989
AJ
17594 conftest$ac_exeext conftest.$ac_ext
17595 LIBS=$ac_get_soname_save_LIBS
17596fi
e533e972
AJ
17597{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
17598echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
17599if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
00068989
AJ
17600
17601cat >>confdefs.h <<_ACEOF
e533e972 17602#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
00068989
AJ
17603_ACEOF
17604
17605fi
17606
e533e972
AJ
17607 { echo "$as_me:$LINENO: checking for -lssl soname" >&5
17608echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
17609if test "${ac_cv_lib_soname_ssl+set}" = set; then
00068989
AJ
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17611else
17612 ac_get_soname_save_LIBS=$LIBS
e533e972 17613LIBS="-lssl $LIBS"
00068989
AJ
17614 cat >conftest.$ac_ext <<_ACEOF
17615/* confdefs.h. */
17616_ACEOF
17617cat confdefs.h >>conftest.$ac_ext
17618cat >>conftest.$ac_ext <<_ACEOF
17619/* end confdefs.h. */
17620
fc6ffb29
AJ
17621/* Override any GCC internal prototype to avoid an error.
17622 Use char because int might match the return type of a GCC
17623 builtin and then its argument prototype would still apply. */
00068989
AJ
17624#ifdef __cplusplus
17625extern "C"
17626#endif
e533e972 17627char SSL_library_init ();
00068989
AJ
17628int
17629main ()
17630{
e533e972 17631return SSL_library_init ();
00068989
AJ
17632 ;
17633 return 0;
17634}
17635_ACEOF
17636rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
17637if { (ac_try="$ac_link"
17638case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17641esac
17642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_link") 2>conftest.er1
00068989
AJ
17644 ac_status=$?
17645 grep -v '^ *+' conftest.er1 >conftest.err
17646 rm -f conftest.er1
17647 cat conftest.err >&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
0ebeb530
JW
17650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17651 { (case "(($ac_try" in
17652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653 *) ac_try_echo=$ac_try;;
17654esac
17655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17656 (eval "$ac_try") 2>&5
00068989
AJ
17657 ac_status=$?
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; } &&
17660 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
17661 { (case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17664esac
17665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_try") 2>&5
00068989
AJ
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
bdbffd97 17670 case "$LIBEXT" in
e533e972
AJ
17671 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'` ;;
17672 so) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed -e "s/^.*\(libssl\.so[^ ]*\).*$/\1/"';2,$d'` ;;
bdbffd97 17673 esac
e533e972 17674 if test "x$ac_cv_lib_soname_ssl" = "x"
00068989 17675 then
e533e972 17676 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
00068989
AJ
17677 fi
17678else
17679 echo "$as_me: failed program was:" >&5
17680sed 's/^/| /' conftest.$ac_ext >&5
17681
e533e972 17682 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
00068989 17683fi
fc6ffb29 17684
0ebeb530 17685rm -f core conftest.err conftest.$ac_objext \
00068989
AJ
17686 conftest$ac_exeext conftest.$ac_ext
17687 LIBS=$ac_get_soname_save_LIBS
17688fi
e533e972
AJ
17689{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
17690echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
17691if test "${ac_cv_lib_soname_ssl+set}" = set; then
00068989
AJ
17692
17693cat >>confdefs.h <<_ACEOF
e533e972 17694#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
00068989
AJ
17695_ACEOF
17696
56ab2b3e
LU
17697fi
17698
e533e972
AJ
17699 { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
17700echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
17701if test "${ac_cv_lib_soname_crypto+set}" = set; then
eac96b56
CC
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17703else
17704 ac_get_soname_save_LIBS=$LIBS
e533e972 17705LIBS="-lcrypto $LIBS"
eac96b56
CC
17706 cat >conftest.$ac_ext <<_ACEOF
17707/* confdefs.h. */
17708_ACEOF
17709cat confdefs.h >>conftest.$ac_ext
17710cat >>conftest.$ac_ext <<_ACEOF
17711/* end confdefs.h. */
17712
fc6ffb29
AJ
17713/* Override any GCC internal prototype to avoid an error.
17714 Use char because int might match the return type of a GCC
17715 builtin and then its argument prototype would still apply. */
eac96b56
CC
17716#ifdef __cplusplus
17717extern "C"
17718#endif
e533e972 17719char BIO_new_socket ();
eac96b56
CC
17720int
17721main ()
17722{
e533e972 17723return BIO_new_socket ();
eac96b56
CC
17724 ;
17725 return 0;
17726}
17727_ACEOF
17728rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
17729if { (ac_try="$ac_link"
17730case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17733esac
17734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_link") 2>conftest.er1
eac96b56
CC
17736 ac_status=$?
17737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
0ebeb530
JW
17742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746esac
17747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
eac96b56
CC
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; } &&
17752 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
17753 { (case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17756esac
17757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_try") 2>&5
eac96b56
CC
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
bdbffd97 17762 case "$LIBEXT" in
e533e972
AJ
17763 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'` ;;
17764 so) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed -e "s/^.*\(libcrypto\.so[^ ]*\).*$/\1/"';2,$d'` ;;
bdbffd97 17765 esac
e533e972 17766 if test "x$ac_cv_lib_soname_crypto" = "x"
eac96b56 17767 then
e533e972 17768 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
eac96b56
CC
17769 fi
17770else
17771 echo "$as_me: failed program was:" >&5
17772sed 's/^/| /' conftest.$ac_ext >&5
17773
e533e972 17774 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
eac96b56 17775fi
fc6ffb29 17776
0ebeb530 17777rm -f core conftest.err conftest.$ac_objext \
eac96b56
CC
17778 conftest$ac_exeext conftest.$ac_ext
17779 LIBS=$ac_get_soname_save_LIBS
17780fi
e533e972
AJ
17781{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
17782echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
17783if test "${ac_cv_lib_soname_crypto+set}" = set; then
30de3e8e 17784
eac96b56 17785cat >>confdefs.h <<_ACEOF
e533e972 17786#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
eac96b56 17787_ACEOF
30de3e8e 17788
eac96b56
CC
17789fi
17790
e533e972
AJ
17791 { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
17792echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
17793if test "${ac_cv_lib_soname_ncurses+set}" = set; then
f061f767
MM
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17795else
17796 ac_get_soname_save_LIBS=$LIBS
e533e972 17797LIBS="-lncurses $LIBS"
f061f767 17798 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
17799/* confdefs.h. */
17800_ACEOF
17801cat confdefs.h >>conftest.$ac_ext
17802cat >>conftest.$ac_ext <<_ACEOF
17803/* end confdefs.h. */
f061f767 17804
fc6ffb29
AJ
17805/* Override any GCC internal prototype to avoid an error.
17806 Use char because int might match the return type of a GCC
17807 builtin and then its argument prototype would still apply. */
f061f767
MM
17808#ifdef __cplusplus
17809extern "C"
17810#endif
e533e972 17811char waddch ();
f061f767
MM
17812int
17813main ()
17814{
e533e972 17815return waddch ();
f061f767
MM
17816 ;
17817 return 0;
17818}
17819_ACEOF
17820rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
17821if { (ac_try="$ac_link"
17822case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17825esac
17826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_link") 2>conftest.er1
f061f767 17828 ac_status=$?
875927f6
AJ
17829 grep -v '^ *+' conftest.er1 >conftest.err
17830 rm -f conftest.er1
17831 cat conftest.err >&5
f061f767
MM
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } &&
0ebeb530
JW
17834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17838esac
17839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
875927f6
AJ
17841 ac_status=$?
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } &&
17844 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
17845 { (case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17848esac
17849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_try") 2>&5
f061f767
MM
17851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
bdbffd97 17854 case "$LIBEXT" in
e533e972
AJ
17855 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'` ;;
17856 so) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed -e "s/^.*\(libncurses\.so[^ ]*\).*$/\1/"';2,$d'` ;;
bdbffd97 17857 esac
e533e972 17858 if test "x$ac_cv_lib_soname_ncurses" = "x"
f061f767 17859 then
e533e972 17860 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
f061f767
MM
17861 fi
17862else
17863 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
17864sed 's/^/| /' conftest.$ac_ext >&5
17865
e533e972 17866 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
f061f767 17867fi
fc6ffb29 17868
0ebeb530 17869rm -f core conftest.err conftest.$ac_objext \
875927f6 17870 conftest$ac_exeext conftest.$ac_ext
f061f767
MM
17871 LIBS=$ac_get_soname_save_LIBS
17872fi
e533e972
AJ
17873{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
17874echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
17875if test "${ac_cv_lib_soname_ncurses+set}" = set; then
30de3e8e 17876
f061f767 17877cat >>confdefs.h <<_ACEOF
e533e972 17878#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
f061f767 17879_ACEOF
30de3e8e 17880
f061f767 17881fi
4691b185 17882
e533e972
AJ
17883 { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
17884echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
17885if test "${ac_cv_lib_soname_curses+set}" = set; then
4691b185
CM
17886 echo $ECHO_N "(cached) $ECHO_C" >&6
17887else
17888 ac_get_soname_save_LIBS=$LIBS
e533e972 17889LIBS="-lcurses $LIBS"
4691b185 17890 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
17891/* confdefs.h. */
17892_ACEOF
17893cat confdefs.h >>conftest.$ac_ext
17894cat >>conftest.$ac_ext <<_ACEOF
17895/* end confdefs.h. */
4691b185 17896
fc6ffb29
AJ
17897/* Override any GCC internal prototype to avoid an error.
17898 Use char because int might match the return type of a GCC
17899 builtin and then its argument prototype would still apply. */
4691b185
CM
17900#ifdef __cplusplus
17901extern "C"
17902#endif
e533e972 17903char waddch ();
4691b185
CM
17904int
17905main ()
17906{
e533e972 17907return waddch ();
4691b185
CM
17908 ;
17909 return 0;
17910}
17911_ACEOF
17912rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
17913if { (ac_try="$ac_link"
17914case "(($ac_try" in
17915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17916 *) ac_try_echo=$ac_try;;
17917esac
17918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17919 (eval "$ac_link") 2>conftest.er1
4691b185 17920 ac_status=$?
875927f6
AJ
17921 grep -v '^ *+' conftest.er1 >conftest.err
17922 rm -f conftest.er1
17923 cat conftest.err >&5
4691b185
CM
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
0ebeb530
JW
17926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17927 { (case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17930esac
17931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_try") 2>&5
875927f6
AJ
17933 ac_status=$?
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; } &&
17936 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
17937 { (case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17940esac
17941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_try") 2>&5
4691b185
CM
17943 ac_status=$?
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; }; then
bdbffd97 17946 case "$LIBEXT" in
e533e972
AJ
17947 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'` ;;
17948 so) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed -e "s/^.*\(libcurses\.so[^ ]*\).*$/\1/"';2,$d'` ;;
bdbffd97 17949 esac
e533e972 17950 if test "x$ac_cv_lib_soname_curses" = "x"
4691b185 17951 then
e533e972 17952 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
4691b185
CM
17953 fi
17954else
17955 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
17956sed 's/^/| /' conftest.$ac_ext >&5
17957
e533e972 17958 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
4691b185 17959fi
fc6ffb29 17960
0ebeb530 17961rm -f core conftest.err conftest.$ac_objext \
875927f6 17962 conftest$ac_exeext conftest.$ac_ext
4691b185
CM
17963 LIBS=$ac_get_soname_save_LIBS
17964fi
e533e972
AJ
17965{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
17966echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
17967if test "${ac_cv_lib_soname_curses+set}" = set; then
30de3e8e 17968
4691b185 17969cat >>confdefs.h <<_ACEOF
e533e972 17970#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
4691b185 17971_ACEOF
30de3e8e 17972
4691b185 17973fi
852c7ae4 17974
e533e972
AJ
17975 { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
17976echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
17977if test "${ac_cv_lib_soname_jpeg+set}" = set; then
6e12807b
HD
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17979else
17980 ac_get_soname_save_LIBS=$LIBS
e533e972 17981LIBS="-ljpeg $LIBS"
6e12807b 17982 cat >conftest.$ac_ext <<_ACEOF
6e12807b
HD
17983/* confdefs.h. */
17984_ACEOF
17985cat confdefs.h >>conftest.$ac_ext
17986cat >>conftest.$ac_ext <<_ACEOF
17987/* end confdefs.h. */
17988
fc6ffb29
AJ
17989/* Override any GCC internal prototype to avoid an error.
17990 Use char because int might match the return type of a GCC
17991 builtin and then its argument prototype would still apply. */
6e12807b
HD
17992#ifdef __cplusplus
17993extern "C"
17994#endif
e533e972 17995char jpeg_start_decompress ();
6e12807b
HD
17996int
17997main ()
17998{
e533e972 17999return jpeg_start_decompress ();
6e12807b
HD
18000 ;
18001 return 0;
18002}
18003_ACEOF
18004rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
18005if { (ac_try="$ac_link"
18006case "(($ac_try" in
18007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008 *) ac_try_echo=$ac_try;;
18009esac
18010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_link") 2>conftest.er1
6e12807b 18012 ac_status=$?
875927f6
AJ
18013 grep -v '^ *+' conftest.er1 >conftest.err
18014 rm -f conftest.er1
18015 cat conftest.err >&5
6e12807b
HD
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } &&
0ebeb530
JW
18018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18019 { (case "(($ac_try" in
18020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18021 *) ac_try_echo=$ac_try;;
18022esac
18023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18024 (eval "$ac_try") 2>&5
875927f6
AJ
18025 ac_status=$?
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; } &&
18028 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
18029 { (case "(($ac_try" in
18030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031 *) ac_try_echo=$ac_try;;
18032esac
18033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18034 (eval "$ac_try") 2>&5
6e12807b
HD
18035 ac_status=$?
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; }; then
bdbffd97 18038 case "$LIBEXT" in
e533e972
AJ
18039 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'` ;;
18040 so) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.so | sed -e "s/^.*\(libjpeg\.so[^ ]*\).*$/\1/"';2,$d'` ;;
bdbffd97 18041 esac
e533e972 18042 if test "x$ac_cv_lib_soname_jpeg" = "x"
6e12807b 18043 then
e533e972 18044 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
6e12807b
HD
18045 fi
18046else
18047 echo "$as_me: failed program was:" >&5
18048sed 's/^/| /' conftest.$ac_ext >&5
18049
e533e972 18050 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
6e12807b 18051fi
fc6ffb29 18052
0ebeb530 18053rm -f core conftest.err conftest.$ac_objext \
875927f6 18054 conftest$ac_exeext conftest.$ac_ext
6e12807b
HD
18055 LIBS=$ac_get_soname_save_LIBS
18056fi
e533e972
AJ
18057{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
18058echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
18059if test "${ac_cv_lib_soname_jpeg+set}" = set; then
30de3e8e 18060
6e12807b 18061cat >>confdefs.h <<_ACEOF
e533e972 18062#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
6e12807b 18063_ACEOF
30de3e8e 18064
852c7ae4 18065fi
9557d1bf 18066
e533e972
AJ
18067 { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
18068echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
18069if test "${ac_cv_lib_soname_capi20+set}" = set; then
9557d1bf
MM
18070 echo $ECHO_N "(cached) $ECHO_C" >&6
18071else
18072 ac_get_soname_save_LIBS=$LIBS
e533e972 18073LIBS="-lcapi20 $LIBS"
9557d1bf 18074 cat >conftest.$ac_ext <<_ACEOF
9557d1bf
MM
18075/* confdefs.h. */
18076_ACEOF
18077cat confdefs.h >>conftest.$ac_ext
18078cat >>conftest.$ac_ext <<_ACEOF
18079/* end confdefs.h. */
18080
fc6ffb29
AJ
18081/* Override any GCC internal prototype to avoid an error.
18082 Use char because int might match the return type of a GCC
18083 builtin and then its argument prototype would still apply. */
9557d1bf
MM
18084#ifdef __cplusplus
18085extern "C"
18086#endif
e533e972 18087char capi20_isinstalled ();
9557d1bf
MM
18088int
18089main ()
18090{
e533e972 18091return capi20_isinstalled ();
9557d1bf
MM
18092 ;
18093 return 0;
18094}
18095_ACEOF
18096rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
18097if { (ac_try="$ac_link"
18098case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18101esac
18102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_link") 2>conftest.er1
9557d1bf 18104 ac_status=$?
875927f6
AJ
18105 grep -v '^ *+' conftest.er1 >conftest.err
18106 rm -f conftest.er1
18107 cat conftest.err >&5
9557d1bf
MM
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } &&
0ebeb530
JW
18110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18111 { (case "(($ac_try" in
18112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18113 *) ac_try_echo=$ac_try;;
18114esac
18115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18116 (eval "$ac_try") 2>&5
875927f6
AJ
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; } &&
18120 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
18121 { (case "(($ac_try" in
18122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123 *) ac_try_echo=$ac_try;;
18124esac
18125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18126 (eval "$ac_try") 2>&5
9557d1bf
MM
18127 ac_status=$?
18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); }; }; then
bdbffd97 18130 case "$LIBEXT" in
e533e972
AJ
18131 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'` ;;
18132 so) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.so | sed -e "s/^.*\(libcapi20\.so[^ ]*\).*$/\1/"';2,$d'` ;;
bdbffd97 18133 esac
e533e972 18134 if test "x$ac_cv_lib_soname_capi20" = "x"
9557d1bf 18135 then
e533e972 18136 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
9557d1bf
MM
18137 fi
18138else
18139 echo "$as_me: failed program was:" >&5
18140sed 's/^/| /' conftest.$ac_ext >&5
18141
e533e972 18142 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
9557d1bf 18143fi
fc6ffb29 18144
0ebeb530 18145rm -f core conftest.err conftest.$ac_objext \
875927f6 18146 conftest$ac_exeext conftest.$ac_ext
9557d1bf
MM
18147 LIBS=$ac_get_soname_save_LIBS
18148fi
e533e972
AJ
18149{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
18150echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
18151if test "${ac_cv_lib_soname_capi20+set}" = set; then
30de3e8e 18152
9557d1bf 18153cat >>confdefs.h <<_ACEOF
e533e972 18154#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
9557d1bf 18155_ACEOF
30de3e8e 18156
9557d1bf
MM
18157fi
18158
e533e972
AJ
18159fi
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
e533e972
AJ
18229
18230
18231
18232for ac_func in \
e533e972
AJ
18233 _pclose \
18234 _popen \
18235 _snprintf \
18236 _spawnvp \
18237 _stricmp \
18238 _strnicmp \
18239 _vsnprintf \
18240 asctime_r \
18241 chsize \
18242 clone \
18243 connect \
18244 dlopen \
18245 epoll_create \
18246 ffs \
18247 finite \
18248 fork \
18249 fpclass \
18250 fstatfs \
18251 fstatvfs \
18252 ftruncate \
18253 futimes \
18254 futimesat \
18255 getaddrinfo \
18256 gethostbyname \
18257 getnameinfo \
18258 getnetbyname \
18259 getopt_long \
18260 getpagesize \
18261 getprotobyname \
18262 getprotobynumber \
18263 getpwuid \
18264 getservbyport \
18265 gettid \
18266 gettimeofday \
18267 getuid \
18268 inet_aton \
18269 inet_network \
18270 kqueue \
18271 lstat \
18272 memmove \
18273 mmap \
18274 pclose \
18275 poll \
18276 popen \
18277 prctl \
18278 pread \
18279 pwrite \
18280 readlink \
18281 rfork \
18282 sched_yield \
18283 select \
18284 sendmsg \
18285 setrlimit \
18286 settimeofday \
18287 sigaltstack \
18288 sigprocmask \
18289 snprintf \
18290 spawnvp \
18291 statfs \
18292 statvfs \
18293 strcasecmp \
18294 strerror \
18295 strncasecmp \
18296 tcgetattr \
18297 timegm \
18298 usleep \
18299 vsnprintf \
18300 wait4 \
18301 waitpid \
18302
18303do
18304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18305{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18307if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9557d1bf
MM
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18309else
9557d1bf 18310 cat >conftest.$ac_ext <<_ACEOF
9557d1bf
MM
18311/* confdefs.h. */
18312_ACEOF
18313cat confdefs.h >>conftest.$ac_ext
18314cat >>conftest.$ac_ext <<_ACEOF
18315/* end confdefs.h. */
e533e972
AJ
18316/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18318#define $ac_func innocuous_$ac_func
18319
18320/* System header to define __stub macros and hopefully few prototypes,
18321 which can conflict with char $ac_func (); below.
18322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18323 <limits.h> exists even on freestanding compilers. */
18324
18325#ifdef __STDC__
18326# include <limits.h>
18327#else
18328# include <assert.h>
18329#endif
18330
18331#undef $ac_func
9557d1bf 18332
fc6ffb29
AJ
18333/* Override any GCC internal prototype to avoid an error.
18334 Use char because int might match the return type of a GCC
18335 builtin and then its argument prototype would still apply. */
9557d1bf
MM
18336#ifdef __cplusplus
18337extern "C"
18338#endif
e533e972
AJ
18339char $ac_func ();
18340/* The GNU C library defines this for functions which it implements
18341 to always fail with ENOSYS. Some functions are actually named
18342 something starting with __ and the normal name is an alias. */
18343#if defined __stub_$ac_func || defined __stub___$ac_func
18344choke me
18345#endif
18346
9557d1bf
MM
18347int
18348main ()
18349{
e533e972 18350return $ac_func ();
9557d1bf
MM
18351 ;
18352 return 0;
18353}
18354_ACEOF
18355rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
18356if { (ac_try="$ac_link"
18357case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18360esac
18361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_link") 2>conftest.er1
9557d1bf 18363 ac_status=$?
875927f6
AJ
18364 grep -v '^ *+' conftest.er1 >conftest.err
18365 rm -f conftest.er1
18366 cat conftest.err >&5
9557d1bf
MM
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
0ebeb530
JW
18369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18370 { (case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18373esac
18374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_try") 2>&5
875927f6
AJ
18376 ac_status=$?
18377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); }; } &&
18379 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
18380 { (case "(($ac_try" in
18381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382 *) ac_try_echo=$ac_try;;
18383esac
18384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385 (eval "$ac_try") 2>&5
9557d1bf
MM
18386 ac_status=$?
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; }; then
e533e972 18389 eval "$as_ac_var=yes"
9557d1bf
MM
18390else
18391 echo "$as_me: failed program was:" >&5
18392sed 's/^/| /' conftest.$ac_ext >&5
18393
e533e972 18394 eval "$as_ac_var=no"
9557d1bf 18395fi
fc6ffb29 18396
0ebeb530 18397rm -f core conftest.err conftest.$ac_objext \
875927f6 18398 conftest$ac_exeext conftest.$ac_ext
9557d1bf 18399fi
e533e972
AJ
18400ac_res=`eval echo '${'$as_ac_var'}'`
18401 { echo "$as_me:$LINENO: result: $ac_res" >&5
18402echo "${ECHO_T}$ac_res" >&6; }
18403if test `eval echo '${'$as_ac_var'}'` = yes; then
18404 cat >>confdefs.h <<_ACEOF
18405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9557d1bf 18406_ACEOF
30de3e8e 18407
9557d1bf 18408fi
e533e972 18409done
e82dfab2 18410
e533e972
AJ
18411
18412if test "$ac_cv_func_dlopen" = no
18413then
18414 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18415echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18416if test "${ac_cv_lib_dl_dlopen+set}" = set; then
e82dfab2
HD
18417 echo $ECHO_N "(cached) $ECHO_C" >&6
18418else
e533e972
AJ
18419 ac_check_lib_save_LIBS=$LIBS
18420LIBS="-ldl $LIBS"
18421cat >conftest.$ac_ext <<_ACEOF
e82dfab2
HD
18422/* confdefs.h. */
18423_ACEOF
18424cat confdefs.h >>conftest.$ac_ext
18425cat >>conftest.$ac_ext <<_ACEOF
18426/* end confdefs.h. */
18427
fc6ffb29
AJ
18428/* Override any GCC internal prototype to avoid an error.
18429 Use char because int might match the return type of a GCC
18430 builtin and then its argument prototype would still apply. */
e82dfab2
HD
18431#ifdef __cplusplus
18432extern "C"
18433#endif
e533e972 18434char dlopen ();
e82dfab2
HD
18435int
18436main ()
18437{
e533e972 18438return dlopen ();
e82dfab2
HD
18439 ;
18440 return 0;
18441}
18442_ACEOF
18443rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
18444if { (ac_try="$ac_link"
18445case "(($ac_try" in
18446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447 *) ac_try_echo=$ac_try;;
18448esac
18449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18450 (eval "$ac_link") 2>conftest.er1
e82dfab2
HD
18451 ac_status=$?
18452 grep -v '^ *+' conftest.er1 >conftest.err
18453 rm -f conftest.er1
18454 cat conftest.err >&5
18455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456 (exit $ac_status); } &&
0ebeb530
JW
18457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18458 { (case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18461esac
18462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_try") 2>&5
e82dfab2
HD
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
18468 { (case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18471esac
18472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473 (eval "$ac_try") 2>&5
e82dfab2
HD
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; }; then
e533e972 18477 ac_cv_lib_dl_dlopen=yes
e82dfab2
HD
18478else
18479 echo "$as_me: failed program was:" >&5
18480sed 's/^/| /' conftest.$ac_ext >&5
18481
e533e972 18482 ac_cv_lib_dl_dlopen=no
e82dfab2 18483fi
fc6ffb29 18484
0ebeb530 18485rm -f core conftest.err conftest.$ac_objext \
e82dfab2 18486 conftest$ac_exeext conftest.$ac_ext
e533e972 18487LIBS=$ac_check_lib_save_LIBS
e82dfab2 18488fi
e533e972
AJ
18489{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18490echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18491if test $ac_cv_lib_dl_dlopen = yes; then
18492 cat >>confdefs.h <<\_ACEOF
18493#define HAVE_DLOPEN 1
e82dfab2 18494_ACEOF
e533e972 18495 LIBDL="-ldl"
30de3e8e 18496
e82dfab2
HD
18497fi
18498
e533e972
AJ
18499fi
18500ac_wine_check_funcs_save_LIBS="$LIBS"
18501LIBS="$LIBS $LIBDL"
18502
18503for ac_func in dladdr
18504do
18505as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18506{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18507echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18508if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
f5818d2f 18509 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039 18510else
f5818d2f 18511 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
18512/* confdefs.h. */
18513_ACEOF
18514cat confdefs.h >>conftest.$ac_ext
18515cat >>conftest.$ac_ext <<_ACEOF
18516/* end confdefs.h. */
e533e972
AJ
18517/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18519#define $ac_func innocuous_$ac_func
18520
18521/* System header to define __stub macros and hopefully few prototypes,
18522 which can conflict with char $ac_func (); below.
18523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18524 <limits.h> exists even on freestanding compilers. */
18525
18526#ifdef __STDC__
18527# include <limits.h>
18528#else
18529# include <assert.h>
18530#endif
18531
18532#undef $ac_func
82776020 18533
fc6ffb29
AJ
18534/* Override any GCC internal prototype to avoid an error.
18535 Use char because int might match the return type of a GCC
18536 builtin and then its argument prototype would still apply. */
82776020
AJ
18537#ifdef __cplusplus
18538extern "C"
18539#endif
e533e972
AJ
18540char $ac_func ();
18541/* The GNU C library defines this for functions which it implements
18542 to always fail with ENOSYS. Some functions are actually named
18543 something starting with __ and the normal name is an alias. */
18544#if defined __stub_$ac_func || defined __stub___$ac_func
18545choke me
18546#endif
18547
f5818d2f
AJ
18548int
18549main ()
18550{
e533e972 18551return $ac_func ();
f5818d2f
AJ
18552 ;
18553 return 0;
18554}
18555_ACEOF
18556rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
18557if { (ac_try="$ac_link"
18558case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18561esac
18562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_link") 2>conftest.er1
f5818d2f 18564 ac_status=$?
875927f6
AJ
18565 grep -v '^ *+' conftest.er1 >conftest.err
18566 rm -f conftest.er1
18567 cat conftest.err >&5
daa2886c 18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 18569 (exit $ac_status); } &&
0ebeb530
JW
18570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18571 { (case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18574esac
18575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_try") 2>&5
875927f6
AJ
18577 ac_status=$?
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); }; } &&
18580 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
18581 { (case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18584esac
18585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586 (eval "$ac_try") 2>&5
f5818d2f 18587 ac_status=$?
daa2886c 18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 18589 (exit $ac_status); }; }; then
e533e972 18590 eval "$as_ac_var=yes"
f5818d2f
AJ
18591else
18592 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
18593sed 's/^/| /' conftest.$ac_ext >&5
18594
e533e972 18595 eval "$as_ac_var=no"
f5818d2f 18596fi
fc6ffb29 18597
0ebeb530 18598rm -f core conftest.err conftest.$ac_objext \
875927f6 18599 conftest$ac_exeext conftest.$ac_ext
f5818d2f 18600fi
e533e972
AJ
18601ac_res=`eval echo '${'$as_ac_var'}'`
18602 { echo "$as_me:$LINENO: result: $ac_res" >&5
18603echo "${ECHO_T}$ac_res" >&6; }
18604if test `eval echo '${'$as_ac_var'}'` = yes; then
18605 cat >>confdefs.h <<_ACEOF
18606#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 18607_ACEOF
30de3e8e 18608
1bb94039 18609fi
e533e972 18610done
1bb94039 18611
e533e972
AJ
18612LIBS="$ac_wine_check_funcs_save_LIBS"
18613
18614if test "$ac_cv_func_poll" = no
18615then
18616 { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
18617echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
18618if test "${ac_cv_lib_poll_poll+set}" = set; then
f5818d2f 18619 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039 18620else
e533e972
AJ
18621 ac_check_lib_save_LIBS=$LIBS
18622LIBS="-lpoll $LIBS"
18623cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
18624/* confdefs.h. */
18625_ACEOF
18626cat confdefs.h >>conftest.$ac_ext
18627cat >>conftest.$ac_ext <<_ACEOF
18628/* end confdefs.h. */
1bb94039 18629
fc6ffb29
AJ
18630/* Override any GCC internal prototype to avoid an error.
18631 Use char because int might match the return type of a GCC
18632 builtin and then its argument prototype would still apply. */
82776020
AJ
18633#ifdef __cplusplus
18634extern "C"
18635#endif
e533e972 18636char poll ();
f5818d2f
AJ
18637int
18638main ()
18639{
e533e972 18640return poll ();
f5818d2f
AJ
18641 ;
18642 return 0;
18643}
18644_ACEOF
18645rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
18646if { (ac_try="$ac_link"
18647case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18650esac
18651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_link") 2>conftest.er1
f5818d2f 18653 ac_status=$?
875927f6
AJ
18654 grep -v '^ *+' conftest.er1 >conftest.err
18655 rm -f conftest.er1
18656 cat conftest.err >&5
daa2886c 18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 18658 (exit $ac_status); } &&
0ebeb530
JW
18659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18660 { (case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18663esac
18664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_try") 2>&5
875927f6
AJ
18666 ac_status=$?
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; } &&
18669 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
18670 { (case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18673esac
18674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675 (eval "$ac_try") 2>&5
f5818d2f 18676 ac_status=$?
daa2886c 18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 18678 (exit $ac_status); }; }; then
e533e972 18679 ac_cv_lib_poll_poll=yes
1bb94039 18680else
f5818d2f 18681 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
18682sed 's/^/| /' conftest.$ac_ext >&5
18683
e533e972 18684 ac_cv_lib_poll_poll=no
1bb94039 18685fi
fc6ffb29 18686
0ebeb530 18687rm -f core conftest.err conftest.$ac_objext \
875927f6 18688 conftest$ac_exeext conftest.$ac_ext
e533e972 18689LIBS=$ac_check_lib_save_LIBS
1bb94039 18690fi
e533e972
AJ
18691{ echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
18692echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
18693if test $ac_cv_lib_poll_poll = yes; then
18694 cat >>confdefs.h <<\_ACEOF
18695#define HAVE_POLL 1
f5818d2f 18696_ACEOF
e533e972 18697 LIBPOLL="-lpoll"
30de3e8e 18698
1bb94039 18699fi
1bb94039 18700
e533e972
AJ
18701fi
18702
18703if test "$ac_cv_func_gethostbyname" = no
18704then
18705
18706{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18707echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
18708if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
f5818d2f
AJ
18709 echo $ECHO_N "(cached) $ECHO_C" >&6
18710else
e533e972
AJ
18711 ac_check_lib_save_LIBS=$LIBS
18712LIBS="-lnsl $LIBS"
18713cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
18714/* confdefs.h. */
18715_ACEOF
18716cat confdefs.h >>conftest.$ac_ext
18717cat >>conftest.$ac_ext <<_ACEOF
18718/* end confdefs.h. */
875927f6 18719
fc6ffb29
AJ
18720/* Override any GCC internal prototype to avoid an error.
18721 Use char because int might match the return type of a GCC
18722 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
18723#ifdef __cplusplus
18724extern "C"
18725#endif
e533e972 18726char gethostbyname ();
e24bcc77
AJ
18727int
18728main ()
18729{
e533e972 18730return gethostbyname ();
f5818d2f
AJ
18731 ;
18732 return 0;
18733}
18734_ACEOF
18735rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
18736if { (ac_try="$ac_link"
18737case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18740esac
18741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_link") 2>conftest.er1
f5818d2f 18743 ac_status=$?
875927f6
AJ
18744 grep -v '^ *+' conftest.er1 >conftest.err
18745 rm -f conftest.er1
18746 cat conftest.err >&5
daa2886c 18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 18748 (exit $ac_status); } &&
0ebeb530
JW
18749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18753esac
18754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
875927f6
AJ
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
18760 { (case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763esac
18764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_try") 2>&5
f5818d2f 18766 ac_status=$?
daa2886c 18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 18768 (exit $ac_status); }; }; then
e533e972 18769 ac_cv_lib_nsl_gethostbyname=yes
f5818d2f
AJ
18770else
18771 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
18772sed 's/^/| /' conftest.$ac_ext >&5
18773
e533e972 18774 ac_cv_lib_nsl_gethostbyname=no
f5818d2f 18775fi
fc6ffb29 18776
0ebeb530 18777rm -f core conftest.err conftest.$ac_objext \
875927f6 18778 conftest$ac_exeext conftest.$ac_ext
e533e972 18779LIBS=$ac_check_lib_save_LIBS
f5818d2f 18780fi
e533e972
AJ
18781{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18782echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
18783if test $ac_cv_lib_nsl_gethostbyname = yes; then
18784 cat >>confdefs.h <<_ACEOF
18785#define HAVE_LIBNSL 1
f5818d2f 18786_ACEOF
30de3e8e 18787
e533e972 18788 LIBS="-lnsl $LIBS"
30de3e8e 18789
1bb94039 18790fi
daa2886c 18791
e533e972 18792fi
1bb94039 18793
e533e972
AJ
18794if test "$ac_cv_func_connect" = no
18795then
1bb94039 18796
e533e972
AJ
18797{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18798echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
18799if test "${ac_cv_lib_socket_connect+set}" = set; then
f5818d2f
AJ
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18801else
e533e972
AJ
18802 ac_check_lib_save_LIBS=$LIBS
18803LIBS="-lsocket $LIBS"
18804cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
18805/* confdefs.h. */
18806_ACEOF
18807cat confdefs.h >>conftest.$ac_ext
18808cat >>conftest.$ac_ext <<_ACEOF
18809/* end confdefs.h. */
875927f6 18810
fc6ffb29
AJ
18811/* Override any GCC internal prototype to avoid an error.
18812 Use char because int might match the return type of a GCC
18813 builtin and then its argument prototype would still apply. */
f5818d2f
AJ
18814#ifdef __cplusplus
18815extern "C"
18816#endif
e533e972 18817char connect ();
e24bcc77
AJ
18818int
18819main ()
18820{
e533e972 18821return connect ();
f5818d2f
AJ
18822 ;
18823 return 0;
18824}
18825_ACEOF
18826rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
18827if { (ac_try="$ac_link"
18828case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18831esac
18832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_link") 2>conftest.er1
f5818d2f 18834 ac_status=$?
875927f6
AJ
18835 grep -v '^ *+' conftest.er1 >conftest.err
18836 rm -f conftest.er1
18837 cat conftest.err >&5
daa2886c 18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 18839 (exit $ac_status); } &&
0ebeb530
JW
18840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18841 { (case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18844esac
18845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_try") 2>&5
875927f6
AJ
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
18851 { (case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18854esac
18855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_try") 2>&5
f5818d2f 18857 ac_status=$?
daa2886c 18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 18859 (exit $ac_status); }; }; then
e533e972 18860 ac_cv_lib_socket_connect=yes
f5818d2f
AJ
18861else
18862 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
18863sed 's/^/| /' conftest.$ac_ext >&5
18864
e533e972 18865 ac_cv_lib_socket_connect=no
f5818d2f 18866fi
fc6ffb29 18867
0ebeb530 18868rm -f core conftest.err conftest.$ac_objext \
875927f6 18869 conftest$ac_exeext conftest.$ac_ext
e533e972 18870LIBS=$ac_check_lib_save_LIBS
f5818d2f 18871fi
e533e972
AJ
18872{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18873echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
18874if test $ac_cv_lib_socket_connect = yes; then
daa2886c 18875 cat >>confdefs.h <<_ACEOF
e533e972 18876#define HAVE_LIBSOCKET 1
daa2886c 18877_ACEOF
7e6ae4ba 18878
e533e972
AJ
18879 LIBS="-lsocket $LIBS"
18880
e2991ea7 18881fi
e2991ea7 18882
e533e972 18883fi
daa2886c 18884
e533e972 18885if test "$ac_cv_func_inet_aton" = no
1089260f 18886then
e533e972
AJ
18887
18888{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
18889echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
18890if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
1089260f
AJ
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18892else
18893 ac_check_lib_save_LIBS=$LIBS
e533e972 18894LIBS="-lresolv $LIBS"
1089260f
AJ
18895cat >conftest.$ac_ext <<_ACEOF
18896/* confdefs.h. */
18897_ACEOF
18898cat confdefs.h >>conftest.$ac_ext
18899cat >>conftest.$ac_ext <<_ACEOF
18900/* end confdefs.h. */
18901
18902/* Override any GCC internal prototype to avoid an error.
18903 Use char because int might match the return type of a GCC
18904 builtin and then its argument prototype would still apply. */
18905#ifdef __cplusplus
18906extern "C"
18907#endif
e533e972 18908char inet_aton ();
1089260f
AJ
18909int
18910main ()
18911{
e533e972 18912return inet_aton ();
1089260f
AJ
18913 ;
18914 return 0;
18915}
18916_ACEOF
18917rm -f conftest.$ac_objext conftest$ac_exeext
18918if { (ac_try="$ac_link"
18919case "(($ac_try" in
18920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18921 *) ac_try_echo=$ac_try;;
18922esac
18923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18924 (eval "$ac_link") 2>conftest.er1
18925 ac_status=$?
18926 grep -v '^ *+' conftest.er1 >conftest.err
18927 rm -f conftest.er1
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } &&
18931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18932 { (case "(($ac_try" in
18933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18934 *) ac_try_echo=$ac_try;;
18935esac
18936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18937 (eval "$ac_try") 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try='test -s conftest$ac_exeext'
18942 { (case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18945esac
18946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947 (eval "$ac_try") 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; }; then
e533e972 18951 ac_cv_lib_resolv_inet_aton=yes
1089260f
AJ
18952else
18953 echo "$as_me: failed program was:" >&5
18954sed 's/^/| /' conftest.$ac_ext >&5
18955
e533e972 18956 ac_cv_lib_resolv_inet_aton=no
1089260f
AJ
18957fi
18958
18959rm -f core conftest.err conftest.$ac_objext \
18960 conftest$ac_exeext conftest.$ac_ext
18961LIBS=$ac_check_lib_save_LIBS
18962fi
e533e972
AJ
18963{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
18964echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
18965if test $ac_cv_lib_resolv_inet_aton = yes; then
18966 cat >>confdefs.h <<_ACEOF
18967#define HAVE_LIBRESOLV 1
1089260f 18968_ACEOF
e533e972
AJ
18969
18970 LIBS="-lresolv $LIBS"
1089260f
AJ
18971
18972fi
18973
18974fi
daa2886c
AJ
18975
18976
fc6ffb29
AJ
18977{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18978echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
f41c2b21 18979if test "${ac_cv_c_const+set}" = set; then
f5818d2f
AJ
18980 echo $ECHO_N "(cached) $ECHO_C" >&6
18981else
18982 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
18983/* confdefs.h. */
18984_ACEOF
18985cat confdefs.h >>conftest.$ac_ext
18986cat >>conftest.$ac_ext <<_ACEOF
18987/* end confdefs.h. */
f41c2b21 18988
f5818d2f
AJ
18989int
18990main ()
18991{
f41c2b21
DP
18992/* FIXME: Include the comments suggested by Paul. */
18993#ifndef __cplusplus
18994 /* Ultrix mips cc rejects this. */
18995 typedef int charset[2];
18996 const charset x;
18997 /* SunOS 4.1.1 cc rejects this. */
18998 char const *const *ccp;
18999 char **p;
19000 /* NEC SVR4.0.2 mips cc rejects this. */
19001 struct point {int x, y;};
19002 static struct point const zero = {0,0};
19003 /* AIX XL C 1.02.0.0 rejects this.
19004 It does not let you subtract one const X* pointer from another in
19005 an arm of an if-expression whose if-part is not a constant
19006 expression */
19007 const char *g = "string";
19008 ccp = &g + (g ? g-g : 0);
19009 /* HPUX 7.0 cc rejects these. */
19010 ++ccp;
19011 p = (char**) ccp;
19012 ccp = (char const *const *) p;
19013 { /* SCO 3.2v4 cc rejects this. */
19014 char *t;
19015 char const *s = 0 ? (char *) 0 : (char const *) 0;
19016
19017 *t++ = 0;
fc6ffb29 19018 if (s) return 0;
f41c2b21
DP
19019 }
19020 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19021 int x[] = {25, 17};
19022 const int *foo = &x[0];
19023 ++foo;
19024 }
19025 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19026 typedef const int *iptr;
19027 iptr p = 0;
19028 ++p;
19029 }
19030 { /* AIX XL C 1.02.0.0 rejects this saying
19031 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19032 struct s { int j; const int *ap[3]; };
19033 struct s *b; b->j = 5;
19034 }
19035 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19036 const int foo = 10;
fc6ffb29 19037 if (!foo) return 0;
f41c2b21 19038 }
fc6ffb29 19039 return !x[0] && !zero.x;
f41c2b21
DP
19040#endif
19041
f5818d2f
AJ
19042 ;
19043 return 0;
19044}
19045_ACEOF
19046rm -f conftest.$ac_objext
0ebeb530
JW
19047if { (ac_try="$ac_compile"
19048case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19051esac
19052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_compile") 2>conftest.er1
f5818d2f 19054 ac_status=$?
875927f6
AJ
19055 grep -v '^ *+' conftest.er1 >conftest.err
19056 rm -f conftest.er1
19057 cat conftest.err >&5
daa2886c 19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 19059 (exit $ac_status); } &&
0ebeb530
JW
19060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19061 { (case "(($ac_try" in
19062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19063 *) ac_try_echo=$ac_try;;
19064esac
19065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19066 (eval "$ac_try") 2>&5
875927f6
AJ
19067 ac_status=$?
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
19071 { (case "(($ac_try" in
19072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073 *) ac_try_echo=$ac_try;;
19074esac
19075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_try") 2>&5
f5818d2f 19077 ac_status=$?
daa2886c 19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 19079 (exit $ac_status); }; }; then
f41c2b21 19080 ac_cv_c_const=yes
f5818d2f
AJ
19081else
19082 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
19083sed 's/^/| /' conftest.$ac_ext >&5
19084
fc6ffb29 19085 ac_cv_c_const=no
c7c217b3 19086fi
fc6ffb29 19087
0ebeb530 19088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 19089fi
fc6ffb29
AJ
19090{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19091echo "${ECHO_T}$ac_cv_c_const" >&6; }
f41c2b21 19092if test $ac_cv_c_const = no; then
5769d1de 19093
f41c2b21
DP
19094cat >>confdefs.h <<\_ACEOF
19095#define const
5769d1de
AJ
19096_ACEOF
19097
5769d1de 19098fi
f41c2b21 19099
fc6ffb29
AJ
19100{ echo "$as_me:$LINENO: checking for inline" >&5
19101echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
f41c2b21 19102if test "${ac_cv_c_inline+set}" = set; then
5769d1de
AJ
19103 echo $ECHO_N "(cached) $ECHO_C" >&6
19104else
f41c2b21
DP
19105 ac_cv_c_inline=no
19106for ac_kw in inline __inline__ __inline; do
5769d1de 19107 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
19108/* confdefs.h. */
19109_ACEOF
19110cat confdefs.h >>conftest.$ac_ext
f41c2b21
DP
19111cat >>conftest.$ac_ext <<_ACEOF
19112/* end confdefs.h. */
19113#ifndef __cplusplus
19114typedef int foo_t;
19115static $ac_kw foo_t static_foo () {return 0; }
19116$ac_kw foo_t foo () {return 0; }
19117#endif
19118
5769d1de
AJ
19119_ACEOF
19120rm -f conftest.$ac_objext
0ebeb530
JW
19121if { (ac_try="$ac_compile"
19122case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19125esac
19126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127 (eval "$ac_compile") 2>conftest.er1
5769d1de 19128 ac_status=$?
875927f6
AJ
19129 grep -v '^ *+' conftest.er1 >conftest.err
19130 rm -f conftest.er1
19131 cat conftest.err >&5
5769d1de
AJ
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); } &&
0ebeb530
JW
19134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19135 { (case "(($ac_try" in
19136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19137 *) ac_try_echo=$ac_try;;
19138esac
19139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19140 (eval "$ac_try") 2>&5
875927f6
AJ
19141 ac_status=$?
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); }; } &&
19144 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
19145 { (case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19148esac
19149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150 (eval "$ac_try") 2>&5
5769d1de
AJ
19151 ac_status=$?
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
fc6ffb29 19154 ac_cv_c_inline=$ac_kw
f5818d2f 19155else
5769d1de 19156 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
19157sed 's/^/| /' conftest.$ac_ext >&5
19158
fc6ffb29 19159
5769d1de 19160fi
fc6ffb29 19161
0ebeb530 19162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6ffb29 19163 test "$ac_cv_c_inline" != no && break
f41c2b21 19164done
f5818d2f 19165
f41c2b21 19166fi
fc6ffb29
AJ
19167{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19168echo "${ECHO_T}$ac_cv_c_inline" >&6; }
c7c217b3 19169
5769d1de 19170
f41c2b21
DP
19171case $ac_cv_c_inline in
19172 inline | yes) ;;
19173 *)
19174 case $ac_cv_c_inline in
19175 no) ac_val=;;
19176 *) ac_val=$ac_cv_c_inline;;
19177 esac
19178 cat >>confdefs.h <<_ACEOF
19179#ifndef __cplusplus
19180#define inline $ac_val
19181#endif
19182_ACEOF
19183 ;;
19184esac
c7c217b3 19185
fc6ffb29
AJ
19186{ echo "$as_me:$LINENO: checking for mode_t" >&5
19187echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
f41c2b21 19188if test "${ac_cv_type_mode_t+set}" = set; then
f5818d2f
AJ
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19190else
19191 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
19192/* confdefs.h. */
19193_ACEOF
19194cat confdefs.h >>conftest.$ac_ext
19195cat >>conftest.$ac_ext <<_ACEOF
19196/* end confdefs.h. */
f5818d2f 19197$ac_includes_default
fc6ffb29 19198typedef mode_t ac__type_new_;
f5818d2f
AJ
19199int
19200main ()
19201{
fc6ffb29 19202if ((ac__type_new_ *) 0)
f5818d2f 19203 return 0;
fc6ffb29 19204if (sizeof (ac__type_new_))
f5818d2f
AJ
19205 return 0;
19206 ;
19207 return 0;
19208}
19209_ACEOF
19210rm -f conftest.$ac_objext
0ebeb530
JW
19211if { (ac_try="$ac_compile"
19212case "(($ac_try" in
19213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19214 *) ac_try_echo=$ac_try;;
19215esac
19216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19217 (eval "$ac_compile") 2>conftest.er1
f5818d2f 19218 ac_status=$?
875927f6
AJ
19219 grep -v '^ *+' conftest.er1 >conftest.err
19220 rm -f conftest.er1
19221 cat conftest.err >&5
daa2886c 19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 19223 (exit $ac_status); } &&
0ebeb530
JW
19224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19225 { (case "(($ac_try" in
19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19228esac
19229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_try") 2>&5
875927f6
AJ
19231 ac_status=$?
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; } &&
19234 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
19235 { (case "(($ac_try" in
19236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19237 *) ac_try_echo=$ac_try;;
19238esac
19239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19240 (eval "$ac_try") 2>&5
f5818d2f 19241 ac_status=$?
daa2886c 19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 19243 (exit $ac_status); }; }; then
f41c2b21 19244 ac_cv_type_mode_t=yes
f5818d2f
AJ
19245else
19246 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
19247sed 's/^/| /' conftest.$ac_ext >&5
19248
fc6ffb29 19249 ac_cv_type_mode_t=no
f5818d2f 19250fi
fc6ffb29 19251
0ebeb530 19252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 19253fi
fc6ffb29
AJ
19254{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19255echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
f41c2b21 19256if test $ac_cv_type_mode_t = yes; then
f5818d2f 19257
f41c2b21
DP
19258cat >>confdefs.h <<_ACEOF
19259#define HAVE_MODE_T 1
19260_ACEOF
19261
19262
19263fi
fc6ffb29
AJ
19264{ echo "$as_me:$LINENO: checking for off_t" >&5
19265echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
f41c2b21 19266if test "${ac_cv_type_off_t+set}" = set; then
f5818d2f
AJ
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19268else
f41c2b21 19269 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
19270/* confdefs.h. */
19271_ACEOF
19272cat confdefs.h >>conftest.$ac_ext
19273cat >>conftest.$ac_ext <<_ACEOF
19274/* end confdefs.h. */
f5818d2f 19275$ac_includes_default
fc6ffb29 19276typedef off_t ac__type_new_;
f5818d2f
AJ
19277int
19278main ()
19279{
fc6ffb29 19280if ((ac__type_new_ *) 0)
f41c2b21 19281 return 0;
fc6ffb29 19282if (sizeof (ac__type_new_))
f41c2b21 19283 return 0;
f5818d2f
AJ
19284 ;
19285 return 0;
19286}
19287_ACEOF
19288rm -f conftest.$ac_objext
0ebeb530
JW
19289if { (ac_try="$ac_compile"
19290case "(($ac_try" in
19291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19292 *) ac_try_echo=$ac_try;;
19293esac
19294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19295 (eval "$ac_compile") 2>conftest.er1
f5818d2f 19296 ac_status=$?
875927f6
AJ
19297 grep -v '^ *+' conftest.er1 >conftest.err
19298 rm -f conftest.er1
19299 cat conftest.err >&5
daa2886c 19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 19301 (exit $ac_status); } &&
0ebeb530
JW
19302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19303 { (case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19306esac
19307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_try") 2>&5
875927f6
AJ
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; } &&
19312 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
19313 { (case "(($ac_try" in
19314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19316esac
19317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318 (eval "$ac_try") 2>&5
f5818d2f 19319 ac_status=$?
daa2886c 19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 19321 (exit $ac_status); }; }; then
f41c2b21
DP
19322 ac_cv_type_off_t=yes
19323else
19324 echo "$as_me: failed program was:" >&5
19325sed 's/^/| /' conftest.$ac_ext >&5
19326
fc6ffb29 19327 ac_cv_type_off_t=no
f41c2b21 19328fi
fc6ffb29 19329
0ebeb530 19330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21 19331fi
fc6ffb29
AJ
19332{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19333echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
f41c2b21
DP
19334if test $ac_cv_type_off_t = yes; then
19335
19336cat >>confdefs.h <<_ACEOF
19337#define HAVE_OFF_T 1
19338_ACEOF
19339
19340
19341fi
fc6ffb29
AJ
19342{ echo "$as_me:$LINENO: checking for pid_t" >&5
19343echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
f41c2b21
DP
19344if test "${ac_cv_type_pid_t+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19346else
19347 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
19348/* confdefs.h. */
19349_ACEOF
19350cat confdefs.h >>conftest.$ac_ext
19351cat >>conftest.$ac_ext <<_ACEOF
19352/* end confdefs.h. */
f5818d2f 19353$ac_includes_default
fc6ffb29 19354typedef pid_t ac__type_new_;
f5818d2f
AJ
19355int
19356main ()
19357{
fc6ffb29 19358if ((ac__type_new_ *) 0)
f41c2b21 19359 return 0;
fc6ffb29 19360if (sizeof (ac__type_new_))
f41c2b21 19361 return 0;
f5818d2f
AJ
19362 ;
19363 return 0;
19364}
19365_ACEOF
19366rm -f conftest.$ac_objext
0ebeb530
JW
19367if { (ac_try="$ac_compile"
19368case "(($ac_try" in
19369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19370 *) ac_try_echo=$ac_try;;
19371esac
19372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19373 (eval "$ac_compile") 2>conftest.er1
f5818d2f 19374 ac_status=$?
875927f6
AJ
19375 grep -v '^ *+' conftest.er1 >conftest.err
19376 rm -f conftest.er1
19377 cat conftest.err >&5
daa2886c 19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 19379 (exit $ac_status); } &&
0ebeb530
JW
19380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19381 { (case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19384esac
19385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_try") 2>&5
875927f6
AJ
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
19391 { (case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19394esac
19395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_try") 2>&5
f5818d2f 19397 ac_status=$?
daa2886c 19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 19399 (exit $ac_status); }; }; then
f41c2b21 19400 ac_cv_type_pid_t=yes
f5818d2f
AJ
19401else
19402 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
19403sed 's/^/| /' conftest.$ac_ext >&5
19404
fc6ffb29 19405 ac_cv_type_pid_t=no
f5818d2f 19406fi
fc6ffb29 19407
0ebeb530 19408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21 19409fi
fc6ffb29
AJ
19410{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19411echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
f41c2b21 19412if test $ac_cv_type_pid_t = yes; then
e24bcc77 19413
f41c2b21
DP
19414cat >>confdefs.h <<_ACEOF
19415#define HAVE_PID_T 1
19416_ACEOF
19417
19418
19419fi
fc6ffb29
AJ
19420{ echo "$as_me:$LINENO: checking for size_t" >&5
19421echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
f41c2b21
DP
19422if test "${ac_cv_type_size_t+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424else
19425 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
19426/* confdefs.h. */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h. */
daa2886c 19431$ac_includes_default
fc6ffb29 19432typedef size_t ac__type_new_;
daa2886c
AJ
19433int
19434main ()
19435{
fc6ffb29 19436if ((ac__type_new_ *) 0)
f41c2b21 19437 return 0;
fc6ffb29 19438if (sizeof (ac__type_new_))
f41c2b21 19439 return 0;
daa2886c
AJ
19440 ;
19441 return 0;
19442}
19443_ACEOF
19444rm -f conftest.$ac_objext
0ebeb530
JW
19445if { (ac_try="$ac_compile"
19446case "(($ac_try" in
19447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19448 *) ac_try_echo=$ac_try;;
19449esac
19450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19451 (eval "$ac_compile") 2>conftest.er1
daa2886c 19452 ac_status=$?
875927f6
AJ
19453 grep -v '^ *+' conftest.er1 >conftest.err
19454 rm -f conftest.er1
19455 cat conftest.err >&5
daa2886c
AJ
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); } &&
0ebeb530
JW
19458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19459 { (case "(($ac_try" in
19460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19461 *) ac_try_echo=$ac_try;;
19462esac
19463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19464 (eval "$ac_try") 2>&5
875927f6
AJ
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
19469 { (case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19472esac
19473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_try") 2>&5
daa2886c
AJ
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; }; then
f41c2b21
DP
19478 ac_cv_type_size_t=yes
19479else
19480 echo "$as_me: failed program was:" >&5
19481sed 's/^/| /' conftest.$ac_ext >&5
19482
fc6ffb29 19483 ac_cv_type_size_t=no
f41c2b21 19484fi
fc6ffb29 19485
0ebeb530 19486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f41c2b21 19487fi
fc6ffb29
AJ
19488{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19489echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
f41c2b21
DP
19490if test $ac_cv_type_size_t = yes; then
19491
19492cat >>confdefs.h <<_ACEOF
19493#define HAVE_SIZE_T 1
19494_ACEOF
19495
19496
19497fi
fc6ffb29
AJ
19498{ echo "$as_me:$LINENO: checking for ssize_t" >&5
19499echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
f41c2b21
DP
19500if test "${ac_cv_type_ssize_t+set}" = set; then
19501 echo $ECHO_N "(cached) $ECHO_C" >&6
19502else
19503 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
19504/* confdefs.h. */
19505_ACEOF
19506cat confdefs.h >>conftest.$ac_ext
19507cat >>conftest.$ac_ext <<_ACEOF
19508/* end confdefs.h. */
f5818d2f 19509$ac_includes_default
fc6ffb29 19510typedef ssize_t ac__type_new_;
f5818d2f
AJ
19511int
19512main ()
19513{
fc6ffb29 19514if ((ac__type_new_ *) 0)
f41c2b21 19515 return 0;
fc6ffb29 19516if (sizeof (ac__type_new_))
f41c2b21 19517 return 0;
f5818d2f
AJ
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
f5818d2f 19530 ac_status=$?
875927f6
AJ
19531 grep -v '^ *+' conftest.er1 >conftest.err
19532 rm -f conftest.er1
19533 cat conftest.err >&5
daa2886c 19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 19535 (exit $ac_status); } &&
0ebeb530
JW
19536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19537 { (case "(($ac_try" in
19538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19539 *) ac_try_echo=$ac_try;;
19540esac
19541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19542 (eval "$ac_try") 2>&5
875927f6
AJ
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; } &&
19546 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
19547 { (case "(($ac_try" in
19548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19549 *) ac_try_echo=$ac_try;;
19550esac
19551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19552 (eval "$ac_try") 2>&5
f5818d2f 19553 ac_status=$?
daa2886c 19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 19555 (exit $ac_status); }; }; then
f41c2b21 19556 ac_cv_type_ssize_t=yes
f5818d2f
AJ
19557else
19558 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
19559sed 's/^/| /' conftest.$ac_ext >&5
19560
fc6ffb29 19561 ac_cv_type_ssize_t=no
f5818d2f 19562fi
fc6ffb29 19563
0ebeb530 19564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
daa2886c 19565fi
fc6ffb29
AJ
19566{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
19567echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
f41c2b21
DP
19568if test $ac_cv_type_ssize_t = yes; then
19569
19570cat >>confdefs.h <<_ACEOF
19571#define HAVE_SSIZE_T 1
19572_ACEOF
19573
19574
f5818d2f 19575fi
fc6ffb29
AJ
19576{ echo "$as_me:$LINENO: checking for long long" >&5
19577echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
f41c2b21
DP
19578if test "${ac_cv_type_long_long+set}" = set; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19580else
f5818d2f 19581 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
19582/* confdefs.h. */
19583_ACEOF
19584cat confdefs.h >>conftest.$ac_ext
19585cat >>conftest.$ac_ext <<_ACEOF
19586/* end confdefs.h. */
f5818d2f 19587$ac_includes_default
fc6ffb29 19588typedef long long ac__type_new_;
f5818d2f
AJ
19589int
19590main ()
19591{
fc6ffb29 19592if ((ac__type_new_ *) 0)
f41c2b21 19593 return 0;
fc6ffb29 19594if (sizeof (ac__type_new_))
f41c2b21 19595 return 0;
f5818d2f
AJ
19596 ;
19597 return 0;
19598}
19599_ACEOF
19600rm -f conftest.$ac_objext
0ebeb530
JW
19601if { (ac_try="$ac_compile"
19602case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605esac
19606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_compile") 2>conftest.er1
f5818d2f 19608 ac_status=$?
875927f6
AJ
19609 grep -v '^ *+' conftest.er1 >conftest.err
19610 rm -f conftest.er1
19611 cat conftest.err >&5
daa2886c 19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 19613 (exit $ac_status); } &&
0ebeb530
JW
19614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19615 { (case "(($ac_try" in
19616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617 *) ac_try_echo=$ac_try;;
19618esac
19619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19620 (eval "$ac_try") 2>&5
875927f6
AJ
19621 ac_status=$?
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); }; } &&
19624 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
19625 { (case "(($ac_try" in
19626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19627 *) ac_try_echo=$ac_try;;
19628esac
19629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19630 (eval "$ac_try") 2>&5
f5818d2f 19631 ac_status=$?
daa2886c 19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 19633 (exit $ac_status); }; }; then
f41c2b21 19634 ac_cv_type_long_long=yes
f5818d2f
AJ
19635else
19636 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
19637sed 's/^/| /' conftest.$ac_ext >&5
19638
fc6ffb29 19639 ac_cv_type_long_long=no
f5818d2f 19640fi
fc6ffb29 19641
0ebeb530 19642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 19643fi
fc6ffb29
AJ
19644{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19645echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
f41c2b21
DP
19646if test $ac_cv_type_long_long = yes; then
19647
daa2886c 19648cat >>confdefs.h <<_ACEOF
f41c2b21 19649#define HAVE_LONG_LONG 1
daa2886c
AJ
19650_ACEOF
19651
19652
13af4891 19653fi
fc6ffb29
AJ
19654{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
19655echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
13af4891
AJ
19656if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
19657 echo $ECHO_N "(cached) $ECHO_C" >&6
19658else
19659 cat >conftest.$ac_ext <<_ACEOF
19660/* confdefs.h. */
19661_ACEOF
19662cat confdefs.h >>conftest.$ac_ext
19663cat >>conftest.$ac_ext <<_ACEOF
19664/* end confdefs.h. */
19665$ac_includes_default
fc6ffb29 19666typedef fsblkcnt_t ac__type_new_;
13af4891
AJ
19667int
19668main ()
19669{
fc6ffb29 19670if ((ac__type_new_ *) 0)
13af4891 19671 return 0;
fc6ffb29 19672if (sizeof (ac__type_new_))
13af4891
AJ
19673 return 0;
19674 ;
19675 return 0;
19676}
19677_ACEOF
19678rm -f conftest.$ac_objext
0ebeb530
JW
19679if { (ac_try="$ac_compile"
19680case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19683esac
19684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
19686 ac_status=$?
19687 grep -v '^ *+' conftest.er1 >conftest.err
19688 rm -f conftest.er1
19689 cat conftest.err >&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } &&
0ebeb530
JW
19692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19693 { (case "(($ac_try" in
19694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695 *) ac_try_echo=$ac_try;;
19696esac
19697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19698 (eval "$ac_try") 2>&5
13af4891
AJ
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }; } &&
19702 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
19703 { (case "(($ac_try" in
19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19706esac
19707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_try") 2>&5
13af4891
AJ
19709 ac_status=$?
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); }; }; then
19712 ac_cv_type_fsblkcnt_t=yes
19713else
19714 echo "$as_me: failed program was:" >&5
19715sed 's/^/| /' conftest.$ac_ext >&5
19716
fc6ffb29 19717 ac_cv_type_fsblkcnt_t=no
13af4891 19718fi
fc6ffb29 19719
0ebeb530 19720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 19721fi
fc6ffb29
AJ
19722{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
19723echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
13af4891
AJ
19724if test $ac_cv_type_fsblkcnt_t = yes; then
19725
19726cat >>confdefs.h <<_ACEOF
19727#define HAVE_FSBLKCNT_T 1
19728_ACEOF
19729
19730
19731fi
fc6ffb29
AJ
19732{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
19733echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
13af4891
AJ
19734if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
19735 echo $ECHO_N "(cached) $ECHO_C" >&6
19736else
19737 cat >conftest.$ac_ext <<_ACEOF
19738/* confdefs.h. */
19739_ACEOF
19740cat confdefs.h >>conftest.$ac_ext
19741cat >>conftest.$ac_ext <<_ACEOF
19742/* end confdefs.h. */
19743$ac_includes_default
fc6ffb29 19744typedef fsfilcnt_t ac__type_new_;
13af4891
AJ
19745int
19746main ()
19747{
fc6ffb29 19748if ((ac__type_new_ *) 0)
13af4891 19749 return 0;
fc6ffb29 19750if (sizeof (ac__type_new_))
13af4891
AJ
19751 return 0;
19752 ;
19753 return 0;
19754}
19755_ACEOF
19756rm -f conftest.$ac_objext
0ebeb530
JW
19757if { (ac_try="$ac_compile"
19758case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19761esac
19762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
19764 ac_status=$?
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } &&
0ebeb530
JW
19770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19771 { (case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19774esac
19775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_try") 2>&5
13af4891
AJ
19777 ac_status=$?
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); }; } &&
19780 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
19781 { (case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19784esac
19785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_try") 2>&5
13af4891
AJ
19787 ac_status=$?
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; }; then
19790 ac_cv_type_fsfilcnt_t=yes
19791else
19792 echo "$as_me: failed program was:" >&5
19793sed 's/^/| /' conftest.$ac_ext >&5
19794
fc6ffb29 19795 ac_cv_type_fsfilcnt_t=no
13af4891 19796fi
fc6ffb29 19797
0ebeb530 19798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 19799fi
fc6ffb29
AJ
19800{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
19801echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
13af4891
AJ
19802if test $ac_cv_type_fsfilcnt_t = yes; then
19803
19804cat >>confdefs.h <<_ACEOF
19805#define HAVE_FSFILCNT_T 1
19806_ACEOF
19807
19808
10a6c560
PM
19809fi
19810
fc6ffb29
AJ
19811{ echo "$as_me:$LINENO: checking for sigset_t" >&5
19812echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
10a6c560
PM
19813if test "${ac_cv_type_sigset_t+set}" = set; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19815else
19816 cat >conftest.$ac_ext <<_ACEOF
19817/* confdefs.h. */
19818_ACEOF
19819cat confdefs.h >>conftest.$ac_ext
19820cat >>conftest.$ac_ext <<_ACEOF
19821/* end confdefs.h. */
19822#include <signal.h>
19823
fc6ffb29 19824typedef sigset_t ac__type_new_;
10a6c560
PM
19825int
19826main ()
19827{
fc6ffb29 19828if ((ac__type_new_ *) 0)
10a6c560 19829 return 0;
fc6ffb29 19830if (sizeof (ac__type_new_))
10a6c560
PM
19831 return 0;
19832 ;
19833 return 0;
19834}
19835_ACEOF
19836rm -f conftest.$ac_objext
0ebeb530
JW
19837if { (ac_try="$ac_compile"
19838case "(($ac_try" in
19839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19840 *) ac_try_echo=$ac_try;;
19841esac
19842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19843 (eval "$ac_compile") 2>conftest.er1
10a6c560
PM
19844 ac_status=$?
19845 grep -v '^ *+' conftest.er1 >conftest.err
19846 rm -f conftest.er1
19847 cat conftest.err >&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); } &&
0ebeb530
JW
19850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19851 { (case "(($ac_try" in
19852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853 *) ac_try_echo=$ac_try;;
19854esac
19855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19856 (eval "$ac_try") 2>&5
10a6c560
PM
19857 ac_status=$?
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; } &&
19860 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
19861 { (case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19864esac
19865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_try") 2>&5
10a6c560
PM
19867 ac_status=$?
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; }; then
19870 ac_cv_type_sigset_t=yes
19871else
19872 echo "$as_me: failed program was:" >&5
19873sed 's/^/| /' conftest.$ac_ext >&5
19874
fc6ffb29 19875 ac_cv_type_sigset_t=no
10a6c560 19876fi
fc6ffb29 19877
0ebeb530 19878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10a6c560 19879fi
fc6ffb29
AJ
19880{ echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
19881echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
10a6c560
PM
19882if test $ac_cv_type_sigset_t = yes; then
19883
19884cat >>confdefs.h <<_ACEOF
19885#define HAVE_SIGSET_T 1
19886_ACEOF
19887
19888
b8b15f3e
GP
19889fi
19890
fc6ffb29
AJ
19891{ echo "$as_me:$LINENO: checking for request_sense" >&5
19892echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
b8b15f3e
GP
19893if test "${ac_cv_type_request_sense+set}" = set; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19895else
19896 cat >conftest.$ac_ext <<_ACEOF
19897/* confdefs.h. */
19898_ACEOF
19899cat confdefs.h >>conftest.$ac_ext
19900cat >>conftest.$ac_ext <<_ACEOF
19901/* end confdefs.h. */
19902#include <linux/cdrom.h>
19903
fc6ffb29 19904typedef request_sense ac__type_new_;
b8b15f3e
GP
19905int
19906main ()
19907{
fc6ffb29 19908if ((ac__type_new_ *) 0)
b8b15f3e 19909 return 0;
fc6ffb29 19910if (sizeof (ac__type_new_))
b8b15f3e
GP
19911 return 0;
19912 ;
19913 return 0;
19914}
19915_ACEOF
19916rm -f conftest.$ac_objext
0ebeb530
JW
19917if { (ac_try="$ac_compile"
19918case "(($ac_try" in
19919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920 *) ac_try_echo=$ac_try;;
19921esac
19922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923 (eval "$ac_compile") 2>conftest.er1
b8b15f3e
GP
19924 ac_status=$?
19925 grep -v '^ *+' conftest.er1 >conftest.err
19926 rm -f conftest.er1
19927 cat conftest.err >&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } &&
0ebeb530
JW
19930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19931 { (case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19934esac
19935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_try") 2>&5
b8b15f3e
GP
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; } &&
19940 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
19941 { (case "(($ac_try" in
19942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19943 *) ac_try_echo=$ac_try;;
19944esac
19945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19946 (eval "$ac_try") 2>&5
b8b15f3e
GP
19947 ac_status=$?
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; }; then
19950 ac_cv_type_request_sense=yes
19951else
19952 echo "$as_me: failed program was:" >&5
19953sed 's/^/| /' conftest.$ac_ext >&5
19954
fc6ffb29 19955 ac_cv_type_request_sense=no
b8b15f3e 19956fi
fc6ffb29 19957
0ebeb530 19958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b8b15f3e 19959fi
fc6ffb29
AJ
19960{ echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
19961echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
b8b15f3e
GP
19962if test $ac_cv_type_request_sense = yes; then
19963
19964cat >>confdefs.h <<_ACEOF
19965#define HAVE_REQUEST_SENSE 1
19966_ACEOF
19967
19968
f41c2b21
DP
19969fi
19970
c7c217b3 19971
fc6ffb29
AJ
19972{ echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
19973echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
e491e8f8
DR
19974if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
19975 echo $ECHO_N "(cached) $ECHO_C" >&6
19976else
19977 cat >conftest.$ac_ext <<_ACEOF
19978/* confdefs.h. */
19979_ACEOF
19980cat confdefs.h >>conftest.$ac_ext
19981cat >>conftest.$ac_ext <<_ACEOF
19982/* end confdefs.h. */
19983#ifdef HAVE_LINUX_INPUT_H
19984#include <linux/input.h>
19985#endif
19986
19987int
19988main ()
19989{
19990static struct ff_effect ac_aggr;
19991if (ac_aggr.direction)
19992return 0;
19993 ;
19994 return 0;
19995}
19996_ACEOF
19997rm -f conftest.$ac_objext
0ebeb530
JW
19998if { (ac_try="$ac_compile"
19999case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20002esac
20003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_compile") 2>conftest.er1
e491e8f8
DR
20005 ac_status=$?
20006 grep -v '^ *+' conftest.er1 >conftest.err
20007 rm -f conftest.er1
20008 cat conftest.err >&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); } &&
0ebeb530
JW
20011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20012 { (case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20015esac
20016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_try") 2>&5
e491e8f8
DR
20018 ac_status=$?
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; } &&
20021 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
20022 { (case "(($ac_try" in
20023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024 *) ac_try_echo=$ac_try;;
20025esac
20026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027 (eval "$ac_try") 2>&5
e491e8f8
DR
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20031 ac_cv_member_struct_ff_effect_direction=yes
20032else
20033 echo "$as_me: failed program was:" >&5
20034sed 's/^/| /' conftest.$ac_ext >&5
20035
fc6ffb29 20036 cat >conftest.$ac_ext <<_ACEOF
e491e8f8
DR
20037/* confdefs.h. */
20038_ACEOF
20039cat confdefs.h >>conftest.$ac_ext
20040cat >>conftest.$ac_ext <<_ACEOF
20041/* end confdefs.h. */
20042#ifdef HAVE_LINUX_INPUT_H
20043#include <linux/input.h>
20044#endif
20045
20046int
20047main ()
20048{
20049static struct ff_effect ac_aggr;
20050if (sizeof ac_aggr.direction)
20051return 0;
20052 ;
20053 return 0;
20054}
20055_ACEOF
20056rm -f conftest.$ac_objext
0ebeb530
JW
20057if { (ac_try="$ac_compile"
20058case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20061esac
20062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_compile") 2>conftest.er1
e491e8f8
DR
20064 ac_status=$?
20065 grep -v '^ *+' conftest.er1 >conftest.err
20066 rm -f conftest.er1
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } &&
0ebeb530
JW
20070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20071 { (case "(($ac_try" in
20072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073 *) ac_try_echo=$ac_try;;
20074esac
20075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076 (eval "$ac_try") 2>&5
e491e8f8
DR
20077 ac_status=$?
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); }; } &&
20080 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
20081 { (case "(($ac_try" in
20082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20084esac
20085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_try") 2>&5
e491e8f8
DR
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 ac_cv_member_struct_ff_effect_direction=yes
20091else
20092 echo "$as_me: failed program was:" >&5
20093sed 's/^/| /' conftest.$ac_ext >&5
20094
fc6ffb29 20095 ac_cv_member_struct_ff_effect_direction=no
e491e8f8 20096fi
fc6ffb29 20097
0ebeb530 20098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e491e8f8 20099fi
fc6ffb29 20100
0ebeb530 20101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e491e8f8 20102fi
fc6ffb29
AJ
20103{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
20104echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
e491e8f8
DR
20105if test $ac_cv_member_struct_ff_effect_direction = yes; then
20106
20107cat >>confdefs.h <<_ACEOF
20108#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
20109_ACEOF
20110
20111
20112fi
20113
20114
fc6ffb29
AJ
20115{ echo "$as_me:$LINENO: checking for sigaddset" >&5
20116echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
10a6c560
PM
20117if test "${wine_cv_have_sigaddset+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20119else
20120 cat >conftest.$ac_ext <<_ACEOF
20121/* confdefs.h. */
20122_ACEOF
20123cat confdefs.h >>conftest.$ac_ext
20124cat >>conftest.$ac_ext <<_ACEOF
20125/* end confdefs.h. */
20126#include <signal.h>
20127int
20128main ()
20129{
20130sigset_t set; sigaddset(&set,SIGTERM);
20131 ;
20132 return 0;
20133}
20134_ACEOF
20135rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
20136if { (ac_try="$ac_link"
20137case "(($ac_try" in
20138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20139 *) ac_try_echo=$ac_try;;
20140esac
20141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20142 (eval "$ac_link") 2>conftest.er1
10a6c560
PM
20143 ac_status=$?
20144 grep -v '^ *+' conftest.er1 >conftest.err
20145 rm -f conftest.er1
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
0ebeb530
JW
20149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20150 { (case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20153esac
20154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155 (eval "$ac_try") 2>&5
10a6c560
PM
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; } &&
20159 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
20160 { (case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20163esac
20164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165 (eval "$ac_try") 2>&5
10a6c560
PM
20166 ac_status=$?
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; }; then
20169 wine_cv_have_sigaddset=yes
20170else
20171 echo "$as_me: failed program was:" >&5
20172sed 's/^/| /' conftest.$ac_ext >&5
20173
fc6ffb29 20174 wine_cv_have_sigaddset=no
10a6c560 20175fi
fc6ffb29 20176
0ebeb530 20177rm -f core conftest.err conftest.$ac_objext \
10a6c560
PM
20178 conftest$ac_exeext conftest.$ac_ext
20179fi
fc6ffb29
AJ
20180{ echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
20181echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
10a6c560
PM
20182if test "$wine_cv_have_sigaddset" = "yes"
20183then
20184
20185cat >>confdefs.h <<\_ACEOF
20186#define HAVE_SIGADDSET 1
20187_ACEOF
20188
20189fi
20190
daa2886c 20191
fc6ffb29
AJ
20192{ echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
20193echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
f5818d2f
AJ
20194if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
20195 echo $ECHO_N "(cached) $ECHO_C" >&6
ff7a61f8 20196else
f5818d2f 20197 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
20198/* confdefs.h. */
20199_ACEOF
20200cat confdefs.h >>conftest.$ac_ext
20201cat >>conftest.$ac_ext <<_ACEOF
20202/* end confdefs.h. */
ff7a61f8
RK
20203
20204#include <netdb.h>
f5818d2f
AJ
20205
20206int
20207main ()
20208{
ff7a61f8
RK
20209
20210 char *name=NULL;
20211 struct hostent he;
20212 struct hostent *result;
20213 char *buf=NULL;
20214 int bufsize=0;
20215 int res,errnr;
20216 char *addr=NULL;
20217 int addrlen=0;
20218 int addrtype=0;
20219 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
20220 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
f5818d2f
AJ
20221
20222 ;
20223 return 0;
20224}
20225_ACEOF
dfd315b4 20226rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
20227if { (ac_try="$ac_link"
20228case "(($ac_try" in
20229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20230 *) ac_try_echo=$ac_try;;
20231esac
20232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20233 (eval "$ac_link") 2>conftest.er1
f5818d2f 20234 ac_status=$?
875927f6
AJ
20235 grep -v '^ *+' conftest.er1 >conftest.err
20236 rm -f conftest.er1
20237 cat conftest.err >&5
daa2886c 20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 20239 (exit $ac_status); } &&
0ebeb530
JW
20240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20241 { (case "(($ac_try" in
20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243 *) ac_try_echo=$ac_try;;
20244esac
20245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246 (eval "$ac_try") 2>&5
875927f6
AJ
20247 ac_status=$?
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; } &&
dfd315b4 20250 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
20251 { (case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20254esac
20255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_try") 2>&5
f5818d2f 20257 ac_status=$?
daa2886c 20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 20259 (exit $ac_status); }; }; then
ff7a61f8
RK
20260 wine_cv_linux_gethostbyname_r_6=yes
20261else
f5818d2f 20262 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
20263sed 's/^/| /' conftest.$ac_ext >&5
20264
fc6ffb29 20265 wine_cv_linux_gethostbyname_r_6=no
f5818d2f 20266
ff7a61f8 20267fi
fc6ffb29 20268
0ebeb530 20269rm -f core conftest.err conftest.$ac_objext \
dfd315b4 20270 conftest$ac_exeext conftest.$ac_ext
ff7a61f8 20271
f5818d2f 20272fi
fc6ffb29
AJ
20273{ echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
20274echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
ff7a61f8
RK
20275 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
20276 then
f5818d2f 20277
daa2886c 20278cat >>confdefs.h <<\_ACEOF
ff7a61f8 20279#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
daa2886c 20280_ACEOF
ff7a61f8
RK
20281
20282 fi
20283
028e9a17
MM
20284if test "$ac_cv_header_linux_joystick_h" = "yes"
20285then
fc6ffb29
AJ
20286 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
20287echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
f5818d2f
AJ
20288if test "${wine_cv_linux_joystick_22_api+set}" = set; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
028e9a17 20290else
f5818d2f 20291 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
20292/* confdefs.h. */
20293_ACEOF
20294cat confdefs.h >>conftest.$ac_ext
20295cat >>conftest.$ac_ext <<_ACEOF
20296/* end confdefs.h. */
028e9a17
MM
20297
20298 #include <sys/ioctl.h>
20299 #include <linux/joystick.h>
20300
20301 struct js_event blub;
605a9c39
MM
20302 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
20303 #error "no 2.2 header"
20304 #endif
f5818d2f
AJ
20305
20306int
20307main ()
20308{
028e9a17 20309/*empty*/
f5818d2f
AJ
20310 ;
20311 return 0;
20312}
20313_ACEOF
20314rm -f conftest.$ac_objext
0ebeb530
JW
20315if { (ac_try="$ac_compile"
20316case "(($ac_try" in
20317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318 *) ac_try_echo=$ac_try;;
20319esac
20320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_compile") 2>conftest.er1
f5818d2f 20322 ac_status=$?
875927f6
AJ
20323 grep -v '^ *+' conftest.er1 >conftest.err
20324 rm -f conftest.er1
20325 cat conftest.err >&5
daa2886c 20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 20327 (exit $ac_status); } &&
0ebeb530
JW
20328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20329 { (case "(($ac_try" in
20330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331 *) ac_try_echo=$ac_try;;
20332esac
20333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20334 (eval "$ac_try") 2>&5
875927f6
AJ
20335 ac_status=$?
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); }; } &&
20338 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
20339 { (case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20342esac
20343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_try") 2>&5
f5818d2f 20345 ac_status=$?
daa2886c 20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 20347 (exit $ac_status); }; }; then
028e9a17
MM
20348 wine_cv_linux_joystick_22_api=yes
20349else
f5818d2f 20350 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
20351sed 's/^/| /' conftest.$ac_ext >&5
20352
fc6ffb29 20353 wine_cv_linux_joystick_22_api=no
028e9a17 20354fi
fc6ffb29 20355
0ebeb530 20356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
028e9a17 20357
f5818d2f 20358fi
fc6ffb29
AJ
20359{ echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
20360echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
87d224ac 20361 if test "$wine_cv_linux_joystick_22_api" = "yes"
028e9a17 20362 then
f5818d2f 20363
daa2886c 20364cat >>confdefs.h <<\_ACEOF
028e9a17 20365#define HAVE_LINUX_22_JOYSTICK_API 1
daa2886c 20366_ACEOF
028e9a17
MM
20367
20368 fi
20369fi
20370
daa2886c 20371
fc6ffb29
AJ
20372{ echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
20373echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
5537dbbf 20374if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
f5818d2f 20375 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3 20376else
f5818d2f 20377 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
20378/* confdefs.h. */
20379_ACEOF
20380cat confdefs.h >>conftest.$ac_ext
20381cat >>conftest.$ac_ext <<_ACEOF
20382/* end confdefs.h. */
f5818d2f
AJ
20383#include <sys/types.h>
20384#ifdef HAVE_SYS_PARAM_H
20385# include <sys/param.h>
20386#endif
55b74483 20387#ifdef HAVE_SYS_MOUNT_H
f5818d2f 20388# include <sys/mount.h>
55b74483
RM
20389#endif
20390#ifdef HAVE_SYS_VFS_H
20391# include <sys/vfs.h>
20392#endif
20393#ifdef HAVE_SYS_STATFS_H
20394# include <sys/statfs.h>
f5818d2f 20395#endif
5537dbbf 20396
f5818d2f
AJ
20397int
20398main ()
20399{
5537dbbf
AJ
20400static struct statfs ac_aggr;
20401if (ac_aggr.f_bfree)
20402return 0;
f5818d2f
AJ
20403 ;
20404 return 0;
20405}
20406_ACEOF
20407rm -f conftest.$ac_objext
0ebeb530
JW
20408if { (ac_try="$ac_compile"
20409case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20412esac
20413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_compile") 2>conftest.er1
f5818d2f 20415 ac_status=$?
875927f6
AJ
20416 grep -v '^ *+' conftest.er1 >conftest.err
20417 rm -f conftest.er1
20418 cat conftest.err >&5
daa2886c 20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 20420 (exit $ac_status); } &&
0ebeb530
JW
20421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20422 { (case "(($ac_try" in
20423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20424 *) ac_try_echo=$ac_try;;
20425esac
20426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20427 (eval "$ac_try") 2>&5
875927f6
AJ
20428 ac_status=$?
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); }; } &&
20431 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
20432 { (case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20435esac
20436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_try") 2>&5
f5818d2f 20438 ac_status=$?
daa2886c 20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 20440 (exit $ac_status); }; }; then
5537dbbf 20441 ac_cv_member_struct_statfs_f_bfree=yes
f5818d2f
AJ
20442else
20443 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
20444sed 's/^/| /' conftest.$ac_ext >&5
20445
fc6ffb29 20446 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
20447/* confdefs.h. */
20448_ACEOF
20449cat confdefs.h >>conftest.$ac_ext
20450cat >>conftest.$ac_ext <<_ACEOF
20451/* end confdefs.h. */
20452#include <sys/types.h>
20453#ifdef HAVE_SYS_PARAM_H
20454# include <sys/param.h>
20455#endif
55b74483 20456#ifdef HAVE_SYS_MOUNT_H
5537dbbf 20457# include <sys/mount.h>
55b74483
RM
20458#endif
20459#ifdef HAVE_SYS_VFS_H
20460# include <sys/vfs.h>
20461#endif
20462#ifdef HAVE_SYS_STATFS_H
20463# include <sys/statfs.h>
5537dbbf 20464#endif
f5818d2f 20465
5537dbbf
AJ
20466int
20467main ()
20468{
20469static struct statfs ac_aggr;
20470if (sizeof ac_aggr.f_bfree)
20471return 0;
20472 ;
20473 return 0;
20474}
daa2886c 20475_ACEOF
5537dbbf 20476rm -f conftest.$ac_objext
0ebeb530
JW
20477if { (ac_try="$ac_compile"
20478case "(($ac_try" in
20479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480 *) ac_try_echo=$ac_try;;
20481esac
20482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483 (eval "$ac_compile") 2>conftest.er1
5537dbbf 20484 ac_status=$?
875927f6
AJ
20485 grep -v '^ *+' conftest.er1 >conftest.err
20486 rm -f conftest.er1
20487 cat conftest.err >&5
5537dbbf
AJ
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } &&
0ebeb530
JW
20490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20491 { (case "(($ac_try" in
20492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493 *) ac_try_echo=$ac_try;;
20494esac
20495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496 (eval "$ac_try") 2>&5
875927f6
AJ
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; } &&
20500 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
20501 { (case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20504esac
20505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_try") 2>&5
5537dbbf
AJ
20507 ac_status=$?
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; }; then
20510 ac_cv_member_struct_statfs_f_bfree=yes
20511else
20512 echo "$as_me: failed program was:" >&5
20513sed 's/^/| /' conftest.$ac_ext >&5
c7c217b3 20514
fc6ffb29 20515 ac_cv_member_struct_statfs_f_bfree=no
c7c217b3 20516fi
fc6ffb29 20517
0ebeb530 20518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 20519fi
fc6ffb29 20520
0ebeb530 20521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 20522fi
fc6ffb29
AJ
20523{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
20524echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
5537dbbf 20525if test $ac_cv_member_struct_statfs_f_bfree = yes; then
c7c217b3 20526
5537dbbf
AJ
20527cat >>confdefs.h <<_ACEOF
20528#define HAVE_STRUCT_STATFS_F_BFREE 1
20529_ACEOF
daa2886c
AJ
20530
20531
5537dbbf 20532fi
fc6ffb29
AJ
20533{ echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
20534echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
5537dbbf 20535if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
f5818d2f 20536 echo $ECHO_N "(cached) $ECHO_C" >&6
dadf78ff 20537else
f5818d2f 20538 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
20539/* confdefs.h. */
20540_ACEOF
20541cat confdefs.h >>conftest.$ac_ext
20542cat >>conftest.$ac_ext <<_ACEOF
20543/* end confdefs.h. */
f5818d2f
AJ
20544#include <sys/types.h>
20545#ifdef HAVE_SYS_PARAM_H
20546# include <sys/param.h>
20547#endif
55b74483 20548#ifdef HAVE_SYS_MOUNT_H
f5818d2f 20549# include <sys/mount.h>
55b74483
RM
20550#endif
20551#ifdef HAVE_SYS_VFS_H
20552# include <sys/vfs.h>
20553#endif
20554#ifdef HAVE_SYS_STATFS_H
20555# include <sys/statfs.h>
f5818d2f 20556#endif
5537dbbf 20557
f5818d2f
AJ
20558int
20559main ()
20560{
5537dbbf
AJ
20561static struct statfs ac_aggr;
20562if (ac_aggr.f_bavail)
20563return 0;
f5818d2f
AJ
20564 ;
20565 return 0;
20566}
20567_ACEOF
20568rm -f conftest.$ac_objext
0ebeb530
JW
20569if { (ac_try="$ac_compile"
20570case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20573esac
20574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_compile") 2>conftest.er1
f5818d2f 20576 ac_status=$?
875927f6
AJ
20577 grep -v '^ *+' conftest.er1 >conftest.err
20578 rm -f conftest.er1
20579 cat conftest.err >&5
daa2886c 20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 20581 (exit $ac_status); } &&
0ebeb530
JW
20582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20583 { (case "(($ac_try" in
20584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585 *) ac_try_echo=$ac_try;;
20586esac
20587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588 (eval "$ac_try") 2>&5
875927f6
AJ
20589 ac_status=$?
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; } &&
20592 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
20593 { (case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20596esac
20597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598 (eval "$ac_try") 2>&5
f5818d2f 20599 ac_status=$?
daa2886c 20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 20601 (exit $ac_status); }; }; then
5537dbbf 20602 ac_cv_member_struct_statfs_f_bavail=yes
f5818d2f
AJ
20603else
20604 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
20605sed 's/^/| /' conftest.$ac_ext >&5
20606
fc6ffb29 20607 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
20608/* confdefs.h. */
20609_ACEOF
20610cat confdefs.h >>conftest.$ac_ext
20611cat >>conftest.$ac_ext <<_ACEOF
20612/* end confdefs.h. */
20613#include <sys/types.h>
20614#ifdef HAVE_SYS_PARAM_H
20615# include <sys/param.h>
20616#endif
55b74483 20617#ifdef HAVE_SYS_MOUNT_H
5537dbbf 20618# include <sys/mount.h>
55b74483
RM
20619#endif
20620#ifdef HAVE_SYS_VFS_H
20621# include <sys/vfs.h>
20622#endif
20623#ifdef HAVE_SYS_STATFS_H
20624# include <sys/statfs.h>
5537dbbf
AJ
20625#endif
20626
20627int
20628main ()
20629{
20630static struct statfs ac_aggr;
20631if (sizeof ac_aggr.f_bavail)
20632return 0;
20633 ;
20634 return 0;
20635}
20636_ACEOF
20637rm -f conftest.$ac_objext
0ebeb530
JW
20638if { (ac_try="$ac_compile"
20639case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642esac
20643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_compile") 2>conftest.er1
5537dbbf 20645 ac_status=$?
875927f6
AJ
20646 grep -v '^ *+' conftest.er1 >conftest.err
20647 rm -f conftest.er1
20648 cat conftest.err >&5
5537dbbf
AJ
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } &&
0ebeb530
JW
20651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20652 { (case "(($ac_try" in
20653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654 *) ac_try_echo=$ac_try;;
20655esac
20656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20657 (eval "$ac_try") 2>&5
875927f6
AJ
20658 ac_status=$?
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; } &&
20661 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
20662 { (case "(($ac_try" in
20663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664 *) ac_try_echo=$ac_try;;
20665esac
20666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667 (eval "$ac_try") 2>&5
5537dbbf
AJ
20668 ac_status=$?
20669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670 (exit $ac_status); }; }; then
20671 ac_cv_member_struct_statfs_f_bavail=yes
20672else
20673 echo "$as_me: failed program was:" >&5
20674sed 's/^/| /' conftest.$ac_ext >&5
20675
fc6ffb29 20676 ac_cv_member_struct_statfs_f_bavail=no
5537dbbf 20677fi
fc6ffb29 20678
0ebeb530 20679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 20680fi
fc6ffb29 20681
0ebeb530 20682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 20683fi
fc6ffb29
AJ
20684{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
20685echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
5537dbbf 20686if test $ac_cv_member_struct_statfs_f_bavail = yes; then
f5818d2f 20687
5537dbbf
AJ
20688cat >>confdefs.h <<_ACEOF
20689#define HAVE_STRUCT_STATFS_F_BAVAIL 1
daa2886c 20690_ACEOF
dadf78ff 20691
dadf78ff 20692
13af4891 20693fi
fc6ffb29
AJ
20694{ echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
20695echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
13af4891
AJ
20696if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
20697 echo $ECHO_N "(cached) $ECHO_C" >&6
20698else
20699 cat >conftest.$ac_ext <<_ACEOF
20700/* confdefs.h. */
20701_ACEOF
20702cat confdefs.h >>conftest.$ac_ext
20703cat >>conftest.$ac_ext <<_ACEOF
20704/* end confdefs.h. */
20705#include <sys/types.h>
20706#ifdef HAVE_SYS_PARAM_H
20707# include <sys/param.h>
20708#endif
55b74483 20709#ifdef HAVE_SYS_MOUNT_H
13af4891 20710# include <sys/mount.h>
55b74483
RM
20711#endif
20712#ifdef HAVE_SYS_VFS_H
20713# include <sys/vfs.h>
20714#endif
20715#ifdef HAVE_SYS_STATFS_H
20716# include <sys/statfs.h>
13af4891
AJ
20717#endif
20718
20719int
20720main ()
20721{
20722static struct statfs ac_aggr;
20723if (ac_aggr.f_frsize)
20724return 0;
20725 ;
20726 return 0;
20727}
20728_ACEOF
20729rm -f conftest.$ac_objext
0ebeb530
JW
20730if { (ac_try="$ac_compile"
20731case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20734esac
20735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
20737 ac_status=$?
20738 grep -v '^ *+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } &&
0ebeb530
JW
20743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20744 { (case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20747esac
20748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_try") 2>&5
13af4891
AJ
20750 ac_status=$?
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; } &&
20753 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
20754 { (case "(($ac_try" in
20755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756 *) ac_try_echo=$ac_try;;
20757esac
20758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20759 (eval "$ac_try") 2>&5
13af4891
AJ
20760 ac_status=$?
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); }; }; then
20763 ac_cv_member_struct_statfs_f_frsize=yes
20764else
20765 echo "$as_me: failed program was:" >&5
20766sed 's/^/| /' conftest.$ac_ext >&5
20767
fc6ffb29 20768 cat >conftest.$ac_ext <<_ACEOF
13af4891
AJ
20769/* confdefs.h. */
20770_ACEOF
20771cat confdefs.h >>conftest.$ac_ext
20772cat >>conftest.$ac_ext <<_ACEOF
20773/* end confdefs.h. */
20774#include <sys/types.h>
20775#ifdef HAVE_SYS_PARAM_H
20776# include <sys/param.h>
20777#endif
55b74483 20778#ifdef HAVE_SYS_MOUNT_H
13af4891 20779# include <sys/mount.h>
55b74483
RM
20780#endif
20781#ifdef HAVE_SYS_VFS_H
20782# include <sys/vfs.h>
20783#endif
20784#ifdef HAVE_SYS_STATFS_H
20785# include <sys/statfs.h>
13af4891
AJ
20786#endif
20787
20788int
20789main ()
20790{
20791static struct statfs ac_aggr;
20792if (sizeof ac_aggr.f_frsize)
20793return 0;
20794 ;
20795 return 0;
20796}
20797_ACEOF
20798rm -f conftest.$ac_objext
0ebeb530
JW
20799if { (ac_try="$ac_compile"
20800case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20803esac
20804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
20806 ac_status=$?
20807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
0ebeb530
JW
20812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20813 { (case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20816esac
20817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_try") 2>&5
13af4891
AJ
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; } &&
20822 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
20823 { (case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20826esac
20827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_try") 2>&5
13af4891
AJ
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 ac_cv_member_struct_statfs_f_frsize=yes
20833else
20834 echo "$as_me: failed program was:" >&5
20835sed 's/^/| /' conftest.$ac_ext >&5
20836
fc6ffb29 20837 ac_cv_member_struct_statfs_f_frsize=no
13af4891 20838fi
fc6ffb29 20839
0ebeb530 20840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 20841fi
fc6ffb29 20842
0ebeb530 20843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 20844fi
fc6ffb29
AJ
20845{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
20846echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
13af4891
AJ
20847if test $ac_cv_member_struct_statfs_f_frsize = yes; then
20848
20849cat >>confdefs.h <<_ACEOF
20850#define HAVE_STRUCT_STATFS_F_FRSIZE 1
20851_ACEOF
20852
20853
20854fi
fc6ffb29
AJ
20855{ echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
20856echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
13af4891
AJ
20857if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
20858 echo $ECHO_N "(cached) $ECHO_C" >&6
20859else
20860 cat >conftest.$ac_ext <<_ACEOF
20861/* confdefs.h. */
20862_ACEOF
20863cat confdefs.h >>conftest.$ac_ext
20864cat >>conftest.$ac_ext <<_ACEOF
20865/* end confdefs.h. */
20866#include <sys/types.h>
20867#ifdef HAVE_SYS_PARAM_H
20868# include <sys/param.h>
20869#endif
55b74483 20870#ifdef HAVE_SYS_MOUNT_H
13af4891 20871# include <sys/mount.h>
55b74483
RM
20872#endif
20873#ifdef HAVE_SYS_VFS_H
20874# include <sys/vfs.h>
20875#endif
20876#ifdef HAVE_SYS_STATFS_H
20877# include <sys/statfs.h>
13af4891
AJ
20878#endif
20879
20880int
20881main ()
20882{
20883static struct statfs ac_aggr;
20884if (ac_aggr.f_ffree)
20885return 0;
20886 ;
20887 return 0;
20888}
20889_ACEOF
20890rm -f conftest.$ac_objext
0ebeb530
JW
20891if { (ac_try="$ac_compile"
20892case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20895esac
20896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
20898 ac_status=$?
20899 grep -v '^ *+' conftest.er1 >conftest.err
20900 rm -f conftest.er1
20901 cat conftest.err >&5
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } &&
0ebeb530
JW
20904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20905 { (case "(($ac_try" in
20906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20907 *) ac_try_echo=$ac_try;;
20908esac
20909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20910 (eval "$ac_try") 2>&5
13af4891
AJ
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); }; } &&
20914 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
20915 { (case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20918esac
20919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20920 (eval "$ac_try") 2>&5
13af4891
AJ
20921 ac_status=$?
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); }; }; then
20924 ac_cv_member_struct_statfs_f_ffree=yes
20925else
20926 echo "$as_me: failed program was:" >&5
20927sed 's/^/| /' conftest.$ac_ext >&5
20928
fc6ffb29 20929 cat >conftest.$ac_ext <<_ACEOF
13af4891
AJ
20930/* confdefs.h. */
20931_ACEOF
20932cat confdefs.h >>conftest.$ac_ext
20933cat >>conftest.$ac_ext <<_ACEOF
20934/* end confdefs.h. */
20935#include <sys/types.h>
20936#ifdef HAVE_SYS_PARAM_H
20937# include <sys/param.h>
20938#endif
55b74483 20939#ifdef HAVE_SYS_MOUNT_H
13af4891 20940# include <sys/mount.h>
55b74483
RM
20941#endif
20942#ifdef HAVE_SYS_VFS_H
20943# include <sys/vfs.h>
20944#endif
20945#ifdef HAVE_SYS_STATFS_H
20946# include <sys/statfs.h>
13af4891
AJ
20947#endif
20948
20949int
20950main ()
20951{
20952static struct statfs ac_aggr;
20953if (sizeof ac_aggr.f_ffree)
20954return 0;
20955 ;
20956 return 0;
20957}
20958_ACEOF
20959rm -f conftest.$ac_objext
0ebeb530
JW
20960if { (ac_try="$ac_compile"
20961case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20964esac
20965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
20967 ac_status=$?
20968 grep -v '^ *+' conftest.er1 >conftest.err
20969 rm -f conftest.er1
20970 cat conftest.err >&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } &&
0ebeb530
JW
20973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20974 { (case "(($ac_try" in
20975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20976 *) ac_try_echo=$ac_try;;
20977esac
20978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20979 (eval "$ac_try") 2>&5
13af4891
AJ
20980 ac_status=$?
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); }; } &&
20983 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
20984 { (case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20987esac
20988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989 (eval "$ac_try") 2>&5
13af4891
AJ
20990 ac_status=$?
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }; then
20993 ac_cv_member_struct_statfs_f_ffree=yes
20994else
20995 echo "$as_me: failed program was:" >&5
20996sed 's/^/| /' conftest.$ac_ext >&5
20997
fc6ffb29 20998 ac_cv_member_struct_statfs_f_ffree=no
13af4891 20999fi
fc6ffb29 21000
0ebeb530 21001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 21002fi
fc6ffb29 21003
0ebeb530 21004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 21005fi
fc6ffb29
AJ
21006{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
21007echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
13af4891
AJ
21008if test $ac_cv_member_struct_statfs_f_ffree = yes; then
21009
21010cat >>confdefs.h <<_ACEOF
21011#define HAVE_STRUCT_STATFS_F_FFREE 1
21012_ACEOF
21013
21014
21015fi
fc6ffb29
AJ
21016{ echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
21017echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
13af4891
AJ
21018if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
21019 echo $ECHO_N "(cached) $ECHO_C" >&6
21020else
21021 cat >conftest.$ac_ext <<_ACEOF
21022/* confdefs.h. */
21023_ACEOF
21024cat confdefs.h >>conftest.$ac_ext
21025cat >>conftest.$ac_ext <<_ACEOF
21026/* end confdefs.h. */
21027#include <sys/types.h>
21028#ifdef HAVE_SYS_PARAM_H
21029# include <sys/param.h>
21030#endif
55b74483 21031#ifdef HAVE_SYS_MOUNT_H
13af4891 21032# include <sys/mount.h>
55b74483
RM
21033#endif
21034#ifdef HAVE_SYS_VFS_H
21035# include <sys/vfs.h>
21036#endif
21037#ifdef HAVE_SYS_STATFS_H
21038# include <sys/statfs.h>
13af4891
AJ
21039#endif
21040
21041int
21042main ()
21043{
21044static struct statfs ac_aggr;
21045if (ac_aggr.f_favail)
21046return 0;
21047 ;
21048 return 0;
21049}
21050_ACEOF
21051rm -f conftest.$ac_objext
0ebeb530
JW
21052if { (ac_try="$ac_compile"
21053case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21056esac
21057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
21059 ac_status=$?
21060 grep -v '^ *+' conftest.er1 >conftest.err
21061 rm -f conftest.er1
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } &&
0ebeb530
JW
21065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21066 { (case "(($ac_try" in
21067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21068 *) ac_try_echo=$ac_try;;
21069esac
21070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21071 (eval "$ac_try") 2>&5
13af4891
AJ
21072 ac_status=$?
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); }; } &&
21075 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
21076 { (case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21079esac
21080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081 (eval "$ac_try") 2>&5
13af4891
AJ
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 ac_cv_member_struct_statfs_f_favail=yes
21086else
21087 echo "$as_me: failed program was:" >&5
21088sed 's/^/| /' conftest.$ac_ext >&5
21089
fc6ffb29 21090 cat >conftest.$ac_ext <<_ACEOF
13af4891
AJ
21091/* confdefs.h. */
21092_ACEOF
21093cat confdefs.h >>conftest.$ac_ext
21094cat >>conftest.$ac_ext <<_ACEOF
21095/* end confdefs.h. */
21096#include <sys/types.h>
21097#ifdef HAVE_SYS_PARAM_H
21098# include <sys/param.h>
21099#endif
55b74483 21100#ifdef HAVE_SYS_MOUNT_H
13af4891 21101# include <sys/mount.h>
55b74483
RM
21102#endif
21103#ifdef HAVE_SYS_VFS_H
21104# include <sys/vfs.h>
21105#endif
21106#ifdef HAVE_SYS_STATFS_H
21107# include <sys/statfs.h>
13af4891
AJ
21108#endif
21109
21110int
21111main ()
21112{
21113static struct statfs ac_aggr;
21114if (sizeof ac_aggr.f_favail)
21115return 0;
21116 ;
21117 return 0;
21118}
21119_ACEOF
21120rm -f conftest.$ac_objext
0ebeb530
JW
21121if { (ac_try="$ac_compile"
21122case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21125esac
21126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
21128 ac_status=$?
21129 grep -v '^ *+' conftest.er1 >conftest.err
21130 rm -f conftest.er1
21131 cat conftest.err >&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } &&
0ebeb530
JW
21134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21135 { (case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21138esac
21139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_try") 2>&5
13af4891
AJ
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
21145 { (case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21148esac
21149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150 (eval "$ac_try") 2>&5
13af4891
AJ
21151 ac_status=$?
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; }; then
21154 ac_cv_member_struct_statfs_f_favail=yes
21155else
21156 echo "$as_me: failed program was:" >&5
21157sed 's/^/| /' conftest.$ac_ext >&5
21158
fc6ffb29 21159 ac_cv_member_struct_statfs_f_favail=no
13af4891 21160fi
fc6ffb29 21161
0ebeb530 21162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 21163fi
fc6ffb29 21164
0ebeb530 21165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 21166fi
fc6ffb29
AJ
21167{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
21168echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
13af4891
AJ
21169if test $ac_cv_member_struct_statfs_f_favail = yes; then
21170
21171cat >>confdefs.h <<_ACEOF
21172#define HAVE_STRUCT_STATFS_F_FAVAIL 1
21173_ACEOF
21174
21175
b859a686 21176fi
fc6ffb29
AJ
21177{ echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
21178echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
b859a686
AJ
21179if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
21180 echo $ECHO_N "(cached) $ECHO_C" >&6
21181else
21182 cat >conftest.$ac_ext <<_ACEOF
21183/* confdefs.h. */
21184_ACEOF
21185cat confdefs.h >>conftest.$ac_ext
21186cat >>conftest.$ac_ext <<_ACEOF
21187/* end confdefs.h. */
21188#include <sys/types.h>
21189#ifdef HAVE_SYS_PARAM_H
21190# include <sys/param.h>
21191#endif
55b74483 21192#ifdef HAVE_SYS_MOUNT_H
b859a686 21193# include <sys/mount.h>
55b74483
RM
21194#endif
21195#ifdef HAVE_SYS_VFS_H
21196# include <sys/vfs.h>
21197#endif
21198#ifdef HAVE_SYS_STATFS_H
21199# include <sys/statfs.h>
b859a686
AJ
21200#endif
21201
21202int
21203main ()
21204{
21205static struct statfs ac_aggr;
21206if (ac_aggr.f_namelen)
21207return 0;
21208 ;
21209 return 0;
21210}
21211_ACEOF
21212rm -f conftest.$ac_objext
0ebeb530
JW
21213if { (ac_try="$ac_compile"
21214case "(($ac_try" in
21215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21216 *) ac_try_echo=$ac_try;;
21217esac
21218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219 (eval "$ac_compile") 2>conftest.er1
b859a686
AJ
21220 ac_status=$?
21221 grep -v '^ *+' conftest.er1 >conftest.err
21222 rm -f conftest.er1
21223 cat conftest.err >&5
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); } &&
0ebeb530
JW
21226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21227 { (case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21230esac
21231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232 (eval "$ac_try") 2>&5
b859a686
AJ
21233 ac_status=$?
21234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); }; } &&
21236 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
21237 { (case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21240esac
21241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_try") 2>&5
b859a686
AJ
21243 ac_status=$?
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); }; }; then
21246 ac_cv_member_struct_statfs_f_namelen=yes
21247else
21248 echo "$as_me: failed program was:" >&5
21249sed 's/^/| /' conftest.$ac_ext >&5
21250
fc6ffb29 21251 cat >conftest.$ac_ext <<_ACEOF
b859a686
AJ
21252/* confdefs.h. */
21253_ACEOF
21254cat confdefs.h >>conftest.$ac_ext
21255cat >>conftest.$ac_ext <<_ACEOF
21256/* end confdefs.h. */
21257#include <sys/types.h>
21258#ifdef HAVE_SYS_PARAM_H
21259# include <sys/param.h>
21260#endif
55b74483 21261#ifdef HAVE_SYS_MOUNT_H
b859a686 21262# include <sys/mount.h>
55b74483
RM
21263#endif
21264#ifdef HAVE_SYS_VFS_H
21265# include <sys/vfs.h>
21266#endif
21267#ifdef HAVE_SYS_STATFS_H
21268# include <sys/statfs.h>
b859a686
AJ
21269#endif
21270
21271int
21272main ()
21273{
21274static struct statfs ac_aggr;
21275if (sizeof ac_aggr.f_namelen)
21276return 0;
21277 ;
21278 return 0;
21279}
21280_ACEOF
21281rm -f conftest.$ac_objext
0ebeb530
JW
21282if { (ac_try="$ac_compile"
21283case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21286esac
21287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288 (eval "$ac_compile") 2>conftest.er1
b859a686
AJ
21289 ac_status=$?
21290 grep -v '^ *+' conftest.er1 >conftest.err
21291 rm -f conftest.er1
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } &&
0ebeb530
JW
21295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21296 { (case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21299esac
21300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_try") 2>&5
b859a686
AJ
21302 ac_status=$?
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; } &&
21305 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
21306 { (case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21309esac
21310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21311 (eval "$ac_try") 2>&5
b859a686
AJ
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; }; then
21315 ac_cv_member_struct_statfs_f_namelen=yes
21316else
21317 echo "$as_me: failed program was:" >&5
21318sed 's/^/| /' conftest.$ac_ext >&5
21319
fc6ffb29 21320 ac_cv_member_struct_statfs_f_namelen=no
b859a686 21321fi
fc6ffb29 21322
0ebeb530 21323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b859a686 21324fi
fc6ffb29 21325
0ebeb530 21326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b859a686 21327fi
fc6ffb29
AJ
21328{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
21329echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
b859a686
AJ
21330if test $ac_cv_member_struct_statfs_f_namelen = yes; then
21331
21332cat >>confdefs.h <<_ACEOF
21333#define HAVE_STRUCT_STATFS_F_NAMELEN 1
21334_ACEOF
21335
21336
13af4891
AJ
21337fi
21338
21339
fc6ffb29
AJ
21340{ echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
21341echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
13af4891
AJ
21342if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
21343 echo $ECHO_N "(cached) $ECHO_C" >&6
21344else
21345 cat >conftest.$ac_ext <<_ACEOF
21346/* confdefs.h. */
21347_ACEOF
21348cat confdefs.h >>conftest.$ac_ext
21349cat >>conftest.$ac_ext <<_ACEOF
21350/* end confdefs.h. */
21351#ifdef HAVE_SYS_STATVFS_H
21352#include <sys/statvfs.h>
21353#endif
21354
21355int
21356main ()
21357{
21358static struct statvfs ac_aggr;
21359if (ac_aggr.f_blocks)
21360return 0;
21361 ;
21362 return 0;
21363}
21364_ACEOF
21365rm -f conftest.$ac_objext
0ebeb530
JW
21366if { (ac_try="$ac_compile"
21367case "(($ac_try" in
21368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369 *) ac_try_echo=$ac_try;;
21370esac
21371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21372 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
21373 ac_status=$?
21374 grep -v '^ *+' conftest.er1 >conftest.err
21375 rm -f conftest.er1
21376 cat conftest.err >&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); } &&
0ebeb530
JW
21379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21380 { (case "(($ac_try" in
21381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21382 *) ac_try_echo=$ac_try;;
21383esac
21384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21385 (eval "$ac_try") 2>&5
13af4891
AJ
21386 ac_status=$?
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; } &&
21389 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
21390 { (case "(($ac_try" in
21391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392 *) ac_try_echo=$ac_try;;
21393esac
21394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21395 (eval "$ac_try") 2>&5
13af4891
AJ
21396 ac_status=$?
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); }; }; then
21399 ac_cv_member_struct_statvfs_f_blocks=yes
21400else
21401 echo "$as_me: failed program was:" >&5
21402sed 's/^/| /' conftest.$ac_ext >&5
21403
fc6ffb29 21404 cat >conftest.$ac_ext <<_ACEOF
13af4891
AJ
21405/* confdefs.h. */
21406_ACEOF
21407cat confdefs.h >>conftest.$ac_ext
21408cat >>conftest.$ac_ext <<_ACEOF
21409/* end confdefs.h. */
21410#ifdef HAVE_SYS_STATVFS_H
21411#include <sys/statvfs.h>
21412#endif
21413
21414int
21415main ()
21416{
21417static struct statvfs ac_aggr;
21418if (sizeof ac_aggr.f_blocks)
21419return 0;
21420 ;
21421 return 0;
21422}
21423_ACEOF
21424rm -f conftest.$ac_objext
0ebeb530
JW
21425if { (ac_try="$ac_compile"
21426case "(($ac_try" in
21427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428 *) ac_try_echo=$ac_try;;
21429esac
21430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21431 (eval "$ac_compile") 2>conftest.er1
13af4891
AJ
21432 ac_status=$?
21433 grep -v '^ *+' conftest.er1 >conftest.err
21434 rm -f conftest.er1
21435 cat conftest.err >&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); } &&
0ebeb530
JW
21438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21439 { (case "(($ac_try" in
21440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441 *) ac_try_echo=$ac_try;;
21442esac
21443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21444 (eval "$ac_try") 2>&5
13af4891
AJ
21445 ac_status=$?
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; } &&
21448 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
21449 { (case "(($ac_try" in
21450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21451 *) ac_try_echo=$ac_try;;
21452esac
21453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21454 (eval "$ac_try") 2>&5
13af4891
AJ
21455 ac_status=$?
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); }; }; then
21458 ac_cv_member_struct_statvfs_f_blocks=yes
21459else
21460 echo "$as_me: failed program was:" >&5
21461sed 's/^/| /' conftest.$ac_ext >&5
21462
fc6ffb29 21463 ac_cv_member_struct_statvfs_f_blocks=no
13af4891 21464fi
fc6ffb29 21465
0ebeb530 21466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 21467fi
fc6ffb29 21468
0ebeb530 21469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13af4891 21470fi
fc6ffb29
AJ
21471{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
21472echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
13af4891
AJ
21473if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
21474
21475cat >>confdefs.h <<_ACEOF
21476#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
21477_ACEOF
21478
21479
5537dbbf 21480fi
daa2886c
AJ
21481
21482
fc6ffb29
AJ
21483{ echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
21484echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
5537dbbf 21485if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
f5818d2f 21486 echo $ECHO_N "(cached) $ECHO_C" >&6
829fe323 21487else
f5818d2f 21488 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
21489/* confdefs.h. */
21490_ACEOF
21491cat confdefs.h >>conftest.$ac_ext
21492cat >>conftest.$ac_ext <<_ACEOF
21493/* end confdefs.h. */
829fe323 21494#include <sys/types.h>
63ae7fee
PS
21495#ifdef HAVE_SYS_SOCKET_H
21496# include <sys/socket.h>
21497#endif
5537dbbf
AJ
21498#ifdef HAVE_SYS_UN_H
21499# include <sys/un.h>
21500#endif
21501
f5818d2f
AJ
21502int
21503main ()
21504{
5537dbbf
AJ
21505static struct msghdr ac_aggr;
21506if (ac_aggr.msg_accrights)
21507return 0;
f5818d2f
AJ
21508 ;
21509 return 0;
21510}
21511_ACEOF
21512rm -f conftest.$ac_objext
0ebeb530
JW
21513if { (ac_try="$ac_compile"
21514case "(($ac_try" in
21515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516 *) ac_try_echo=$ac_try;;
21517esac
21518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519 (eval "$ac_compile") 2>conftest.er1
f5818d2f 21520 ac_status=$?
875927f6
AJ
21521 grep -v '^ *+' conftest.er1 >conftest.err
21522 rm -f conftest.er1
21523 cat conftest.err >&5
daa2886c 21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 21525 (exit $ac_status); } &&
0ebeb530
JW
21526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21527 { (case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21530esac
21531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_try") 2>&5
875927f6
AJ
21533 ac_status=$?
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; } &&
21536 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
21537 { (case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21540esac
21541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_try") 2>&5
f5818d2f 21543 ac_status=$?
daa2886c 21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 21545 (exit $ac_status); }; }; then
5537dbbf 21546 ac_cv_member_struct_msghdr_msg_accrights=yes
f5818d2f
AJ
21547else
21548 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
21549sed 's/^/| /' conftest.$ac_ext >&5
21550
fc6ffb29 21551 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
21552/* confdefs.h. */
21553_ACEOF
21554cat confdefs.h >>conftest.$ac_ext
21555cat >>conftest.$ac_ext <<_ACEOF
21556/* end confdefs.h. */
21557#include <sys/types.h>
21558#ifdef HAVE_SYS_SOCKET_H
21559# include <sys/socket.h>
21560#endif
21561#ifdef HAVE_SYS_UN_H
21562# include <sys/un.h>
21563#endif
f5818d2f 21564
5537dbbf
AJ
21565int
21566main ()
21567{
21568static struct msghdr ac_aggr;
21569if (sizeof ac_aggr.msg_accrights)
21570return 0;
21571 ;
21572 return 0;
21573}
daa2886c 21574_ACEOF
5537dbbf 21575rm -f conftest.$ac_objext
0ebeb530
JW
21576if { (ac_try="$ac_compile"
21577case "(($ac_try" in
21578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579 *) ac_try_echo=$ac_try;;
21580esac
21581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582 (eval "$ac_compile") 2>conftest.er1
5537dbbf 21583 ac_status=$?
875927f6
AJ
21584 grep -v '^ *+' conftest.er1 >conftest.err
21585 rm -f conftest.er1
21586 cat conftest.err >&5
5537dbbf
AJ
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } &&
0ebeb530
JW
21589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21590 { (case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21593esac
21594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_try") 2>&5
875927f6
AJ
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; } &&
21599 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
21600 { (case "(($ac_try" in
21601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21602 *) ac_try_echo=$ac_try;;
21603esac
21604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21605 (eval "$ac_try") 2>&5
5537dbbf
AJ
21606 ac_status=$?
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; }; then
21609 ac_cv_member_struct_msghdr_msg_accrights=yes
21610else
21611 echo "$as_me: failed program was:" >&5
21612sed 's/^/| /' conftest.$ac_ext >&5
829fe323 21613
fc6ffb29 21614 ac_cv_member_struct_msghdr_msg_accrights=no
5537dbbf 21615fi
fc6ffb29 21616
0ebeb530 21617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 21618fi
fc6ffb29 21619
0ebeb530 21620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
829fe323 21621fi
fc6ffb29
AJ
21622{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
21623echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
5537dbbf 21624if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
829fe323 21625
5537dbbf
AJ
21626cat >>confdefs.h <<_ACEOF
21627#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
21628_ACEOF
daa2886c
AJ
21629
21630
5537dbbf 21631fi
fc6ffb29
AJ
21632{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
21633echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
5537dbbf 21634if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
f5818d2f 21635 echo $ECHO_N "(cached) $ECHO_C" >&6
2d33ab91 21636else
f5818d2f 21637 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
21638/* confdefs.h. */
21639_ACEOF
21640cat confdefs.h >>conftest.$ac_ext
21641cat >>conftest.$ac_ext <<_ACEOF
21642/* end confdefs.h. */
2d33ab91 21643#include <sys/types.h>
63ae7fee
PS
21644#ifdef HAVE_SYS_SOCKET_H
21645# include <sys/socket.h>
21646#endif
5537dbbf
AJ
21647#ifdef HAVE_SYS_UN_H
21648# include <sys/un.h>
21649#endif
21650
f5818d2f
AJ
21651int
21652main ()
21653{
5537dbbf
AJ
21654static struct sockaddr ac_aggr;
21655if (ac_aggr.sa_len)
21656return 0;
f5818d2f
AJ
21657 ;
21658 return 0;
21659}
21660_ACEOF
21661rm -f conftest.$ac_objext
0ebeb530
JW
21662if { (ac_try="$ac_compile"
21663case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21666esac
21667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_compile") 2>conftest.er1
f5818d2f 21669 ac_status=$?
875927f6
AJ
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
daa2886c 21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 21674 (exit $ac_status); } &&
0ebeb530
JW
21675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21676 { (case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21679esac
21680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_try") 2>&5
875927f6
AJ
21682 ac_status=$?
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; } &&
21685 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
21686 { (case "(($ac_try" in
21687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21688 *) ac_try_echo=$ac_try;;
21689esac
21690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21691 (eval "$ac_try") 2>&5
f5818d2f 21692 ac_status=$?
daa2886c 21693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 21694 (exit $ac_status); }; }; then
5537dbbf 21695 ac_cv_member_struct_sockaddr_sa_len=yes
09da966c 21696else
f5818d2f 21697 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
21698sed 's/^/| /' conftest.$ac_ext >&5
21699
fc6ffb29 21700 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
21701/* confdefs.h. */
21702_ACEOF
21703cat confdefs.h >>conftest.$ac_ext
21704cat >>conftest.$ac_ext <<_ACEOF
21705/* end confdefs.h. */
21706#include <sys/types.h>
21707#ifdef HAVE_SYS_SOCKET_H
21708# include <sys/socket.h>
21709#endif
21710#ifdef HAVE_SYS_UN_H
21711# include <sys/un.h>
21712#endif
09da966c 21713
5537dbbf
AJ
21714int
21715main ()
21716{
21717static struct sockaddr ac_aggr;
21718if (sizeof ac_aggr.sa_len)
21719return 0;
21720 ;
21721 return 0;
21722}
daa2886c 21723_ACEOF
5537dbbf 21724rm -f conftest.$ac_objext
0ebeb530
JW
21725if { (ac_try="$ac_compile"
21726case "(($ac_try" in
21727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728 *) ac_try_echo=$ac_try;;
21729esac
21730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21731 (eval "$ac_compile") 2>conftest.er1
5537dbbf 21732 ac_status=$?
875927f6
AJ
21733 grep -v '^ *+' conftest.er1 >conftest.err
21734 rm -f conftest.er1
21735 cat conftest.err >&5
5537dbbf
AJ
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
0ebeb530
JW
21738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21739 { (case "(($ac_try" in
21740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741 *) ac_try_echo=$ac_try;;
21742esac
21743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744 (eval "$ac_try") 2>&5
875927f6
AJ
21745 ac_status=$?
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); }; } &&
21748 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
21749 { (case "(($ac_try" in
21750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751 *) ac_try_echo=$ac_try;;
21752esac
21753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21754 (eval "$ac_try") 2>&5
5537dbbf
AJ
21755 ac_status=$?
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; }; then
21758 ac_cv_member_struct_sockaddr_sa_len=yes
21759else
21760 echo "$as_me: failed program was:" >&5
21761sed 's/^/| /' conftest.$ac_ext >&5
09da966c 21762
fc6ffb29 21763 ac_cv_member_struct_sockaddr_sa_len=no
5537dbbf 21764fi
fc6ffb29 21765
0ebeb530 21766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 21767fi
fc6ffb29 21768
0ebeb530 21769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
09da966c 21770fi
fc6ffb29
AJ
21771{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
21772echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
5537dbbf 21773if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
09da966c 21774
5537dbbf
AJ
21775cat >>confdefs.h <<_ACEOF
21776#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
21777_ACEOF
daa2886c
AJ
21778
21779
5537dbbf 21780fi
fc6ffb29
AJ
21781{ echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
21782echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
5537dbbf 21783if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
f5818d2f 21784 echo $ECHO_N "(cached) $ECHO_C" >&6
09da966c 21785else
f5818d2f 21786 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
21787/* confdefs.h. */
21788_ACEOF
21789cat confdefs.h >>conftest.$ac_ext
21790cat >>conftest.$ac_ext <<_ACEOF
21791/* end confdefs.h. */
09da966c 21792#include <sys/types.h>
63ae7fee
PS
21793#ifdef HAVE_SYS_SOCKET_H
21794# include <sys/socket.h>
21795#endif
21796#ifdef HAVE_SYS_UN_H
21797# include <sys/un.h>
21798#endif
5537dbbf 21799
f5818d2f
AJ
21800int
21801main ()
21802{
5537dbbf
AJ
21803static struct sockaddr_un ac_aggr;
21804if (ac_aggr.sun_len)
21805return 0;
f5818d2f
AJ
21806 ;
21807 return 0;
21808}
21809_ACEOF
21810rm -f conftest.$ac_objext
0ebeb530
JW
21811if { (ac_try="$ac_compile"
21812case "(($ac_try" in
21813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814 *) ac_try_echo=$ac_try;;
21815esac
21816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817 (eval "$ac_compile") 2>conftest.er1
f5818d2f 21818 ac_status=$?
875927f6
AJ
21819 grep -v '^ *+' conftest.er1 >conftest.err
21820 rm -f conftest.er1
21821 cat conftest.err >&5
daa2886c 21822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 21823 (exit $ac_status); } &&
0ebeb530
JW
21824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21825 { (case "(($ac_try" in
21826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827 *) ac_try_echo=$ac_try;;
21828esac
21829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830 (eval "$ac_try") 2>&5
875927f6
AJ
21831 ac_status=$?
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; } &&
21834 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
21835 { (case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21838esac
21839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840 (eval "$ac_try") 2>&5
f5818d2f 21841 ac_status=$?
daa2886c 21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 21843 (exit $ac_status); }; }; then
5537dbbf 21844 ac_cv_member_struct_sockaddr_un_sun_len=yes
f5818d2f
AJ
21845else
21846 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
21847sed 's/^/| /' conftest.$ac_ext >&5
21848
fc6ffb29 21849 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
21850/* confdefs.h. */
21851_ACEOF
21852cat confdefs.h >>conftest.$ac_ext
21853cat >>conftest.$ac_ext <<_ACEOF
21854/* end confdefs.h. */
21855#include <sys/types.h>
21856#ifdef HAVE_SYS_SOCKET_H
21857# include <sys/socket.h>
21858#endif
21859#ifdef HAVE_SYS_UN_H
21860# include <sys/un.h>
21861#endif
21862
21863int
21864main ()
21865{
21866static struct sockaddr_un ac_aggr;
21867if (sizeof ac_aggr.sun_len)
21868return 0;
21869 ;
21870 return 0;
21871}
21872_ACEOF
21873rm -f conftest.$ac_objext
0ebeb530
JW
21874if { (ac_try="$ac_compile"
21875case "(($ac_try" in
21876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21877 *) ac_try_echo=$ac_try;;
21878esac
21879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21880 (eval "$ac_compile") 2>conftest.er1
5537dbbf 21881 ac_status=$?
875927f6
AJ
21882 grep -v '^ *+' conftest.er1 >conftest.err
21883 rm -f conftest.er1
21884 cat conftest.err >&5
5537dbbf
AJ
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } &&
0ebeb530
JW
21887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21888 { (case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21891esac
21892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_try") 2>&5
875927f6
AJ
21894 ac_status=$?
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; } &&
21897 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
21898 { (case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21901esac
21902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_try") 2>&5
5537dbbf
AJ
21904 ac_status=$?
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; }; then
21907 ac_cv_member_struct_sockaddr_un_sun_len=yes
21908else
21909 echo "$as_me: failed program was:" >&5
21910sed 's/^/| /' conftest.$ac_ext >&5
21911
fc6ffb29 21912 ac_cv_member_struct_sockaddr_un_sun_len=no
f5818d2f 21913fi
fc6ffb29 21914
0ebeb530 21915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f5818d2f 21916fi
fc6ffb29 21917
0ebeb530 21918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 21919fi
fc6ffb29
AJ
21920{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
21921echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
5537dbbf 21922if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
f5818d2f 21923
5537dbbf
AJ
21924cat >>confdefs.h <<_ACEOF
21925#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
21926_ACEOF
21927
21928
21929fi
21930
21931
fc6ffb29
AJ
21932{ echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
21933echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
ea64a36a
DT
21934if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
21935 echo $ECHO_N "(cached) $ECHO_C" >&6
21936else
21937 cat >conftest.$ac_ext <<_ACEOF
21938/* confdefs.h. */
21939_ACEOF
21940cat confdefs.h >>conftest.$ac_ext
21941cat >>conftest.$ac_ext <<_ACEOF
21942/* end confdefs.h. */
21943#include <sys/types.h>
21944#ifdef HAVE_SCSI_SG_H
21945#include <scsi/sg.h>
21946#endif
21947
21948int
21949main ()
21950{
21951static scsireq_t ac_aggr;
21952if (ac_aggr.cmd)
21953return 0;
21954 ;
21955 return 0;
21956}
21957_ACEOF
21958rm -f conftest.$ac_objext
0ebeb530
JW
21959if { (ac_try="$ac_compile"
21960case "(($ac_try" in
21961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21963esac
21964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_compile") 2>conftest.er1
ea64a36a
DT
21966 ac_status=$?
21967 grep -v '^ *+' conftest.er1 >conftest.err
21968 rm -f conftest.er1
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } &&
0ebeb530
JW
21972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21973 { (case "(($ac_try" in
21974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21975 *) ac_try_echo=$ac_try;;
21976esac
21977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21978 (eval "$ac_try") 2>&5
ea64a36a
DT
21979 ac_status=$?
21980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981 (exit $ac_status); }; } &&
21982 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
21983 { (case "(($ac_try" in
21984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985 *) ac_try_echo=$ac_try;;
21986esac
21987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988 (eval "$ac_try") 2>&5
ea64a36a
DT
21989 ac_status=$?
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); }; }; then
21992 ac_cv_member_scsireq_t_cmd=yes
21993else
21994 echo "$as_me: failed program was:" >&5
21995sed 's/^/| /' conftest.$ac_ext >&5
21996
fc6ffb29 21997 cat >conftest.$ac_ext <<_ACEOF
ea64a36a
DT
21998/* confdefs.h. */
21999_ACEOF
22000cat confdefs.h >>conftest.$ac_ext
22001cat >>conftest.$ac_ext <<_ACEOF
22002/* end confdefs.h. */
22003#include <sys/types.h>
22004#ifdef HAVE_SCSI_SG_H
22005#include <scsi/sg.h>
22006#endif
22007
22008int
22009main ()
22010{
22011static scsireq_t ac_aggr;
22012if (sizeof ac_aggr.cmd)
22013return 0;
22014 ;
22015 return 0;
22016}
22017_ACEOF
22018rm -f conftest.$ac_objext
0ebeb530
JW
22019if { (ac_try="$ac_compile"
22020case "(($ac_try" in
22021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22022 *) ac_try_echo=$ac_try;;
22023esac
22024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22025 (eval "$ac_compile") 2>conftest.er1
ea64a36a
DT
22026 ac_status=$?
22027 grep -v '^ *+' conftest.er1 >conftest.err
22028 rm -f conftest.er1
22029 cat conftest.err >&5
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); } &&
0ebeb530
JW
22032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22033 { (case "(($ac_try" in
22034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22035 *) ac_try_echo=$ac_try;;
22036esac
22037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22038 (eval "$ac_try") 2>&5
ea64a36a
DT
22039 ac_status=$?
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; } &&
22042 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
22043 { (case "(($ac_try" in
22044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045 *) ac_try_echo=$ac_try;;
22046esac
22047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048 (eval "$ac_try") 2>&5
ea64a36a
DT
22049 ac_status=$?
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; }; then
22052 ac_cv_member_scsireq_t_cmd=yes
22053else
22054 echo "$as_me: failed program was:" >&5
22055sed 's/^/| /' conftest.$ac_ext >&5
22056
fc6ffb29 22057 ac_cv_member_scsireq_t_cmd=no
ea64a36a 22058fi
fc6ffb29 22059
0ebeb530 22060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea64a36a 22061fi
fc6ffb29 22062
0ebeb530 22063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea64a36a 22064fi
fc6ffb29
AJ
22065{ echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
22066echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
ea64a36a
DT
22067if test $ac_cv_member_scsireq_t_cmd = yes; then
22068
22069cat >>confdefs.h <<_ACEOF
22070#define HAVE_SCSIREQ_T_CMD 1
22071_ACEOF
22072
22073
22074fi
fc6ffb29
AJ
22075{ echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
22076echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
ea64a36a
DT
22077if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
22078 echo $ECHO_N "(cached) $ECHO_C" >&6
22079else
22080 cat >conftest.$ac_ext <<_ACEOF
22081/* confdefs.h. */
22082_ACEOF
22083cat confdefs.h >>conftest.$ac_ext
22084cat >>conftest.$ac_ext <<_ACEOF
22085/* end confdefs.h. */
22086#include <sys/types.h>
22087#ifdef HAVE_SCSI_SG_H
22088#include <scsi/sg.h>
22089#endif
22090
22091int
22092main ()
22093{
22094static sg_io_hdr_t ac_aggr;
22095if (ac_aggr.interface_id)
22096return 0;
22097 ;
22098 return 0;
22099}
22100_ACEOF
22101rm -f conftest.$ac_objext
0ebeb530
JW
22102if { (ac_try="$ac_compile"
22103case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22106esac
22107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_compile") 2>conftest.er1
ea64a36a
DT
22109 ac_status=$?
22110 grep -v '^ *+' conftest.er1 >conftest.err
22111 rm -f conftest.er1
22112 cat conftest.err >&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } &&
0ebeb530
JW
22115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22116 { (case "(($ac_try" in
22117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118 *) ac_try_echo=$ac_try;;
22119esac
22120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121 (eval "$ac_try") 2>&5
ea64a36a
DT
22122 ac_status=$?
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); }; } &&
22125 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
22126 { (case "(($ac_try" in
22127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128 *) ac_try_echo=$ac_try;;
22129esac
22130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22131 (eval "$ac_try") 2>&5
ea64a36a
DT
22132 ac_status=$?
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; }; then
22135 ac_cv_member_sg_io_hdr_t_interface_id=yes
22136else
22137 echo "$as_me: failed program was:" >&5
22138sed 's/^/| /' conftest.$ac_ext >&5
22139
fc6ffb29 22140 cat >conftest.$ac_ext <<_ACEOF
ea64a36a
DT
22141/* confdefs.h. */
22142_ACEOF
22143cat confdefs.h >>conftest.$ac_ext
22144cat >>conftest.$ac_ext <<_ACEOF
22145/* end confdefs.h. */
22146#include <sys/types.h>
22147#ifdef HAVE_SCSI_SG_H
22148#include <scsi/sg.h>
22149#endif
22150
22151int
22152main ()
22153{
22154static sg_io_hdr_t ac_aggr;
22155if (sizeof ac_aggr.interface_id)
22156return 0;
22157 ;
22158 return 0;
22159}
22160_ACEOF
22161rm -f conftest.$ac_objext
0ebeb530
JW
22162if { (ac_try="$ac_compile"
22163case "(($ac_try" in
22164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165 *) ac_try_echo=$ac_try;;
22166esac
22167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168 (eval "$ac_compile") 2>conftest.er1
ea64a36a
DT
22169 ac_status=$?
22170 grep -v '^ *+' conftest.er1 >conftest.err
22171 rm -f conftest.er1
22172 cat conftest.err >&5
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); } &&
0ebeb530
JW
22175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22176 { (case "(($ac_try" in
22177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178 *) ac_try_echo=$ac_try;;
22179esac
22180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181 (eval "$ac_try") 2>&5
ea64a36a
DT
22182 ac_status=$?
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; } &&
22185 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
22186 { (case "(($ac_try" in
22187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188 *) ac_try_echo=$ac_try;;
22189esac
22190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22191 (eval "$ac_try") 2>&5
ea64a36a
DT
22192 ac_status=$?
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); }; }; then
22195 ac_cv_member_sg_io_hdr_t_interface_id=yes
22196else
22197 echo "$as_me: failed program was:" >&5
22198sed 's/^/| /' conftest.$ac_ext >&5
22199
fc6ffb29 22200 ac_cv_member_sg_io_hdr_t_interface_id=no
ea64a36a 22201fi
fc6ffb29 22202
0ebeb530 22203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea64a36a 22204fi
fc6ffb29 22205
0ebeb530 22206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea64a36a 22207fi
fc6ffb29
AJ
22208{ echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
22209echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
ea64a36a
DT
22210if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
22211
22212cat >>confdefs.h <<_ACEOF
22213#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
22214_ACEOF
22215
22216
22217fi
22218
22219
fc6ffb29
AJ
22220{ echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
22221echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
5537dbbf
AJ
22222if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
22223 echo $ECHO_N "(cached) $ECHO_C" >&6
22224else
22225 cat >conftest.$ac_ext <<_ACEOF
5537dbbf
AJ
22226/* confdefs.h. */
22227_ACEOF
22228cat confdefs.h >>conftest.$ac_ext
22229cat >>conftest.$ac_ext <<_ACEOF
22230/* end confdefs.h. */
22231#include <signal.h>
22232
22233int
22234main ()
22235{
22236static siginfo_t ac_aggr;
22237if (ac_aggr.si_fd)
22238return 0;
22239 ;
22240 return 0;
22241}
22242_ACEOF
22243rm -f conftest.$ac_objext
0ebeb530
JW
22244if { (ac_try="$ac_compile"
22245case "(($ac_try" in
22246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247 *) ac_try_echo=$ac_try;;
22248esac
22249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250 (eval "$ac_compile") 2>conftest.er1
5537dbbf 22251 ac_status=$?
875927f6
AJ
22252 grep -v '^ *+' conftest.er1 >conftest.err
22253 rm -f conftest.er1
22254 cat conftest.err >&5
5537dbbf
AJ
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } &&
0ebeb530
JW
22257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22258 { (case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22261esac
22262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_try") 2>&5
875927f6
AJ
22264 ac_status=$?
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }; } &&
22267 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
22268 { (case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22271esac
22272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_try") 2>&5
5537dbbf
AJ
22274 ac_status=$?
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); }; }; then
22277 ac_cv_member_siginfo_t_si_fd=yes
22278else
22279 echo "$as_me: failed program was:" >&5
22280sed 's/^/| /' conftest.$ac_ext >&5
22281
fc6ffb29 22282 cat >conftest.$ac_ext <<_ACEOF
5537dbbf 22283/* confdefs.h. */
daa2886c 22284_ACEOF
5537dbbf
AJ
22285cat confdefs.h >>conftest.$ac_ext
22286cat >>conftest.$ac_ext <<_ACEOF
22287/* end confdefs.h. */
22288#include <signal.h>
2d33ab91 22289
5537dbbf
AJ
22290int
22291main ()
22292{
22293static siginfo_t ac_aggr;
22294if (sizeof ac_aggr.si_fd)
22295return 0;
22296 ;
22297 return 0;
22298}
22299_ACEOF
22300rm -f conftest.$ac_objext
0ebeb530
JW
22301if { (ac_try="$ac_compile"
22302case "(($ac_try" in
22303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304 *) ac_try_echo=$ac_try;;
22305esac
22306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307 (eval "$ac_compile") 2>conftest.er1
5537dbbf 22308 ac_status=$?
875927f6
AJ
22309 grep -v '^ *+' conftest.er1 >conftest.err
22310 rm -f conftest.er1
22311 cat conftest.err >&5
5537dbbf
AJ
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); } &&
0ebeb530
JW
22314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22315 { (case "(($ac_try" in
22316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22317 *) ac_try_echo=$ac_try;;
22318esac
22319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22320 (eval "$ac_try") 2>&5
875927f6
AJ
22321 ac_status=$?
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); }; } &&
22324 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
22325 { (case "(($ac_try" in
22326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22327 *) ac_try_echo=$ac_try;;
22328esac
22329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22330 (eval "$ac_try") 2>&5
5537dbbf
AJ
22331 ac_status=$?
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); }; }; then
22334 ac_cv_member_siginfo_t_si_fd=yes
22335else
22336 echo "$as_me: failed program was:" >&5
22337sed 's/^/| /' conftest.$ac_ext >&5
22338
fc6ffb29 22339 ac_cv_member_siginfo_t_si_fd=no
5537dbbf 22340fi
fc6ffb29 22341
0ebeb530 22342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537dbbf 22343fi
fc6ffb29 22344
0ebeb530 22345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2d33ab91 22346fi
fc6ffb29
AJ
22347{ echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
22348echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
5537dbbf 22349if test $ac_cv_member_siginfo_t_si_fd = yes; then
2d33ab91 22350
5537dbbf
AJ
22351cat >>confdefs.h <<_ACEOF
22352#define HAVE_SIGINFO_T_SI_FD 1
22353_ACEOF
22354
22355
22356fi
daa2886c
AJ
22357
22358
fc6ffb29
AJ
22359{ echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
22360echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
36bdc64e
GP
22361if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
22362 echo $ECHO_N "(cached) $ECHO_C" >&6
22363else
22364 cat >conftest.$ac_ext <<_ACEOF
22365/* confdefs.h. */
22366_ACEOF
22367cat confdefs.h >>conftest.$ac_ext
22368cat >>conftest.$ac_ext <<_ACEOF
22369/* end confdefs.h. */
368dab37 22370#include <sys/types.h>
36bdc64e
GP
22371#ifdef HAVE_SYS_MTIO_H
22372#include <sys/mtio.h>
22373#endif
22374
22375int
22376main ()
22377{
22378static struct mtget ac_aggr;
22379if (ac_aggr.mt_blksiz)
22380return 0;
22381 ;
22382 return 0;
22383}
22384_ACEOF
22385rm -f conftest.$ac_objext
0ebeb530
JW
22386if { (ac_try="$ac_compile"
22387case "(($ac_try" in
22388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22389 *) ac_try_echo=$ac_try;;
22390esac
22391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22392 (eval "$ac_compile") 2>conftest.er1
36bdc64e
GP
22393 ac_status=$?
22394 grep -v '^ *+' conftest.er1 >conftest.err
22395 rm -f conftest.er1
22396 cat conftest.err >&5
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); } &&
0ebeb530
JW
22399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22400 { (case "(($ac_try" in
22401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22402 *) ac_try_echo=$ac_try;;
22403esac
22404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22405 (eval "$ac_try") 2>&5
36bdc64e
GP
22406 ac_status=$?
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); }; } &&
22409 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
22410 { (case "(($ac_try" in
22411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22412 *) ac_try_echo=$ac_try;;
22413esac
22414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22415 (eval "$ac_try") 2>&5
36bdc64e
GP
22416 ac_status=$?
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; }; then
22419 ac_cv_member_struct_mtget_mt_blksiz=yes
22420else
22421 echo "$as_me: failed program was:" >&5
22422sed 's/^/| /' conftest.$ac_ext >&5
22423
fc6ffb29 22424 cat >conftest.$ac_ext <<_ACEOF
36bdc64e
GP
22425/* confdefs.h. */
22426_ACEOF
22427cat confdefs.h >>conftest.$ac_ext
22428cat >>conftest.$ac_ext <<_ACEOF
22429/* end confdefs.h. */
368dab37 22430#include <sys/types.h>
36bdc64e
GP
22431#ifdef HAVE_SYS_MTIO_H
22432#include <sys/mtio.h>
22433#endif
22434
22435int
22436main ()
22437{
22438static struct mtget ac_aggr;
22439if (sizeof ac_aggr.mt_blksiz)
22440return 0;
22441 ;
22442 return 0;
22443}
22444_ACEOF
22445rm -f conftest.$ac_objext
0ebeb530
JW
22446if { (ac_try="$ac_compile"
22447case "(($ac_try" in
22448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22449 *) ac_try_echo=$ac_try;;
22450esac
22451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22452 (eval "$ac_compile") 2>conftest.er1
36bdc64e
GP
22453 ac_status=$?
22454 grep -v '^ *+' conftest.er1 >conftest.err
22455 rm -f conftest.er1
22456 cat conftest.err >&5
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } &&
0ebeb530
JW
22459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22460 { (case "(($ac_try" in
22461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462 *) ac_try_echo=$ac_try;;
22463esac
22464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465 (eval "$ac_try") 2>&5
36bdc64e
GP
22466 ac_status=$?
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); }; } &&
22469 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
22470 { (case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22473esac
22474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_try") 2>&5
36bdc64e
GP
22476 ac_status=$?
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; }; then
22479 ac_cv_member_struct_mtget_mt_blksiz=yes
22480else
22481 echo "$as_me: failed program was:" >&5
22482sed 's/^/| /' conftest.$ac_ext >&5
22483
fc6ffb29 22484 ac_cv_member_struct_mtget_mt_blksiz=no
36bdc64e 22485fi
fc6ffb29 22486
0ebeb530 22487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36bdc64e 22488fi
fc6ffb29 22489
0ebeb530 22490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36bdc64e 22491fi
fc6ffb29
AJ
22492{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
22493echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
36bdc64e
GP
22494if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
22495
22496cat >>confdefs.h <<_ACEOF
22497#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
22498_ACEOF
22499
22500
22501fi
fc6ffb29
AJ
22502{ echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
22503echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
36bdc64e
GP
22504if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
22505 echo $ECHO_N "(cached) $ECHO_C" >&6
22506else
22507 cat >conftest.$ac_ext <<_ACEOF
22508/* confdefs.h. */
22509_ACEOF
22510cat confdefs.h >>conftest.$ac_ext
22511cat >>conftest.$ac_ext <<_ACEOF
22512/* end confdefs.h. */
368dab37 22513#include <sys/types.h>
36bdc64e
GP
22514#ifdef HAVE_SYS_MTIO_H
22515#include <sys/mtio.h>
22516#endif
22517
22518int
22519main ()
22520{
22521static struct mtget ac_aggr;
22522if (ac_aggr.mt_gstat)
22523return 0;
22524 ;
22525 return 0;
22526}
22527_ACEOF
22528rm -f conftest.$ac_objext
0ebeb530
JW
22529if { (ac_try="$ac_compile"
22530case "(($ac_try" in
22531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22532 *) ac_try_echo=$ac_try;;
22533esac
22534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22535 (eval "$ac_compile") 2>conftest.er1
36bdc64e
GP
22536 ac_status=$?
22537 grep -v '^ *+' conftest.er1 >conftest.err
22538 rm -f conftest.er1
22539 cat conftest.err >&5
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); } &&
0ebeb530
JW
22542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22543 { (case "(($ac_try" in
22544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545 *) ac_try_echo=$ac_try;;
22546esac
22547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22548 (eval "$ac_try") 2>&5
36bdc64e
GP
22549 ac_status=$?
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; } &&
22552 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
22553 { (case "(($ac_try" in
22554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22555 *) ac_try_echo=$ac_try;;
22556esac
22557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22558 (eval "$ac_try") 2>&5
36bdc64e
GP
22559 ac_status=$?
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; }; then
22562 ac_cv_member_struct_mtget_mt_gstat=yes
22563else
22564 echo "$as_me: failed program was:" >&5
22565sed 's/^/| /' conftest.$ac_ext >&5
22566
fc6ffb29 22567 cat >conftest.$ac_ext <<_ACEOF
36bdc64e
GP
22568/* confdefs.h. */
22569_ACEOF
22570cat confdefs.h >>conftest.$ac_ext
22571cat >>conftest.$ac_ext <<_ACEOF
22572/* end confdefs.h. */
368dab37 22573#include <sys/types.h>
36bdc64e
GP
22574#ifdef HAVE_SYS_MTIO_H
22575#include <sys/mtio.h>
22576#endif
22577
22578int
22579main ()
22580{
22581static struct mtget ac_aggr;
22582if (sizeof ac_aggr.mt_gstat)
22583return 0;
22584 ;
22585 return 0;
22586}
22587_ACEOF
22588rm -f conftest.$ac_objext
0ebeb530
JW
22589if { (ac_try="$ac_compile"
22590case "(($ac_try" in
22591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592 *) ac_try_echo=$ac_try;;
22593esac
22594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22595 (eval "$ac_compile") 2>conftest.er1
36bdc64e
GP
22596 ac_status=$?
22597 grep -v '^ *+' conftest.er1 >conftest.err
22598 rm -f conftest.er1
22599 cat conftest.err >&5
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); } &&
0ebeb530
JW
22602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22603 { (case "(($ac_try" in
22604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22605 *) ac_try_echo=$ac_try;;
22606esac
22607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22608 (eval "$ac_try") 2>&5
36bdc64e
GP
22609 ac_status=$?
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); }; } &&
22612 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
22613 { (case "(($ac_try" in
22614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22615 *) ac_try_echo=$ac_try;;
22616esac
22617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22618 (eval "$ac_try") 2>&5
36bdc64e
GP
22619 ac_status=$?
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); }; }; then
22622 ac_cv_member_struct_mtget_mt_gstat=yes
22623else
22624 echo "$as_me: failed program was:" >&5
22625sed 's/^/| /' conftest.$ac_ext >&5
22626
fc6ffb29 22627 ac_cv_member_struct_mtget_mt_gstat=no
36bdc64e 22628fi
fc6ffb29 22629
0ebeb530 22630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36bdc64e 22631fi
fc6ffb29 22632
0ebeb530 22633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36bdc64e 22634fi
fc6ffb29
AJ
22635{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
22636echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
36bdc64e
GP
22637if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
22638
22639cat >>confdefs.h <<_ACEOF
22640#define HAVE_STRUCT_MTGET_MT_GSTAT 1
22641_ACEOF
22642
22643
571d9fb0 22644fi
fc6ffb29
AJ
22645{ echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
22646echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
571d9fb0
GP
22647if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
22648 echo $ECHO_N "(cached) $ECHO_C" >&6
22649else
22650 cat >conftest.$ac_ext <<_ACEOF
22651/* confdefs.h. */
22652_ACEOF
22653cat confdefs.h >>conftest.$ac_ext
22654cat >>conftest.$ac_ext <<_ACEOF
22655/* end confdefs.h. */
368dab37 22656#include <sys/types.h>
571d9fb0
GP
22657#ifdef HAVE_SYS_MTIO_H
22658#include <sys/mtio.h>
22659#endif
22660
22661int
22662main ()
22663{
22664static struct mtget ac_aggr;
22665if (ac_aggr.mt_blkno)
22666return 0;
22667 ;
22668 return 0;
22669}
22670_ACEOF
22671rm -f conftest.$ac_objext
0ebeb530
JW
22672if { (ac_try="$ac_compile"
22673case "(($ac_try" in
22674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675 *) ac_try_echo=$ac_try;;
22676esac
22677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22678 (eval "$ac_compile") 2>conftest.er1
571d9fb0
GP
22679 ac_status=$?
22680 grep -v '^ *+' conftest.er1 >conftest.err
22681 rm -f conftest.er1
22682 cat conftest.err >&5
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } &&
0ebeb530
JW
22685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22686 { (case "(($ac_try" in
22687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22688 *) ac_try_echo=$ac_try;;
22689esac
22690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22691 (eval "$ac_try") 2>&5
571d9fb0
GP
22692 ac_status=$?
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); }; } &&
22695 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
22696 { (case "(($ac_try" in
22697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22698 *) ac_try_echo=$ac_try;;
22699esac
22700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22701 (eval "$ac_try") 2>&5
571d9fb0
GP
22702 ac_status=$?
22703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704 (exit $ac_status); }; }; then
22705 ac_cv_member_struct_mtget_mt_blkno=yes
22706else
22707 echo "$as_me: failed program was:" >&5
22708sed 's/^/| /' conftest.$ac_ext >&5
22709
fc6ffb29 22710 cat >conftest.$ac_ext <<_ACEOF
571d9fb0
GP
22711/* confdefs.h. */
22712_ACEOF
22713cat confdefs.h >>conftest.$ac_ext
22714cat >>conftest.$ac_ext <<_ACEOF
22715/* end confdefs.h. */
368dab37 22716#include <sys/types.h>
571d9fb0
GP
22717#ifdef HAVE_SYS_MTIO_H
22718#include <sys/mtio.h>
22719#endif
22720
22721int
22722main ()
22723{
22724static struct mtget ac_aggr;
22725if (sizeof ac_aggr.mt_blkno)
22726return 0;
22727 ;
22728 return 0;
22729}
22730_ACEOF
22731rm -f conftest.$ac_objext
0ebeb530
JW
22732if { (ac_try="$ac_compile"
22733case "(($ac_try" in
22734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735 *) ac_try_echo=$ac_try;;
22736esac
22737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22738 (eval "$ac_compile") 2>conftest.er1
571d9fb0
GP
22739 ac_status=$?
22740 grep -v '^ *+' conftest.er1 >conftest.err
22741 rm -f conftest.er1
22742 cat conftest.err >&5
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); } &&
0ebeb530
JW
22745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22746 { (case "(($ac_try" in
22747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22748 *) ac_try_echo=$ac_try;;
22749esac
22750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22751 (eval "$ac_try") 2>&5
571d9fb0
GP
22752 ac_status=$?
22753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754 (exit $ac_status); }; } &&
22755 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
22756 { (case "(($ac_try" in
22757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22758 *) ac_try_echo=$ac_try;;
22759esac
22760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22761 (eval "$ac_try") 2>&5
571d9fb0
GP
22762 ac_status=$?
22763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22764 (exit $ac_status); }; }; then
22765 ac_cv_member_struct_mtget_mt_blkno=yes
22766else
22767 echo "$as_me: failed program was:" >&5
22768sed 's/^/| /' conftest.$ac_ext >&5
22769
fc6ffb29 22770 ac_cv_member_struct_mtget_mt_blkno=no
571d9fb0 22771fi
fc6ffb29 22772
0ebeb530 22773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
571d9fb0 22774fi
fc6ffb29 22775
0ebeb530 22776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
571d9fb0 22777fi
fc6ffb29
AJ
22778{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
22779echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
571d9fb0
GP
22780if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
22781
22782cat >>confdefs.h <<_ACEOF
22783#define HAVE_STRUCT_MTGET_MT_BLKNO 1
22784_ACEOF
22785
22786
36bdc64e
GP
22787fi
22788
22789
fc6ffb29
AJ
22790{ echo "$as_me:$LINENO: checking for struct option.name" >&5
22791echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
db89a54b
AJ
22792if test "${ac_cv_member_struct_option_name+set}" = set; then
22793 echo $ECHO_N "(cached) $ECHO_C" >&6
22794else
22795 cat >conftest.$ac_ext <<_ACEOF
db89a54b
AJ
22796/* confdefs.h. */
22797_ACEOF
22798cat confdefs.h >>conftest.$ac_ext
22799cat >>conftest.$ac_ext <<_ACEOF
22800/* end confdefs.h. */
22801#ifdef HAVE_GETOPT_H
22802#include <getopt.h>
22803#endif
22804
22805int
22806main ()
22807{
22808static struct option ac_aggr;
22809if (ac_aggr.name)
22810return 0;
22811 ;
22812 return 0;
22813}
22814_ACEOF
22815rm -f conftest.$ac_objext
0ebeb530
JW
22816if { (ac_try="$ac_compile"
22817case "(($ac_try" in
22818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819 *) ac_try_echo=$ac_try;;
22820esac
22821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22822 (eval "$ac_compile") 2>conftest.er1
db89a54b 22823 ac_status=$?
875927f6
AJ
22824 grep -v '^ *+' conftest.er1 >conftest.err
22825 rm -f conftest.er1
22826 cat conftest.err >&5
db89a54b
AJ
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); } &&
0ebeb530
JW
22829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22830 { (case "(($ac_try" in
22831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22832 *) ac_try_echo=$ac_try;;
22833esac
22834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22835 (eval "$ac_try") 2>&5
875927f6
AJ
22836 ac_status=$?
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); }; } &&
22839 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
22840 { (case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22843esac
22844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_try") 2>&5
db89a54b
AJ
22846 ac_status=$?
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); }; }; then
22849 ac_cv_member_struct_option_name=yes
22850else
22851 echo "$as_me: failed program was:" >&5
22852sed 's/^/| /' conftest.$ac_ext >&5
22853
fc6ffb29 22854 cat >conftest.$ac_ext <<_ACEOF
db89a54b
AJ
22855/* confdefs.h. */
22856_ACEOF
22857cat confdefs.h >>conftest.$ac_ext
22858cat >>conftest.$ac_ext <<_ACEOF
22859/* end confdefs.h. */
22860#ifdef HAVE_GETOPT_H
22861#include <getopt.h>
22862#endif
22863
22864int
22865main ()
22866{
22867static struct option ac_aggr;
22868if (sizeof ac_aggr.name)
22869return 0;
22870 ;
22871 return 0;
22872}
22873_ACEOF
22874rm -f conftest.$ac_objext
0ebeb530
JW
22875if { (ac_try="$ac_compile"
22876case "(($ac_try" in
22877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878 *) ac_try_echo=$ac_try;;
22879esac
22880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22881 (eval "$ac_compile") 2>conftest.er1
db89a54b 22882 ac_status=$?
875927f6
AJ
22883 grep -v '^ *+' conftest.er1 >conftest.err
22884 rm -f conftest.er1
22885 cat conftest.err >&5
db89a54b
AJ
22886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); } &&
0ebeb530
JW
22888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22889 { (case "(($ac_try" in
22890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22891 *) ac_try_echo=$ac_try;;
22892esac
22893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22894 (eval "$ac_try") 2>&5
875927f6
AJ
22895 ac_status=$?
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); }; } &&
22898 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
22899 { (case "(($ac_try" in
22900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22901 *) ac_try_echo=$ac_try;;
22902esac
22903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22904 (eval "$ac_try") 2>&5
db89a54b
AJ
22905 ac_status=$?
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); }; }; then
22908 ac_cv_member_struct_option_name=yes
22909else
22910 echo "$as_me: failed program was:" >&5
22911sed 's/^/| /' conftest.$ac_ext >&5
22912
fc6ffb29 22913 ac_cv_member_struct_option_name=no
db89a54b 22914fi
fc6ffb29 22915
0ebeb530 22916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
db89a54b 22917fi
fc6ffb29 22918
0ebeb530 22919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
db89a54b 22920fi
fc6ffb29
AJ
22921{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
22922echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
db89a54b
AJ
22923if test $ac_cv_member_struct_option_name = yes; then
22924
22925cat >>confdefs.h <<_ACEOF
22926#define HAVE_STRUCT_OPTION_NAME 1
22927_ACEOF
22928
22929
22930fi
22931
22932
fc6ffb29
AJ
22933{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22934echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
d6507196
PR
22935if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22936 echo $ECHO_N "(cached) $ECHO_C" >&6
22937else
22938 cat >conftest.$ac_ext <<_ACEOF
d6507196
PR
22939/* confdefs.h. */
22940_ACEOF
22941cat confdefs.h >>conftest.$ac_ext
22942cat >>conftest.$ac_ext <<_ACEOF
22943/* end confdefs.h. */
22944$ac_includes_default
22945int
22946main ()
22947{
22948static struct stat ac_aggr;
22949if (ac_aggr.st_blocks)
22950return 0;
22951 ;
22952 return 0;
22953}
22954_ACEOF
22955rm -f conftest.$ac_objext
0ebeb530
JW
22956if { (ac_try="$ac_compile"
22957case "(($ac_try" in
22958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959 *) ac_try_echo=$ac_try;;
22960esac
22961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22962 (eval "$ac_compile") 2>conftest.er1
d6507196 22963 ac_status=$?
875927f6
AJ
22964 grep -v '^ *+' conftest.er1 >conftest.err
22965 rm -f conftest.er1
22966 cat conftest.err >&5
d6507196
PR
22967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); } &&
0ebeb530
JW
22969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22970 { (case "(($ac_try" in
22971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22972 *) ac_try_echo=$ac_try;;
22973esac
22974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22975 (eval "$ac_try") 2>&5
875927f6
AJ
22976 ac_status=$?
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); }; } &&
22979 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
22980 { (case "(($ac_try" in
22981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22982 *) ac_try_echo=$ac_try;;
22983esac
22984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22985 (eval "$ac_try") 2>&5
d6507196
PR
22986 ac_status=$?
22987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988 (exit $ac_status); }; }; then
22989 ac_cv_member_struct_stat_st_blocks=yes
22990else
22991 echo "$as_me: failed program was:" >&5
22992sed 's/^/| /' conftest.$ac_ext >&5
22993
fc6ffb29 22994 cat >conftest.$ac_ext <<_ACEOF
d6507196
PR
22995/* confdefs.h. */
22996_ACEOF
22997cat confdefs.h >>conftest.$ac_ext
22998cat >>conftest.$ac_ext <<_ACEOF
22999/* end confdefs.h. */
23000$ac_includes_default
23001int
23002main ()
23003{
23004static struct stat ac_aggr;
23005if (sizeof ac_aggr.st_blocks)
23006return 0;
23007 ;
23008 return 0;
23009}
23010_ACEOF
23011rm -f conftest.$ac_objext
0ebeb530
JW
23012if { (ac_try="$ac_compile"
23013case "(($ac_try" in
23014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23015 *) ac_try_echo=$ac_try;;
23016esac
23017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23018 (eval "$ac_compile") 2>conftest.er1
d6507196 23019 ac_status=$?
875927f6
AJ
23020 grep -v '^ *+' conftest.er1 >conftest.err
23021 rm -f conftest.er1
23022 cat conftest.err >&5
d6507196
PR
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } &&
0ebeb530
JW
23025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23026 { (case "(($ac_try" in
23027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23028 *) ac_try_echo=$ac_try;;
23029esac
23030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23031 (eval "$ac_try") 2>&5
875927f6
AJ
23032 ac_status=$?
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); }; } &&
23035 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
23036 { (case "(($ac_try" in
23037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23038 *) ac_try_echo=$ac_try;;
23039esac
23040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23041 (eval "$ac_try") 2>&5
d6507196
PR
23042 ac_status=$?
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); }; }; then
23045 ac_cv_member_struct_stat_st_blocks=yes
23046else
23047 echo "$as_me: failed program was:" >&5
23048sed 's/^/| /' conftest.$ac_ext >&5
23049
fc6ffb29 23050 ac_cv_member_struct_stat_st_blocks=no
d6507196 23051fi
fc6ffb29 23052
0ebeb530 23053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6507196 23054fi
fc6ffb29 23055
0ebeb530 23056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d6507196 23057fi
fc6ffb29
AJ
23058{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23059echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
d6507196
PR
23060if test $ac_cv_member_struct_stat_st_blocks = yes; then
23061
23062cat >>confdefs.h <<_ACEOF
23063#define HAVE_STRUCT_STAT_ST_BLOCKS 1
23064_ACEOF
23065
23066
23067fi
23068
23069
fc6ffb29
AJ
23070{ echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23071echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
40a6a74a
VL
23072if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23073 echo $ECHO_N "(cached) $ECHO_C" >&6
23074else
23075 cat >conftest.$ac_ext <<_ACEOF
23076/* confdefs.h. */
23077_ACEOF
23078cat confdefs.h >>conftest.$ac_ext
23079cat >>conftest.$ac_ext <<_ACEOF
23080/* end confdefs.h. */
23081#ifdef HAVE_SYS_TYPES_H
23082#include <sys/types.h>
23083#endif
23084#ifdef HAVE_NETINET_IN_H
23085#include <netinet/in.h>
23086#endif
23087
23088int
23089main ()
23090{
23091static struct sockaddr_in6 ac_aggr;
23092if (ac_aggr.sin6_scope_id)
23093return 0;
23094 ;
23095 return 0;
23096}
23097_ACEOF
23098rm -f conftest.$ac_objext
0ebeb530
JW
23099if { (ac_try="$ac_compile"
23100case "(($ac_try" in
23101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23102 *) ac_try_echo=$ac_try;;
23103esac
23104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23105 (eval "$ac_compile") 2>conftest.er1
40a6a74a
VL
23106 ac_status=$?
23107 grep -v '^ *+' conftest.er1 >conftest.err
23108 rm -f conftest.er1
23109 cat conftest.err >&5
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); } &&
0ebeb530
JW
23112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23113 { (case "(($ac_try" in
23114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23115 *) ac_try_echo=$ac_try;;
23116esac
23117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23118 (eval "$ac_try") 2>&5
40a6a74a
VL
23119 ac_status=$?
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); }; } &&
23122 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
23123 { (case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23126esac
23127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128 (eval "$ac_try") 2>&5
40a6a74a
VL
23129 ac_status=$?
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); }; }; then
23132 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23133else
23134 echo "$as_me: failed program was:" >&5
23135sed 's/^/| /' conftest.$ac_ext >&5
23136
fc6ffb29 23137 cat >conftest.$ac_ext <<_ACEOF
40a6a74a
VL
23138/* confdefs.h. */
23139_ACEOF
23140cat confdefs.h >>conftest.$ac_ext
23141cat >>conftest.$ac_ext <<_ACEOF
23142/* end confdefs.h. */
23143#ifdef HAVE_SYS_TYPES_H
23144#include <sys/types.h>
23145#endif
23146#ifdef HAVE_NETINET_IN_H
23147#include <netinet/in.h>
23148#endif
23149
23150int
23151main ()
23152{
23153static struct sockaddr_in6 ac_aggr;
23154if (sizeof ac_aggr.sin6_scope_id)
23155return 0;
23156 ;
23157 return 0;
23158}
23159_ACEOF
23160rm -f conftest.$ac_objext
0ebeb530
JW
23161if { (ac_try="$ac_compile"
23162case "(($ac_try" in
23163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23164 *) ac_try_echo=$ac_try;;
23165esac
23166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23167 (eval "$ac_compile") 2>conftest.er1
40a6a74a
VL
23168 ac_status=$?
23169 grep -v '^ *+' conftest.er1 >conftest.err
23170 rm -f conftest.er1
23171 cat conftest.err >&5
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); } &&
0ebeb530
JW
23174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23175 { (case "(($ac_try" in
23176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23177 *) ac_try_echo=$ac_try;;
23178esac
23179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23180 (eval "$ac_try") 2>&5
40a6a74a
VL
23181 ac_status=$?
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; } &&
23184 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
23185 { (case "(($ac_try" in
23186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23187 *) ac_try_echo=$ac_try;;
23188esac
23189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23190 (eval "$ac_try") 2>&5
40a6a74a
VL
23191 ac_status=$?
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; }; then
23194 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23195else
23196 echo "$as_me: failed program was:" >&5
23197sed 's/^/| /' conftest.$ac_ext >&5
23198
fc6ffb29 23199 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
40a6a74a 23200fi
fc6ffb29 23201
0ebeb530 23202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40a6a74a 23203fi
fc6ffb29 23204
0ebeb530 23205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40a6a74a 23206fi
fc6ffb29
AJ
23207{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23208echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
40a6a74a
VL
23209if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23210
23211cat >>confdefs.h <<_ACEOF
23212#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23213_ACEOF
23214
23215
23216fi
23217
23218
788e30f1
AJ
23219{ echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
23220echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
23221if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
23222 echo $ECHO_N "(cached) $ECHO_C" >&6
23223else
23224 cat >conftest.$ac_ext <<_ACEOF
23225/* confdefs.h. */
23226_ACEOF
23227cat confdefs.h >>conftest.$ac_ext
23228cat >>conftest.$ac_ext <<_ACEOF
23229/* end confdefs.h. */
23230#ifdef HAVE_SYS_TYPES_H
23231#include <sys/types.h>
23232#endif
23233#ifdef HAVE_NETINET_IN_H
23234# include <netinet/in.h>
23235#endif
23236#ifdef HAVE_ARPA_NAMESER_H
23237# include <arpa/nameser.h>
23238#endif
23239
23240int
23241main ()
23242{
23243static ns_msg ac_aggr;
23244if (ac_aggr._msg_ptr)
23245return 0;
23246 ;
23247 return 0;
23248}
23249_ACEOF
23250rm -f conftest.$ac_objext
0ebeb530
JW
23251if { (ac_try="$ac_compile"
23252case "(($ac_try" in
23253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254 *) ac_try_echo=$ac_try;;
23255esac
23256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257 (eval "$ac_compile") 2>conftest.er1
788e30f1
AJ
23258 ac_status=$?
23259 grep -v '^ *+' conftest.er1 >conftest.err
23260 rm -f conftest.er1
23261 cat conftest.err >&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } &&
0ebeb530
JW
23264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23265 { (case "(($ac_try" in
23266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23267 *) ac_try_echo=$ac_try;;
23268esac
23269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23270 (eval "$ac_try") 2>&5
788e30f1
AJ
23271 ac_status=$?
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; } &&
23274 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
23275 { (case "(($ac_try" in
23276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23277 *) ac_try_echo=$ac_try;;
23278esac
23279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23280 (eval "$ac_try") 2>&5
788e30f1
AJ
23281 ac_status=$?
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); }; }; then
23284 ac_cv_member_ns_msg__msg_ptr=yes
23285else
23286 echo "$as_me: failed program was:" >&5
23287sed 's/^/| /' conftest.$ac_ext >&5
23288
23289 cat >conftest.$ac_ext <<_ACEOF
23290/* confdefs.h. */
23291_ACEOF
23292cat confdefs.h >>conftest.$ac_ext
23293cat >>conftest.$ac_ext <<_ACEOF
23294/* end confdefs.h. */
23295#ifdef HAVE_SYS_TYPES_H
23296#include <sys/types.h>
23297#endif
23298#ifdef HAVE_NETINET_IN_H
23299# include <netinet/in.h>
23300#endif
23301#ifdef HAVE_ARPA_NAMESER_H
23302# include <arpa/nameser.h>
23303#endif
23304
23305int
23306main ()
23307{
23308static ns_msg ac_aggr;
23309if (sizeof ac_aggr._msg_ptr)
23310return 0;
23311 ;
23312 return 0;
23313}
23314_ACEOF
23315rm -f conftest.$ac_objext
0ebeb530
JW
23316if { (ac_try="$ac_compile"
23317case "(($ac_try" in
23318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319 *) ac_try_echo=$ac_try;;
23320esac
23321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23322 (eval "$ac_compile") 2>conftest.er1
788e30f1
AJ
23323 ac_status=$?
23324 grep -v '^ *+' conftest.er1 >conftest.err
23325 rm -f conftest.er1
23326 cat conftest.err >&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } &&
0ebeb530
JW
23329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23330 { (case "(($ac_try" in
23331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23332 *) ac_try_echo=$ac_try;;
23333esac
23334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23335 (eval "$ac_try") 2>&5
788e30f1
AJ
23336 ac_status=$?
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); }; } &&
23339 { ac_try='test -s conftest.$ac_objext'
0ebeb530
JW
23340 { (case "(($ac_try" in
23341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23342 *) ac_try_echo=$ac_try;;
23343esac
23344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345 (eval "$ac_try") 2>&5
788e30f1
AJ
23346 ac_status=$?
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); }; }; then
23349 ac_cv_member_ns_msg__msg_ptr=yes
23350else
23351 echo "$as_me: failed program was:" >&5
23352sed 's/^/| /' conftest.$ac_ext >&5
23353
23354 ac_cv_member_ns_msg__msg_ptr=no
23355fi
23356
0ebeb530 23357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
788e30f1
AJ
23358fi
23359
0ebeb530 23360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
788e30f1
AJ
23361fi
23362{ echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
23363echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
23364if test $ac_cv_member_ns_msg__msg_ptr = yes; then
23365
23366cat >>confdefs.h <<_ACEOF
23367#define HAVE_NS_MSG__MSG_PTR 1
23368_ACEOF
23369
23370
23371fi
23372
23373
fc6ffb29
AJ
23374{ echo "$as_me:$LINENO: checking for timezone variable" >&5
23375echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
6618b035
PK
23376if test "${ac_cv_have_timezone+set}" = set; then
23377 echo $ECHO_N "(cached) $ECHO_C" >&6
23378else
23379 cat >conftest.$ac_ext <<_ACEOF
23380/* confdefs.h. */
23381_ACEOF
23382cat confdefs.h >>conftest.$ac_ext
23383cat >>conftest.$ac_ext <<_ACEOF
23384/* end confdefs.h. */
23385#include <time.h>
23386int
23387main ()
23388{
ff2bd661 23389timezone = 1
6618b035
PK
23390 ;
23391 return 0;
23392}
23393_ACEOF
23394rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
23395if { (ac_try="$ac_link"
23396case "(($ac_try" in
23397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23398 *) ac_try_echo=$ac_try;;
23399esac
23400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23401 (eval "$ac_link") 2>conftest.er1
6618b035
PK
23402 ac_status=$?
23403 grep -v '^ *+' conftest.er1 >conftest.err
23404 rm -f conftest.er1
23405 cat conftest.err >&5
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); } &&
0ebeb530
JW
23408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23409 { (case "(($ac_try" in
23410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23411 *) ac_try_echo=$ac_try;;
23412esac
23413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23414 (eval "$ac_try") 2>&5
6618b035
PK
23415 ac_status=$?
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); }; } &&
23418 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
23419 { (case "(($ac_try" in
23420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23421 *) ac_try_echo=$ac_try;;
23422esac
23423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23424 (eval "$ac_try") 2>&5
6618b035
PK
23425 ac_status=$?
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); }; }; then
23428 ac_cv_have_timezone="yes"
23429else
23430 echo "$as_me: failed program was:" >&5
23431sed 's/^/| /' conftest.$ac_ext >&5
23432
fc6ffb29 23433 ac_cv_have_timezone="no"
6618b035 23434fi
fc6ffb29 23435
0ebeb530 23436rm -f core conftest.err conftest.$ac_objext \
6618b035
PK
23437 conftest$ac_exeext conftest.$ac_ext
23438fi
fc6ffb29
AJ
23439{ echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
23440echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
6618b035
PK
23441if test "$ac_cv_have_timezone" = "yes"
23442then
23443
23444cat >>confdefs.h <<\_ACEOF
23445#define HAVE_TIMEZONE 1
23446_ACEOF
23447
23448fi
fc6ffb29
AJ
23449{ echo "$as_me:$LINENO: checking for daylight variable" >&5
23450echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
6618b035
PK
23451if test "${ac_cv_have_daylight+set}" = set; then
23452 echo $ECHO_N "(cached) $ECHO_C" >&6
23453else
23454 cat >conftest.$ac_ext <<_ACEOF
23455/* confdefs.h. */
23456_ACEOF
23457cat confdefs.h >>conftest.$ac_ext
23458cat >>conftest.$ac_ext <<_ACEOF
23459/* end confdefs.h. */
23460#include <time.h>
23461int
23462main ()
23463{
ff2bd661 23464daylight = 1
6618b035
PK
23465 ;
23466 return 0;
23467}
23468_ACEOF
23469rm -f conftest.$ac_objext conftest$ac_exeext
0ebeb530
JW
23470if { (ac_try="$ac_link"
23471case "(($ac_try" in
23472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23473 *) ac_try_echo=$ac_try;;
23474esac
23475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23476 (eval "$ac_link") 2>conftest.er1
6618b035
PK
23477 ac_status=$?
23478 grep -v '^ *+' conftest.er1 >conftest.err
23479 rm -f conftest.er1
23480 cat conftest.err >&5
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); } &&
0ebeb530
JW
23483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23484 { (case "(($ac_try" in
23485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23486 *) ac_try_echo=$ac_try;;
23487esac
23488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23489 (eval "$ac_try") 2>&5
6618b035
PK
23490 ac_status=$?
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); }; } &&
23493 { ac_try='test -s conftest$ac_exeext'
0ebeb530
JW
23494 { (case "(($ac_try" in
23495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23496 *) ac_try_echo=$ac_try;;
23497esac
23498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23499 (eval "$ac_try") 2>&5
6618b035
PK
23500 ac_status=$?
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); }; }; then
23503 ac_cv_have_daylight="yes"
23504else
23505 echo "$as_me: failed program was:" >&5
23506sed 's/^/| /' conftest.$ac_ext >&5
23507
fc6ffb29 23508 ac_cv_have_daylight="no"
6618b035 23509fi
fc6ffb29 23510
0ebeb530 23511rm -f core conftest.err conftest.$ac_objext \
6618b035
PK
23512 conftest$ac_exeext conftest.$ac_ext
23513fi
fc6ffb29
AJ
23514{ echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
23515echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
6618b035
PK
23516if test "$ac_cv_have_daylight" = "yes"
23517then
23518
23519cat >>confdefs.h <<\_ACEOF
23520#define HAVE_DAYLIGHT 1
23521_ACEOF
23522
23523fi
23524
daa2886c 23525
fc01b729 23526case $host_cpu in
fc6ffb29
AJ
23527 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
23528echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
05783b55 23529if test "${ac_cv_cpp_def___i386__+set}" = set; then
f5818d2f 23530 echo $ECHO_N "(cached) $ECHO_C" >&6
51d46ba9 23531else
f5818d2f 23532 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
23533/* confdefs.h. */
23534_ACEOF
23535cat confdefs.h >>conftest.$ac_ext
23536cat >>conftest.$ac_ext <<_ACEOF
23537/* end confdefs.h. */
f5818d2f 23538#ifndef __i386__
51d46ba9
AJ
23539yes
23540#endif
f5818d2f 23541_ACEOF
51d46ba9 23542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 23543 $EGREP "yes" >/dev/null 2>&1; then
05783b55 23544 ac_cv_cpp_def___i386__=yes
51d46ba9 23545else
05783b55 23546 ac_cv_cpp_def___i386__=no
51d46ba9
AJ
23547fi
23548rm -f conftest*
23549
23550fi
fc6ffb29
AJ
23551{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
23552echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
05783b55
AJ
23553if test $ac_cv_cpp_def___i386__ = yes; then
23554 CFLAGS="$CFLAGS -D__i386__"
23555 LINTFLAGS="$LINTFLAGS -D__i386__"
e3be5642
AJ
23556fi
23557 ;;
fc6ffb29
AJ
23558 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
23559echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
e3be5642
AJ
23560if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
23561 echo $ECHO_N "(cached) $ECHO_C" >&6
23562else
23563 cat >conftest.$ac_ext <<_ACEOF
23564/* confdefs.h. */
23565_ACEOF
23566cat confdefs.h >>conftest.$ac_ext
23567cat >>conftest.$ac_ext <<_ACEOF
23568/* end confdefs.h. */
23569#ifndef __x86_64__
23570yes
23571#endif
23572_ACEOF
23573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23574 $EGREP "yes" >/dev/null 2>&1; then
23575 ac_cv_cpp_def___x86_64__=yes
23576else
23577 ac_cv_cpp_def___x86_64__=no
23578fi
23579rm -f conftest*
23580
23581fi
fc6ffb29
AJ
23582{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
23583echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
e3be5642
AJ
23584if test $ac_cv_cpp_def___x86_64__ = yes; then
23585 CFLAGS="$CFLAGS -D__x86_64__"
23586 LINTFLAGS="$LINTFLAGS -D__x86_64__"
51d46ba9 23587fi
05783b55 23588 ;;
fc6ffb29
AJ
23589 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
23590echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
05783b55 23591if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
69b67861
SE
23592 echo $ECHO_N "(cached) $ECHO_C" >&6
23593else
23594 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
23595/* confdefs.h. */
23596_ACEOF
23597cat confdefs.h >>conftest.$ac_ext
23598cat >>conftest.$ac_ext <<_ACEOF
23599/* end confdefs.h. */
69b67861
SE
23600#ifndef __ALPHA__
23601yes
23602#endif
23603_ACEOF
23604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23605 $EGREP "yes" >/dev/null 2>&1; then
05783b55 23606 ac_cv_cpp_def___ALPHA__=yes
69b67861 23607else
05783b55 23608 ac_cv_cpp_def___ALPHA__=no
69b67861
SE
23609fi
23610rm -f conftest*
23611
23612fi
fc6ffb29
AJ
23613{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
23614echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
05783b55
AJ
23615if test $ac_cv_cpp_def___ALPHA__ = yes; then
23616 CFLAGS="$CFLAGS -D__ALPHA__"
23617 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
69b67861 23618fi
05783b55 23619 ;;
fc6ffb29
AJ
23620 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
23621echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
05783b55 23622if test "${ac_cv_cpp_def___sparc__+set}" = set; then
57807fa1
GM
23623 echo $ECHO_N "(cached) $ECHO_C" >&6
23624else
23625 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
23626/* confdefs.h. */
23627_ACEOF
23628cat confdefs.h >>conftest.$ac_ext
23629cat >>conftest.$ac_ext <<_ACEOF
23630/* end confdefs.h. */
57807fa1
GM
23631#ifndef __sparc__
23632yes
23633#endif
23634_ACEOF
23635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 23636 $EGREP "yes" >/dev/null 2>&1; then
05783b55 23637 ac_cv_cpp_def___sparc__=yes
57807fa1 23638else
05783b55 23639 ac_cv_cpp_def___sparc__=no
57807fa1
GM
23640fi
23641rm -f conftest*
23642
23643fi
fc6ffb29
AJ
23644{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
23645echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
05783b55
AJ
23646if test $ac_cv_cpp_def___sparc__ = yes; then
23647 CFLAGS="$CFLAGS -D__sparc__"
23648 LINTFLAGS="$LINTFLAGS -D__sparc__"
b64b7deb
PH
23649fi
23650 ;;
fc6ffb29
AJ
23651 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
23652echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
b64b7deb
PH
23653if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
23654 echo $ECHO_N "(cached) $ECHO_C" >&6
23655else
23656 cat >conftest.$ac_ext <<_ACEOF
b64b7deb
PH
23657/* confdefs.h. */
23658_ACEOF
23659cat confdefs.h >>conftest.$ac_ext
23660cat >>conftest.$ac_ext <<_ACEOF
23661/* end confdefs.h. */
23662#ifndef __powerpc__
23663yes
23664#endif
23665_ACEOF
23666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23667 $EGREP "yes" >/dev/null 2>&1; then
23668 ac_cv_cpp_def___powerpc__=yes
23669else
23670 ac_cv_cpp_def___powerpc__=no
23671fi
23672rm -f conftest*
23673
23674fi
fc6ffb29
AJ
23675{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
23676echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
b64b7deb
PH
23677if test $ac_cv_cpp_def___powerpc__ = yes; then
23678 CFLAGS="$CFLAGS -D__powerpc__"
23679 LINTFLAGS="$LINTFLAGS -D__powerpc__"
57807fa1 23680fi
05783b55
AJ
23681 ;;
23682esac
57807fa1
GM
23683
23684case $host_vendor in
fc6ffb29
AJ
23685 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
23686echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
05783b55 23687if test "${ac_cv_cpp_def___sun__+set}" = set; then
57807fa1
GM
23688 echo $ECHO_N "(cached) $ECHO_C" >&6
23689else
23690 cat >conftest.$ac_ext <<_ACEOF
e24bcc77
AJ
23691/* confdefs.h. */
23692_ACEOF
23693cat confdefs.h >>conftest.$ac_ext
23694cat >>conftest.$ac_ext <<_ACEOF
23695/* end confdefs.h. */
57807fa1
GM
23696#ifndef __sun__
23697yes
23698#endif
23699_ACEOF
23700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 23701 $EGREP "yes" >/dev/null 2>&1; then
05783b55 23702 ac_cv_cpp_def___sun__=yes
57807fa1 23703else
05783b55 23704 ac_cv_cpp_def___sun__=no
57807fa1
GM
23705fi
23706rm -f conftest*
23707
23708fi
fc6ffb29
AJ
23709{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
23710echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
05783b55
AJ
23711if test $ac_cv_cpp_def___sun__ = yes; then
23712 CFLAGS="$CFLAGS -D__sun__"
23713 LINTFLAGS="$LINTFLAGS -D__sun__"
57807fa1 23714fi
05783b55
AJ
23715 ;;
23716esac
57807fa1
GM
23717
23718
32ab895e
AJ
23719DEPENDENCIES="### Dependencies:
23720
8598a4c6
AJ
23721.INIT: Makefile
23722.BEGIN: Makefile
23723Makefile: dummy
23724 -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS)
23725
12c19620
AJ
23726\$(ALL_OBJS): \$(IDL_H_SRCS:.idl=.h)
23727\$(IDL_GEN_C_SRCS:.c=.o): \$(IDL_GEN_C_SRCS)
32ab895e
AJ
23728\$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c)
23729\$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)"
23730
23731
daa2886c
AJ
23732
23733
23734
c4704c2d
AJ
23735ac_config_commands="$ac_config_commands include/stamp-h"
23736
23737
7dfc4477 23738ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
89118568 23739
7dfc4477 23740ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
89118568 23741
1c60e3bf 23742ac_config_commands="$ac_config_commands dlls/kernel32/nls"
f5818d2f 23743
fc6ffb29 23744ac_config_commands="$ac_config_commands dlls/user/resources"
f5818d2f 23745
fc6ffb29 23746ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
f5818d2f 23747
fc6ffb29 23748ac_config_commands="$ac_config_commands include/wine"
f5818d2f 23749
f5818d2f
AJ
23750
23751MAKE_RULES=Make.rules
23752
daa2886c 23753
f5818d2f 23754MAKE_DLL_RULES=dlls/Makedll.rules
d0edc5fe 23755
daa2886c 23756
633b12d5
AJ
23757MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
23758
23759
edeee89c
AJ
23760MAKE_TEST_RULES=dlls/Maketest.rules
23761
23762
626f425b
AJ
23763MAKE_PROG_RULES=programs/Makeprog.rules
23764
daa2886c 23765
7dfc4477 23766ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/clusapi/Makefile dlls/comcat/Makefile dlls/comcat/tests/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/comdlg32/tests/Makefile dlls/compstui/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/cryptnet/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi32/Makefile dlls/gdi32/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hid/Makefile dlls/hlink/Makefile dlls/hlink/tests/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/infosoft/Makefile dlls/infosoft/tests/Makefile dlls/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel32/Makefile dlls/kernel32/tests/Makefile dlls/localspl/Makefile dlls/localspl/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/mscoree/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/nddeapi/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/pstorec/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/Makefile dlls/resutils/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/svrapi/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/uxtheme/tests/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wintrust/tests/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmd/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/oleview/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
daa2886c 23767
626f425b 23768
f5818d2f 23769cat >confcache <<\_ACEOF
e2991ea7
AJ
23770# This file is a shell script that caches the results of configure
23771# tests run on this system so they can be shared between configure
f5818d2f
AJ
23772# scripts and configure runs, see configure's option --config-cache.
23773# It is not useful on other systems. If it contains results you don't
23774# want to keep, you may remove or edit it.
e2991ea7 23775#
f5818d2f
AJ
23776# config.status only pays attention to the cache file if you give it
23777# the --recheck option to rerun configure.
e2991ea7 23778#
11af04e3 23779# `ac_cv_env_foo' variables (set or unset) will be overridden when
f5818d2f
AJ
23780# loading this file, other *unset* `ac_cv_foo' will be assigned the
23781# following values.
23782
23783_ACEOF
23784
7e6ae4ba
AJ
23785# The following way of writing the cache mishandles newlines in values,
23786# but we know of no workaround that is simple, portable, and efficient.
fc6ffb29 23787# So, we kill variables containing newlines.
e2991ea7
AJ
23788# Ultrix sh set writes to stderr and can't be redirected directly,
23789# and sets the high bit in the cache file unless we assign to the vars.
fc6ffb29
AJ
23790(
23791 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23792 eval ac_val=\$$ac_var
23793 case $ac_val in #(
23794 *${as_nl}*)
23795 case $ac_var in #(
23796 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23797echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23798 esac
23799 case $ac_var in #(
23800 _ | IFS | as_nl) ;; #(
23801 *) $as_unset $ac_var ;;
23802 esac ;;
23803 esac
23804 done
23805
f5818d2f 23806 (set) 2>&1 |
fc6ffb29
AJ
23807 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23808 *${as_nl}ac_space=\ *)
f5818d2f
AJ
23809 # `set' does not quote correctly, so add quotes (double-quote
23810 # substitution turns \\\\ into \\, and sed turns \\ into \).
23811 sed -n \
875927f6
AJ
23812 "s/'/'\\\\''/g;
23813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
fc6ffb29 23814 ;; #(
f5818d2f
AJ
23815 *)
23816 # `set' quotes correctly as required by POSIX, so do not add quotes.
fc6ffb29 23817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
f5818d2f 23818 ;;
fc6ffb29
AJ
23819 esac |
23820 sort
23821) |
f5818d2f 23822 sed '
fc6ffb29 23823 /^ac_cv_env_/b end
f5818d2f 23824 t clear
fc6ffb29 23825 :clear
f5818d2f
AJ
23826 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23827 t end
fc6ffb29
AJ
23828 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23829 :end' >>confcache
0ebeb530
JW
23830if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23831 if test -w "$cache_file"; then
fc6ffb29
AJ
23832 test "x$cache_file" != "x/dev/null" &&
23833 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23834echo "$as_me: updating cache $cache_file" >&6;}
f5818d2f 23835 cat confcache >$cache_file
e2991ea7 23836 else
fc6ffb29
AJ
23837 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23838echo "$as_me: not updating unwritable cache $cache_file" >&6;}
e2991ea7
AJ
23839 fi
23840fi
23841rm -f confcache
23842
e2991ea7
AJ
23843test "x$prefix" = xNONE && prefix=$ac_default_prefix
23844# Let make expand exec_prefix.
23845test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23846
18f92e76 23847DEFS=-DHAVE_CONFIG_H
e2991ea7 23848
11af04e3
AJ
23849ac_libobjs=
23850ac_ltlibobjs=
23851for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23852 # 1. Remove the extension, and $U if already installed.
fc6ffb29
AJ
23853 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23854 ac_i=`echo "$ac_i" | sed "$ac_script"`
23855 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23856 # will be set to the directory where LIBOBJS objects are built.
23857 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23858 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11af04e3
AJ
23859done
23860LIBOBJS=$ac_libobjs
23861
23862LTLIBOBJS=$ac_ltlibobjs
23863
23864
daa2886c 23865
e2991ea7 23866: ${CONFIG_STATUS=./config.status}
f5818d2f
AJ
23867ac_clean_files_save=$ac_clean_files
23868ac_clean_files="$ac_clean_files $CONFIG_STATUS"
daa2886c 23869{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
f5818d2f
AJ
23870echo "$as_me: creating $CONFIG_STATUS" >&6;}
23871cat >$CONFIG_STATUS <<_ACEOF
23872#! $SHELL
daa2886c 23873# Generated by $as_me.
e2991ea7 23874# Run this file to recreate the current configuration.
e2991ea7 23875# Compiler output produced by configure, useful for debugging
f5818d2f 23876# configure, is in config.log if it exists.
e2991ea7 23877
f5818d2f 23878debug=false
e24bcc77
AJ
23879ac_cs_recheck=false
23880ac_cs_silent=false
f5818d2f 23881SHELL=\${CONFIG_SHELL-$SHELL}
f5818d2f
AJ
23882_ACEOF
23883
23884cat >>$CONFIG_STATUS <<\_ACEOF
daa2886c
AJ
23885## --------------------- ##
23886## M4sh Initialization. ##
23887## --------------------- ##
23888
f5818d2f
AJ
23889# Be Bourne compatible
23890if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23891 emulate sh
23892 NULLCMD=:
11af04e3
AJ
23893 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23894 # is contrary to our usage. Disable this feature.
23895 alias -g '${1+"$@"}'='"$@"'
fc6ffb29
AJ
23896 setopt NO_GLOB_SUBST
23897else
23898 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
f5818d2f 23899fi
fc6ffb29 23900BIN_SH=xpg4; export BIN_SH # for Tru64
875927f6 23901DUALCASE=1; export DUALCASE # for MKS sh
f5818d2f 23902
fc6ffb29
AJ
23903
23904# PATH needs CR
23905# Avoid depending upon Character Ranges.
23906as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23907as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23908as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23909as_cr_digits='0123456789'
23910as_cr_alnum=$as_cr_Letters$as_cr_digits
23911
23912# The user is always right.
23913if test "${PATH_SEPARATOR+set}" != set; then
23914 echo "#! /bin/sh" >conf$$.sh
23915 echo "exit 0" >>conf$$.sh
23916 chmod +x conf$$.sh
23917 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23918 PATH_SEPARATOR=';'
23919 else
23920 PATH_SEPARATOR=:
23921 fi
23922 rm -f conf$$.sh
23923fi
23924
daa2886c 23925# Support unset when possible.
875927f6 23926if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
daa2886c
AJ
23927 as_unset=unset
23928else
23929 as_unset=false
23930fi
23931
11af04e3 23932
fc6ffb29
AJ
23933# IFS
23934# We need space, tab and new line, in precisely that order. Quoting is
23935# there to prevent editors from complaining about space-tab.
23936# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23937# splitting by setting IFS to empty value.)
23938as_nl='
23939'
23940IFS=" "" $as_nl"
23941
23942# Find who we are. Look in the path if we contain no directory separator.
23943case $0 in
23944 *[\\/]* ) as_myself=$0 ;;
23945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23946for as_dir in $PATH
23947do
23948 IFS=$as_save_IFS
23949 test -z "$as_dir" && as_dir=.
23950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23951done
23952IFS=$as_save_IFS
23953
23954 ;;
23955esac
23956# We did not find ourselves, most probably we were run as `sh COMMAND'
23957# in which case we are not to be found in the path.
23958if test "x$as_myself" = x; then
23959 as_myself=$0
23960fi
23961if test ! -f "$as_myself"; then
23962 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23963 { (exit 1); exit 1; }
23964fi
23965
11af04e3 23966# Work around bugs in pre-3.0 UWIN ksh.
fc6ffb29
AJ
23967for as_var in ENV MAIL MAILPATH
23968do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23969done
11af04e3
AJ
23970PS1='$ '
23971PS2='> '
23972PS4='+ '
23973
23974# NLS nuisances.
e24bcc77
AJ
23975for as_var in \
23976 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23977 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23978 LC_TELEPHONE LC_TIME
11af04e3 23979do
875927f6 23980 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11af04e3
AJ
23981 eval $as_var=C; export $as_var
23982 else
fc6ffb29 23983 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11af04e3
AJ
23984 fi
23985done
23986
23987# Required to use basename.
fc6ffb29
AJ
23988if expr a : '\(a\)' >/dev/null 2>&1 &&
23989 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11af04e3
AJ
23990 as_expr=expr
23991else
23992 as_expr=false
23993fi
23994
fc6ffb29 23995if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11af04e3
AJ
23996 as_basename=basename
23997else
23998 as_basename=false
23999fi
daa2886c
AJ
24000
24001
f5818d2f 24002# Name of the executable.
fc6ffb29 24003as_me=`$as_basename -- "$0" ||
daa2886c
AJ
24004$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24005 X"$0" : 'X\(//\)$' \| \
fc6ffb29 24006 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
daa2886c 24007echo X/"$0" |
fc6ffb29
AJ
24008 sed '/^.*\/\([^/][^/]*\)\/*$/{
24009 s//\1/
24010 q
24011 }
24012 /^X\/\(\/\/\)$/{
24013 s//\1/
24014 q
24015 }
24016 /^X\/\(\/\).*/{
24017 s//\1/
24018 q
24019 }
24020 s/.*/./; q'`
daa2886c 24021
fc6ffb29
AJ
24022# CDPATH.
24023$as_unset CDPATH
11af04e3 24024
daa2886c
AJ
24025
24026
24027 as_lineno_1=$LINENO
24028 as_lineno_2=$LINENO
daa2886c 24029 test "x$as_lineno_1" != "x$as_lineno_2" &&
fc6ffb29 24030 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
daa2886c
AJ
24031
24032 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24033 # uniformly replaced by the line number. The first 'sed' inserts a
fc6ffb29
AJ
24034 # line-number line after each line using $LINENO; the second 'sed'
24035 # does the real work. The second script uses 'N' to pair each
24036 # line-number line with the line containing $LINENO, and appends
24037 # trailing '-' during substitution so that $LINENO is not a special
24038 # case at line end.
daa2886c 24039 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
fc6ffb29
AJ
24040 # scripts with optimization help from Paolo Bonzini. Blame Lee
24041 # E. McMahon (1931-1989) for sed's syntax. :-)
24042 sed -n '
24043 p
24044 /[$]LINENO/=
24045 ' <$as_myself |
daa2886c 24046 sed '
fc6ffb29
AJ
24047 s/[$]LINENO.*/&-/
24048 t lineno
24049 b
24050 :lineno
daa2886c 24051 N
fc6ffb29
AJ
24052 :loop
24053 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
daa2886c 24054 t loop
fc6ffb29 24055 s/-\n.*//
daa2886c 24056 ' >$as_me.lineno &&
fc6ffb29
AJ
24057 chmod +x "$as_me.lineno" ||
24058 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
daa2886c
AJ
24059 { (exit 1); exit 1; }; }
24060
24061 # Don't try to exec as it changes $[0], causing all sort of problems
24062 # (the dirname of $[0] is not the place where we might find the
fc6ffb29
AJ
24063 # original and so on. Autoconf is especially sensitive to this).
24064 . "./$as_me.lineno"
daa2886c
AJ
24065 # Exit status is that of the last command.
24066 exit
24067}
24068
24069
0ebeb530 24070if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
fc6ffb29
AJ
24071 as_dirname=dirname
24072else
24073 as_dirname=false
24074fi
24075
24076ECHO_C= ECHO_N= ECHO_T=
24077case `echo -n x` in
24078-n*)
24079 case `echo 'x\c'` in
24080 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24081 *) ECHO_C='\c';;
24082 esac;;
24083*)
24084 ECHO_N='-n';;
daa2886c 24085esac
f5818d2f 24086
fc6ffb29
AJ
24087if expr a : '\(a\)' >/dev/null 2>&1 &&
24088 test "X`expr 00001 : '.*\(...\)'`" = X001; then
f5818d2f
AJ
24089 as_expr=expr
24090else
24091 as_expr=false
24092fi
24093
24094rm -f conf$$ conf$$.exe conf$$.file
fc6ffb29
AJ
24095if test -d conf$$.dir; then
24096 rm -f conf$$.dir/conf$$.file
24097else
24098 rm -f conf$$.dir
24099 mkdir conf$$.dir
24100fi
f5818d2f
AJ
24101echo >conf$$.file
24102if ln -s conf$$.file conf$$ 2>/dev/null; then
fc6ffb29
AJ
24103 as_ln_s='ln -s'
24104 # ... but there are two gotchas:
24105 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24106 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24107 # In both cases, we have to default to `cp -p'.
24108 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
f5818d2f 24109 as_ln_s='cp -p'
f5818d2f
AJ
24110elif ln conf$$.file conf$$ 2>/dev/null; then
24111 as_ln_s=ln
24112else
24113 as_ln_s='cp -p'
24114fi
fc6ffb29
AJ
24115rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24116rmdir conf$$.dir 2>/dev/null
f5818d2f 24117
11af04e3
AJ
24118if mkdir -p . 2>/dev/null; then
24119 as_mkdir_p=:
24120else
875927f6 24121 test -d ./-p && rmdir ./-p
11af04e3
AJ
24122 as_mkdir_p=false
24123fi
24124
fc6ffb29
AJ
24125# Find out whether ``test -x'' works. Don't use a zero-byte file, as
24126# systems may use methods other than mode bits to determine executability.
24127cat >conf$$.file <<_ASEOF
24128#! /bin/sh
24129exit 0
24130_ASEOF
24131chmod +x conf$$.file
24132if test -x conf$$.file >/dev/null 2>&1; then
24133 as_executable_p="test -x"
24134else
24135 as_executable_p=:
24136fi
24137rm -f conf$$.file
f5818d2f 24138
daa2886c 24139# Sed expression to map a string onto a valid CPP name.
875927f6 24140as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
daa2886c
AJ
24141
24142# Sed expression to map a string onto a valid variable name.
875927f6 24143as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
f5818d2f 24144
f5818d2f 24145
f5818d2f
AJ
24146exec 6>&1
24147
fc6ffb29 24148# Save the log message, to keep $[0] and so on meaningful, and to
daa2886c 24149# report actual input values of CONFIG_FILES etc. instead of their
fc6ffb29
AJ
24150# values after options handling.
24151ac_log="
7affdd4c 24152This file was extended by Wine $as_me 0.9.23, which was
f5f37a85 24153generated by GNU Autoconf 2.60a. Invocation command line was
daa2886c
AJ
24154
24155 CONFIG_FILES = $CONFIG_FILES
24156 CONFIG_HEADERS = $CONFIG_HEADERS
24157 CONFIG_LINKS = $CONFIG_LINKS
24158 CONFIG_COMMANDS = $CONFIG_COMMANDS
24159 $ $0 $@
24160
fc6ffb29
AJ
24161on `(hostname || uname -n) 2>/dev/null | sed 1q`
24162"
24163
f5818d2f
AJ
24164_ACEOF
24165
fc6ffb29 24166cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f 24167# Files that config.status was made for.
fc6ffb29
AJ
24168config_files="$ac_config_files"
24169config_headers="$ac_config_headers"
24170config_commands="$ac_config_commands"
f5818d2f 24171
fc6ffb29 24172_ACEOF
f5818d2f 24173
daa2886c 24174cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
24175ac_cs_usage="\
24176\`$as_me' instantiates files from templates according to the
24177current configuration.
24178
24179Usage: $0 [OPTIONS] [FILE]...
24180
24181 -h, --help print this help, then exit
78bd1948 24182 -V, --version print version number and configuration settings, then exit
e24bcc77 24183 -q, --quiet do not print progress messages
f5818d2f
AJ
24184 -d, --debug don't remove temporary files
24185 --recheck update $as_me by reconfiguring in the same conditions
24186 --file=FILE[:TEMPLATE]
875927f6 24187 instantiate the configuration file FILE
f5818d2f 24188 --header=FILE[:TEMPLATE]
875927f6 24189 instantiate the configuration header FILE
f5818d2f
AJ
24190
24191Configuration files:
24192$config_files
24193
24194Configuration headers:
24195$config_headers
24196
24197Configuration commands:
24198$config_commands
24199
24200Report bugs to <bug-autoconf@gnu.org>."
f5818d2f 24201
fc6ffb29 24202_ACEOF
daa2886c 24203cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f 24204ac_cs_version="\\
7affdd4c 24205Wine config.status 0.9.23
f5f37a85 24206configured by $0, generated by GNU Autoconf 2.60a,
0ebeb530 24207 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
f5818d2f 24208
fc6ffb29 24209Copyright (C) 2006 Free Software Foundation, Inc.
f5818d2f
AJ
24210This config.status script is free software; the Free Software Foundation
24211gives unlimited permission to copy, distribute and modify it."
fc6ffb29
AJ
24212
24213ac_pwd='$ac_pwd'
24214srcdir='$srcdir'
24215INSTALL='$INSTALL'
daa2886c 24216_ACEOF
f5818d2f 24217
daa2886c 24218cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
24219# If no file are specified by the user, then we need to provide default
24220# value. By we need to know if files were specified by the user.
24221ac_need_defaults=:
24222while test $# != 0
e2991ea7 24223do
f5818d2f
AJ
24224 case $1 in
24225 --*=*)
fc6ffb29
AJ
24226 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24227 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11af04e3
AJ
24228 ac_shift=:
24229 ;;
fc6ffb29 24230 *)
11af04e3
AJ
24231 ac_option=$1
24232 ac_optarg=$2
24233 ac_shift=shift
f5818d2f 24234 ;;
f5818d2f
AJ
24235 esac
24236
11af04e3 24237 case $ac_option in
f5818d2f 24238 # Handling of the options.
e24bcc77
AJ
24239 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24240 ac_cs_recheck=: ;;
fc6ffb29
AJ
24241 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24242 echo "$ac_cs_version"; exit ;;
24243 --debug | --debu | --deb | --de | --d | -d )
f5818d2f
AJ
24244 debug=: ;;
24245 --file | --fil | --fi | --f )
11af04e3
AJ
24246 $ac_shift
24247 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
f5818d2f
AJ
24248 ac_need_defaults=false;;
24249 --header | --heade | --head | --hea )
11af04e3
AJ
24250 $ac_shift
24251 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
f5818d2f 24252 ac_need_defaults=false;;
fc6ffb29
AJ
24253 --he | --h)
24254 # Conflict between --help and --header
24255 { echo "$as_me: error: ambiguous option: $1
24256Try \`$0 --help' for more information." >&2
24257 { (exit 1); exit 1; }; };;
24258 --help | --hel | -h )
24259 echo "$ac_cs_usage"; exit ;;
e24bcc77
AJ
24260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24261 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24262 ac_cs_silent=: ;;
f5818d2f
AJ
24263
24264 # This is an error.
fc6ffb29
AJ
24265 -*) { echo "$as_me: error: unrecognized option: $1
24266Try \`$0 --help' for more information." >&2
f5818d2f
AJ
24267 { (exit 1); exit 1; }; } ;;
24268
fc6ffb29
AJ
24269 *) ac_config_targets="$ac_config_targets $1"
24270 ac_need_defaults=false ;;
f5818d2f 24271
e2991ea7 24272 esac
f5818d2f 24273 shift
e2991ea7
AJ
24274done
24275
e24bcc77
AJ
24276ac_configure_extra_args=
24277
24278if $ac_cs_silent; then
24279 exec 6>/dev/null
24280 ac_configure_extra_args="$ac_configure_extra_args --silent"
24281fi
24282
24283_ACEOF
24284cat >>$CONFIG_STATUS <<_ACEOF
24285if \$ac_cs_recheck; then
0ebeb530 24286 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
fc6ffb29
AJ
24287 CONFIG_SHELL=$SHELL
24288 export CONFIG_SHELL
0ebeb530 24289 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
e24bcc77
AJ
24290fi
24291
f5818d2f 24292_ACEOF
fc6ffb29
AJ
24293cat >>$CONFIG_STATUS <<\_ACEOF
24294exec 5>>config.log
24295{
24296 echo
24297 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24298## Running $as_me. ##
24299_ASBOX
24300 echo "$ac_log"
24301} >&5
e2991ea7 24302
fc6ffb29
AJ
24303_ACEOF
24304cat >>$CONFIG_STATUS <<_ACEOF
24305_ACEOF
daa2886c
AJ
24306
24307cat >>$CONFIG_STATUS <<\_ACEOF
fc6ffb29
AJ
24308
24309# Handling of arguments.
f5818d2f
AJ
24310for ac_config_target in $ac_config_targets
24311do
fc6ffb29
AJ
24312 case $ac_config_target in
24313 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
c4704c2d 24314 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
7dfc4477
AJ
24315 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
24316 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
1c60e3bf 24317 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
fc6ffb29
AJ
24318 "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
24319 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
24320 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
24321 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
24322 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
24323 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
24324 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
fc6ffb29
AJ
24325 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
24326 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24327 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
24328 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
24329 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
24330 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
24331 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
24332 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
24333 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
24334 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
24335 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
24336 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
24337 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
24338 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
24339 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
24340 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
24341 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
493bc6b8 24342 "dlls/clusapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/clusapi/Makefile" ;;
fc6ffb29 24343 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
9c3b12bd 24344 "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
fc6ffb29
AJ
24345 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
24346 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
24347 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
955fe0da 24348 "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
5640b56e 24349 "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
fc6ffb29
AJ
24350 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
24351 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
24352 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
24353 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
d2ee3872 24354 "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
fc6ffb29
AJ
24355 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
24356 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
24357 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
24358 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
24359 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
24360 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
24361 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
24362 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
24363 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
24364 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
24365 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
24366 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
24367 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
24368 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
24369 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
24370 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
24371 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
24372 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
24373 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
24374 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
24375 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
24376 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
24377 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
24378 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
24379 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
24380 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
24381 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
24382 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
24383 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
24384 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
24385 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
24386 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
24387 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
24388 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
24389 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
24390 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
24391 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
24392 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
24393 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
7dfc4477
AJ
24394 "dlls/gdi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/Makefile" ;;
24395 "dlls/gdi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/tests/Makefile" ;;
fc6ffb29
AJ
24396 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
24397 "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
24398 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
24399 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
b89cafaf 24400 "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
b732e9b4 24401 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
a430db9e 24402 "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
fc6ffb29
AJ
24403 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
24404 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
24405 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
24406 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
24407 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
24408 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
4d3877b6 24409 "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
b5871fa5 24410 "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
4d3877b6 24411 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
fc6ffb29
AJ
24412 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
24413 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
24414 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
489d87d1
AJ
24415 "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;;
24416 "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;;
2198d836 24417 "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;;
ecb97fc2 24418 "dlls/localspl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/tests/Makefile" ;;
fc6ffb29
AJ
24419 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
24420 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
24421 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
24422 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
24423 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
24424 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
24425 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
24426 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
24427 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
24428 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
24429 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
24430 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
24431 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
24432 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
24433 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
24434 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
24435 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
24436 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
24437 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
24438 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
24439 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
4fe6c3fa 24440 "dlls/mscoree/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscoree/Makefile" ;;
fc6ffb29
AJ
24441 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
24442 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
24443 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
24444 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
24445 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
24446 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
24447 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
24448 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
24449 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
24450 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
24451 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
24452 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
24453 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
24454 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
24455 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
24456 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
24457 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
24458 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
24459 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
24460 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
24461 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
24462 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
0b4eafad 24463 "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;;
fc6ffb29
AJ
24464 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
24465 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
24466 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
24467 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
24468 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
24469 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
24470 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
24471 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
24472 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
24473 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
24474 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
24475 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
24476 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
24477 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
24478 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
24479 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
24480 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
24481 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
24482 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
24483 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
24484 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
24485 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
acb7f8ab 24486 "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
fc6ffb29
AJ
24487 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
24488 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
24489 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
defbc49b 24490 "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
fc6ffb29 24491 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
3ac07aa0 24492 "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;;
fc6ffb29
AJ
24493 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
24494 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
24495 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
24496 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
24497 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
24498 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
24499 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
24500 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
24501 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
24502 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
24503 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
24504 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
24505 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
24506 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
24507 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
24508 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
24509 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
24510 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
24511 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
24512 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
24513 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
24514 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
24515 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
24516 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
24517 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
24518 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
24519 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
24520 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
24521 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
24522 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
24523 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
bb497631 24524 "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;;
fc6ffb29
AJ
24525 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
24526 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
24527 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
24528 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
24529 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
24530 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
24531 "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
24532 "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
a6ea0f61 24533 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
fc6ffb29
AJ
24534 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
24535 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
24536 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
24537 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
569a452d 24538 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
fc6ffb29
AJ
24539 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
24540 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
24541 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
24542 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
24543 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
24544 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
24545 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
24546 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
24547 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
24548 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
24549 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
24550 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
24551 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
24552 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
24553 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
bdb4fab7 24554 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
fc6ffb29
AJ
24555 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
24556 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
24557 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
24558 "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
24559 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
24560 "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
24561 "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
24562 "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
144a5353 24563 "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
fc6ffb29
AJ
24564 "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
24565 "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
24566 "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
24567 "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
24568 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
24569 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
24570 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
24571 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
24572 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
95bb9032 24573 "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
fc6ffb29
AJ
24574 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
24575 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
24576 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
24577 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
24578 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
24579 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
24580 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
fc6ffb29
AJ
24581 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
24582 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
24583 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24584 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
24585 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
fc6ffb29
AJ
24586 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
24587 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
24588 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
24589 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
24590 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
39857443 24591 "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
fc6ffb29
AJ
24592 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
24593 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
24594 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
24595 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
24596 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
24597 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
24598 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
24599 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
24600 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
24601 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
68f590cf 24602 "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
fc6ffb29
AJ
24603 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
24604 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
24605 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
24606 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
24607 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
24608 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
24609 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
24610 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
24611 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
fc6ffb29
AJ
24612 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
24613 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
24614 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
24615 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
24616 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
24617 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
24618 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
24619 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
24620 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
24621 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
24622 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
24623 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
24624 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
24625 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
24626 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
24627 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
24628 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
fc6ffb29
AJ
24629 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
24630 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
24631 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
24632 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
24633 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
24634
daa2886c 24635 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
f5818d2f
AJ
24636echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24637 { (exit 1); exit 1; }; };;
24638 esac
24639done
24640
fc6ffb29 24641
f5818d2f
AJ
24642# If the user did not use the arguments to specify the items to instantiate,
24643# then the envvar interface is used. Set only those that are not.
24644# We use the long form for the default assignment because of an extremely
24645# bizarre bug on SunOS 4.1.3.
24646if $ac_need_defaults; then
24647 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24648 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24649 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24650fi
24651
e24bcc77 24652# Have a temporary directory for convenience. Make it in the build tree
fc6ffb29 24653# simply because there is no reason against having it here, and in addition,
e24bcc77 24654# creating and moving files from /tmp can sometimes cause problems.
fc6ffb29
AJ
24655# Hook for its removal unless debugging.
24656# Note that there is a small window in which the directory will not be cleaned:
24657# after its creation but before its name has been assigned to `$tmp'.
f5818d2f
AJ
24658$debug ||
24659{
fc6ffb29
AJ
24660 tmp=
24661 trap 'exit_status=$?
24662 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24663' 0
f5818d2f
AJ
24664 trap '{ (exit 1); exit 1; }' 1 2 13 15
24665}
f5818d2f 24666# Create a (secure) tmp directory for tmp files.
e24bcc77 24667
f5818d2f 24668{
fc6ffb29 24669 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
f5818d2f
AJ
24670 test -n "$tmp" && test -d "$tmp"
24671} ||
24672{
fc6ffb29
AJ
24673 tmp=./conf$$-$RANDOM
24674 (umask 077 && mkdir "$tmp")
f5818d2f
AJ
24675} ||
24676{
e24bcc77 24677 echo "$me: cannot create a temporary directory in ." >&2
f5818d2f
AJ
24678 { (exit 1); exit 1; }
24679}
24680
f5818d2f 24681#
fc6ffb29 24682# Set up the sed scripts for CONFIG_FILES section.
f5818d2f
AJ
24683#
24684
24685# No need to generate the scripts if there are no CONFIG_FILES.
24686# This happens for instance when ./config.status config.h
fc6ffb29
AJ
24687if test -n "$CONFIG_FILES"; then
24688
24689_ACEOF
24690
24691# Create sed commands to just substitute file output variables.
24692
24693# Remaining file output variables are in a fragment that also has non-file
24694# output varibles.
24695
24696
24697
24698ac_delim='%!_!# '
24699for ac_last_try in false false false false false :; do
24700 cat >conf$$subs.sed <<_ACEOF
24701SHELL!$SHELL$ac_delim
24702PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24703PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24704PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24705PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24706PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24707PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24708exec_prefix!$exec_prefix$ac_delim
24709prefix!$prefix$ac_delim
24710program_transform_name!$program_transform_name$ac_delim
24711bindir!$bindir$ac_delim
24712sbindir!$sbindir$ac_delim
24713libexecdir!$libexecdir$ac_delim
24714datarootdir!$datarootdir$ac_delim
24715datadir!$datadir$ac_delim
24716sysconfdir!$sysconfdir$ac_delim
24717sharedstatedir!$sharedstatedir$ac_delim
24718localstatedir!$localstatedir$ac_delim
24719includedir!$includedir$ac_delim
24720oldincludedir!$oldincludedir$ac_delim
24721docdir!$docdir$ac_delim
24722infodir!$infodir$ac_delim
24723htmldir!$htmldir$ac_delim
24724dvidir!$dvidir$ac_delim
24725pdfdir!$pdfdir$ac_delim
24726psdir!$psdir$ac_delim
24727libdir!$libdir$ac_delim
24728localedir!$localedir$ac_delim
24729mandir!$mandir$ac_delim
24730DEFS!$DEFS$ac_delim
24731ECHO_C!$ECHO_C$ac_delim
24732ECHO_N!$ECHO_N$ac_delim
24733ECHO_T!$ECHO_T$ac_delim
24734LIBS!$LIBS$ac_delim
24735build_alias!$build_alias$ac_delim
24736host_alias!$host_alias$ac_delim
24737target_alias!$target_alias$ac_delim
24738build!$build$ac_delim
24739build_cpu!$build_cpu$ac_delim
24740build_vendor!$build_vendor$ac_delim
24741build_os!$build_os$ac_delim
24742host!$host$ac_delim
24743host_cpu!$host_cpu$ac_delim
24744host_vendor!$host_vendor$ac_delim
24745host_os!$host_os$ac_delim
24746WIN16_FILES!$WIN16_FILES$ac_delim
24747WIN16_INSTALL!$WIN16_INSTALL$ac_delim
24748SET_MAKE!$SET_MAKE$ac_delim
24749CC!$CC$ac_delim
24750CFLAGS!$CFLAGS$ac_delim
24751LDFLAGS!$LDFLAGS$ac_delim
24752CPPFLAGS!$CPPFLAGS$ac_delim
24753ac_ct_CC!$ac_ct_CC$ac_delim
24754EXEEXT!$EXEEXT$ac_delim
24755OBJEXT!$OBJEXT$ac_delim
24756CXX!$CXX$ac_delim
24757CXXFLAGS!$CXXFLAGS$ac_delim
24758ac_ct_CXX!$ac_ct_CXX$ac_delim
24759CPPBIN!$CPPBIN$ac_delim
24760TOOLSDIR!$TOOLSDIR$ac_delim
24761XMKMF!$XMKMF$ac_delim
24762CPP!$CPP$ac_delim
24763X_CFLAGS!$X_CFLAGS$ac_delim
24764X_PRE_LIBS!$X_PRE_LIBS$ac_delim
24765X_LIBS!$X_LIBS$ac_delim
24766X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
24767LEX!$LEX$ac_delim
24768LEXLIB!$LEXLIB$ac_delim
24769LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
24770XLEX!$XLEX$ac_delim
24771BISON!$BISON$ac_delim
24772AS!$AS$ac_delim
24773ac_ct_AS!$ac_ct_AS$ac_delim
24774LD!$LD$ac_delim
24775AR!$AR$ac_delim
24776RANLIB!$RANLIB$ac_delim
24777STRIP!$STRIP$ac_delim
24778WINDRES!$WINDRES$ac_delim
24779LN_S!$LN_S$ac_delim
fdfc24ca
AJ
24780LN!$LN$ac_delim
24781GREP!$GREP$ac_delim
24782EGREP!$EGREP$ac_delim
fc6ffb29
AJ
24783_ACEOF
24784
fdfc24ca 24785 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
fc6ffb29
AJ
24786 break
24787 elif $ac_last_try; then
24788 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24789echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24790 { (exit 1); exit 1; }; }
24791 else
24792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
da0cfb36 24793 fi
fc6ffb29
AJ
24794done
24795
0ebeb530
JW
24796ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24797if test -n "$ac_eof"; then
24798 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24799 ac_eof=`expr $ac_eof + 1`
fc6ffb29
AJ
24800fi
24801
24802cat >>$CONFIG_STATUS <<_ACEOF
24803cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24804/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24805/^[ ]*@MAKE_RULES@[ ]*$/{
24806r $MAKE_RULES
24807d
24808}
24809/^[ ]*@MAKE_DLL_RULES@[ ]*$/{
24810r $MAKE_DLL_RULES
24811d
24812}
24813/^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
24814r $MAKE_IMPLIB_RULES
24815d
24816}
24817/^[ ]*@MAKE_TEST_RULES@[ ]*$/{
24818r $MAKE_TEST_RULES
24819d
24820}
fc6ffb29
AJ
24821/^[ ]*@MAKE_PROG_RULES@[ ]*$/{
24822r $MAKE_PROG_RULES
24823d
24824}
24825_ACEOF
24826sed '
24827s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24828s/^/s,@/; s/!/@,|#_!!_#|/
24829:n
24830t n
24831s/'"$ac_delim"'$/,g/; t
24832s/$/\\/; p
24833N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24834' >>$CONFIG_STATUS <conf$$subs.sed
24835rm -f conf$$subs.sed
24836cat >>$CONFIG_STATUS <<_ACEOF
24837CEOF$ac_eof
24838_ACEOF
24839
24840
24841ac_delim='%!_!# '
24842for ac_last_try in false false false false false :; do
24843 cat >conf$$subs.sed <<_ACEOF
fc6ffb29
AJ
24844LDCONFIG!$LDCONFIG$ac_delim
24845INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24846INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24847INSTALL_DATA!$INSTALL_DATA$ac_delim
24848LINT!$LINT$ac_delim
24849LINTFLAGS!$LINTFLAGS$ac_delim
24850FONTFORGE!$FONTFORGE$ac_delim
24851PKG_CONFIG!$PKG_CONFIG$ac_delim
24852PRELINK!$PRELINK$ac_delim
24853LIBPTHREAD!$LIBPTHREAD$ac_delim
24854XLIB!$XLIB$ac_delim
24855XFILES!$XFILES$ac_delim
24856OPENGLFILES!$OPENGLFILES$ac_delim
24857GLU32FILES!$GLU32FILES$ac_delim
24858OPENGL_LIBS!$OPENGL_LIBS$ac_delim
24859GLUT_LIBS!$GLUT_LIBS$ac_delim
24860GLUT32FILES!$GLUT32FILES$ac_delim
24861NASLIBS!$NASLIBS$ac_delim
24862XML2LIBS!$XML2LIBS$ac_delim
24863XML2INCL!$XML2INCL$ac_delim
24864XSLTLIBS!$XSLTLIBS$ac_delim
24865XSLTINCL!$XSLTINCL$ac_delim
24866HALINCL!$HALINCL$ac_delim
24867CURSESLIBS!$CURSESLIBS$ac_delim
24868sane_devel!$sane_devel$ac_delim
24869SANELIBS!$SANELIBS$ac_delim
24870SANEINCL!$SANEINCL$ac_delim
24871gphoto2_devel!$gphoto2_devel$ac_delim
24872gphoto2port_devel!$gphoto2port_devel$ac_delim
24873GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
24874GPHOTO2INCL!$GPHOTO2INCL$ac_delim
24875ICULIBS!$ICULIBS$ac_delim
24876RESOLVLIBS!$RESOLVLIBS$ac_delim
24877LCMSLIBS!$LCMSLIBS$ac_delim
24878LDAPLIBS!$LDAPLIBS$ac_delim
24879FREETYPELIBS!$FREETYPELIBS$ac_delim
24880FREETYPEINCL!$FREETYPEINCL$ac_delim
24881ft_devel!$ft_devel$ac_delim
24882ft_devel2!$ft_devel2$ac_delim
24883FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
24884ARTSCCONFIG!$ARTSCCONFIG$ac_delim
24885ARTSLIBS!$ARTSLIBS$ac_delim
24886ARTSINCL!$ARTSINCL$ac_delim
24887ESDCONFIG!$ESDCONFIG$ac_delim
24888ESDLIBS!$ESDLIBS$ac_delim
24889ESDINCL!$ESDINCL$ac_delim
24890ALSALIBS!$ALSALIBS$ac_delim
24891AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
24892EXTRACFLAGS!$EXTRACFLAGS$ac_delim
24893BUILTINFLAG!$BUILTINFLAG$ac_delim
24894DLLEXT!$DLLEXT$ac_delim
24895DLLFLAGS!$DLLFLAGS$ac_delim
fc6ffb29
AJ
24896LDSHARED!$LDSHARED$ac_delim
24897LDDLLFLAGS!$LDDLLFLAGS$ac_delim
24898LIBEXT!$LIBEXT$ac_delim
24899IMPLIBEXT!$IMPLIBEXT$ac_delim
13a93b4a 24900LIBWINE_LDFLAGS!$LIBWINE_LDFLAGS$ac_delim
fc6ffb29
AJ
24901DLLTOOL!$DLLTOOL$ac_delim
24902DLLWRAP!$DLLWRAP$ac_delim
fc6ffb29
AJ
24903COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
24904IOKITLIB!$IOKITLIB$ac_delim
6735eb2e 24905DISKARBITRATIONLIB!$DISKARBITRATIONLIB$ac_delim
42b81ea0 24906LDEXECFLAGS!$LDEXECFLAGS$ac_delim
144a5353 24907COREAUDIO!$COREAUDIO$ac_delim
fc6ffb29
AJ
24908CROSSTEST!$CROSSTEST$ac_delim
24909CROSSCC!$CROSSCC$ac_delim
24910CROSSWINDRES!$CROSSWINDRES$ac_delim
24911LDPATH!$LDPATH$ac_delim
24912CRTLIBS!$CRTLIBS$ac_delim
24913SOCKETLIBS!$SOCKETLIBS$ac_delim
24914MAIN_BINARY!$MAIN_BINARY$ac_delim
24915EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
24916LDD!$LDD$ac_delim
e533e972 24917LIBDL!$LIBDL$ac_delim
1089260f 24918LIBPOLL!$LIBPOLL$ac_delim
32ab895e 24919DEPENDENCIES!$DEPENDENCIES$ac_delim
fc6ffb29
AJ
24920LIBOBJS!$LIBOBJS$ac_delim
24921LTLIBOBJS!$LTLIBOBJS$ac_delim
24922_ACEOF
24923
6735eb2e 24924 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then
fc6ffb29
AJ
24925 break
24926 elif $ac_last_try; then
24927 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24928echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24929 { (exit 1); exit 1; }; }
24930 else
24931 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24932 fi
24933done
24934
0ebeb530
JW
24935ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24936if test -n "$ac_eof"; then
24937 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24938 ac_eof=`expr $ac_eof + 1`
fc6ffb29 24939fi
da0cfb36 24940
fc6ffb29
AJ
24941cat >>$CONFIG_STATUS <<_ACEOF
24942cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24943/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24944_ACEOF
24945sed '
24946s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24947s/^/s,@/; s/!/@,|#_!!_#|/
24948:n
24949t n
24950s/'"$ac_delim"'$/,g/; t
24951s/$/\\/; p
24952N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24953' >>$CONFIG_STATUS <conf$$subs.sed
24954rm -f conf$$subs.sed
24955cat >>$CONFIG_STATUS <<_ACEOF
24956:end
24957s/|#_!!_#|//g
24958CEOF$ac_eof
daa2886c 24959_ACEOF
fc6ffb29
AJ
24960
24961
24962# VPATH may cause trouble with some makes, so we remove $(srcdir),
24963# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24964# trailing colons and then remove the whole line if VPATH becomes empty
24965# (actually we leave an empty line to preserve line numbers).
24966if test "x$srcdir" = x.; then
24967 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24968s/:*\$(srcdir):*/:/
24969s/:*\${srcdir}:*/:/
24970s/:*@srcdir@:*/:/
24971s/^\([^=]*=[ ]*\):*/\1/
24972s/:*$//
24973s/^[^=]*=[ ]*$//
24974}'
24975fi
24976
daa2886c 24977cat >>$CONFIG_STATUS <<\_ACEOF
fc6ffb29
AJ
24978fi # test -n "$CONFIG_FILES"
24979
24980
24981for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24982do
24983 case $ac_tag in
24984 :[FHLC]) ac_mode=$ac_tag; continue;;
24985 esac
24986 case $ac_mode$ac_tag in
24987 :[FHL]*:*);;
24988 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24989echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24990 { (exit 1); exit 1; }; };;
24991 :[FH]-) ac_tag=-:-;;
24992 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
e2991ea7 24993 esac
fc6ffb29
AJ
24994 ac_save_IFS=$IFS
24995 IFS=:
24996 set x $ac_tag
24997 IFS=$ac_save_IFS
24998 shift
24999 ac_file=$1
25000 shift
e2991ea7 25001
fc6ffb29
AJ
25002 case $ac_mode in
25003 :L) ac_source=$1;;
25004 :[FH])
25005 ac_file_inputs=
25006 for ac_f
25007 do
25008 case $ac_f in
25009 -) ac_f="$tmp/stdin";;
25010 *) # Look for the file first in the build tree, then in the source tree
25011 # (if the path is not absolute). The absolute path cannot be DOS-style,
25012 # because $ac_f cannot contain `:'.
25013 test -f "$ac_f" ||
25014 case $ac_f in
25015 [\\/$]*) false;;
25016 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25017 esac ||
25018 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25019echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25020 { (exit 1); exit 1; }; };;
25021 esac
25022 ac_file_inputs="$ac_file_inputs $ac_f"
25023 done
25024
25025 # Let's still pretend it is `configure' which instantiates (i.e., don't
25026 # use $as_me), people would be surprised to read:
25027 # /* config.h. Generated by config.status. */
25028 configure_input="Generated from "`IFS=:
25029 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25030 if test x"$ac_file" != x-; then
25031 configure_input="$ac_file. $configure_input"
25032 { echo "$as_me:$LINENO: creating $ac_file" >&5
25033echo "$as_me: creating $ac_file" >&6;}
25034 fi
25035
25036 case $ac_tag in
25037 *:-:* | *:-) cat >"$tmp/stdin";;
25038 esac
25039 ;;
25040 esac
25041
25042 ac_dir=`$as_dirname -- "$ac_file" ||
daa2886c 25043$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875927f6
AJ
25044 X"$ac_file" : 'X\(//\)[^/]' \| \
25045 X"$ac_file" : 'X\(//\)$' \| \
fc6ffb29 25046 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
f5818d2f 25047echo X"$ac_file" |
fc6ffb29
AJ
25048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25049 s//\1/
25050 q
25051 }
25052 /^X\(\/\/\)[^/].*/{
25053 s//\1/
25054 q
25055 }
25056 /^X\(\/\/\)$/{
25057 s//\1/
25058 q
25059 }
25060 /^X\(\/\).*/{
25061 s//\1/
25062 q
25063 }
25064 s/.*/./; q'`
25065 { as_dir="$ac_dir"
25066 case $as_dir in #(
25067 -*) as_dir=./$as_dir;;
25068 esac
25069 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11af04e3 25070 as_dirs=
fc6ffb29
AJ
25071 while :; do
25072 case $as_dir in #(
25073 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25074 *) as_qdir=$as_dir;;
25075 esac
25076 as_dirs="'$as_qdir' $as_dirs"
25077 as_dir=`$as_dirname -- "$as_dir" ||
11af04e3 25078$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875927f6
AJ
25079 X"$as_dir" : 'X\(//\)[^/]' \| \
25080 X"$as_dir" : 'X\(//\)$' \| \
fc6ffb29 25081 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11af04e3 25082echo X"$as_dir" |
fc6ffb29
AJ
25083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25084 s//\1/
25085 q
25086 }
25087 /^X\(\/\/\)[^/].*/{
25088 s//\1/
25089 q
25090 }
25091 /^X\(\/\/\)$/{
25092 s//\1/
25093 q
25094 }
25095 /^X\(\/\).*/{
25096 s//\1/
25097 q
25098 }
25099 s/.*/./; q'`
25100 test -d "$as_dir" && break
11af04e3 25101 done
fc6ffb29
AJ
25102 test -z "$as_dirs" || eval "mkdir $as_dirs"
25103 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25104echo "$as_me: error: cannot create directory $as_dir" >&2;}
11af04e3 25105 { (exit 1); exit 1; }; }; }
daa2886c 25106 ac_builddir=.
e2991ea7 25107
fc6ffb29
AJ
25108case "$ac_dir" in
25109.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25110*)
daa2886c 25111 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
fc6ffb29
AJ
25112 # A ".." for each directory in $ac_dir_suffix.
25113 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25114 case $ac_top_builddir_sub in
25115 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25116 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25117 esac ;;
25118esac
25119ac_abs_top_builddir=$ac_pwd
25120ac_abs_builddir=$ac_pwd$ac_dir_suffix
25121# for backward compatibility:
25122ac_top_builddir=$ac_top_build_prefix
daa2886c
AJ
25123
25124case $srcdir in
fc6ffb29 25125 .) # We are building in place.
daa2886c 25126 ac_srcdir=.
fc6ffb29
AJ
25127 ac_top_srcdir=$ac_top_builddir_sub
25128 ac_abs_top_srcdir=$ac_pwd ;;
25129 [\\/]* | ?:[\\/]* ) # Absolute name.
daa2886c 25130 ac_srcdir=$srcdir$ac_dir_suffix;
fc6ffb29
AJ
25131 ac_top_srcdir=$srcdir
25132 ac_abs_top_srcdir=$srcdir ;;
25133 *) # Relative name.
25134 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25135 ac_top_srcdir=$ac_top_build_prefix$srcdir
25136 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
daa2886c 25137esac
fc6ffb29 25138ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
875927f6 25139
daa2886c 25140
fc6ffb29
AJ
25141 case $ac_mode in
25142 :F)
25143 #
25144 # CONFIG_FILE
25145 #
e2991ea7 25146
f5818d2f
AJ
25147 case $INSTALL in
25148 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
fc6ffb29 25149 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d7d4fdf8 25150 esac
fc6ffb29 25151_ACEOF
da0cfb36 25152
fc6ffb29
AJ
25153cat >>$CONFIG_STATUS <<\_ACEOF
25154# If the template does not know about datarootdir, expand it.
25155# FIXME: This hack should be removed a few years after 2.60.
0ebeb530 25156ac_datarootdir_hack=; ac_datarootdir_seen=
875927f6 25157
fc6ffb29
AJ
25158case `sed -n '/datarootdir/ {
25159 p
25160 q
25161}
25162/@datadir@/p
25163/@docdir@/p
25164/@infodir@/p
25165/@localedir@/p
25166/@mandir@/p
25167' $ac_file_inputs` in
0ebeb530 25168*datarootdir*) ac_datarootdir_seen=yes;;
fc6ffb29
AJ
25169*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25170 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25171echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
daa2886c 25172_ACEOF
fc6ffb29
AJ
25173cat >>$CONFIG_STATUS <<_ACEOF
25174 ac_datarootdir_hack='
25175 s&@datadir@&$datadir&g
25176 s&@docdir@&$docdir&g
25177 s&@infodir@&$infodir&g
25178 s&@localedir@&$localedir&g
25179 s&@mandir@&$mandir&g
25180 s&\\\${datarootdir}&$datarootdir&g' ;;
25181esac
25182_ACEOF
25183
25184# Neutralize VPATH when `$srcdir' = `.'.
25185# Shell code in configure.ac might set extrasub.
25186# FIXME: do we really want to maintain this feature?
daa2886c 25187cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f
AJ
25188 sed "$ac_vpsub
25189$extrasub
daa2886c
AJ
25190_ACEOF
25191cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
25192:t
25193/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
fc6ffb29
AJ
25194s&@configure_input@&$configure_input&;t t
25195s&@top_builddir@&$ac_top_builddir_sub&;t t
25196s&@srcdir@&$ac_srcdir&;t t
25197s&@abs_srcdir@&$ac_abs_srcdir&;t t
25198s&@top_srcdir@&$ac_top_srcdir&;t t
25199s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25200s&@builddir@&$ac_builddir&;t t
25201s&@abs_builddir@&$ac_abs_builddir&;t t
25202s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25203s&@INSTALL@&$ac_INSTALL&;t t
25204$ac_datarootdir_hack
25205" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25206
0ebeb530
JW
25207test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25208 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
f5f37a85 25209 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
0ebeb530
JW
25210 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25211which seems to be undefined. Please make sure it is defined." >&5
25212echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25213which seems to be undefined. Please make sure it is defined." >&2;}
25214
fc6ffb29 25215 rm -f "$tmp/stdin"
f5818d2f 25216 case $ac_file in
fc6ffb29
AJ
25217 -) cat "$tmp/out"; rm -f "$tmp/out";;
25218 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18f92e76 25219 esac
fc6ffb29
AJ
25220 ;;
25221 :H)
25222 #
25223 # CONFIG_HEADER
25224 #
fc6ffb29
AJ
25225_ACEOF
25226
25227# Transform confdefs.h into a sed script `conftest.defines', that
25228# substitutes the proper values into config.h.in to produce config.h.
25229rm -f conftest.defines conftest.tail
25230# First, append a space to every undef/define line, to ease matching.
25231echo 's/$/ /' >conftest.defines
25232# Then, protect against being on the right side of a sed subst, or in
25233# an unquoted here document, in config.status. If some macros were
25234# called several times there might be several #defines for the same
25235# symbol, which is useless. But do not sort them, since the last
25236# AC_DEFINE must be honored.
25237ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
0ebeb530
JW
25238# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25239# NAME is the cpp macro being defined, VALUE is the value it is being given.
25240# PARAMS is the parameter list in the macro definition--in most cases, it's
25241# just an empty string.
25242ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25243ac_dB='\\)[ (].*,\\1define\\2'
25244ac_dC=' '
25245ac_dD=' ,'
25246
fc6ffb29
AJ
25247uniq confdefs.h |
25248 sed -n '
25249 t rset
25250 :rset
25251 s/^[ ]*#[ ]*define[ ][ ]*//
25252 t ok
25253 d
25254 :ok
25255 s/[\\&,]/\\&/g
0ebeb530
JW
25256 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25257 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
fc6ffb29
AJ
25258 ' >>conftest.defines
25259
25260# Remove the space that was appended to ease matching.
25261# Then replace #undef with comments. This is necessary, for
18f92e76
AJ
25262# example, in the case of _POSIX_SOURCE, which is predefined and required
25263# on some systems where configure will not decide to define it.
fc6ffb29
AJ
25264# (The regexp can be short, since the line contains either #define or #undef.)
25265echo 's/ $//
25266s,^[ #]*u.*,/* & */,' >>conftest.defines
25267
25268# Break up conftest.defines:
0ebeb530 25269ac_max_sed_lines=50
fc6ffb29
AJ
25270
25271# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25272# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25273# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25274# et cetera.
25275ac_in='$ac_file_inputs'
25276ac_out='"$tmp/out1"'
25277ac_nxt='"$tmp/out2"'
25278
25279while :
f5818d2f 25280do
fc6ffb29 25281 # Write a here document:
0ebeb530
JW
25282 cat >>$CONFIG_STATUS <<_ACEOF
25283 # First, check the format of the line:
25284 cat >"\$tmp/defines.sed" <<\\CEOF
25285/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25286/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
fc6ffb29 25287b
0ebeb530
JW
25288:def
25289_ACEOF
fc6ffb29 25290 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
f5818d2f 25291 echo 'CEOF
fc6ffb29
AJ
25292 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25293 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25294 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25295 grep . conftest.tail >/dev/null || break
f5818d2f
AJ
25296 rm -f conftest.defines
25297 mv conftest.tail conftest.defines
25298done
fc6ffb29 25299rm -f conftest.defines conftest.tail
f5818d2f 25300
fc6ffb29 25301echo "ac_result=$ac_in" >>$CONFIG_STATUS
daa2886c 25302cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f 25303 if test x"$ac_file" != x-; then
fc6ffb29
AJ
25304 echo "/* $configure_input */" >"$tmp/config.h"
25305 cat "$ac_result" >>"$tmp/config.h"
25306 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
daa2886c 25307 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
f5818d2f
AJ
25308echo "$as_me: $ac_file is unchanged" >&6;}
25309 else
f5818d2f 25310 rm -f $ac_file
fc6ffb29 25311 mv "$tmp/config.h" $ac_file
18f92e76 25312 fi
f5818d2f 25313 else
fc6ffb29
AJ
25314 echo "/* $configure_input */"
25315 cat "$ac_result"
18f92e76 25316 fi
fc6ffb29
AJ
25317 rm -f "$tmp/out12"
25318 ;;
875927f6 25319
fc6ffb29
AJ
25320 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25321echo "$as_me: executing $ac_file commands" >&6;}
25322 ;;
25323 esac
daa2886c
AJ
25324
25325
fc6ffb29 25326 case $ac_file$ac_mode in
c4704c2d 25327 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
7dfc4477
AJ
25328 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/enhmfdrv" >&5
25329echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;} && mkdir "dlls/gdi32/enhmfdrv") ;;
25330 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/mfdrv" >&5
25331echo "$as_me: creating dlls/gdi32/mfdrv" >&6;} && mkdir "dlls/gdi32/mfdrv") ;;
1c60e3bf
AJ
25332 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5
25333echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;;
fc6ffb29 25334 "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
f5818d2f 25335echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
fc6ffb29 25336 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
57ed75bf 25337echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
fc6ffb29 25338 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
f5818d2f 25339echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
fc6ffb29 25340
f5818d2f 25341 esac
fc6ffb29 25342done # for ac_tag
e2991ea7 25343
87a2f8df 25344
f5818d2f 25345{ (exit 0); exit 0; }
daa2886c 25346_ACEOF
e2991ea7 25347chmod +x $CONFIG_STATUS
f5818d2f
AJ
25348ac_clean_files=$ac_clean_files_save
25349
daa2886c 25350
f5818d2f
AJ
25351# configure is writing to config.log, and then calls config.status.
25352# config.status does its own redirection, appending to config.log.
25353# Unfortunately, on DOS this fails, as config.log is still kept open
25354# by configure, so config.status won't be able to write to it; its
25355# output is simply discarded. So we exec the FD to /dev/null,
25356# effectively closing config.log, so it can be properly (re)opened and
25357# appended to by config.status. When coming back to configure, we
25358# need to make the FD available again.
25359if test "$no_create" != yes; then
25360 ac_cs_success=:
e24bcc77
AJ
25361 ac_config_status_args=
25362 test "$silent" = yes &&
25363 ac_config_status_args="$ac_config_status_args --quiet"
f5818d2f 25364 exec 5>/dev/null
e24bcc77 25365 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
f5818d2f
AJ
25366 exec 5>>config.log
25367 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25368 # would make configure fail if this is the last instruction.
25369 $ac_cs_success || { (exit 1); exit 1; }
25370fi
e2991ea7 25371
daa2886c 25372
e84a382b 25373
e3bd111b
AJ
25374if test "$no_create" = "yes"
25375then
25376 exit 0
25377fi
25378
e84a382b
DR
25379if test "$verbose" = "yes"
25380then
2ff880ed
DR
25381 if test "$ac_cv_header_capi20_h" != "yes" -o "$ac_cv_header_linux_capi_h" != "yes"
25382 then
25383 echo >&2
25384 { echo "$as_me:$LINENO: libcapi20 development files not found." >&5
25385echo "$as_me: libcapi20 development files not found." >&6;}
25386 { echo "$as_me:$LINENO: Wine will be built without ISDN support. (capi2032.dll)" >&5
25387echo "$as_me: Wine will be built without ISDN support. (capi2032.dll)" >&6;}
25388 fi
25389
e84a382b
DR
25390 if test "$ac_cv_header_cups_cups_h" != "yes"
25391 then
25392 echo >&2
25393 { echo "$as_me:$LINENO: libcups development files not found." >&5
25394echo "$as_me: libcups development files not found." >&6;}
25395 { echo "$as_me:$LINENO: Wine will be built without CUPS support." >&5
25396echo "$as_me: Wine will be built without CUPS support." >&6;}
25397 fi
25398
25399
25400 if test "$ac_cv_header_gphoto2_camera_h" != "yes"
25401 then
25402 echo >&2
25403 { echo "$as_me:$LINENO: libgphoto2 development files not found." >&5
25404echo "$as_me: libgphoto2 development files not found." >&6;}
25405 if test "$ac_cv_header_sane_sane_h" = "yes"
25406 then
25407 { echo "$as_me:$LINENO: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&5
25408echo "$as_me: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&6;}
25409 else
25410 { echo "$as_me:$LINENO: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&5
25411echo "$as_me: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&6;}
25412 fi
25413 fi
25414
25415 if test "$ac_cv_header_hal_libhal_h" != "yes"
25416 then
25417 echo >&2
25418 { echo "$as_me:$LINENO: libhal development files not found." >&5
25419echo "$as_me: libhal development files not found." >&6;}
25420 { echo "$as_me:$LINENO: Wine will be built without dynamic device support. (explorer.exe)" >&5
25421echo "$as_me: Wine will be built without dynamic device support. (explorer.exe)" >&6;}
25422 fi
25423
25424 if test "$ac_cv_header_unicode_ubidi_h" != "yes"
25425 then
25426 echo >&2
25427 { echo "$as_me:$LINENO: libicu development files not found." >&5
25428echo "$as_me: libicu development files not found." >&6;}
25429 { echo "$as_me:$LINENO: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&5
25430echo "$as_me: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&6;}
25431 fi
25432
25433 if test "$ac_cv_header_lcms_h" != "yes" -a "$ac_cv_header_lcms_lcms_h" != "yes"
25434 then
25435 echo >&2
25436 { echo "$as_me:$LINENO: liblcms development files not found." >&5
25437echo "$as_me: liblcms development files not found." >&6;}
25438 { echo "$as_me:$LINENO: Wine will be built without Color Management support. (mscms.dll)" >&5
25439echo "$as_me: Wine will be built without Color Management support. (mscms.dll)" >&6;}
25440 fi
25441
25442 if test "$ac_cv_header_ldap_h" != "yes" -o "$ac_cv_header_lber_h" != "yes"
25443 then
25444 echo >&2
25445 { echo "$as_me:$LINENO: libldap (OpenLDAP) development files not found." >&5
25446echo "$as_me: libldap (OpenLDAP) development files not found." >&6;}
25447 { echo "$as_me:$LINENO: Wine will be built without LDAP support. (wldap32.dll)" >&5
25448echo "$as_me: Wine will be built without LDAP support. (wldap32.dll)" >&6;}
25449 fi
25450
25451 if test "x$with_curses" != "xno" -a "$ac_cv_header_ncurses_h" != "yes" -a "$ac_cv_header_curses_h" != "yes"
25452 then
25453 echo >&2
25454 { echo "$as_me:$LINENO: lib(n)curses development files not found." >&5
25455echo "$as_me: lib(n)curses development files not found." >&6;}
25456 { echo "$as_me:$LINENO: Wine will be built without (n)curses support. (wineconsole.exe)" >&5
25457echo "$as_me: Wine will be built without (n)curses support. (wineconsole.exe)" >&6;}
25458 fi
25459
25460 if test "$ac_cv_header_sane_sane_h" != "yes"
25461 then
25462 echo >&2
25463 { echo "$as_me:$LINENO: libsane development files not found." >&5
25464echo "$as_me: libsane development files not found." >&6;}
25465 { echo "$as_me:$LINENO: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&5
25466echo "$as_me: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&6;}
e84a382b
DR
25467 fi
25468
25469 if test "$have_x" = "yes"
25470 then
25471 if test "$ac_cv_header_X11_extensions_shape_h" != "yes" -o "$ac_cv_header_X11_extensions_XShm_h" != "yes"
25472 then
25473 echo >&2
25474 { echo "$as_me:$LINENO: libxext development files not found." >&5
25475echo "$as_me: libxext development files not found." >&6;}
25476 { echo "$as_me:$LINENO: Wine will be built without Shm / Shape support. (winex11.drv)" >&5
25477echo "$as_me: Wine will be built without Shm / Shape support. (winex11.drv)" >&6;}
25478 fi
25479
25480 if test "$ac_cv_header_X11_extensions_Xrandr_h" != "yes"
25481 then
25482 echo >&2
25483 { echo "$as_me:$LINENO: libXrandr development files not found." >&5
25484echo "$as_me: libXrandr development files not found." >&6;}
25485 { echo "$as_me:$LINENO: Wine will be built without Xrandr support. (winex11.drv)" >&5
25486echo "$as_me: Wine will be built without Xrandr support. (winex11.drv)" >&6;}
25487 fi
25488
25489 if test "$ac_cv_header_X11_extensions_Xrender_h" != "yes"
25490 then
25491 echo >&2
25492 { echo "$as_me:$LINENO: libXrender development files not found." >&5
25493echo "$as_me: libXrender development files not found." >&6;}
25494 { echo "$as_me:$LINENO: Wine will be built without Xrender support. (winex11.drv)" >&5
25495echo "$as_me: Wine will be built without Xrender support. (winex11.drv)" >&6;}
25496 fi
25497
25498 if test "$ac_cv_header_X11_extensions_xf86vmode_h" != "yes"
25499 then
25500 echo >&2
25501 { echo "$as_me:$LINENO: libXxf86vm development files not found." >&5
25502echo "$as_me: libXxf86vm development files not found." >&6;}
25503 { echo "$as_me:$LINENO: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&5
25504echo "$as_me: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&6;}
25505 fi
25506 fi
25507
25508 if test "$ac_cv_header_libxml_parser_h" != "yes"
25509 then
25510 echo >&2
25511 { echo "$as_me:$LINENO: libxml2 development files not found." >&5
25512echo "$as_me: libxml2 development files not found." >&6;}
25513 { echo "$as_me:$LINENO: Wine will be built without XML support. (msxml.dll)" >&5
25514echo "$as_me: Wine will be built without XML support. (msxml.dll)" >&6;}
25515 fi
25516
25517 if test "$ac_cv_header_libxslt_pattern_h" != "yes" -o "$ac_cv_header_libxslt_transform_h" != "yes"
25518 then
25519 echo >&2
25520 { echo "$as_me:$LINENO: libxslt development files not found." >&5
25521echo "$as_me: libxslt development files not found." >&6;}
25522 { echo "$as_me:$LINENO: Wine will be built without xslt support. (msxml.dll)" >&5
25523echo "$as_me: Wine will be built without xslt support. (msxml.dll)" >&6;}
25524 fi
25525fi
25526
25527
8b4431f1
OK
25528if test "$have_x" = "no"
25529then
bb7fe681
AJ
25530 echo >&2
25531 { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
25532echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
25533 { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
25534echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
25535 { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
25536echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
25537 { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5
25538echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;}
8b4431f1
OK
25539fi
25540
c84c4784 25541if test -z "$OPENGLFILES"
5c085704 25542then
bb7fe681 25543 echo >&2
bc66d7ed
RC
25544 { echo "$as_me:$LINENO: WARNING: Wine will be build without OpenGL or Direct3D support" >&5
25545echo "$as_me: WARNING: Wine will be build without OpenGL or Direct3D support" >&2;}
25546 { echo "$as_me:$LINENO: WARNING: because something is wrong with the OpenGL setup:" >&5
25547echo "$as_me: WARNING: because something is wrong with the OpenGL setup:" >&2;}
25548 if test "$wine_cv_opengl_headers_found" = "no"
25549 then
25550 { echo "$as_me:$LINENO: WARNING: No OpenGL development headers were found" >&5
25551echo "$as_me: WARNING: No OpenGL development headers were found" >&2;}
25552 fi
25553 if test "$wine_cv_opengl_header_version_OK" = "no"
25554 then
25555 { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
25556echo "$as_me: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
c84c4784 25557 elif test "$ac_cv_lib_GL_glXCreateContext" = "no"
bc66d7ed 25558 then
c84c4784
AJ
25559 if test -f /usr/X11R6/lib/libGL.a
25560 then
25561 { echo "$as_me:$LINENO: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
25562This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&5
25563echo "$as_me: WARNING: /usr/X11R6/lib/libGL.a is present on your system.
25564This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&2;}
25565 else
25566 { echo "$as_me:$LINENO: WARNING: No OpenGL library found on this system." >&5
bc66d7ed 25567echo "$as_me: WARNING: No OpenGL library found on this system." >&2;}
c84c4784 25568 fi
bc66d7ed 25569 fi
5eee0bff
LU
25570fi
25571
563598d4
IP
25572if test "$wine_cv_msg_freetype" = "yes"
25573then
bb7fe681
AJ
25574 echo >&2
25575 { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
25576echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
25577 { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
25578echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
25579 { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
25580echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
25581 { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
25582echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
563598d4
IP
25583fi
25584
baf3f5d6 25585if test -z "$FONTSSUBDIRS"
8f6aa41a 25586then
bb7fe681 25587 echo >&2
baf3f5d6
AJ
25588 if test "$FONTFORGE" = "false"
25589 then
bb7fe681
AJ
25590 { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
25591echo "$as_me: WARNING: FontForge is missing." >&2;}
baf3f5d6 25592 else
bb7fe681
AJ
25593 { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
25594echo "$as_me: WARNING: FreeType is missing." >&2;}
baf3f5d6 25595 fi
bb7fe681
AJ
25596 { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
25597echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
8f6aa41a
MM
25598fi
25599
82776020
AJ
25600if test -z "$ALSALIBS" -a \
25601 -z "$ARTSC_LIBS" -a \
25602 -z "$AUDIOIOLIBS" -a \
25603 -z "$NASLIBS" -a \
25604 -z "$ESD_LIBS" -a \
25605 -z "$ac_cv_lib_soname_jack" -a \
25606 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
25607 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
25608 "$ac_cv_header_soundcard_h" != "yes"
99d026fb 25609then
bb7fe681
AJ
25610 echo >&2
25611 { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
25612echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
25613 { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
25614echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
25615 { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
25616echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
99d026fb
FG
25617fi
25618
e2991ea7 25619echo
5606d104 25620echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
e2991ea7
AJ
25621echo
25622