blob: c6056679521fb362d97eb68e425cebbca5639f90 [file] [log] [blame]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001#! /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002# Guess values for system-dependent variables and create Makefiles.
Alexandre Julliard2962ded2006-06-08 17:04:58 +02003# Generated by GNU Autoconf 2.59d for Wine 0.9.15.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004#
Alexandre Julliard875927f2004-01-02 01:55:29 +00005# Report bugs to <wine-devel@winehq.org>.
6#
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019 # 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+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020026BIN_SH=xpg4; export BIN_SH # for Tru64
Alexandre Julliard875927f2004-01-02 01:55:29 +000027DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000028
Alexandre Julliarddaa28862002-04-11 21:54:01 +000029
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020030# PATH needs CR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000031# 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
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000040 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
Alexandre Julliarddaa28862002-04-11 21:54:01 +000044 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000048 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000049fi
50
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020051# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000057
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020058
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
Alexandre Julliarddaa28862002-04-11 21:54:01 +000072for 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
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020078IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000079
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020080 ;;
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
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
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
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000110 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
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'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
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
157fi
158
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}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
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=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200224 case $as_dir in
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000225 /*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200226 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
235 # Try only shells which exist, to save several forks.
236 if test -f $as_shell &&
237 { ($as_shell) 2> /dev/null <<\_ASEOF
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
257 if { $as_shell 2> /dev/null <<\_ASEOF
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(
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000326 test "x$as_lineno_1" != "x$as_lineno_2" &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200327 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" || {
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000423
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
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200426 # 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.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200432 # 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 |
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000438 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000443 N
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000446 t loop
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200447 s/-\n.*//
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000448 ' >$as_me.lineno &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200449 chmod +x "$as_me.lineno" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000450 { 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
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000457 # Exit status is that of the last command.
458 exit
459}
460
461
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200462if (dirname -- /) >/dev/null 2>&1; then
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';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000477esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000478
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200495 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 ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000501 as_ln_s='cp -p'
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000509
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
Alexandre Julliard875927f2004-01-02 01:55:29 +0000513 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000514 as_mkdir_p=false
515fi
516
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200517# 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
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000530
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000531# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000533
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000534# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000536
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000537
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000538
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200539exec 7<&0 </dev/null 6>&1
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000540
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
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000546#
547# Initializations.
548#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000549ac_default_prefix=/usr/local
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200550ac_clean_files=
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000551ac_config_libobj_dir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200552LIBOBJS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000553cross_compiling=no
554subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000555MFLAGS=
556MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000557SHELL=${CONFIG_SHELL-/bin/sh}
558
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000559# Identity of this package.
560PACKAGE_NAME='Wine'
561PACKAGE_TARNAME='wine'
Alexandre Julliard2962ded2006-06-08 17:04:58 +0200562PACKAGE_VERSION='0.9.15'
563PACKAGE_STRING='Wine 0.9.15'
Alexandre Julliard875927f2004-01-02 01:55:29 +0000564PACKAGE_BUGREPORT='wine-devel@winehq.org'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000565
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000566ac_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>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000602
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200603ac_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
737DLLIBS
738LDSHARED
739LDDLLFLAGS
740LIBEXT
741IMPLIBEXT
742DLLTOOL
743DLLWRAP
744LDEXECFLAGS
745LDEXERPATH
746LDDLLRPATH
747COREFOUNDATIONLIB
748IOKITLIB
Emmanuel Maillard144a5352006-05-28 22:46:23 +0200749COREAUDIO
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200750CROSSTEST
751CROSSCC
752CROSSWINDRES
753LDPATH
754CRTLIBS
755SOCKETLIBS
756MAIN_BINARY
757EXTRA_BINARIES
758LDD
759LIBOBJS
760LTLIBOBJS'
761ac_subst_files='MAKE_RULES
762MAKE_DLL_RULES
763MAKE_IMPLIB_RULES
764MAKE_TEST_RULES
765MAKE_LIB_RULES
766MAKE_PROG_RULES'
767 ac_precious_vars='build_alias
768host_alias
769target_alias
770CC
771CFLAGS
772LDFLAGS
773CPPFLAGS
774CXX
775CXXFLAGS
776CCC
777XMKMF
778CPP'
779
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000780
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000781# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000782ac_init_help=
783ac_init_version=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000784# The variables have the same names as the options, with
785# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000786cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000787exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000788no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000789no_recursion=
790prefix=NONE
791program_prefix=NONE
792program_suffix=NONE
793program_transform_name=s,x,x,
794silent=
795site=
796srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000797verbose=
798x_includes=NONE
799x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000800
801# Installation directory options.
802# These are left unexpanded so users can "make install exec_prefix=/foo"
803# and all the variables that are supposed to be based on exec_prefix
804# by default will actually change.
805# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200806# (The list follows the same order as the GNU Coding Standards.)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000807bindir='${exec_prefix}/bin'
808sbindir='${exec_prefix}/sbin'
809libexecdir='${exec_prefix}/libexec'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200810datarootdir='${prefix}/share'
811datadir='${datarootdir}'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000812sysconfdir='${prefix}/etc'
813sharedstatedir='${prefix}/com'
814localstatedir='${prefix}/var'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000815includedir='${prefix}/include'
816oldincludedir='/usr/include'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200817docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818infodir='${datarootdir}/info'
819htmldir='${docdir}'
820dvidir='${docdir}'
821pdfdir='${docdir}'
822psdir='${docdir}'
823libdir='${exec_prefix}/lib'
824localedir='${datarootdir}/locale'
825mandir='${datarootdir}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000826
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000827ac_prev=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200828ac_dashdash=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000829for ac_option
830do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200833 eval $ac_prev=\$ac_option
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000834 ac_prev=
835 continue
836 fi
837
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200838 case $ac_option in
839 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *) ac_optarg=yes ;;
841 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000842
843 # Accept the important Cygnus configure options, so we can diagnose typos.
844
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200845 case $ac_dashdash$ac_option in
846 --)
847 ac_dashdash=yes ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000848
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000852 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000853
854 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000855 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000857 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000858
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000864 cache_file=$ac_optarg ;;
865
866 --config-cache | -C)
867 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000868
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200869 -datadir | --datadir | --datadi | --datad)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000870 ac_prev=datadir ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000872 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000873
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
880
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000881 -disable-* | --disable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000882 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000883 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000884 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
885 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
886 { (exit 1); exit 1; }; }
887 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200888 eval enable_$ac_feature=no ;;
889
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
894
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000899
900 -enable-* | --enable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000901 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000902 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000903 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
904 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
905 { (exit 1); exit 1; }; }
906 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200907 eval enable_$ac_feature=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000908
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000916 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000917
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
921
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000928
929 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000930 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000931 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000932 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000933
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
939
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000945 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000946
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000950 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000951
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000955 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000956
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000962 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000963
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
968
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000969 -localstatedir | --localstatedir | --localstatedi | --localstated \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200970 | --localstate | --localstat | --localsta | --localst | --locals)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000974 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000975
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000979 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000980
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
984
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000986 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000987 no_create=yes ;;
988
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
992
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001000 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001001
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001005 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001006
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001012 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001013
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001019 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001020
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001036 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001037
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1042
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1047
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1051
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001056 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001057
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001067 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001068
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001072 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001073
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001077 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001078
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001084 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001085
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001086 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001087 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001089 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001090
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1093
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001096
1097 -with-* | --with-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001098 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001099 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001100 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1101 { echo "$as_me: error: invalid package name: $ac_package" >&2
1102 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001103 ac_package=`echo $ac_package| sed 's/-/_/g'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001104 eval with_$ac_package=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001105
1106 -without-* | --without-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001107 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001108 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001109 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid package name: $ac_package" >&2
1111 { (exit 1); exit 1; }; }
1112 ac_package=`echo $ac_package | sed 's/-/_/g'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001113 eval with_$ac_package=no ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001114
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1118
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001124 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001125
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001131 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001132
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001133 -*) { echo "$as_me: error: unrecognized option: $ac_option
1134Try \`$0 --help' for more information." >&2
1135 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001136 ;;
1137
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001138 *=*)
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1143 { (exit 1); exit 1; }; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001144 eval $ac_envvar=\$ac_optarg
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001145 export $ac_envvar ;;
1146
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001147 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001148 # FIXME: should be removed in autoconf 3.0.
1149 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001153 ;;
1154
1155 esac
1156done
1157
1158if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 { echo "$as_me: error: missing argument to $ac_option" >&2
1161 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001162fi
1163
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001164# Be sure to have absolute directory names.
1165for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166 datadir sysconfdir sharedstatedir localstatedir includedir \
1167 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168 libdir localedir mandir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001169do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001170 eval ac_val=\$$ac_var
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001171 case $ac_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001172 [\\/$]* | ?:[\\/]* ) continue;;
1173 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001174 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001175 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1176 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001177done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001178
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001179# There might be people who depend on the old broken behavior: `$host'
1180# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001181# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001182build=$build_alias
1183host=$host_alias
1184target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001185
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001186# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001187if test "x$host_alias" != x; then
1188 if test "x$build_alias" = x; then
1189 cross_compiling=maybe
1190 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1191 If a cross compiler is detected then cross compile mode will be used." >&2
1192 elif test "x$build_alias" != "x$host_alias"; then
1193 cross_compiling=yes
1194 fi
1195fi
1196
1197ac_tool_prefix=
1198test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199
1200test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001201
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001202
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001203ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204ac_ls_di=`ls -di .` &&
1205ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1206 { echo "$as_me: error: Working directory cannot be determined" >&2
1207 { (exit 1); exit 1; }; }
1208test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1209 { echo "$as_me: error: pwd does not report name of working directory" >&2
1210 { (exit 1); exit 1; }; }
1211
1212
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001213# Find the source files, if location was not specified.
1214if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir=`$as_dirname -- "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001218$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +00001219 X"$0" : 'X\(//\)[^/]' \| \
1220 X"$0" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001221 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001222echo X"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)[^/].*/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\/\)$/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\).*/{
1236 s//\1/
1237 q
1238 }
1239 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001240 srcdir=$ac_confdir
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001241 if test ! -r "$srcdir/$ac_unique_file"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001242 srcdir=..
1243 fi
1244else
1245 ac_srcdir_defaulted=no
1246fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001247if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001250 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001251fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001252ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253ac_abs_confdir=`(
1254 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001255 { (exit 1); exit 1; }; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001256 pwd)`
1257# When building in place, set srcdir=.
1258if test "$ac_abs_confdir" = "$ac_pwd"; then
1259 srcdir=.
1260fi
1261# Remove unnecessary trailing slashes from srcdir.
1262# Double slashes in file names in object file debugging info
1263# mess up M-x gdb in Emacs.
1264case $srcdir in
1265*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266esac
1267for ac_var in $ac_precious_vars; do
1268 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_env_${ac_var}_value=\$${ac_var}
1270 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001273
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001274#
1275# Report the --help message.
1276#
1277if test "$ac_init_help" = "long"; then
1278 # Omit some internal or obsolete options to make the list less imposing.
1279 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001280 cat <<_ACEOF
Alexandre Julliard2962ded2006-06-08 17:04:58 +02001281\`configure' configures Wine 0.9.15 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001282
1283Usage: $0 [OPTION]... [VAR=VALUE]...
1284
1285To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286VAR=VALUE. See below for descriptions of some of the useful variables.
1287
1288Defaults for the options are specified in brackets.
1289
1290Configuration:
1291 -h, --help display this help and exit
1292 --help=short display options specific to this package
1293 --help=recursive display the short help of all the included packages
1294 -V, --version display version information and exit
1295 -q, --quiet, --silent do not print \`checking...' messages
1296 --cache-file=FILE cache test results in FILE [disabled]
1297 -C, --config-cache alias for \`--cache-file=config.cache'
1298 -n, --no-create do not create output files
1299 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001301Installation directories:
1302 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliard875927f2004-01-02 01:55:29 +00001303 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliard875927f2004-01-02 01:55:29 +00001305 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001306
1307By default, \`make install' will install all the files in
1308\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1309an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310for instance \`--prefix=\$HOME'.
1311
1312For better control, use the options below.
1313
1314Fine tuning of the installation directories:
1315 --bindir=DIR user executables [EPREFIX/bin]
1316 --sbindir=DIR system admin executables [EPREFIX/sbin]
1317 --libexecdir=DIR program executables [EPREFIX/libexec]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001318 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1319 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1320 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1321 --libdir=DIR object code libraries [EPREFIX/lib]
1322 --includedir=DIR C header files [PREFIX/include]
1323 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001324 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1325 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1326 --infodir=DIR info documentation [DATAROOTDIR/info]
1327 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1328 --mandir=DIR man documentation [DATAROOTDIR/man]
1329 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1330 --htmldir=DIR html documentation [DOCDIR]
1331 --dvidir=DIR dvi documentation [DOCDIR]
1332 --pdfdir=DIR pdf documentation [DOCDIR]
1333 --psdir=DIR ps documentation [DOCDIR]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001334_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001335
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001336 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001337
1338X features:
1339 --x-includes=DIR X include files are in DIR
1340 --x-libraries=DIR X library files are in DIR
1341
1342System types:
1343 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001344 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001345_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001346fi
1347
1348if test -n "$ac_init_help"; then
1349 case $ac_init_help in
Alexandre Julliard2962ded2006-06-08 17:04:58 +02001350 short | recursive ) echo "Configuration of Wine 0.9.15:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001351 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001352 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001353
1354Optional Features:
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +00001357 --disable-win16 do not include Win16 support
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001358 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1359 binaries)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001360
1361Optional Packages:
1362 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1363 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Eric Pouech53fa0d52004-02-05 01:27:38 +00001364 --without-opengl do not use OpenGL
1365 --without-curses do not use curses
1366 --with-wine-tools=<dir> use Wine tools from directory <dir>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001367 --with-x use the X Window System
1368
1369Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +00001370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001374 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1375 you have headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00001376 CXX C++ compiler command
1377 CXXFLAGS C++ compiler flags
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001378 XMKMF Path to xmkmf, Makefile generator for X Window System
Eric Pouech53fa0d52004-02-05 01:27:38 +00001379 CPP C preprocessor
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001380
1381Use these variables to override the choices made by `configure' or to help
1382it to find libraries and programs with nonstandard names/locations.
1383
Alexandre Julliard875927f2004-01-02 01:55:29 +00001384Report bugs to <wine-devel@winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001385_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001386ac_status=$?
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001387fi
1388
1389if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1392 test -d $ac_dir || continue
1393 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001394
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001395case "$ac_dir" in
1396.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 esac ;;
1405esac
1406ac_abs_top_builddir=$ac_pwd
1407ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408# for backward compatibility:
1409ac_top_builddir=$ac_top_build_prefix
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001410
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001411case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001412 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001413 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001417 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1420 *) # Relative name.
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001424esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001425ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +00001426
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001429 if test -f $ac_srcdir/configure.gnu; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001430 echo &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001431 $SHELL $ac_srcdir/configure.gnu --help=recursive
1432 elif test -f $ac_srcdir/configure; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001433 echo &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001434 $SHELL $ac_srcdir/configure --help=recursive
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001435 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001436 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001437 fi || ac_status=$?
1438 cd "$ac_pwd" || { ac_status=$?; break; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001439 done
1440fi
1441
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001442test -n "$ac_init_help" && exit $ac_status
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001443if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001444 cat <<\_ACEOF
Alexandre Julliard2962ded2006-06-08 17:04:58 +02001445Wine configure 0.9.15
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001446generated by GNU Autoconf 2.59d
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001447
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001448Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14492002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001450This configure script is free software; the Free Software Foundation
1451gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001452_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001453 exit
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001454fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001455cat >config.log <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001456This file contains any messages produced by compilers while
1457running configure, to aid debugging if configure makes a mistake.
1458
Alexandre Julliard2962ded2006-06-08 17:04:58 +02001459It was created by Wine $as_me 0.9.15, which was
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001460generated by GNU Autoconf 2.59d. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001461
1462 $ $0 $@
1463
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001464_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001465exec 5>>config.log
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001466{
1467cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001468## --------- ##
1469## Platform. ##
1470## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001471
1472hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1473uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477
1478/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1479/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1480
1481/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1482/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1483/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001484/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001485/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1486/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1487/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1488
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001489_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001490
1491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492for as_dir in $PATH
1493do
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 echo "PATH: $as_dir"
1497done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001498IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001499
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001500} >&5
1501
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001502cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001503
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001504
1505## ----------- ##
1506## Core tests. ##
1507## ----------- ##
1508
1509_ACEOF
1510
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001511
1512# Keep a trace of the command line.
1513# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001514# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001515# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001516# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001517ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001518ac_configure_args0=
1519ac_configure_args1=
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001520ac_sep=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001521ac_must_keep_next=false
1522for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001523do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001524 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 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001531 *\'*)
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001532 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
Alexandre Julliard875927f2004-01-02 01:55:29 +00001539 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001540 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00001541 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
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001552 fi
1553 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1554 # Get rid of the leading space.
1555 ac_sep=" "
1556 ;;
1557 esac
1558 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001559done
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001560$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1561$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001562
1563# When interrupted or exit'd, cleanup temporary files, and complete
1564# config.log. We remove comments because anyway the quotes in there
1565# would cause problems or look ugly.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001566# WARNING: Use '\'' to represent an apostrophe within the trap.
1567# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001568trap 'exit_status=$?
1569 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001570 {
1571 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001572
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001573 cat <<\_ASBOX
1574## ---------------- ##
1575## Cache variables. ##
1576## ---------------- ##
1577_ASBOX
1578 echo
1579 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001580(
1581 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1582 eval ac_val=\$$ac_var
1583 case $ac_val in #(
1584 *${as_nl}*)
1585 case $ac_var in #(
1586 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1587echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1588 esac
1589 case $ac_var in #(
1590 _ | IFS | as_nl) ;; #(
1591 *) $as_unset $ac_var ;;
1592 esac ;;
1593 esac
1594 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001595 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001596 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1597 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001598 sed -n \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001599 "s/'\''/'\''\\\\'\'''\''/g;
1600 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1601 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001602 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001603 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001604 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001605 esac |
1606 sort
1607)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001608 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001609
1610 cat <<\_ASBOX
1611## ----------------- ##
1612## Output variables. ##
1613## ----------------- ##
1614_ASBOX
1615 echo
1616 for ac_var in $ac_subst_vars
1617 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001618 eval ac_val=\$$ac_var
1619 echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001620 done | sort
1621 echo
1622
1623 if test -n "$ac_subst_files"; then
1624 cat <<\_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001625## ------------------- ##
1626## File substitutions. ##
1627## ------------------- ##
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001628_ASBOX
1629 echo
1630 for ac_var in $ac_subst_files
1631 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001632 eval ac_val=\$$ac_var
1633 echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001634 done | sort
1635 echo
1636 fi
1637
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001638 if test -s confdefs.h; then
1639 cat <<\_ASBOX
1640## ----------- ##
1641## confdefs.h. ##
1642## ----------- ##
1643_ASBOX
1644 echo
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001645 cat confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001646 echo
1647 fi
1648 test "$ac_signal" != 0 &&
1649 echo "$as_me: caught signal $ac_signal"
1650 echo "$as_me: exit $exit_status"
1651 } >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001652 rm -f core *.core core.conftest.* &&
1653 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001654 exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001655' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001656for ac_signal in 1 2 13 15; do
1657 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1658done
1659ac_signal=0
1660
1661# confdefs.h avoids OS command line length limits that DEFS can exceed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001662rm -f -r conftest* confdefs.h
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001663
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001664# Predefined preprocessor variables.
1665
1666cat >>confdefs.h <<_ACEOF
1667#define PACKAGE_NAME "$PACKAGE_NAME"
1668_ACEOF
1669
1670
1671cat >>confdefs.h <<_ACEOF
1672#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1673_ACEOF
1674
1675
1676cat >>confdefs.h <<_ACEOF
1677#define PACKAGE_VERSION "$PACKAGE_VERSION"
1678_ACEOF
1679
1680
1681cat >>confdefs.h <<_ACEOF
1682#define PACKAGE_STRING "$PACKAGE_STRING"
1683_ACEOF
1684
1685
1686cat >>confdefs.h <<_ACEOF
1687#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1688_ACEOF
1689
1690
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001691# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001692# Prefer explicitly selected file to automatically selected ones.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001693if test -n "$CONFIG_SITE"; then
1694 set x "$CONFIG_SITE"
1695elif test "x$prefix" != xNONE; then
1696 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1697else
1698 set x "$ac_default_prefix/share/config.site" \
1699 "$ac_default_prefix/etc/config.site"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001700fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001701shift
1702for ac_site_file
1703do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001704 if test -r "$ac_site_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001705 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001706echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001707 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001708 . "$ac_site_file"
1709 fi
1710done
1711
1712if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001713 # Some versions of bash will fail to source /dev/null (special
1714 # files actually), so we avoid doing that.
1715 if test -f "$cache_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001716 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001717echo "$as_me: loading cache $cache_file" >&6;}
1718 case $cache_file in
1719 [\\/]* | ?:[\\/]* ) . $cache_file;;
1720 *) . ./$cache_file;;
1721 esac
1722 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001723else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001724 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001725echo "$as_me: creating cache $cache_file" >&6;}
1726 >$cache_file
1727fi
1728
1729# Check that the precious variables saved in the cache have kept the same
1730# value.
1731ac_cache_corrupted=false
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001732for ac_var in $ac_precious_vars; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001733 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1734 eval ac_new_set=\$ac_env_${ac_var}_set
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001735 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1736 eval ac_new_val=\$ac_env_${ac_var}_value
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001737 case $ac_old_set,$ac_new_set in
1738 set,)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001739 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001740echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,set)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001743 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001744echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1746 ,);;
1747 *)
1748 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00001749 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001750echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001751 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001752echo "$as_me: former value: $ac_old_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001753 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001754echo "$as_me: current value: $ac_new_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001755 ac_cache_corrupted=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001756 fi;;
1757 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001758 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001759 if test "$ac_new_set" = set; then
1760 case $ac_new_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001761 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001762 *) ac_arg=$ac_var=$ac_new_val ;;
1763 esac
1764 case " $ac_configure_args " in
1765 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1766 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001767 esac
1768 fi
1769done
1770if $ac_cache_corrupted; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001771 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001772echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001773 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001774echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1775 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001776fi
1777
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001802ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001803ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1806ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001807
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001808
1809
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001810ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001811
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001812ac_aux_dir=
1813for ac_dir in tools $srcdir/tools; do
1814 if test -f $ac_dir/install-sh; then
1815 ac_aux_dir=$ac_dir
1816 ac_install_sh="$ac_aux_dir/install-sh -c"
1817 break
1818 elif test -f $ac_dir/install.sh; then
1819 ac_aux_dir=$ac_dir
1820 ac_install_sh="$ac_aux_dir/install.sh -c"
1821 break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001822 elif test -f $ac_dir/shtool; then
1823 ac_aux_dir=$ac_dir
1824 ac_install_sh="$ac_aux_dir/shtool install -c"
1825 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001826 fi
1827done
1828if test -z "$ac_aux_dir"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001829 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001830echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1831 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001832fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001833ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1834ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1835ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Howard Abrams13277481999-07-10 13:16:29 +00001836
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001837
1838
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001839# Check whether --enable-win16 was given.
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001840if test "${enable_win16+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001841 enableval=$enable_win16;
1842fi
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001843
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001844# Check whether --enable-win64 was given.
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001845if test "${enable_win64+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001846 enableval=$enable_win64;
1847fi
Alexandre Julliardb8074992002-11-21 21:51:24 +00001848
1849
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001850
1851# Check whether --with-opengl was given.
Alexandre Julliardb8074992002-11-21 21:51:24 +00001852if test "${with_opengl+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001853 withval=$with_opengl;
1854fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001855
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001856
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001857# Check whether --with-curses was given.
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001858if test "${with_curses+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001859 withval=$with_curses;
1860fi
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001861
1862
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001863# Check whether --with-wine-tools was given.
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001864if test "${with_wine_tools+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001865 withval=$with_wine_tools;
1866fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001867
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001868
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001869# Make sure we can run config.sub.
1870$ac_config_sub sun4 >/dev/null 2>&1 ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001871 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001872echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1873 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001874
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001875{ echo "$as_me:$LINENO: checking build system type" >&5
1876echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001877if test "${ac_cv_build+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001879else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001880 ac_build_alias=$build_alias
1881test "x$ac_build_alias" = x &&
1882 ac_build_alias=`$ac_config_guess`
1883test "x$ac_build_alias" = x &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001884 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001885echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1886 { (exit 1); exit 1; }; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001887ac_cv_build=`$ac_config_sub $ac_build_alias` ||
1888 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5
1889echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001890 { (exit 1); exit 1; }; }
1891
1892fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001893{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1894echo "${ECHO_T}$ac_cv_build" >&6; }
1895case $ac_cv_build in
1896*-*-*) ;;
1897*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1898echo "$as_me: error: invalid value of canonical build" >&2;}
1899 { (exit 1); exit 1; }; };;
1900esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001901build=$ac_cv_build
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001902ac_save_IFS=$IFS; IFS='-'
1903set x $ac_cv_build
1904shift
1905build_cpu=$1
1906build_vendor=$2
1907shift; shift
1908# Remember, the first character of IFS is used to create $*,
1909# except with old shells:
1910build_os=$*
1911IFS=$ac_save_IFS
1912case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001913
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001914
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001915{ echo "$as_me:$LINENO: checking host system type" >&5
1916echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001917if test "${ac_cv_host+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1919else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001920 if test "x$host_alias" = x; then
1921 ac_cv_host=$ac_cv_build
1922else
1923 ac_cv_host=`$ac_config_sub $host_alias` ||
1924 { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5
1925echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001926 { (exit 1); exit 1; }; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001927fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001928
1929fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001930{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1931echo "${ECHO_T}$ac_cv_host" >&6; }
1932case $ac_cv_host in
1933*-*-*) ;;
1934*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1935echo "$as_me: error: invalid value of canonical host" >&2;}
1936 { (exit 1); exit 1; }; };;
1937esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001938host=$ac_cv_host
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001939ac_save_IFS=$IFS; IFS='-'
1940set x $ac_cv_host
1941shift
1942host_cpu=$1
1943host_vendor=$2
1944shift; shift
1945# Remember, the first character of IFS is used to create $*,
1946# except with old shells:
1947host_os=$*
1948IFS=$ac_save_IFS
1949case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001950
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001951
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001952case $host in
1953 x86_64*linux*)
1954 if test "x$enable_win64" != "xyes"
1955 then
1956 test -n "$CC" || CC="gcc -m32"
1957 test -n "$LD" || LD="ld -m elf_i386"
1958 test -n "$AS" || AS="as --32"
Alex Woodsbbcf9862005-02-10 19:09:08 +00001959 host_cpu="i386"
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001960 fi
1961 ;;
1962esac
1963
Alexandre Julliard71440f32005-05-19 14:28:17 +00001964case $host_cpu in
1965 *i[3456789]86*)
1966 if test "x$enable_win16" != "xno"
1967 then
1968 enable_win16="yes"
1969 fi
1970 ;;
1971esac
1972
1973WIN16_FILES="\$(WIN16_FILES)"
1974
1975WIN16_INSTALL="\$(WIN16_INSTALL)"
1976
1977if test "x$enable_win16" != "xyes"
1978then
1979 WIN16_FILES=""
1980 WIN16_INSTALL=""
1981fi
1982
1983
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001984{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1985echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +00001986set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001987if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001990 cat >conftest.make <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001991SHELL = /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001992all:
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001993 @echo 'ac_maketemp=X"$(MAKE)"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001994_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001995# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001996eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001997if test "$ac_maketemp" != X ; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001998 eval ac_cv_prog_make_${ac_make}_set=yes
1999else
2000 eval ac_cv_prog_make_${ac_make}_set=no
2001fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002002rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002003fi
2004if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002005 { echo "$as_me:$LINENO: result: yes" >&5
2006echo "${ECHO_T}yes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002007 SET_MAKE=
2008else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002009 { echo "$as_me:$LINENO: result: no" >&5
2010echo "${ECHO_T}no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002011 SET_MAKE="MAKE=${MAKE-make}"
2012fi
2013
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002014ac_ext=c
2015ac_cpp='$CPP $CPPFLAGS'
2016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2018ac_compiler_gnu=$ac_cv_c_compiler_gnu
2019if test -n "$ac_tool_prefix"; then
2020 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2021set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002024if test "${ac_cv_prog_CC+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002026else
2027 if test -n "$CC"; then
2028 ac_cv_prog_CC="$CC" # Let the user override the test.
2029else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031for as_dir in $PATH
2032do
2033 IFS=$as_save_IFS
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002037 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 break 2
2040 fi
2041done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002042done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002043IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002044
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002045fi
2046fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002047CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002048if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002049 { echo "$as_me:$LINENO: result: $CC" >&5
2050echo "${ECHO_T}$CC" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002051else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002052 { echo "$as_me:$LINENO: result: no" >&5
2053echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002054fi
2055
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002056
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002057fi
2058if test -z "$ac_cv_prog_CC"; then
2059 ac_ct_CC=$CC
2060 # Extract the first word of "gcc", so it can be a program name with args.
2061set dummy gcc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002062{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066else
2067 if test -n "$ac_ct_CC"; then
2068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2069else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071for as_dir in $PATH
2072do
2073 IFS=$as_save_IFS
2074 test -z "$as_dir" && as_dir=.
2075 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002077 ac_cv_prog_ac_ct_CC="gcc"
2078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 break 2
2080 fi
2081done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002082done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002083IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002084
2085fi
2086fi
2087ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088if test -n "$ac_ct_CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002089 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2090echo "${ECHO_T}$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002091else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002092 { echo "$as_me:$LINENO: result: no" >&5
2093echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002094fi
2095
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002096 if test "x$ac_ct_CC" = x; then
2097 CC=""
2098 else
2099 case $cross_compiling:$ac_tool_warned in
2100yes:)
2101{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2102whose name does not start with the host triplet. If you think this
2103configuration is useful to you, please write to autoconf@gnu.org." >&5
2104echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2105whose name does not start with the host triplet. If you think this
2106configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2107ac_tool_warned=yes ;;
2108esac
2109 CC=$ac_ct_CC
2110 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002111else
2112 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002113fi
2114
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002115if test -z "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002116 if test -n "$ac_tool_prefix"; then
2117 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002118set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002119{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002121if test "${ac_cv_prog_CC+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002123else
2124 if test -n "$CC"; then
2125 ac_cv_prog_CC="$CC" # Let the user override the test.
2126else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128for as_dir in $PATH
2129do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002134 ac_cv_prog_CC="${ac_tool_prefix}cc"
2135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 break 2
2137 fi
2138done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002139done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002140IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002141
2142fi
2143fi
2144CC=$ac_cv_prog_CC
2145if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002146 { echo "$as_me:$LINENO: result: $CC" >&5
2147echo "${ECHO_T}$CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002148else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002149 { echo "$as_me:$LINENO: result: no" >&5
2150echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002151fi
2152
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002153
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002154 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002155fi
2156if test -z "$CC"; then
2157 # Extract the first word of "cc", so it can be a program name with args.
2158set dummy cc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002159{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002161if test "${ac_cv_prog_CC+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
2164 if test -n "$CC"; then
2165 ac_cv_prog_CC="$CC" # Let the user override the test.
2166else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002167 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169for as_dir in $PATH
2170do
2171 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=.
2173 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002175 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2176 ac_prog_rejected=yes
2177 continue
2178 fi
2179 ac_cv_prog_CC="cc"
2180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 break 2
2182 fi
2183done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002184done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002185IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002186
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002187if test $ac_prog_rejected = yes; then
2188 # We found a bogon in the path, so make sure we never use it.
2189 set dummy $ac_cv_prog_CC
2190 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002191 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002192 # We chose a different compiler from the bogus one.
2193 # However, it has the same basename, so the bogon will be chosen
2194 # first if we set CC to just the basename; use the full file name.
2195 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002196 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002197 fi
2198fi
2199fi
2200fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002201CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002202if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002203 { echo "$as_me:$LINENO: result: $CC" >&5
2204echo "${ECHO_T}$CC" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002205else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002206 { echo "$as_me:$LINENO: result: no" >&5
2207echo "${ECHO_T}no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002208fi
2209
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002210
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002211fi
2212if test -z "$CC"; then
2213 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002214 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002215 do
2216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2217set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002218{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002220if test "${ac_cv_prog_CC+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00002222else
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2225else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227for as_dir in $PATH
2228do
2229 IFS=$as_save_IFS
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002233 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 break 2
2236 fi
2237done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002238done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002239IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002240
Eric Pouech18ad24a2000-01-16 22:16:33 +00002241fi
2242fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002243CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00002244if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002245 { echo "$as_me:$LINENO: result: $CC" >&5
2246echo "${ECHO_T}$CC" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002247else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002248 { echo "$as_me:$LINENO: result: no" >&5
2249echo "${ECHO_T}no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002250fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002251
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002252
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002253 test -n "$CC" && break
2254 done
2255fi
2256if test -z "$CC"; then
2257 ac_ct_CC=$CC
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002258 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002259do
2260 # Extract the first word of "$ac_prog", so it can be a program name with args.
2261set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002264if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2266else
2267 if test -n "$ac_ct_CC"; then
2268 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2269else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271for as_dir in $PATH
2272do
2273 IFS=$as_save_IFS
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002277 ac_cv_prog_ac_ct_CC="$ac_prog"
2278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 break 2
2280 fi
2281done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002282done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002283IFS=$as_save_IFS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002284
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002285fi
2286fi
2287ac_ct_CC=$ac_cv_prog_ac_ct_CC
2288if test -n "$ac_ct_CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002289 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2290echo "${ECHO_T}$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002291else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002292 { echo "$as_me:$LINENO: result: no" >&5
2293echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002294fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002295
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002296
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002297 test -n "$ac_ct_CC" && break
2298done
Eric Pouech18ad24a2000-01-16 22:16:33 +00002299
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002300 if test "x$ac_ct_CC" = x; then
2301 CC=""
2302 else
2303 case $cross_compiling:$ac_tool_warned in
2304yes:)
2305{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2306whose name does not start with the host triplet. If you think this
2307configuration is useful to you, please write to autoconf@gnu.org." >&5
2308echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2309whose name does not start with the host triplet. If you think this
2310configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2311ac_tool_warned=yes ;;
2312esac
2313 CC=$ac_ct_CC
2314 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002315fi
2316
2317fi
2318
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002319
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002320test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2321See \`config.log' for more details." >&5
2322echo "$as_me: error: no acceptable C compiler found in \$PATH
2323See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002324 { (exit 1); exit 1; }; }
2325
2326# Provide some information about the compiler.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002327echo "$as_me:$LINENO: checking for C compiler version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002328ac_compiler=`set X $ac_compile; echo $2`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002329{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
2330 (eval $ac_compiler --version >&5) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002331 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002333 (exit $ac_status); }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002334{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
2335 (eval $ac_compiler -v >&5) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002336 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002338 (exit $ac_status); }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002339{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
2340 (eval $ac_compiler -V >&5) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002341 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002343 (exit $ac_status); }
2344
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002345
2346# List of possible output files. We want to start from the most likely,
2347# but we have to check foo.exe before foo, because Cygwin `test -f' looks
2348# also for foo.exe. b.out is created by i960 compilers.
2349# As a last resort, we also try wildcards: `conftest.*' and `a.*'.
2350# But we are not allowed to rm a.*, and we do not want always remove
2351# conftest.*, so we will list them literally, when appropriate.
2352ac_outfiles="a_out.exe a.out conftest.exe conftest a.exe b.out"
2353
2354# The IRIX 6 linker writes into existing files which may not be
2355# executable, retaining their permissions. Remove them first so a
2356# subsequent execution test works.
2357rm -f $ac_outfiles conftest.*
2358
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002359cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002360/* confdefs.h. */
2361_ACEOF
2362cat confdefs.h >>conftest.$ac_ext
2363cat >>conftest.$ac_ext <<_ACEOF
2364/* end confdefs.h. */
Eric Pouech18ad24a2000-01-16 22:16:33 +00002365
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002366int
2367main ()
2368{
2369
2370 ;
2371 return 0;
2372}
2373_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002374
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002375ac_clean_files_save=$ac_clean_files
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002376ac_clean_files="$ac_clean_files $ac_outfiles"
2377
2378# The following tests should remove their output except files matching conftest.*.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002379# Try to create an executable without -o first, disregard a.out.
2380# It will help us diagnose broken compilers, and finding out an intuition
2381# of exeext.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002382{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2383echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002384ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002385
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002386if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002387 (eval $ac_link_default) 2>&5
2388 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002390 (exit $ac_status); }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002391 for ac_file in $ac_outfiles a.* conftest.* NO
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002392do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002393 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002394 case $ac_file in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2396 * ) break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002397 esac
2398done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002399if test "$ac_file" = NO; then
2400 { { echo "$as_me:$LINENO: error: no output file found
2401See \`config.log' for more details." >&5
2402echo "$as_me: error: no output file found
2403See \`config.log' for more details." >&2;}
2404 { (exit 1); exit 1; }; }
2405fi
2406
2407
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002408else
2409 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002410sed 's/^/| /' conftest.$ac_ext >&5
2411
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002412{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002413See \`config.log' for more details." >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002414echo "$as_me: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002415See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002416 { (exit 77); exit 77; }; }
2417fi
2418
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002419{ echo "$as_me:$LINENO: result: $ac_file" >&5
2420echo "${ECHO_T}$ac_file" >&6; }
2421# Check that the compiler produces executables we can run. If not, either
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002422# the compiler is broken, or we cross compile.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002423{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2424echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002425# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2426# If not cross compiling, check that we can run a simple program.
2427if test "$cross_compiling" != yes; then
2428 if { ac_try='./$ac_file'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002430 (eval $ac_try) 2>&5
2431 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002433 (exit $ac_status); }; }; then
2434 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002435 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002436 if test "$cross_compiling" = maybe; then
2437 cross_compiling=yes
2438 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002439 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002440If you meant to cross compile, use \`--host'.
2441See \`config.log' for more details." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002442echo "$as_me: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002443If you meant to cross compile, use \`--host'.
2444See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002445 { (exit 1); exit 1; }; }
2446 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002447 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002448fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002449{ echo "$as_me:$LINENO: result: yes" >&5
2450echo "${ECHO_T}yes" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002451
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002452# Clean up; list also $ac_file, in case it matched a wildcard entry.
2453rm -f $ac_outfiles $ac_file
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002454
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002455{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2456echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2457{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2458echo "${ECHO_T}$cross_compiling" >&6; }
2459
2460{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2461echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2462if test "${ac_cv_exeext+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464else
2465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002466 (eval $ac_link) 2>&5
2467 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002469 (exit $ac_status); }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002470 # If both `conftest.exe' and `conftest' are `present' (well, observable),
2471 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2472 # work properly (i.e., refer to `conftest.exe'), while it won't with `rm'.
2473 for ac_file in conftest.exe conftest conftest.* NO; do
2474 test -f "$ac_file" || continue
2475 case $ac_file in
2476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2477 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2478 break;;
2479 * ) break;;
2480 esac
2481 done
2482 if test "$ac_file" = NO; then
2483 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: no output file found
2484See \`config.log' for more details." >&5
2485echo "$as_me: error: cannot compute suffix of executables: no output file found
2486See \`config.log' for more details." >&2;}
2487 { (exit 1); exit 1; }; }
2488fi
2489
2490 # Clean up; list also $ac_file, in case it matched conftest.*.
2491 rm -f $ac_outfiles $ac_file
2492
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002493else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002494 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2495See \`config.log' for more details." >&5
2496echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2497See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002498 { (exit 1); exit 1; }; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002499
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002500fi
2501
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002502
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002503fi
2504{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2505echo "${ECHO_T}$ac_cv_exeext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002506EXEEXT=$ac_cv_exeext
2507ac_exeext=$EXEEXT
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002508
2509
2510ac_clean_files=$ac_clean_files_save
2511
2512{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2513echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002514if test "${ac_cv_objext+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002517 rm -f conftest.o conftest.obj
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002519 (eval $ac_compile) 2>&5
2520 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002522 (exit $ac_status); }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002523 for ac_file in conftest.o conftest.obj conftest.*; do
2524 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002525 case $ac_file in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002527 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2528 break;;
2529 esac
2530done
2531else
2532 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2536See \`config.log' for more details." >&5
2537echo "$as_me: error: cannot compute suffix of object files: cannot compile
2538See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002539 { (exit 1); exit 1; }; }
2540fi
2541
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002542fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002543{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2544echo "${ECHO_T}$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002545OBJEXT=$ac_cv_objext
2546ac_objext=$OBJEXT
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002547
2548
2549rm -f conftest.*
2550{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2551echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002552if test "${ac_cv_c_compiler_gnu+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554else
2555 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002556/* confdefs.h. */
2557_ACEOF
2558cat confdefs.h >>conftest.$ac_ext
2559cat >>conftest.$ac_ext <<_ACEOF
2560/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002561
2562int
2563main ()
2564{
2565#ifndef __GNUC__
2566 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002567#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002568
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002569 ;
2570 return 0;
2571}
2572_ACEOF
2573rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002575 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002576 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002577 grep -v '^ *+' conftest.er1 >conftest.err
2578 rm -f conftest.er1
2579 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002581 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002590 (eval $ac_try) 2>&5
2591 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002593 (exit $ac_status); }; }; then
2594 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00002595else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002596 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002597sed 's/^/| /' conftest.$ac_ext >&5
2598
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002599 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00002600fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002601
Alexandre Julliard875927f2004-01-02 01:55:29 +00002602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002603ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00002604
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002605fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002606{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2607echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002608GCC=`test $ac_compiler_gnu = yes && echo yes`
2609ac_test_CFLAGS=${CFLAGS+set}
2610ac_save_CFLAGS=$CFLAGS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002611{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2612echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002613if test "${ac_cv_prog_cc_g+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002615else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002616 ac_save_c_werror_flag=$ac_c_werror_flag
2617 ac_c_werror_flag=yes
2618 ac_cv_prog_cc_g=no
2619 CFLAGS="-g"
2620 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002621/* confdefs.h. */
2622_ACEOF
2623cat confdefs.h >>conftest.$ac_ext
2624cat >>conftest.$ac_ext <<_ACEOF
2625/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002626
2627int
2628main ()
2629{
2630
2631 ;
2632 return 0;
2633}
2634_ACEOF
2635rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002637 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002638 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002639 grep -v '^ *+' conftest.er1 >conftest.err
2640 rm -f conftest.er1
2641 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002643 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646 (eval $ac_try) 2>&5
2647 ac_status=$?
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; } &&
2650 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002652 (eval $ac_try) 2>&5
2653 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002655 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002656 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002657else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002658 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002659sed 's/^/| /' conftest.$ac_ext >&5
2660
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002661 CFLAGS=""
2662 cat >conftest.$ac_ext <<_ACEOF
2663/* confdefs.h. */
2664_ACEOF
2665cat confdefs.h >>conftest.$ac_ext
2666cat >>conftest.$ac_ext <<_ACEOF
2667/* end confdefs.h. */
2668
2669int
2670main ()
2671{
2672
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677rm -f conftest.$ac_objext
2678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679 (eval $ac_compile) 2>conftest.er1
2680 ac_status=$?
2681 grep -v '^ *+' conftest.er1 >conftest.err
2682 rm -f conftest.er1
2683 cat conftest.err >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
2686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; } &&
2692 { ac_try='test -s conftest.$ac_objext'
2693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 :
2699else
2700 echo "$as_me: failed program was:" >&5
2701sed 's/^/| /' conftest.$ac_ext >&5
2702
2703 ac_c_werror_flag=$ac_save_c_werror_flag
2704 CFLAGS="-g"
2705 cat >conftest.$ac_ext <<_ACEOF
2706/* confdefs.h. */
2707_ACEOF
2708cat confdefs.h >>conftest.$ac_ext
2709cat >>conftest.$ac_ext <<_ACEOF
2710/* end confdefs.h. */
2711
2712int
2713main ()
2714{
2715
2716 ;
2717 return 0;
2718}
2719_ACEOF
2720rm -f conftest.$ac_objext
2721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2723 ac_status=$?
2724 grep -v '^ *+' conftest.er1 >conftest.err
2725 rm -f conftest.er1
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 (eval $ac_try) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 ac_cv_prog_cc_g=yes
2742else
2743 echo "$as_me: failed program was:" >&5
2744sed 's/^/| /' conftest.$ac_ext >&5
2745
2746
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002747fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002748
Alexandre Julliard875927f2004-01-02 01:55:29 +00002749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002750fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002751
2752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2753fi
2754
2755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2756 ac_c_werror_flag=$ac_save_c_werror_flag
2757fi
2758{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2759echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002760if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002761 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00002762elif test $ac_cv_prog_cc_g = yes; then
2763 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002764 CFLAGS="-g -O2"
2765 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002766 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002767 fi
2768else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002769 if test "$GCC" = yes; then
2770 CFLAGS="-O2"
2771 else
2772 CFLAGS=
2773 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002774fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002775{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2776echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2777if test "${ac_cv_prog_cc_c89+set}" = set; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002780 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002781ac_save_CC=$CC
2782cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002783/* confdefs.h. */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002788#include <stdarg.h>
2789#include <stdio.h>
2790#include <sys/types.h>
2791#include <sys/stat.h>
2792/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2793struct buf { int x; };
2794FILE * (*rcsopen) (struct buf *, struct stat *, int);
2795static char *e (p, i)
2796 char **p;
2797 int i;
2798{
2799 return p[i];
2800}
2801static char *f (char * (*g) (char **, int), char **p, ...)
2802{
2803 char *s;
2804 va_list v;
2805 va_start (v,p);
2806 s = g (p, va_arg (v,int));
2807 va_end (v);
2808 return s;
2809}
Alexandre Julliard875927f2004-01-02 01:55:29 +00002810
2811/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2812 function prototypes and stuff, but not '\xHH' hex character constants.
2813 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002814 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00002815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2816 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002817 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00002818int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2819
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002820int test (int i, double x);
2821struct s1 {int (*f) (int a);};
2822struct s2 {int (*f) (double a);};
2823int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2824int argc;
2825char **argv;
2826int
2827main ()
2828{
2829return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2830 ;
2831 return 0;
2832}
2833_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002834for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2835 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002836do
2837 CC="$ac_save_CC $ac_arg"
2838 rm -f conftest.$ac_objext
2839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002840 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002841 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002842 grep -v '^ *+' conftest.er1 >conftest.err
2843 rm -f conftest.er1
2844 cat conftest.err >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; } &&
2853 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002859 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002860else
2861 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002862sed 's/^/| /' conftest.$ac_ext >&5
2863
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002864
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002865fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002866
Alexandre Julliard875927f2004-01-02 01:55:29 +00002867rm -f conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002868 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002869done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002870rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002871CC=$ac_save_CC
2872
2873fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002874# AC_CACHE_VAL
2875case "x$ac_cv_prog_cc_c89" in
2876 x)
2877 { echo "$as_me:$LINENO: result: none needed" >&5
2878echo "${ECHO_T}none needed" >&6; } ;;
2879 xno)
2880 { echo "$as_me:$LINENO: result: unsupported" >&5
2881echo "${ECHO_T}unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002882 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002883 CC="$CC $ac_cv_prog_cc_c89"
2884 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2885echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002886esac
2887
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002888
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002889ac_ext=c
2890ac_cpp='$CPP $CPPFLAGS'
2891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2893ac_compiler_gnu=$ac_cv_c_compiler_gnu
2894
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002895ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002896ac_cpp='$CXXCPP $CPPFLAGS'
2897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002900if test -z "$CXX"; then
2901 if test -n "$CCC"; then
2902 CXX=$CCC
2903 else
2904 if test -n "$ac_tool_prefix"; then
2905 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002906 do
2907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2908set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002909{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002911if test "${ac_cv_prog_CXX+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2913else
2914 if test -n "$CXX"; then
2915 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2916else
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002924 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928done
2929done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002930IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002931
2932fi
2933fi
2934CXX=$ac_cv_prog_CXX
2935if test -n "$CXX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002936 { echo "$as_me:$LINENO: result: $CXX" >&5
2937echo "${ECHO_T}$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002938else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002939 { echo "$as_me:$LINENO: result: no" >&5
2940echo "${ECHO_T}no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002941fi
2942
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002943
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002944 test -n "$CXX" && break
2945 done
2946fi
2947if test -z "$CXX"; then
2948 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002949 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002950do
2951 # Extract the first word of "$ac_prog", so it can be a program name with args.
2952set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002955if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2957else
2958 if test -n "$ac_ct_CXX"; then
2959 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2960else
2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962for as_dir in $PATH
2963do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002968 ac_cv_prog_ac_ct_CXX="$ac_prog"
2969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2971 fi
2972done
2973done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002974IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002975
2976fi
2977fi
2978ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2979if test -n "$ac_ct_CXX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002980 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2981echo "${ECHO_T}$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002982else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002983 { echo "$as_me:$LINENO: result: no" >&5
2984echo "${ECHO_T}no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002985fi
2986
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002987
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002988 test -n "$ac_ct_CXX" && break
2989done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002990
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002991 if test "x$ac_ct_CXX" = x; then
2992 CXX="g++"
2993 else
2994 case $cross_compiling:$ac_tool_warned in
2995yes:)
2996{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2997whose name does not start with the host triplet. If you think this
2998configuration is useful to you, please write to autoconf@gnu.org." >&5
2999echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3000whose name does not start with the host triplet. If you think this
3001configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3002ac_tool_warned=yes ;;
3003esac
3004 CXX=$ac_ct_CXX
3005 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003006fi
3007
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003008 fi
3009fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003010# Provide some information about the compiler.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003011echo "$as_me:$LINENO: checking for C++ compiler version" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003012ac_compiler=`set X $ac_compile; echo $2`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003013{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
3014 (eval $ac_compiler --version >&5) 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003015 ac_status=$?
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003018{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
3019 (eval $ac_compiler -v >&5) 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003023{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
3024 (eval $ac_compiler -V >&5) 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003029{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3030echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003031if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
3034 cat >conftest.$ac_ext <<_ACEOF
3035/* confdefs.h. */
3036_ACEOF
3037cat confdefs.h >>conftest.$ac_ext
3038cat >>conftest.$ac_ext <<_ACEOF
3039/* end confdefs.h. */
3040
3041int
3042main ()
3043{
3044#ifndef __GNUC__
3045 choke me
3046#endif
3047
3048 ;
3049 return 0;
3050}
3051_ACEOF
3052rm -f conftest.$ac_objext
3053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3054 (eval $ac_compile) 2>conftest.er1
3055 ac_status=$?
3056 grep -v '^ *+' conftest.er1 >conftest.err
3057 rm -f conftest.er1
3058 cat conftest.err >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); } &&
3061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063 (eval $ac_try) 2>&5
3064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }; } &&
3067 { ac_try='test -s conftest.$ac_objext'
3068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069 (eval $ac_try) 2>&5
3070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; }; then
3073 ac_compiler_gnu=yes
3074else
3075 echo "$as_me: failed program was:" >&5
3076sed 's/^/| /' conftest.$ac_ext >&5
3077
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003078 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003079fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003080
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3082ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3083
3084fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003085{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3086echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003087GXX=`test $ac_compiler_gnu = yes && echo yes`
3088ac_test_CXXFLAGS=${CXXFLAGS+set}
3089ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003090{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3091echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003092if test "${ac_cv_prog_cxx_g+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3094else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003095 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3096 ac_cxx_werror_flag=yes
3097 ac_cv_prog_cxx_g=no
3098 CXXFLAGS="-g"
3099 cat >conftest.$ac_ext <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003100/* confdefs.h. */
3101_ACEOF
3102cat confdefs.h >>conftest.$ac_ext
3103cat >>conftest.$ac_ext <<_ACEOF
3104/* end confdefs.h. */
3105
3106int
3107main ()
3108{
3109
3110 ;
3111 return 0;
3112}
3113_ACEOF
3114rm -f conftest.$ac_objext
3115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3116 (eval $ac_compile) 2>conftest.er1
3117 ac_status=$?
3118 grep -v '^ *+' conftest.er1 >conftest.err
3119 rm -f conftest.er1
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } &&
3123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125 (eval $ac_try) 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; } &&
3129 { ac_try='test -s conftest.$ac_objext'
3130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3131 (eval $ac_try) 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3135 ac_cv_prog_cxx_g=yes
3136else
3137 echo "$as_me: failed program was:" >&5
3138sed 's/^/| /' conftest.$ac_ext >&5
3139
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003140 CXXFLAGS=""
3141 cat >conftest.$ac_ext <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003142/* confdefs.h. */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003147
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003148int
3149main ()
3150{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003151
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003152 ;
3153 return 0;
3154}
3155_ACEOF
3156rm -f conftest.$ac_objext
3157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>conftest.er1
3159 ac_status=$?
3160 grep -v '^ *+' conftest.er1 >conftest.err
3161 rm -f conftest.er1
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } &&
3165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167 (eval $ac_try) 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3177 :
3178else
3179 echo "$as_me: failed program was:" >&5
3180sed 's/^/| /' conftest.$ac_ext >&5
3181
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3183 CXXFLAGS="-g"
3184 cat >conftest.$ac_ext <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003185/* confdefs.h. */
3186_ACEOF
3187cat confdefs.h >>conftest.$ac_ext
3188cat >>conftest.$ac_ext <<_ACEOF
3189/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003190
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003191int
3192main ()
3193{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003194
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003195 ;
3196 return 0;
3197}
3198_ACEOF
3199rm -f conftest.$ac_objext
3200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3201 (eval $ac_compile) 2>conftest.er1
3202 ac_status=$?
3203 grep -v '^ *+' conftest.er1 >conftest.err
3204 rm -f conftest.er1
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } &&
3208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 (eval $ac_try) 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003220 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003221else
3222 echo "$as_me: failed program was:" >&5
3223sed 's/^/| /' conftest.$ac_ext >&5
3224
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003225
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003226fi
3227
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3229fi
3230
3231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3232fi
3233
3234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3236fi
3237{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3238echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3239if test "$ac_test_CXXFLAGS" = set; then
3240 CXXFLAGS=$ac_save_CXXFLAGS
3241elif test $ac_cv_prog_cxx_g = yes; then
3242 if test "$GXX" = yes; then
3243 CXXFLAGS="-g -O2"
3244 else
3245 CXXFLAGS="-g"
3246 fi
3247else
3248 if test "$GXX" = yes; then
3249 CXXFLAGS="-O2"
3250 else
3251 CXXFLAGS=
3252 fi
3253fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003254ac_ext=c
3255ac_cpp='$CPP $CPPFLAGS'
3256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258ac_compiler_gnu=$ac_cv_c_compiler_gnu
3259
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003260if test -n "$ac_tool_prefix"; then
3261 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3262set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003263{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003265if test "${ac_cv_prog_CPPBIN+set}" = set; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003268 if test -n "$CPPBIN"; then
3269 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003270else
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003278 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282done
3283done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003284IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003285
3286fi
3287fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003288CPPBIN=$ac_cv_prog_CPPBIN
3289if test -n "$CPPBIN"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003290 { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3291echo "${ECHO_T}$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003292else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003293 { echo "$as_me:$LINENO: result: no" >&5
3294echo "${ECHO_T}no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003295fi
3296
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003297
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003298fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003299if test -z "$ac_cv_prog_CPPBIN"; then
3300 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003301 # Extract the first word of "cpp", so it can be a program name with args.
3302set dummy cpp; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003303{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003305if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003308 if test -n "$ac_ct_CPPBIN"; then
3309 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003310else
3311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312for as_dir in $PATH
3313do
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003318 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3321 fi
3322done
3323done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003324IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003325
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003326fi
3327fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003328ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3329if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003330 { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3331echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003332else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003333 { echo "$as_me:$LINENO: result: no" >&5
3334echo "${ECHO_T}no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003335fi
3336
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003337 if test "x$ac_ct_CPPBIN" = x; then
3338 CPPBIN="cpp"
3339 else
3340 case $cross_compiling:$ac_tool_warned in
3341yes:)
3342{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3343whose name does not start with the host triplet. If you think this
3344configuration is useful to you, please write to autoconf@gnu.org." >&5
3345echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3346whose name does not start with the host triplet. If you think this
3347configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3348ac_tool_warned=yes ;;
3349esac
3350 CPPBIN=$ac_ct_CPPBIN
3351 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003352else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003353 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003354fi
3355
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003356
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003357{ echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3358echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003359if test "${wine_cv_toolsdir+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3361else
3362 if test -z "$with_wine_tools"; then
3363 if test "$cross_compiling" = "yes"; then
3364 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3365echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3366 { (exit 1); exit 1; }; }
3367 else
3368 wine_cv_toolsdir="\$(TOPOBJDIR)"
3369 fi
3370 elif test -d "$with_wine_tools/tools/winebuild"; then
3371 case $with_wine_tools in
3372 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3373 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3374 esac
3375 else
3376 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3377echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3378 { (exit 1); exit 1; }; }
3379 fi
3380fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003381{ echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3382echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003383TOOLSDIR=$wine_cv_toolsdir
3384
3385
3386
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003387ac_ext=c
3388ac_cpp='$CPP $CPPFLAGS'
3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003392{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003394# On Suns, sometimes $CPP names a directory.
3395if test -n "$CPP" && test -d "$CPP"; then
3396 CPP=
3397fi
3398if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003399 if test "${ac_cv_prog_CPP+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003401else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003402 # Double quotes because CPP needs to be expanded
3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3404 do
3405 ac_preproc_ok=false
3406for ac_c_preproc_warn_flag in '' yes
3407do
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003412 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003413 # not just through cpp. "Syntax error" is here to catch this case.
3414 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h. */
3420#ifdef __STDC__
3421# include <limits.h>
3422#else
3423# include <assert.h>
3424#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003425 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003426_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3429 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003430 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003431 rm -f conftest.er1
3432 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003438 else
3439 ac_cpp_err=
3440 fi
3441else
3442 ac_cpp_err=yes
3443fi
3444if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003445 :
3446else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003447 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003448sed 's/^/| /' conftest.$ac_ext >&5
3449
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003450 # Broken: fails on valid input.
3451continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003452fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003453
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003454rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003455
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003456 # OK, works on sane cases. Now check whether nonexistent headers
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003457 # can be detected and how.
3458 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003459/* confdefs.h. */
3460_ACEOF
3461cat confdefs.h >>conftest.$ac_ext
3462cat >>conftest.$ac_ext <<_ACEOF
3463/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003464#include <ac_nonexistent.h>
3465_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3468 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003469 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003470 rm -f conftest.er1
3471 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003473 (exit $ac_status); } >/dev/null; then
3474 if test -s conftest.err; then
3475 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003477 else
3478 ac_cpp_err=
3479 fi
3480else
3481 ac_cpp_err=yes
3482fi
3483if test -z "$ac_cpp_err"; then
3484 # Broken: success on invalid input.
3485continue
3486else
3487 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003488sed 's/^/| /' conftest.$ac_ext >&5
3489
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003490 # Passes both tests.
3491ac_preproc_ok=:
3492break
3493fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003494
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003495rm -f conftest.err conftest.$ac_ext
3496
3497done
3498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3499rm -f conftest.err conftest.$ac_ext
3500if $ac_preproc_ok; then
3501 break
3502fi
3503
3504 done
3505 ac_cv_prog_CPP=$CPP
3506
3507fi
3508 CPP=$ac_cv_prog_CPP
3509else
3510 ac_cv_prog_CPP=$CPP
3511fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003512{ echo "$as_me:$LINENO: result: $CPP" >&5
3513echo "${ECHO_T}$CPP" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003514ac_preproc_ok=false
3515for ac_c_preproc_warn_flag in '' yes
3516do
3517 # Use a header file that comes with gcc, so configuring glibc
3518 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3520 # <limits.h> exists even on freestanding compilers.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003521 # On the NeXT, cc -E runs the code through the compiler's parser,
3522 # not just through cpp. "Syntax error" is here to catch this case.
3523 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003524/* confdefs.h. */
3525_ACEOF
3526cat confdefs.h >>conftest.$ac_ext
3527cat >>conftest.$ac_ext <<_ACEOF
3528/* end confdefs.h. */
3529#ifdef __STDC__
3530# include <limits.h>
3531#else
3532# include <assert.h>
3533#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003534 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003535_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3538 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003539 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003540 rm -f conftest.er1
3541 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003543 (exit $ac_status); } >/dev/null; then
3544 if test -s conftest.err; then
3545 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003547 else
3548 ac_cpp_err=
3549 fi
3550else
3551 ac_cpp_err=yes
3552fi
3553if test -z "$ac_cpp_err"; then
3554 :
3555else
3556 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003557sed 's/^/| /' conftest.$ac_ext >&5
3558
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003559 # Broken: fails on valid input.
3560continue
3561fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003562
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003563rm -f conftest.err conftest.$ac_ext
3564
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003565 # OK, works on sane cases. Now check whether nonexistent headers
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003566 # can be detected and how.
3567 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003568/* confdefs.h. */
3569_ACEOF
3570cat confdefs.h >>conftest.$ac_ext
3571cat >>conftest.$ac_ext <<_ACEOF
3572/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003573#include <ac_nonexistent.h>
3574_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3577 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003578 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003579 rm -f conftest.er1
3580 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003582 (exit $ac_status); } >/dev/null; then
3583 if test -s conftest.err; then
3584 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003586 else
3587 ac_cpp_err=
3588 fi
3589else
3590 ac_cpp_err=yes
3591fi
3592if test -z "$ac_cpp_err"; then
3593 # Broken: success on invalid input.
3594continue
3595else
3596 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003597sed 's/^/| /' conftest.$ac_ext >&5
3598
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003599 # Passes both tests.
3600ac_preproc_ok=:
3601break
3602fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003603
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003604rm -f conftest.err conftest.$ac_ext
3605
3606done
3607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3608rm -f conftest.err conftest.$ac_ext
3609if $ac_preproc_ok; then
3610 :
3611else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003612 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3613See \`config.log' for more details." >&5
3614echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3615See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003616 { (exit 1); exit 1; }; }
3617fi
3618
3619ac_ext=c
3620ac_cpp='$CPP $CPPFLAGS'
3621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623ac_compiler_gnu=$ac_cv_c_compiler_gnu
3624
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003625
Eric Pouech800864a2004-04-05 22:21:27 +00003626
3627if test "x$ac_path_x_has_been_run" != xyes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003628 { echo "$as_me:$LINENO: checking for X" >&5
3629echo $ECHO_N "checking for X... $ECHO_C" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003630
Eric Pouech800864a2004-04-05 22:21:27 +00003631ac_path_x_has_been_run=yes
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003632
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003633# Check whether --with-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003634if test "${with_x+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003635 withval=$with_x;
3636fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003637
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003638# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003639if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003640 # The user explicitly disabled X.
3641 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003642else
3643 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003644 # Both variables are already set.
3645 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003646 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003647 if test "${ac_cv_have_x+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003649else
3650 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003651ac_x_includes=no ac_x_libraries=no
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003652rm -f -r conftest.dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003653if mkdir conftest.dir; then
3654 cd conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003655 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003656 cat >Imakefile <<'_ACEOF'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003657acfindx:
3658 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003659_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003660 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003661 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003662 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003663 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3664 for ac_extension in a so sl; do
3665 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003666 test -f $ac_im_libdir/libX11.$ac_extension; then
3667 ac_im_usrlibdir=$ac_im_libdir; break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003668 fi
3669 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003670 # Screen out bogus values from the imake configuration. They are
3671 # bogus both because they are the default anyway, and because
3672 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003673 case $ac_im_incroot in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003674 /usr/include) ac_x_includes= ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003675 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003676 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003677 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003678 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003679 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003680 esac
3681 fi
3682 cd ..
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003683 rm -f -r conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003684fi
3685
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003686# Standard set of common directories for X headers.
3687# Check X11 before X11Rn because it is often a symlink to the current release.
3688ac_x_header_dirs='
3689/usr/X11/include
3690/usr/X11R6/include
3691/usr/X11R5/include
3692/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003693
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003694/usr/include/X11
3695/usr/include/X11R6
3696/usr/include/X11R5
3697/usr/include/X11R4
3698
3699/usr/local/X11/include
3700/usr/local/X11R6/include
3701/usr/local/X11R5/include
3702/usr/local/X11R4/include
3703
3704/usr/local/include/X11
3705/usr/local/include/X11R6
3706/usr/local/include/X11R5
3707/usr/local/include/X11R4
3708
3709/usr/X386/include
3710/usr/x386/include
3711/usr/XFree86/include/X11
3712
3713/usr/include
3714/usr/local/include
3715/usr/unsupported/include
3716/usr/athena/include
3717/usr/local/x11r5/include
3718/usr/lpp/Xamples/include
3719
3720/usr/openwin/include
3721/usr/openwin/share/include'
3722
3723if test "$ac_x_includes" = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003724 # Guess where to find include files, by looking for Xlib.h.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003725 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003726 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003727/* confdefs.h. */
3728_ACEOF
3729cat confdefs.h >>conftest.$ac_ext
3730cat >>conftest.$ac_ext <<_ACEOF
3731/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003732#include <X11/Xlib.h.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003733_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3736 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003737 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003738 rm -f conftest.er1
3739 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003741 (exit $ac_status); } >/dev/null; then
3742 if test -s conftest.err; then
3743 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003744 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003745 else
3746 ac_cpp_err=
3747 fi
3748else
3749 ac_cpp_err=yes
3750fi
3751if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003752 # We can compile using X headers with no special include directory.
3753ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003754else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003755 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003756sed 's/^/| /' conftest.$ac_ext >&5
3757
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003758 for ac_dir in $ac_x_header_dirs; do
Alexandre Julliardd7d31692005-10-25 12:04:17 +00003759 if test -r "$ac_dir/X11/Xlib.h"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003760 ac_x_includes=$ac_dir
3761 break
3762 fi
3763done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003764fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003765
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003766rm -f conftest.err conftest.$ac_ext
3767fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003768
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003769if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003770 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003771 # See if we find them without any special options.
3772 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003773 ac_save_LIBS=$LIBS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003774 LIBS="-lXt $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003775 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003776/* confdefs.h. */
3777_ACEOF
3778cat confdefs.h >>conftest.$ac_ext
3779cat >>conftest.$ac_ext <<_ACEOF
3780/* end confdefs.h. */
Alexandre Julliardd7d31692005-10-25 12:04:17 +00003781#include <X11/Xlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003782int
3783main ()
3784{
Alexandre Julliardd7d31692005-10-25 12:04:17 +00003785XrmInitialize ()
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003786 ;
3787 return 0;
3788}
3789_ACEOF
3790rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003792 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003793 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003798 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003807 (eval $ac_try) 2>&5
3808 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003810 (exit $ac_status); }; }; then
3811 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003812# We can link X programs with no special library path.
3813ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003814else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003815 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003816sed 's/^/| /' conftest.$ac_ext >&5
3817
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003818 LIBS=$ac_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003819for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003820do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003821 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003822 for ac_extension in a so sl; do
Alexandre Julliardd7d31692005-10-25 12:04:17 +00003823 if test -r $ac_dir/libX11.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003824 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003825 break 2
3826 fi
3827 done
3828done
3829fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003830
Alexandre Julliard875927f2004-01-02 01:55:29 +00003831rm -f conftest.err conftest.$ac_objext \
3832 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003833fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003834
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003835if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003836 # Didn't find X anywhere. Cache the known absence of X.
3837 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003838else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003839 # Record where we found X for the cache.
3840 ac_cv_have_x="have_x=yes \
Alexandre Julliard875927f2004-01-02 01:55:29 +00003841 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003842fi
3843fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003844
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003845 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003846 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003847fi # $with_x != no
3848
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003849if test "$have_x" != yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003850 { echo "$as_me:$LINENO: result: $have_x" >&5
3851echo "${ECHO_T}$have_x" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003852 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003853else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003854 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003855 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3856 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003857 # Update the cache value to reflect the command line values.
3858 ac_cv_have_x="have_x=yes \
3859 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Eric Pouech800864a2004-04-05 22:21:27 +00003860 # It might be that x_includes is empty (headers are found in the
3861 # standard search path. Then output the corresponding message
3862 ac_out_x_includes=$x_includes
3863 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003864 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3865echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003866fi
3867
Eric Pouech800864a2004-04-05 22:21:27 +00003868fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003869if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003870 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003871
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003872cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003873#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003874_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003875
3876 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003877else
3878 if test -n "$x_includes"; then
3879 X_CFLAGS="$X_CFLAGS -I$x_includes"
3880 fi
3881
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003882 # It would also be nice to do this for all -L options, not just this one.
3883 if test -n "$x_libraries"; then
3884 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003885 # For Solaris; some versions of Sun CC require a space after -R and
3886 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003887 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003888 "SunOS 5"*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003889 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3890echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003891 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3892 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003893/* confdefs.h. */
3894_ACEOF
3895cat confdefs.h >>conftest.$ac_ext
3896cat >>conftest.$ac_ext <<_ACEOF
3897/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003898
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003899int
3900main ()
3901{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003902
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003903 ;
3904 return 0;
3905}
3906_ACEOF
3907rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003909 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003910 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003915 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; } &&
3922 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003924 (eval $ac_try) 2>&5
3925 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003927 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003928 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003929else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003930 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003931sed 's/^/| /' conftest.$ac_ext >&5
3932
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003933 ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003934fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003935
Alexandre Julliard875927f2004-01-02 01:55:29 +00003936rm -f conftest.err conftest.$ac_objext \
3937 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003938 if test $ac_R_nospace = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003939 { echo "$as_me:$LINENO: result: no" >&5
3940echo "${ECHO_T}no" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003941 X_LIBS="$X_LIBS -R$x_libraries"
3942 else
3943 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003944 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003945/* confdefs.h. */
3946_ACEOF
3947cat confdefs.h >>conftest.$ac_ext
3948cat >>conftest.$ac_ext <<_ACEOF
3949/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003950
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003951int
3952main ()
3953{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003954
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003955 ;
3956 return 0;
3957}
3958_ACEOF
3959rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003961 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003962 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003963 grep -v '^ *+' conftest.er1 >conftest.err
3964 rm -f conftest.er1
3965 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003967 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970 (eval $ac_try) 2>&5
3971 ac_status=$?
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; } &&
3974 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003976 (eval $ac_try) 2>&5
3977 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003979 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003980 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003981else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003982 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003983sed 's/^/| /' conftest.$ac_ext >&5
3984
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003985 ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003986fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003987
Alexandre Julliard875927f2004-01-02 01:55:29 +00003988rm -f conftest.err conftest.$ac_objext \
3989 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003990 if test $ac_R_space = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003991 { echo "$as_me:$LINENO: result: yes" >&5
3992echo "${ECHO_T}yes" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003993 X_LIBS="$X_LIBS -R $x_libraries"
3994 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003995 { echo "$as_me:$LINENO: result: neither works" >&5
3996echo "${ECHO_T}neither works" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003997 fi
3998 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003999 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004000 esac
4001 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004002
4003 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004004 # Do this before checking for the system-independent R6 libraries
4005 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004006
4007 if test "$ISC" = yes; then
4008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4009 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004010 # Martyn Johnson says this is needed for Ultrix, if the X
4011 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004012 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004013 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4014 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004015/* confdefs.h. */
4016_ACEOF
4017cat confdefs.h >>conftest.$ac_ext
4018cat >>conftest.$ac_ext <<_ACEOF
4019/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004020
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004021/* Override any GCC internal prototype to avoid an error.
4022 Use char because int might match the return type of a GCC
4023 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004024#ifdef __cplusplus
4025extern "C"
4026#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004027char XOpenDisplay ();
4028int
4029main ()
4030{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004031return XOpenDisplay ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004032 ;
4033 return 0;
4034}
4035_ACEOF
4036rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004038 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004039 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004040 grep -v '^ *+' conftest.er1 >conftest.err
4041 rm -f conftest.er1
4042 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004044 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 (eval $ac_try) 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004053 (eval $ac_try) 2>&5
4054 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004056 (exit $ac_status); }; }; then
4057 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004058else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004059 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004060sed 's/^/| /' conftest.$ac_ext >&5
4061
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004062 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4063echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004064if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066else
4067 ac_check_lib_save_LIBS=$LIBS
4068LIBS="-ldnet $LIBS"
4069cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004070/* confdefs.h. */
4071_ACEOF
4072cat confdefs.h >>conftest.$ac_ext
4073cat >>conftest.$ac_ext <<_ACEOF
4074/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004075
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004076/* Override any GCC internal prototype to avoid an error.
4077 Use char because int might match the return type of a GCC
4078 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004079#ifdef __cplusplus
4080extern "C"
4081#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004082char dnet_ntoa ();
4083int
4084main ()
4085{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004086return dnet_ntoa ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004087 ;
4088 return 0;
4089}
4090_ACEOF
4091rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004093 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004094 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004099 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; } &&
4106 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004108 (eval $ac_try) 2>&5
4109 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004111 (exit $ac_status); }; }; then
4112 ac_cv_lib_dnet_dnet_ntoa=yes
4113else
4114 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004115sed 's/^/| /' conftest.$ac_ext >&5
4116
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004117 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004118fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004119
Alexandre Julliard875927f2004-01-02 01:55:29 +00004120rm -f conftest.err conftest.$ac_objext \
4121 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004122LIBS=$ac_check_lib_save_LIBS
4123fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004124{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4125echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004126if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004127 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004128fi
4129
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004130 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004131 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4132echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004133if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004135else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004136 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004137LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004138cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004139/* confdefs.h. */
4140_ACEOF
4141cat confdefs.h >>conftest.$ac_ext
4142cat >>conftest.$ac_ext <<_ACEOF
4143/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004144
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004145/* Override any GCC internal prototype to avoid an error.
4146 Use char because int might match the return type of a GCC
4147 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004148#ifdef __cplusplus
4149extern "C"
4150#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004151char dnet_ntoa ();
4152int
4153main ()
4154{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004155return dnet_ntoa ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004156 ;
4157 return 0;
4158}
4159_ACEOF
4160rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004162 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004163 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004164 grep -v '^ *+' conftest.er1 >conftest.err
4165 rm -f conftest.er1
4166 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004168 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; } &&
4175 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004177 (eval $ac_try) 2>&5
4178 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004180 (exit $ac_status); }; }; then
4181 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004182else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004183 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004184sed 's/^/| /' conftest.$ac_ext >&5
4185
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004186 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004187fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004188
Alexandre Julliard875927f2004-01-02 01:55:29 +00004189rm -f conftest.err conftest.$ac_objext \
4190 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004191LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004192fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004193{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4194echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004195if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004196 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004197fi
4198
4199 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004200fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004201
Alexandre Julliard875927f2004-01-02 01:55:29 +00004202rm -f conftest.err conftest.$ac_objext \
4203 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004204 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004205
4206 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4207 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004208 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004209 # needs -lnsl.
4210 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004211 # on Irix 5.2, according to T.E. Dickey.
4212 # The functions gethostbyname, getservbyname, and inet_addr are
4213 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004214 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4215echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004216if test "${ac_cv_func_gethostbyname+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004218else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004219 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004220/* confdefs.h. */
4221_ACEOF
4222cat confdefs.h >>conftest.$ac_ext
4223cat >>conftest.$ac_ext <<_ACEOF
4224/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004225/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4227#define gethostbyname innocuous_gethostbyname
4228
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004229/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004230 which can conflict with char gethostbyname (); below.
4231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4232 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004233
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004234#ifdef __STDC__
4235# include <limits.h>
4236#else
4237# include <assert.h>
4238#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004239
4240#undef gethostbyname
4241
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004242/* Override any GCC internal prototype to avoid an error.
4243 Use char because int might match the return type of a GCC
4244 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004245#ifdef __cplusplus
4246extern "C"
4247#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004248char gethostbyname ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004249/* The GNU C library defines this for functions which it implements
4250 to always fail with ENOSYS. Some functions are actually named
4251 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004252#if defined __stub_gethostbyname || defined __stub___gethostbyname
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004253choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004254#endif
4255
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004256int
4257main ()
4258{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004259return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004260 ;
4261 return 0;
4262}
4263_ACEOF
4264rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004266 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004267 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004268 grep -v '^ *+' conftest.er1 >conftest.err
4269 rm -f conftest.er1
4270 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004272 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4275 (eval $ac_try) 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; } &&
4279 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004281 (eval $ac_try) 2>&5
4282 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004284 (exit $ac_status); }; }; then
4285 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004286else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004287 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004288sed 's/^/| /' conftest.$ac_ext >&5
4289
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004290 ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004291fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004292
Alexandre Julliard875927f2004-01-02 01:55:29 +00004293rm -f conftest.err conftest.$ac_objext \
4294 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004295fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004296{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4297echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004298
4299 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004300 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4301echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004302if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4303 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004304else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004305 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004306LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004307cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004308/* confdefs.h. */
4309_ACEOF
4310cat confdefs.h >>conftest.$ac_ext
4311cat >>conftest.$ac_ext <<_ACEOF
4312/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004313
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004314/* Override any GCC internal prototype to avoid an error.
4315 Use char because int might match the return type of a GCC
4316 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004317#ifdef __cplusplus
4318extern "C"
4319#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004320char gethostbyname ();
4321int
4322main ()
4323{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004324return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004325 ;
4326 return 0;
4327}
4328_ACEOF
4329rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004331 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004332 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004333 grep -v '^ *+' conftest.er1 >conftest.err
4334 rm -f conftest.er1
4335 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004337 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4340 (eval $ac_try) 2>&5
4341 ac_status=$?
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; } &&
4344 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004346 (eval $ac_try) 2>&5
4347 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004349 (exit $ac_status); }; }; then
4350 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004351else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004352 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004353sed 's/^/| /' conftest.$ac_ext >&5
4354
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004355 ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004356fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004357
Alexandre Julliard875927f2004-01-02 01:55:29 +00004358rm -f conftest.err conftest.$ac_objext \
4359 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004360LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004361fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004362{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4363echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004364if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004365 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004366fi
4367
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004368 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004369 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4370echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004371if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373else
4374 ac_check_lib_save_LIBS=$LIBS
4375LIBS="-lbsd $LIBS"
4376cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004377/* confdefs.h. */
4378_ACEOF
4379cat confdefs.h >>conftest.$ac_ext
4380cat >>conftest.$ac_ext <<_ACEOF
4381/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004382
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004383/* Override any GCC internal prototype to avoid an error.
4384 Use char because int might match the return type of a GCC
4385 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004386#ifdef __cplusplus
4387extern "C"
4388#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004389char gethostbyname ();
4390int
4391main ()
4392{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004393return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004394 ;
4395 return 0;
4396}
4397_ACEOF
4398rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004400 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004401 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004402 grep -v '^ *+' conftest.er1 >conftest.err
4403 rm -f conftest.er1
4404 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004406 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; } &&
4413 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004415 (eval $ac_try) 2>&5
4416 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004418 (exit $ac_status); }; }; then
4419 ac_cv_lib_bsd_gethostbyname=yes
4420else
4421 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004422sed 's/^/| /' conftest.$ac_ext >&5
4423
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004424 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004425fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004426
Alexandre Julliard875927f2004-01-02 01:55:29 +00004427rm -f conftest.err conftest.$ac_objext \
4428 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004429LIBS=$ac_check_lib_save_LIBS
4430fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004431{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4432echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004433if test $ac_cv_lib_bsd_gethostbyname = yes; then
4434 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4435fi
4436
4437 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004438 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004439
4440 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004441 # socket/setsockopt and other routines are undefined under SCO ODT
4442 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004443 # on later versions), says Simon Leinen: it contains gethostby*
Alexandre Julliard11af04e2002-10-10 03:48:04 +00004444 # variants that don't use the name server (or something). -lsocket
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004445 # must be given before -lnsl if both are needed. We assume that
4446 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004447 { echo "$as_me:$LINENO: checking for connect" >&5
4448echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004449if test "${ac_cv_func_connect+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004451else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004452 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004453/* confdefs.h. */
4454_ACEOF
4455cat confdefs.h >>conftest.$ac_ext
4456cat >>conftest.$ac_ext <<_ACEOF
4457/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004458/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4460#define connect innocuous_connect
4461
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004462/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004463 which can conflict with char connect (); below.
4464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4465 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004466
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004467#ifdef __STDC__
4468# include <limits.h>
4469#else
4470# include <assert.h>
4471#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004472
4473#undef connect
4474
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004475/* Override any GCC internal prototype to avoid an error.
4476 Use char because int might match the return type of a GCC
4477 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004478#ifdef __cplusplus
4479extern "C"
4480#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004481char connect ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004482/* The GNU C library defines this for functions which it implements
4483 to always fail with ENOSYS. Some functions are actually named
4484 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004485#if defined __stub_connect || defined __stub___connect
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004486choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004487#endif
4488
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004489int
4490main ()
4491{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004492return connect ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004493 ;
4494 return 0;
4495}
4496_ACEOF
4497rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004499 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004500 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004501 grep -v '^ *+' conftest.er1 >conftest.err
4502 rm -f conftest.er1
4503 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004505 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508 (eval $ac_try) 2>&5
4509 ac_status=$?
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; } &&
4512 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004514 (eval $ac_try) 2>&5
4515 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004517 (exit $ac_status); }; }; then
4518 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004519else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004520 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004521sed 's/^/| /' conftest.$ac_ext >&5
4522
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004523 ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004524fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004525
Alexandre Julliard875927f2004-01-02 01:55:29 +00004526rm -f conftest.err conftest.$ac_objext \
4527 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004528fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004529{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4530echo "${ECHO_T}$ac_cv_func_connect" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004531
4532 if test $ac_cv_func_connect = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004533 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4534echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004535if test "${ac_cv_lib_socket_connect+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004537else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004538 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004539LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004540cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004541/* confdefs.h. */
4542_ACEOF
4543cat confdefs.h >>conftest.$ac_ext
4544cat >>conftest.$ac_ext <<_ACEOF
4545/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004546
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004547/* Override any GCC internal prototype to avoid an error.
4548 Use char because int might match the return type of a GCC
4549 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004550#ifdef __cplusplus
4551extern "C"
4552#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004553char connect ();
4554int
4555main ()
4556{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004557return connect ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004558 ;
4559 return 0;
4560}
4561_ACEOF
4562rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004564 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004565 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004566 grep -v '^ *+' conftest.er1 >conftest.err
4567 rm -f conftest.er1
4568 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004570 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 (eval $ac_try) 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; } &&
4577 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004579 (eval $ac_try) 2>&5
4580 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004582 (exit $ac_status); }; }; then
4583 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004584else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004585 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004586sed 's/^/| /' conftest.$ac_ext >&5
4587
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004588 ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004589fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004590
Alexandre Julliard875927f2004-01-02 01:55:29 +00004591rm -f conftest.err conftest.$ac_objext \
4592 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004593LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004594fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004595{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4596echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004597if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004598 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004599fi
4600
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004601 fi
4602
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004603 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004604 { echo "$as_me:$LINENO: checking for remove" >&5
4605echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004606if test "${ac_cv_func_remove+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004608else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004609 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004610/* confdefs.h. */
4611_ACEOF
4612cat confdefs.h >>conftest.$ac_ext
4613cat >>conftest.$ac_ext <<_ACEOF
4614/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004615/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4617#define remove innocuous_remove
4618
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004619/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004620 which can conflict with char remove (); below.
4621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4622 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004623
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004624#ifdef __STDC__
4625# include <limits.h>
4626#else
4627# include <assert.h>
4628#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004629
4630#undef remove
4631
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004632/* Override any GCC internal prototype to avoid an error.
4633 Use char because int might match the return type of a GCC
4634 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004635#ifdef __cplusplus
4636extern "C"
4637#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004638char remove ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004639/* The GNU C library defines this for functions which it implements
4640 to always fail with ENOSYS. Some functions are actually named
4641 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004642#if defined __stub_remove || defined __stub___remove
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004643choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004644#endif
4645
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004646int
4647main ()
4648{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004649return remove ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004650 ;
4651 return 0;
4652}
4653_ACEOF
4654rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004656 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004657 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004658 grep -v '^ *+' conftest.er1 >conftest.err
4659 rm -f conftest.er1
4660 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004662 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665 (eval $ac_try) 2>&5
4666 ac_status=$?
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); }; } &&
4669 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004671 (eval $ac_try) 2>&5
4672 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004674 (exit $ac_status); }; }; then
4675 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004676else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004677 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004678sed 's/^/| /' conftest.$ac_ext >&5
4679
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004680 ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004681fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004682
Alexandre Julliard875927f2004-01-02 01:55:29 +00004683rm -f conftest.err conftest.$ac_objext \
4684 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004685fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004686{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4687echo "${ECHO_T}$ac_cv_func_remove" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004688
4689 if test $ac_cv_func_remove = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004690 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4691echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004692if test "${ac_cv_lib_posix_remove+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004694else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004695 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004696LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004697cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004698/* confdefs.h. */
4699_ACEOF
4700cat confdefs.h >>conftest.$ac_ext
4701cat >>conftest.$ac_ext <<_ACEOF
4702/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004703
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004704/* Override any GCC internal prototype to avoid an error.
4705 Use char because int might match the return type of a GCC
4706 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004707#ifdef __cplusplus
4708extern "C"
4709#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004710char remove ();
4711int
4712main ()
4713{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004714return remove ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004715 ;
4716 return 0;
4717}
4718_ACEOF
4719rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004721 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004722 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004723 grep -v '^ *+' conftest.er1 >conftest.err
4724 rm -f conftest.er1
4725 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004727 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; } &&
4734 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004736 (eval $ac_try) 2>&5
4737 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004739 (exit $ac_status); }; }; then
4740 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004741else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004742 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004743sed 's/^/| /' conftest.$ac_ext >&5
4744
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004745 ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004746fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004747
Alexandre Julliard875927f2004-01-02 01:55:29 +00004748rm -f conftest.err conftest.$ac_objext \
4749 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004750LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004751fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004752{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4753echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004754if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004755 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004756fi
4757
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004758 fi
4759
4760 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004761 { echo "$as_me:$LINENO: checking for shmat" >&5
4762echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004763if test "${ac_cv_func_shmat+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004765else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004766 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004767/* confdefs.h. */
4768_ACEOF
4769cat confdefs.h >>conftest.$ac_ext
4770cat >>conftest.$ac_ext <<_ACEOF
4771/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004772/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4774#define shmat innocuous_shmat
4775
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004776/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004777 which can conflict with char shmat (); below.
4778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4779 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004780
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004781#ifdef __STDC__
4782# include <limits.h>
4783#else
4784# include <assert.h>
4785#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004786
4787#undef shmat
4788
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004789/* Override any GCC internal prototype to avoid an error.
4790 Use char because int might match the return type of a GCC
4791 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004792#ifdef __cplusplus
4793extern "C"
4794#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004795char shmat ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004796/* The GNU C library defines this for functions which it implements
4797 to always fail with ENOSYS. Some functions are actually named
4798 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004799#if defined __stub_shmat || defined __stub___shmat
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004800choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004801#endif
4802
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004803int
4804main ()
4805{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004806return shmat ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004807 ;
4808 return 0;
4809}
4810_ACEOF
4811rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004813 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004814 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004815 grep -v '^ *+' conftest.er1 >conftest.err
4816 rm -f conftest.er1
4817 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004819 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004828 (eval $ac_try) 2>&5
4829 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004831 (exit $ac_status); }; }; then
4832 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004833else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004834 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004835sed 's/^/| /' conftest.$ac_ext >&5
4836
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004837 ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004838fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004839
Alexandre Julliard875927f2004-01-02 01:55:29 +00004840rm -f conftest.err conftest.$ac_objext \
4841 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004842fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004843{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4844echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004845
4846 if test $ac_cv_func_shmat = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004847 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4848echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004849if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004851else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004852 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004853LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004854cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004855/* confdefs.h. */
4856_ACEOF
4857cat confdefs.h >>conftest.$ac_ext
4858cat >>conftest.$ac_ext <<_ACEOF
4859/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004860
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004861/* Override any GCC internal prototype to avoid an error.
4862 Use char because int might match the return type of a GCC
4863 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004864#ifdef __cplusplus
4865extern "C"
4866#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004867char shmat ();
4868int
4869main ()
4870{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004871return shmat ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004872 ;
4873 return 0;
4874}
4875_ACEOF
4876rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004878 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004879 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004880 grep -v '^ *+' conftest.er1 >conftest.err
4881 rm -f conftest.er1
4882 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004884 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 (eval $ac_try) 2>&5
4888 ac_status=$?
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); }; } &&
4891 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004893 (eval $ac_try) 2>&5
4894 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004896 (exit $ac_status); }; }; then
4897 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004898else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004899 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004900sed 's/^/| /' conftest.$ac_ext >&5
4901
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004902 ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004903fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004904
Alexandre Julliard875927f2004-01-02 01:55:29 +00004905rm -f conftest.err conftest.$ac_objext \
4906 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004907LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004908fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004909{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4910echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004911if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004912 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004913fi
4914
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004915 fi
4916 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004917
4918 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004919 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004920 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4921 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4922 # check for ICE first), but we must link in the order -lSM -lICE or
4923 # we get undefined symbols. So assume we have SM if we have ICE.
4924 # These have to be linked with before -lX11, unlike the other
4925 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004926 # John Interrante, Karl Berry
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004927 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4928echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004929if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004931else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004932 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00004933LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004934cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004935/* confdefs.h. */
4936_ACEOF
4937cat confdefs.h >>conftest.$ac_ext
4938cat >>conftest.$ac_ext <<_ACEOF
4939/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004940
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004941/* Override any GCC internal prototype to avoid an error.
4942 Use char because int might match the return type of a GCC
4943 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004944#ifdef __cplusplus
4945extern "C"
4946#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004947char IceConnectionNumber ();
4948int
4949main ()
4950{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004951return IceConnectionNumber ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004952 ;
4953 return 0;
4954}
4955_ACEOF
4956rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004958 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004959 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004964 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967 (eval $ac_try) 2>&5
4968 ac_status=$?
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; } &&
4971 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004973 (eval $ac_try) 2>&5
4974 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004976 (exit $ac_status); }; }; then
4977 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004978else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004979 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004980sed 's/^/| /' conftest.$ac_ext >&5
4981
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004982 ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004983fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004984
Alexandre Julliard875927f2004-01-02 01:55:29 +00004985rm -f conftest.err conftest.$ac_objext \
4986 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004987LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004988fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004989{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4990echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004991if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004992 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004993fi
4994
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004995 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004996
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004997fi
4998
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004999for ac_prog in flex lex
5000do
5001 # Extract the first word of "$ac_prog", so it can be a program name with args.
5002set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005005if test "${ac_cv_prog_LEX+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005007else
5008 if test -n "$LEX"; then
5009 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5010else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012for as_dir in $PATH
5013do
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005018 ac_cv_prog_LEX="$ac_prog"
5019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5021 fi
5022done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005023done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005024IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005025
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005026fi
5027fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005028LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005029if test -n "$LEX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005030 { echo "$as_me:$LINENO: result: $LEX" >&5
5031echo "${ECHO_T}$LEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005032else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005033 { echo "$as_me:$LINENO: result: no" >&5
5034echo "${ECHO_T}no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005035fi
5036
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005037
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005038 test -n "$LEX" && break
5039done
5040test -n "$LEX" || LEX=":"
5041
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005042if test -z "$LEXLIB"
5043then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005044 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5045echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005046if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005048else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005049 ac_check_lib_save_LIBS=$LIBS
5050LIBS="-lfl $LIBS"
5051cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005052/* confdefs.h. */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005057
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005058/* Override any GCC internal prototype to avoid an error.
5059 Use char because int might match the return type of a GCC
5060 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005061#ifdef __cplusplus
5062extern "C"
5063#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005064char yywrap ();
5065int
5066main ()
5067{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005068return yywrap ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005069 ;
5070 return 0;
5071}
5072_ACEOF
5073rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005075 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005076 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005077 grep -v '^ *+' conftest.er1 >conftest.err
5078 rm -f conftest.er1
5079 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005081 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084 (eval $ac_try) 2>&5
5085 ac_status=$?
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); }; } &&
5088 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005090 (eval $ac_try) 2>&5
5091 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005093 (exit $ac_status); }; }; then
5094 ac_cv_lib_fl_yywrap=yes
5095else
5096 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005097sed 's/^/| /' conftest.$ac_ext >&5
5098
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005099 ac_cv_lib_fl_yywrap=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005100fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005101
Alexandre Julliard875927f2004-01-02 01:55:29 +00005102rm -f conftest.err conftest.$ac_objext \
5103 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005104LIBS=$ac_check_lib_save_LIBS
5105fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005106{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5107echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005108if test $ac_cv_lib_fl_yywrap = yes; then
5109 LEXLIB="-lfl"
5110else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005111 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5112echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005113if test "${ac_cv_lib_l_yywrap+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115else
5116 ac_check_lib_save_LIBS=$LIBS
5117LIBS="-ll $LIBS"
5118cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005119/* confdefs.h. */
5120_ACEOF
5121cat confdefs.h >>conftest.$ac_ext
5122cat >>conftest.$ac_ext <<_ACEOF
5123/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005124
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005125/* Override any GCC internal prototype to avoid an error.
5126 Use char because int might match the return type of a GCC
5127 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005128#ifdef __cplusplus
5129extern "C"
5130#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005131char yywrap ();
5132int
5133main ()
5134{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005135return yywrap ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005136 ;
5137 return 0;
5138}
5139_ACEOF
5140rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005142 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005143 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005148 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5151 (eval $ac_try) 2>&5
5152 ac_status=$?
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); }; } &&
5155 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005157 (eval $ac_try) 2>&5
5158 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005160 (exit $ac_status); }; }; then
5161 ac_cv_lib_l_yywrap=yes
5162else
5163 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005164sed 's/^/| /' conftest.$ac_ext >&5
5165
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005166 ac_cv_lib_l_yywrap=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005167fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005168
Alexandre Julliard875927f2004-01-02 01:55:29 +00005169rm -f conftest.err conftest.$ac_objext \
5170 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005171LIBS=$ac_check_lib_save_LIBS
5172fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005173{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5174echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005175if test $ac_cv_lib_l_yywrap = yes; then
5176 LEXLIB="-ll"
5177fi
5178
5179fi
5180
5181fi
5182
5183if test "x$LEX" != "x:"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005184 { echo "$as_me:$LINENO: checking lex output file root" >&5
5185echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005186if test "${ac_cv_prog_lex_root+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189 # The minimal lex program is just a single line: %%. But some broken lexes
5190# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005191cat >conftest.l <<_ACEOF
5192%%
5193%%
5194_ACEOF
5195{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5196 (eval $LEX conftest.l) 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005200if test -f lex.yy.c; then
5201 ac_cv_prog_lex_root=lex.yy
5202elif test -f lexyy.c; then
5203 ac_cv_prog_lex_root=lexyy
5204else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005205 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005206echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5207 { (exit 1); exit 1; }; }
5208fi
5209fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005210{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5211echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005212rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005213LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5214
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005215{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5216echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005217if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5219else
5220 # POSIX says lex can declare yytext either as a pointer or an array; the
5221# default is implementation-dependent. Figure out which it is, since
5222# not all implementations provide the %pointer and %array declarations.
5223ac_cv_prog_lex_yytext_pointer=no
5224echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5225ac_save_LIBS=$LIBS
5226LIBS="$LIBS $LEXLIB"
5227cat >conftest.$ac_ext <<_ACEOF
5228`cat $LEX_OUTPUT_ROOT.c`
5229_ACEOF
5230rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005232 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005233 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005238 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 (eval $ac_try) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; } &&
5245 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005247 (eval $ac_try) 2>&5
5248 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005250 (exit $ac_status); }; }; then
5251 ac_cv_prog_lex_yytext_pointer=yes
5252else
5253 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005254sed 's/^/| /' conftest.$ac_ext >&5
5255
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005256
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005257fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005258
Alexandre Julliard875927f2004-01-02 01:55:29 +00005259rm -f conftest.err conftest.$ac_objext \
5260 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005261LIBS=$ac_save_LIBS
5262rm -f "${LEX_OUTPUT_ROOT}.c"
5263
5264fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005265{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5266echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005267if test $ac_cv_prog_lex_yytext_pointer = yes; then
5268
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005269cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005270#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005271_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005272
5273fi
5274
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005275fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00005276
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005277for ac_prog in $LEX flex lex
5278do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005279 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005280set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005281{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005283if test "${ac_cv_prog_XLEX+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005285else
5286 if test -n "$XLEX"; then
5287 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5288else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290for as_dir in $PATH
5291do
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005296 ac_cv_prog_XLEX="$ac_prog"
5297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5299 fi
5300done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005301done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005302IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005303
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005304fi
5305fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005306XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005307if test -n "$XLEX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005308 { echo "$as_me:$LINENO: result: $XLEX" >&5
5309echo "${ECHO_T}$XLEX" >&6; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005310else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005311 { echo "$as_me:$LINENO: result: no" >&5
5312echo "${ECHO_T}no" >&6; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005313fi
5314
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005315
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005316 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005317done
5318test -n "$XLEX" || XLEX="none"
5319
5320if test "$XLEX" = "none"
5321then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005322 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005323echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5324 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005325fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005326
Mike McCormackc068f672004-03-16 03:11:39 +00005327for ac_prog in bison
5328do
5329 # Extract the first word of "$ac_prog", so it can be a program name with args.
5330set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005331{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00005333if test "${ac_cv_prog_BISON+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335else
5336 if test -n "$BISON"; then
5337 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5338else
5339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340for as_dir in $PATH
5341do
5342 IFS=$as_save_IFS
5343 test -z "$as_dir" && as_dir=.
5344 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Mike McCormackc068f672004-03-16 03:11:39 +00005346 ac_cv_prog_BISON="$ac_prog"
5347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 break 2
5349 fi
5350done
5351done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005352IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00005353
5354fi
5355fi
5356BISON=$ac_cv_prog_BISON
5357if test -n "$BISON"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005358 { echo "$as_me:$LINENO: result: $BISON" >&5
5359echo "${ECHO_T}$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00005360else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005361 { echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00005363fi
5364
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005365
Mike McCormackc068f672004-03-16 03:11:39 +00005366 test -n "$BISON" && break
5367done
5368test -n "$BISON" || BISON="none"
5369
5370if test "$BISON" = "none"
5371then
5372 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5373echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5374 { (exit 1); exit 1; }; }
5375fi
5376
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005377if test -n "$ac_tool_prefix"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005378 for ac_prog in gas as
5379 do
5380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5381set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005382{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005384if test "${ac_cv_prog_AS+set}" = set; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387 if test -n "$AS"; then
5388 ac_cv_prog_AS="$AS" # Let the user override the test.
5389else
5390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005397 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00005398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5400 fi
5401done
5402done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005403IFS=$as_save_IFS
Marcus Meissner1d4db782003-01-09 00:46:54 +00005404
5405fi
5406fi
5407AS=$ac_cv_prog_AS
5408if test -n "$AS"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005409 { echo "$as_me:$LINENO: result: $AS" >&5
5410echo "${ECHO_T}$AS" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005411else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005412 { echo "$as_me:$LINENO: result: no" >&5
5413echo "${ECHO_T}no" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005414fi
5415
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005416
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005417 test -n "$AS" && break
5418 done
Marcus Meissner1d4db782003-01-09 00:46:54 +00005419fi
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005420if test -z "$AS"; then
Marcus Meissner1d4db782003-01-09 00:46:54 +00005421 ac_ct_AS=$AS
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005422 for ac_prog in gas as
5423do
5424 # Extract the first word of "$ac_prog", so it can be a program name with args.
5425set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005428if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5430else
5431 if test -n "$ac_ct_AS"; then
5432 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5433else
5434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435for as_dir in $PATH
5436do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005441 ac_cv_prog_ac_ct_AS="$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00005442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5444 fi
5445done
5446done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005447IFS=$as_save_IFS
Marcus Meissner1d4db782003-01-09 00:46:54 +00005448
Marcus Meissner1d4db782003-01-09 00:46:54 +00005449fi
5450fi
5451ac_ct_AS=$ac_cv_prog_ac_ct_AS
5452if test -n "$ac_ct_AS"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005453 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5454echo "${ECHO_T}$ac_ct_AS" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005455else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005456 { echo "$as_me:$LINENO: result: no" >&5
5457echo "${ECHO_T}no" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005458fi
5459
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005460
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005461 test -n "$ac_ct_AS" && break
5462done
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005463
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005464 if test "x$ac_ct_AS" = x; then
5465 AS="as"
5466 else
5467 case $cross_compiling:$ac_tool_warned in
5468yes:)
5469{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5470whose name does not start with the host triplet. If you think this
5471configuration is useful to you, please write to autoconf@gnu.org." >&5
5472echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5473whose name does not start with the host triplet. If you think this
5474configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5475ac_tool_warned=yes ;;
5476esac
5477 AS=$ac_ct_AS
5478 fi
Marcus Meissner1d4db782003-01-09 00:46:54 +00005479fi
5480
5481if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005482 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5483set dummy ${ac_tool_prefix}ld; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005486if test "${ac_cv_prog_LD+set}" = set; then
5487 echo $ECHO_N "(cached) $ECHO_C" >&6
5488else
5489 if test -n "$LD"; then
5490 ac_cv_prog_LD="$LD" # Let the user override the test.
5491else
5492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493for as_dir in $PATH
5494do
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005499 ac_cv_prog_LD="${ac_tool_prefix}ld"
5500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5502 fi
5503done
5504done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005505IFS=$as_save_IFS
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005506
5507fi
5508fi
5509LD=$ac_cv_prog_LD
5510if test -n "$LD"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005511 { echo "$as_me:$LINENO: result: $LD" >&5
5512echo "${ECHO_T}$LD" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005513else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005514 { echo "$as_me:$LINENO: result: no" >&5
5515echo "${ECHO_T}no" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005516fi
5517
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005518
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005519fi
5520if test -z "$ac_cv_prog_LD"; then
5521 ac_ct_LD=$LD
5522 # Extract the first word of "ld", so it can be a program name with args.
5523set dummy ld; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005526if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5528else
5529 if test -n "$ac_ct_LD"; then
5530 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5531else
5532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533for as_dir in $PATH
5534do
5535 IFS=$as_save_IFS
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005539 ac_cv_prog_ac_ct_LD="ld"
5540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5541 break 2
5542 fi
5543done
5544done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005545IFS=$as_save_IFS
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005546
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005547fi
5548fi
5549ac_ct_LD=$ac_cv_prog_ac_ct_LD
5550if test -n "$ac_ct_LD"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005551 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5552echo "${ECHO_T}$ac_ct_LD" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005553else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005554 { echo "$as_me:$LINENO: result: no" >&5
5555echo "${ECHO_T}no" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005556fi
5557
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005558 if test "x$ac_ct_LD" = x; then
5559 LD="ld"
5560 else
5561 case $cross_compiling:$ac_tool_warned in
5562yes:)
5563{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5564whose name does not start with the host triplet. If you think this
5565configuration is useful to you, please write to autoconf@gnu.org." >&5
5566echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5567whose name does not start with the host triplet. If you think this
5568configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5569ac_tool_warned=yes ;;
5570esac
5571 LD=$ac_ct_LD
5572 fi
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005573else
5574 LD="$ac_cv_prog_LD"
5575fi
5576
5577if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005578 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5579set dummy ${ac_tool_prefix}ar; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005580{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005582if test "${ac_cv_prog_AR+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585 if test -n "$AR"; then
5586 ac_cv_prog_AR="$AR" # Let the user override the test.
5587else
5588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589for as_dir in $PATH
5590do
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005595 ac_cv_prog_AR="${ac_tool_prefix}ar"
5596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5598 fi
5599done
5600done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005601IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005602
5603fi
5604fi
5605AR=$ac_cv_prog_AR
5606if test -n "$AR"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005607 { echo "$as_me:$LINENO: result: $AR" >&5
5608echo "${ECHO_T}$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005609else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005610 { echo "$as_me:$LINENO: result: no" >&5
5611echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005612fi
5613
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005614
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005615fi
5616if test -z "$ac_cv_prog_AR"; then
5617 ac_ct_AR=$AR
5618 # Extract the first word of "ar", so it can be a program name with args.
5619set dummy ar; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005622if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625 if test -n "$ac_ct_AR"; then
5626 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5627else
5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629for as_dir in $PATH
5630do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005635 ac_cv_prog_ac_ct_AR="ar"
5636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5638 fi
5639done
5640done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005641IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005642
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005643fi
5644fi
5645ac_ct_AR=$ac_cv_prog_ac_ct_AR
5646if test -n "$ac_ct_AR"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005647 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5648echo "${ECHO_T}$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005649else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005650 { echo "$as_me:$LINENO: result: no" >&5
5651echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005652fi
5653
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005654 if test "x$ac_ct_AR" = x; then
5655 AR="ar"
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658yes:)
5659{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5660whose name does not start with the host triplet. If you think this
5661configuration is useful to you, please write to autoconf@gnu.org." >&5
5662echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5663whose name does not start with the host triplet. If you think this
5664configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5665ac_tool_warned=yes ;;
5666esac
5667 AR=$ac_ct_AR
5668 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005669else
5670 AR="$ac_cv_prog_AR"
5671fi
5672
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005673if test -n "$ac_tool_prefix"; then
5674 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5675set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005676{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005678if test "${ac_cv_prog_RANLIB+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005680else
5681 if test -n "$RANLIB"; then
5682 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5683else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685for as_dir in $PATH
5686do
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005691 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5694 fi
5695done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005696done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005697IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005698
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005699fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005700fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005701RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005702if test -n "$RANLIB"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005703 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5704echo "${ECHO_T}$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005705else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005706 { echo "$as_me:$LINENO: result: no" >&5
5707echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005708fi
5709
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005710
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005711fi
5712if test -z "$ac_cv_prog_RANLIB"; then
5713 ac_ct_RANLIB=$RANLIB
5714 # Extract the first word of "ranlib", so it can be a program name with args.
5715set dummy ranlib; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005716{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005718if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721 if test -n "$ac_ct_RANLIB"; then
5722 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5723else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725for as_dir in $PATH
5726do
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005731 ac_cv_prog_ac_ct_RANLIB="ranlib"
5732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5734 fi
5735done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005736done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005737IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005738
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005739fi
5740fi
5741ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5742if test -n "$ac_ct_RANLIB"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005743 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5744echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005745else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005746 { echo "$as_me:$LINENO: result: no" >&5
5747echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005748fi
5749
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005750 if test "x$ac_ct_RANLIB" = x; then
5751 RANLIB=":"
5752 else
5753 case $cross_compiling:$ac_tool_warned in
5754yes:)
5755{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5756whose name does not start with the host triplet. If you think this
5757configuration is useful to you, please write to autoconf@gnu.org." >&5
5758echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5759whose name does not start with the host triplet. If you think this
5760configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5761ac_tool_warned=yes ;;
5762esac
5763 RANLIB=$ac_ct_RANLIB
5764 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005765else
5766 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005767fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005768
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005769if test -n "$ac_tool_prefix"; then
5770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5771set dummy ${ac_tool_prefix}strip; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005774if test "${ac_cv_prog_STRIP+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
5777 if test -n "$STRIP"; then
5778 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5779else
5780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781for as_dir in $PATH
5782do
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005787 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 break 2
5790 fi
5791done
5792done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005793IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005794
5795fi
5796fi
5797STRIP=$ac_cv_prog_STRIP
5798if test -n "$STRIP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005799 { echo "$as_me:$LINENO: result: $STRIP" >&5
5800echo "${ECHO_T}$STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005801else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005802 { echo "$as_me:$LINENO: result: no" >&5
5803echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005804fi
5805
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005806
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005807fi
5808if test -z "$ac_cv_prog_STRIP"; then
5809 ac_ct_STRIP=$STRIP
5810 # Extract the first word of "strip", so it can be a program name with args.
5811set dummy strip; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005814if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816else
5817 if test -n "$ac_ct_STRIP"; then
5818 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5819else
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005827 ac_cv_prog_ac_ct_STRIP="strip"
5828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5830 fi
5831done
5832done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005833IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005834
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005835fi
5836fi
5837ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5838if test -n "$ac_ct_STRIP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005839 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5840echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005841else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005842 { echo "$as_me:$LINENO: result: no" >&5
5843echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005844fi
5845
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005846 if test "x$ac_ct_STRIP" = x; then
5847 STRIP="strip"
5848 else
5849 case $cross_compiling:$ac_tool_warned in
5850yes:)
5851{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5852whose name does not start with the host triplet. If you think this
5853configuration is useful to you, please write to autoconf@gnu.org." >&5
5854echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5855whose name does not start with the host triplet. If you think this
5856configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5857ac_tool_warned=yes ;;
5858esac
5859 STRIP=$ac_ct_STRIP
5860 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005861else
5862 STRIP="$ac_cv_prog_STRIP"
5863fi
5864
5865if test -n "$ac_tool_prefix"; then
5866 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5867set dummy ${ac_tool_prefix}windres; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005870if test "${ac_cv_prog_WINDRES+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5872else
5873 if test -n "$WINDRES"; then
5874 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5875else
5876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877for as_dir in $PATH
5878do
5879 IFS=$as_save_IFS
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005883 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 break 2
5886 fi
5887done
5888done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005889IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005890
5891fi
5892fi
5893WINDRES=$ac_cv_prog_WINDRES
5894if test -n "$WINDRES"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005895 { echo "$as_me:$LINENO: result: $WINDRES" >&5
5896echo "${ECHO_T}$WINDRES" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005897else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005898 { echo "$as_me:$LINENO: result: no" >&5
5899echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005900fi
5901
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005902
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005903fi
5904if test -z "$ac_cv_prog_WINDRES"; then
5905 ac_ct_WINDRES=$WINDRES
5906 # Extract the first word of "windres", so it can be a program name with args.
5907set dummy windres; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005910if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912else
5913 if test -n "$ac_ct_WINDRES"; then
5914 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5915else
5916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917for as_dir in $PATH
5918do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005923 ac_cv_prog_ac_ct_WINDRES="windres"
5924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 break 2
5926 fi
5927done
5928done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005929IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005930
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005931fi
5932fi
5933ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5934if test -n "$ac_ct_WINDRES"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005935 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5936echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005937else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005938 { echo "$as_me:$LINENO: result: no" >&5
5939echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005940fi
5941
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005942 if test "x$ac_ct_WINDRES" = x; then
5943 WINDRES="false"
5944 else
5945 case $cross_compiling:$ac_tool_warned in
5946yes:)
5947{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5948whose name does not start with the host triplet. If you think this
5949configuration is useful to you, please write to autoconf@gnu.org." >&5
5950echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5951whose name does not start with the host triplet. If you think this
5952configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5953ac_tool_warned=yes ;;
5954esac
5955 WINDRES=$ac_ct_WINDRES
5956 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005957else
5958 WINDRES="$ac_cv_prog_WINDRES"
5959fi
5960
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005961{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5962echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005963LN_S=$as_ln_s
5964if test "$LN_S" = "ln -s"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005965 { echo "$as_me:$LINENO: result: yes" >&5
5966echo "${ECHO_T}yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00005967else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005968 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5969echo "${ECHO_T}no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00005970fi
5971
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005972{ echo "$as_me:$LINENO: checking whether ln works" >&5
5973echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
Alexandre Julliarddf234a92002-05-22 02:10:39 +00005974rm -f conf$$ conf$$.file
5975echo >conf$$.file
5976if ln conf$$.file conf$$ 2>/dev/null; then
5977 LN=ln
5978
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005979 { echo "$as_me:$LINENO: result: yes" >&5
5980echo "${ECHO_T}yes" >&6; }
Alexandre Julliarddf234a92002-05-22 02:10:39 +00005981else
5982 LN="cp -p"
5983
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005984 { echo "$as_me:$LINENO: result: no, using $LN" >&5
5985echo "${ECHO_T}no, using $LN" >&6; }
Alexandre Julliarddf234a92002-05-22 02:10:39 +00005986fi
5987rm -f conf$$ conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005988{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5989echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5990if test "${ac_cv_path_GREP+set}" = set; then
Alexandre Julliardc6264912004-08-16 20:09:37 +00005991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005993 # Extract the first word of "grep ggrep" to use in msg output
5994if test -z "$GREP"; then
5995set dummy grep ggrep; ac_prog_name=$2
5996if test "${ac_cv_path_GREP+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5998else
5999 ac_path_GREP_found=false
6000# Loop through the user's path and test for each of PROGNAME-LIST
6001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6003do
6004 IFS=$as_save_IFS
6005 test -z "$as_dir" && as_dir=.
6006 for ac_prog in grep ggrep; do
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6009 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6010 # Check for GNU ac_path_GREP and select it if it is found.
6011 # Check for GNU $ac_path_GREP
6012case `"$ac_path_GREP" --version 2>&1` in
6013*GNU*)
6014 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6015*)
6016 ac_count=0
6017 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6018 while :
6019 do
6020 cat "conftest.in" "conftest.in" >"conftest.tmp"
6021 mv "conftest.tmp" "conftest.in"
6022 cp "conftest.in" "conftest.nl"
6023 echo 'GREP' >> "conftest.nl"
6024 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6026 ac_count=`expr $ac_count + 1`
6027 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6028 # Best one so far, save it but keep looking for a better one
6029 ac_cv_path_GREP="$ac_path_GREP"
6030 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00006031 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006032 # 10*(2^10) chars as input seems more than enough
6033 test $ac_count -gt 10 && break
6034 done
6035 rm -f conftest.*;;
6036esac
6037
6038
6039 $ac_path_GREP_found && break 3
6040 done
6041done
6042
6043done
6044IFS=$as_save_IFS
6045
6046
Alexandre Julliardc6264912004-08-16 20:09:37 +00006047fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006048
6049GREP="$ac_cv_path_GREP"
6050if test -z "$GREP"; then
6051 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6052echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6053 { (exit 1); exit 1; }; }
6054fi
6055
6056else
6057 ac_cv_path_GREP=$GREP
6058fi
6059
6060
6061fi
6062{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6063echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6064 GREP="$ac_cv_path_GREP"
6065
6066
6067{ echo "$as_me:$LINENO: checking for egrep" >&5
6068echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6069if test "${ac_cv_path_EGREP+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071else
6072 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6073 then ac_cv_path_EGREP="$GREP -E"
6074 else
6075 # Extract the first word of "egrep" to use in msg output
6076if test -z "$EGREP"; then
6077set dummy egrep; ac_prog_name=$2
6078if test "${ac_cv_path_EGREP+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080else
6081 ac_path_EGREP_found=false
6082# Loop through the user's path and test for each of PROGNAME-LIST
6083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6085do
6086 IFS=$as_save_IFS
6087 test -z "$as_dir" && as_dir=.
6088 for ac_prog in egrep; do
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6091 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6092 # Check for GNU ac_path_EGREP and select it if it is found.
6093 # Check for GNU $ac_path_EGREP
6094case `"$ac_path_EGREP" --version 2>&1` in
6095*GNU*)
6096 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6097*)
6098 ac_count=0
6099 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6100 while :
6101 do
6102 cat "conftest.in" "conftest.in" >"conftest.tmp"
6103 mv "conftest.tmp" "conftest.in"
6104 cp "conftest.in" "conftest.nl"
6105 echo 'EGREP' >> "conftest.nl"
6106 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6108 ac_count=`expr $ac_count + 1`
6109 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6110 # Best one so far, save it but keep looking for a better one
6111 ac_cv_path_EGREP="$ac_path_EGREP"
6112 ac_path_EGREP_max=$ac_count
6113 fi
6114 # 10*(2^10) chars as input seems more than enough
6115 test $ac_count -gt 10 && break
6116 done
6117 rm -f conftest.*;;
6118esac
6119
6120
6121 $ac_path_EGREP_found && break 3
6122 done
6123done
6124
6125done
6126IFS=$as_save_IFS
6127
6128
6129fi
6130
6131EGREP="$ac_cv_path_EGREP"
6132if test -z "$EGREP"; then
6133 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6134echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6135 { (exit 1); exit 1; }; }
6136fi
6137
6138else
6139 ac_cv_path_EGREP=$EGREP
6140fi
6141
6142
6143 fi
6144fi
6145{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6146echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6147 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00006148
6149
James Juranffe6b761999-06-12 08:21:57 +00006150# Extract the first word of "ldconfig", so it can be a program name with args.
6151set dummy ldconfig; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006152{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006154if test "${ac_cv_path_LDCONFIG+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00006156else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006157 case $LDCONFIG in
6158 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00006159 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6160 ;;
6161 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00006163for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006164do
6165 IFS=$as_save_IFS
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006169 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 break 2
6172 fi
6173done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006174done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006175IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006176
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00006177 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00006178 ;;
6179esac
6180fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006181LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00006182if test -n "$LDCONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006183 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6184echo "${ECHO_T}$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00006185else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006186 { echo "$as_me:$LINENO: result: no" >&5
6187echo "${ECHO_T}no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00006188fi
6189
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006190
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006191# Find a good install program. We prefer a C program (faster),
6192# so one script is as good as another. But avoid the broken or
6193# incompatible versions:
6194# SysV /etc/install, /usr/sbin/install
6195# SunOS /usr/etc/install
6196# IRIX /sbin/install
6197# AIX /bin/install
6198# AmigaOS /C/install, which installs bootblocks on floppy discs
6199# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6200# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6201# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00006202# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006203# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006204{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6205echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006206if test -z "$INSTALL"; then
6207if test "${ac_cv_path_install+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH
6212do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 # Account for people who put trailing slashes in PATH elements.
6216case $as_dir/ in
6217 ./ | .// | /cC/* | \
6218 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard875927f2004-01-02 01:55:29 +00006219 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006220 /usr/ucb/* ) ;;
6221 *)
6222 # OSF1 and SCO ODT 3.0 have their own names for install.
6223 # Don't use installbsd from OSF since it installs stuff as root
6224 # by default.
6225 for ac_prog in ginstall scoinst install; do
6226 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006227 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00006228 if test $ac_prog = install &&
6229 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6230 # AIX install. It has an incompatible calling convention.
6231 :
6232 elif test $ac_prog = install &&
6233 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6234 # program-specific install script used by HP pwplus--don't use.
6235 :
6236 else
6237 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6238 break 3
6239 fi
6240 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006241 done
6242 done
6243 ;;
6244esac
6245done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006246IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006247
6248
6249fi
6250 if test "${ac_cv_path_install+set}" = set; then
6251 INSTALL=$ac_cv_path_install
6252 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006253 # As a last resort, use the slow shell script. Don't cache a
6254 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006255 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006256 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006257 INSTALL=$ac_install_sh
6258 fi
6259fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006260{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6261echo "${ECHO_T}$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006262
6263# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6264# It thinks the first close brace ends the variable substitution.
6265test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6266
6267test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6268
6269test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6270
6271case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00006272 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006273 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6274esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006275
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006276for ac_prog in lclint lint
6277do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006278 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006279set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006282if test "${ac_cv_prog_LINT+set}" = set; then
6283 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006284else
6285 if test -n "$LINT"; then
6286 ac_cv_prog_LINT="$LINT" # Let the user override the test.
6287else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006288as_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
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006295 ac_cv_prog_LINT="$ac_prog"
6296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 break 2
6298 fi
6299done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006300done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006301IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006302
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006303fi
6304fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006305LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006306if test -n "$LINT"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006307 { echo "$as_me:$LINENO: result: $LINT" >&5
6308echo "${ECHO_T}$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006309else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006310 { echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006312fi
6313
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006314
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006315 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006316done
6317
6318if test "$LINT" = "lint"
6319then
6320 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6321 fi
6322
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006323
6324
Huw Davies00acb5f2004-08-17 22:33:14 +00006325for ac_prog in fontforge
6326do
6327 # Extract the first word of "$ac_prog", so it can be a program name with args.
6328set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006329{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00006331if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6333else
6334 if test -n "$FONTFORGE"; then
6335 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6336else
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340 IFS=$as_save_IFS
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Huw Davies00acb5f2004-08-17 22:33:14 +00006344 ac_cv_prog_FONTFORGE="$ac_prog"
6345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348done
6349done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006350IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00006351
6352fi
6353fi
6354FONTFORGE=$ac_cv_prog_FONTFORGE
6355if test -n "$FONTFORGE"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006356 { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6357echo "${ECHO_T}$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00006358else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006359 { echo "$as_me:$LINENO: result: no" >&5
6360echo "${ECHO_T}no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00006361fi
6362
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006363
Huw Davies00acb5f2004-08-17 22:33:14 +00006364 test -n "$FONTFORGE" && break
6365done
6366test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00006367
Mike McCormack90c75bd2005-08-08 18:36:53 +00006368for ac_prog in pkg-config
6369do
6370 # Extract the first word of "$ac_prog", so it can be a program name with args.
6371set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006372{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00006374if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376else
6377 if test -n "$PKG_CONFIG"; then
6378 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6379else
6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381for as_dir in $PATH
6382do
6383 IFS=$as_save_IFS
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Mike McCormack90c75bd2005-08-08 18:36:53 +00006387 ac_cv_prog_PKG_CONFIG="$ac_prog"
6388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 break 2
6390 fi
6391done
6392done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006393IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00006394
6395fi
6396fi
6397PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6398if test -n "$PKG_CONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006399 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6400echo "${ECHO_T}$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00006401else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006402 { echo "$as_me:$LINENO: result: no" >&5
6403echo "${ECHO_T}no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00006404fi
6405
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006406
Mike McCormack90c75bd2005-08-08 18:36:53 +00006407 test -n "$PKG_CONFIG" && break
6408done
6409test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6410
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00006411
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006412case $host_cpu in
6413 *i[3456789]86*)
6414 for ac_prog in prelink
6415do
6416 # Extract the first word of "$ac_prog", so it can be a program name with args.
6417set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006420if test "${ac_cv_prog_PRELINK+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6422else
6423 if test -n "$PRELINK"; then
6424 ac_cv_prog_PRELINK="$PRELINK" # Let the user override the test.
6425else
6426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427for as_dir in /sbin /usr/sbin $PATH
6428do
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006433 ac_cv_prog_PRELINK="$ac_prog"
6434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6436 fi
6437done
6438done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006439IFS=$as_save_IFS
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006440
6441fi
6442fi
6443PRELINK=$ac_cv_prog_PRELINK
6444if test -n "$PRELINK"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006445 { echo "$as_me:$LINENO: result: $PRELINK" >&5
6446echo "${ECHO_T}$PRELINK" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006447else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006448 { echo "$as_me:$LINENO: result: no" >&5
6449echo "${ECHO_T}no" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006450fi
6451
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006452
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006453 test -n "$PRELINK" && break
6454done
6455test -n "$PRELINK" || PRELINK="false"
6456
6457 ;;
6458esac
6459
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006460
6461
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006462{ echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6463echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006464if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00006466else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006467 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00006468LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006469cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006470/* confdefs.h. */
6471_ACEOF
6472cat confdefs.h >>conftest.$ac_ext
6473cat >>conftest.$ac_ext <<_ACEOF
6474/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006475
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006476/* Override any GCC internal prototype to avoid an error.
6477 Use char because int might match the return type of a GCC
6478 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006479#ifdef __cplusplus
6480extern "C"
6481#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006482char i386_set_ldt ();
6483int
6484main ()
6485{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006486return i386_set_ldt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006487 ;
6488 return 0;
6489}
6490_ACEOF
6491rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006493 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006494 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006495 grep -v '^ *+' conftest.er1 >conftest.err
6496 rm -f conftest.er1
6497 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006499 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 (eval $ac_try) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; } &&
6506 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006508 (eval $ac_try) 2>&5
6509 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006511 (exit $ac_status); }; }; then
6512 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00006513else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006514 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006515sed 's/^/| /' conftest.$ac_ext >&5
6516
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006517 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00006518fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006519
Alexandre Julliard875927f2004-01-02 01:55:29 +00006520rm -f conftest.err conftest.$ac_objext \
6521 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006522LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00006523fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006524{ echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6525echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006526if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006527 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006528#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006529_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00006530
6531 LIBS="-li386 $LIBS"
6532
Alexandre Julliard02e90081998-01-04 17:49:09 +00006533fi
6534
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006535
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006536{ echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6537echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006538if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00006540else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006541 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00006542LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006543cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006544/* confdefs.h. */
6545_ACEOF
6546cat confdefs.h >>conftest.$ac_ext
6547cat >>conftest.$ac_ext <<_ACEOF
6548/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006549
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006550/* Override any GCC internal prototype to avoid an error.
6551 Use char because int might match the return type of a GCC
6552 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006553#ifdef __cplusplus
6554extern "C"
6555#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006556char _oss_ioctl ();
6557int
6558main ()
6559{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006560return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006561 ;
6562 return 0;
6563}
6564_ACEOF
6565rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006567 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006568 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006569 grep -v '^ *+' conftest.er1 >conftest.err
6570 rm -f conftest.er1
6571 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006573 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 (eval $ac_try) 2>&5
6577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; } &&
6580 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006582 (eval $ac_try) 2>&5
6583 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006585 (exit $ac_status); }; }; then
6586 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00006587else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006588 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006589sed 's/^/| /' conftest.$ac_ext >&5
6590
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006591 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00006592fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006593
Alexandre Julliard875927f2004-01-02 01:55:29 +00006594rm -f conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006596LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00006597fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006598{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6599echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006600if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006601 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006602#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006603_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00006604
6605 LIBS="-lossaudio $LIBS"
6606
Todd Vierlingecc76691998-12-15 17:49:02 +00006607fi
6608
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006609
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006610for ac_func in gethostbyname
6611do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006612as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006613{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6614echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6615if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006616 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006617else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006618 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006619/* confdefs.h. */
6620_ACEOF
6621cat confdefs.h >>conftest.$ac_ext
6622cat >>conftest.$ac_ext <<_ACEOF
6623/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006624/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6626#define $ac_func innocuous_$ac_func
6627
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006628/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006629 which can conflict with char $ac_func (); below.
6630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6631 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006632
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006633#ifdef __STDC__
6634# include <limits.h>
6635#else
6636# include <assert.h>
6637#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006638
6639#undef $ac_func
6640
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006641/* Override any GCC internal prototype to avoid an error.
6642 Use char because int might match the return type of a GCC
6643 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006644#ifdef __cplusplus
6645extern "C"
6646#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006647char $ac_func ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006648/* The GNU C library defines this for functions which it implements
6649 to always fail with ENOSYS. Some functions are actually named
6650 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006651#if defined __stub_$ac_func || defined __stub___$ac_func
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006652choke me
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006653#endif
6654
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006655int
6656main ()
6657{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006658return $ac_func ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006659 ;
6660 return 0;
6661}
6662_ACEOF
6663rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006665 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006666 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006667 grep -v '^ *+' conftest.er1 >conftest.err
6668 rm -f conftest.er1
6669 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006671 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6674 (eval $ac_try) 2>&5
6675 ac_status=$?
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); }; } &&
6678 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006680 (eval $ac_try) 2>&5
6681 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006683 (exit $ac_status); }; }; then
6684 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00006685else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006686 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006687sed 's/^/| /' conftest.$ac_ext >&5
6688
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006689 eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00006690fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006691
Alexandre Julliard875927f2004-01-02 01:55:29 +00006692rm -f conftest.err conftest.$ac_objext \
6693 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00006694fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006695ac_res=`eval echo '${'$as_ac_var'}'`
6696 { echo "$as_me:$LINENO: result: $ac_res" >&5
6697echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006698if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006699 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006701_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00006702
Patrik Stridvallea584721998-11-01 16:22:07 +00006703else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006704
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006705{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6706echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006707if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00006709else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006710 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006711LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006712cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006713/* confdefs.h. */
6714_ACEOF
6715cat confdefs.h >>conftest.$ac_ext
6716cat >>conftest.$ac_ext <<_ACEOF
6717/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006718
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006719/* Override any GCC internal prototype to avoid an error.
6720 Use char because int might match the return type of a GCC
6721 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006722#ifdef __cplusplus
6723extern "C"
6724#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006725char gethostbyname ();
6726int
6727main ()
6728{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006729return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006730 ;
6731 return 0;
6732}
6733_ACEOF
6734rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006736 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006737 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006738 grep -v '^ *+' conftest.er1 >conftest.err
6739 rm -f conftest.er1
6740 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006742 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 (eval $ac_try) 2>&5
6746 ac_status=$?
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; } &&
6749 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006751 (eval $ac_try) 2>&5
6752 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006754 (exit $ac_status); }; }; then
6755 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00006756else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006757 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006758sed 's/^/| /' conftest.$ac_ext >&5
6759
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006760 ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00006761fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006762
Alexandre Julliard875927f2004-01-02 01:55:29 +00006763rm -f conftest.err conftest.$ac_objext \
6764 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006765LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00006766fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006767{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6768echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006769if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006770 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006771#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006772_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00006773
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006774 LIBS="-lnsl $LIBS"
6775
Ron Recorde977d6c1999-09-05 12:32:05 +00006776fi
6777
Patrik Stridvallea584721998-11-01 16:22:07 +00006778fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00006779done
6780
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006781
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006782for ac_func in connect
6783do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006784as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006785{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6786echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6787if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006788 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006789else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006790 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006791/* confdefs.h. */
6792_ACEOF
6793cat confdefs.h >>conftest.$ac_ext
6794cat >>conftest.$ac_ext <<_ACEOF
6795/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006796/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6798#define $ac_func innocuous_$ac_func
6799
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006800/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006801 which can conflict with char $ac_func (); below.
6802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6803 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006804
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006805#ifdef __STDC__
6806# include <limits.h>
6807#else
6808# include <assert.h>
6809#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006810
6811#undef $ac_func
6812
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006813/* Override any GCC internal prototype to avoid an error.
6814 Use char because int might match the return type of a GCC
6815 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006816#ifdef __cplusplus
6817extern "C"
6818#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006819char $ac_func ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006820/* The GNU C library defines this for functions which it implements
6821 to always fail with ENOSYS. Some functions are actually named
6822 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006823#if defined __stub_$ac_func || defined __stub___$ac_func
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006824choke me
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006825#endif
6826
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006827int
6828main ()
6829{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006830return $ac_func ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006831 ;
6832 return 0;
6833}
6834_ACEOF
6835rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006837 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006838 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006839 grep -v '^ *+' conftest.er1 >conftest.err
6840 rm -f conftest.er1
6841 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006843 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 (eval $ac_try) 2>&5
6847 ac_status=$?
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; } &&
6850 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006852 (eval $ac_try) 2>&5
6853 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006855 (exit $ac_status); }; }; then
6856 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006857else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006858 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006859sed 's/^/| /' conftest.$ac_ext >&5
6860
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006861 eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006862fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006863
Alexandre Julliard875927f2004-01-02 01:55:29 +00006864rm -f conftest.err conftest.$ac_objext \
6865 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006866fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006867ac_res=`eval echo '${'$as_ac_var'}'`
6868 { echo "$as_me:$LINENO: result: $ac_res" >&5
6869echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006870if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006871 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006873_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006874
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006875else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006876
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006877{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6878echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006879if test "${ac_cv_lib_socket_connect+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006881else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006882 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006883LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006884cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006885/* confdefs.h. */
6886_ACEOF
6887cat confdefs.h >>conftest.$ac_ext
6888cat >>conftest.$ac_ext <<_ACEOF
6889/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006890
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006891/* Override any GCC internal prototype to avoid an error.
6892 Use char because int might match the return type of a GCC
6893 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006894#ifdef __cplusplus
6895extern "C"
6896#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006897char connect ();
6898int
6899main ()
6900{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006901return connect ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006902 ;
6903 return 0;
6904}
6905_ACEOF
6906rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006908 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006909 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006910 grep -v '^ *+' conftest.er1 >conftest.err
6911 rm -f conftest.er1
6912 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006914 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 (eval $ac_try) 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; } &&
6921 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006923 (eval $ac_try) 2>&5
6924 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006926 (exit $ac_status); }; }; then
6927 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006928else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006929 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006930sed 's/^/| /' conftest.$ac_ext >&5
6931
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006932 ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006933fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006934
Alexandre Julliard875927f2004-01-02 01:55:29 +00006935rm -f conftest.err conftest.$ac_objext \
6936 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006937LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006938fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006939{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6940echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006941if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006942 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006943#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006944_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006945
6946 LIBS="-lsocket $LIBS"
6947
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006948fi
6949
6950fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00006951done
6952
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006953
Alexandre Julliardc5552742002-04-03 20:24:44 +00006954for ac_func in inet_aton
6955do
6956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006957{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6959if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardc5552742002-04-03 20:24:44 +00006960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961else
6962 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006963/* confdefs.h. */
6964_ACEOF
6965cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF
6967/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6970#define $ac_func innocuous_$ac_func
6971
Alexandre Julliardc5552742002-04-03 20:24:44 +00006972/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006973 which can conflict with char $ac_func (); below.
6974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6975 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006976
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006977#ifdef __STDC__
6978# include <limits.h>
6979#else
6980# include <assert.h>
6981#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006982
6983#undef $ac_func
6984
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006985/* Override any GCC internal prototype to avoid an error.
6986 Use char because int might match the return type of a GCC
6987 builtin and then its argument prototype would still apply. */
Alexandre Julliardc5552742002-04-03 20:24:44 +00006988#ifdef __cplusplus
6989extern "C"
6990#endif
Alexandre Julliardc5552742002-04-03 20:24:44 +00006991char $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00006992/* The GNU C library defines this for functions which it implements
6993 to always fail with ENOSYS. Some functions are actually named
6994 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006995#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliardc5552742002-04-03 20:24:44 +00006996choke me
Alexandre Julliardc5552742002-04-03 20:24:44 +00006997#endif
6998
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006999int
7000main ()
7001{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007002return $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00007003 ;
7004 return 0;
7005}
7006_ACEOF
7007rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007009 (eval $ac_link) 2>conftest.er1
Alexandre Julliardc5552742002-04-03 20:24:44 +00007010 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007011 grep -v '^ *+' conftest.er1 >conftest.err
7012 rm -f conftest.er1
7013 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00007015 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; } &&
7022 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00007024 (eval $ac_try) 2>&5
7025 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00007027 (exit $ac_status); }; }; then
7028 eval "$as_ac_var=yes"
7029else
7030 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007031sed 's/^/| /' conftest.$ac_ext >&5
7032
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007033 eval "$as_ac_var=no"
Alexandre Julliardc5552742002-04-03 20:24:44 +00007034fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007035
Alexandre Julliard875927f2004-01-02 01:55:29 +00007036rm -f conftest.err conftest.$ac_objext \
7037 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc5552742002-04-03 20:24:44 +00007038fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007039ac_res=`eval echo '${'$as_ac_var'}'`
7040 { echo "$as_me:$LINENO: result: $ac_res" >&5
7041echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardc5552742002-04-03 20:24:44 +00007042if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007043 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00007044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007045_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00007046
7047else
7048
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007049{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
7050echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
Francois Gouget3b943bc2002-04-01 21:05:15 +00007051if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053else
7054 ac_check_lib_save_LIBS=$LIBS
7055LIBS="-lresolv $LIBS"
7056cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007057/* confdefs.h. */
7058_ACEOF
7059cat confdefs.h >>conftest.$ac_ext
7060cat >>conftest.$ac_ext <<_ACEOF
7061/* end confdefs.h. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00007062
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007063/* Override any GCC internal prototype to avoid an error.
7064 Use char because int might match the return type of a GCC
7065 builtin and then its argument prototype would still apply. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00007066#ifdef __cplusplus
7067extern "C"
7068#endif
Francois Gouget3b943bc2002-04-01 21:05:15 +00007069char inet_aton ();
7070int
7071main ()
7072{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007073return inet_aton ();
Francois Gouget3b943bc2002-04-01 21:05:15 +00007074 ;
7075 return 0;
7076}
7077_ACEOF
7078rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007080 (eval $ac_link) 2>conftest.er1
Francois Gouget3b943bc2002-04-01 21:05:15 +00007081 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007082 grep -v '^ *+' conftest.er1 >conftest.err
7083 rm -f conftest.er1
7084 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00007086 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 (eval $ac_try) 2>&5
7090 ac_status=$?
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; } &&
7093 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00007095 (eval $ac_try) 2>&5
7096 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00007098 (exit $ac_status); }; }; then
7099 ac_cv_lib_resolv_inet_aton=yes
7100else
7101 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007102sed 's/^/| /' conftest.$ac_ext >&5
7103
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007104 ac_cv_lib_resolv_inet_aton=no
Francois Gouget3b943bc2002-04-01 21:05:15 +00007105fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007106
Alexandre Julliard875927f2004-01-02 01:55:29 +00007107rm -f conftest.err conftest.$ac_objext \
7108 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3b943bc2002-04-01 21:05:15 +00007109LIBS=$ac_check_lib_save_LIBS
7110fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007111{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
7112echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
Francois Gouget3b943bc2002-04-01 21:05:15 +00007113if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007114 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00007115#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007116_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00007117
7118 LIBS="-lresolv $LIBS"
7119
7120fi
7121
Alexandre Julliardc5552742002-04-03 20:24:44 +00007122fi
7123done
7124
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007125
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007126{ echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7127echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007128if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007130else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007131 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007132LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007133cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007134/* confdefs.h. */
7135_ACEOF
7136cat confdefs.h >>conftest.$ac_ext
7137cat >>conftest.$ac_ext <<_ACEOF
7138/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007139
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007140/* Override any GCC internal prototype to avoid an error.
7141 Use char because int might match the return type of a GCC
7142 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007143#ifdef __cplusplus
7144extern "C"
7145#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007146char _xpg4_setrunelocale ();
7147int
7148main ()
7149{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007150return _xpg4_setrunelocale ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007151 ;
7152 return 0;
7153}
7154_ACEOF
7155rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007157 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007158 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007159 grep -v '^ *+' conftest.er1 >conftest.err
7160 rm -f conftest.er1
7161 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007163 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7166 (eval $ac_try) 2>&5
7167 ac_status=$?
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); }; } &&
7170 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007172 (eval $ac_try) 2>&5
7173 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007175 (exit $ac_status); }; }; then
7176 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007177else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007178 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007179sed 's/^/| /' conftest.$ac_ext >&5
7180
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007181 ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007182fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007183
Alexandre Julliard875927f2004-01-02 01:55:29 +00007184rm -f conftest.err conftest.$ac_objext \
7185 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007186LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007187fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007188{ echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7189echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007190if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007191 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007192#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007193_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007194
7195 LIBS="-lxpg4 $LIBS"
7196
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007197fi
7198
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007199
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007200{ echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
7201echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007202if test "${ac_cv_lib_poll_poll+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7204else
7205 ac_check_lib_save_LIBS=$LIBS
7206LIBS="-lpoll $LIBS"
7207cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007208/* confdefs.h. */
7209_ACEOF
7210cat confdefs.h >>conftest.$ac_ext
7211cat >>conftest.$ac_ext <<_ACEOF
7212/* end confdefs.h. */
7213
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007214/* Override any GCC internal prototype to avoid an error.
7215 Use char because int might match the return type of a GCC
7216 builtin and then its argument prototype would still apply. */
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007217#ifdef __cplusplus
7218extern "C"
7219#endif
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007220char poll ();
7221int
7222main ()
7223{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007224return poll ();
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007225 ;
7226 return 0;
7227}
7228_ACEOF
7229rm -f conftest.$ac_objext conftest$ac_exeext
7230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007231 (eval $ac_link) 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007232 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007233 grep -v '^ *+' conftest.er1 >conftest.err
7234 rm -f conftest.er1
7235 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7240 (eval $ac_try) 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; } &&
7244 { ac_try='test -s conftest$ac_exeext'
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 (eval $ac_try) 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 ac_cv_lib_poll_poll=yes
7251else
7252 echo "$as_me: failed program was:" >&5
7253sed 's/^/| /' conftest.$ac_ext >&5
7254
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007255 ac_cv_lib_poll_poll=no
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007256fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007257
Alexandre Julliard875927f2004-01-02 01:55:29 +00007258rm -f conftest.err conftest.$ac_objext \
7259 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007260LIBS=$ac_check_lib_save_LIBS
7261fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007262{ echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
7263echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007264if test $ac_cv_lib_poll_poll = yes; then
7265 cat >>confdefs.h <<_ACEOF
7266#define HAVE_LIBPOLL 1
7267_ACEOF
7268
7269 LIBS="-lpoll $LIBS"
7270
7271fi
7272
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007273
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007274{ echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
7275echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6; }
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007276if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278else
7279 ac_check_lib_save_LIBS=$LIBS
7280LIBS="-lresolv $LIBS"
7281cat >conftest.$ac_ext <<_ACEOF
7282/* confdefs.h. */
7283_ACEOF
7284cat confdefs.h >>conftest.$ac_ext
7285cat >>conftest.$ac_ext <<_ACEOF
7286/* end confdefs.h. */
7287
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007288/* Override any GCC internal prototype to avoid an error.
7289 Use char because int might match the return type of a GCC
7290 builtin and then its argument prototype would still apply. */
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007291#ifdef __cplusplus
7292extern "C"
7293#endif
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007294char res_9_init ();
7295int
7296main ()
7297{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007298return res_9_init ();
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007299 ;
7300 return 0;
7301}
7302_ACEOF
7303rm -f conftest.$ac_objext conftest$ac_exeext
7304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7305 (eval $ac_link) 2>conftest.er1
7306 ac_status=$?
7307 grep -v '^ *+' conftest.er1 >conftest.err
7308 rm -f conftest.er1
7309 cat conftest.err >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } &&
7312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 (eval $ac_try) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; } &&
7318 { ac_try='test -s conftest$ac_exeext'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7324 ac_cv_lib_resolv_res_9_init=yes
7325else
7326 echo "$as_me: failed program was:" >&5
7327sed 's/^/| /' conftest.$ac_ext >&5
7328
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007329 ac_cv_lib_resolv_res_9_init=no
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007330fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007331
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007332rm -f conftest.err conftest.$ac_objext \
7333 conftest$ac_exeext conftest.$ac_ext
7334LIBS=$ac_check_lib_save_LIBS
7335fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007336{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
7337echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6; }
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007338if test $ac_cv_lib_resolv_res_9_init = yes; then
7339 cat >>confdefs.h <<_ACEOF
7340#define HAVE_LIBRESOLV 1
7341_ACEOF
7342
7343 LIBS="-lresolv $LIBS"
7344
7345fi
7346
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007347{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7348echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007349if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007350 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007351else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007352 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007353LIBS="-lpthread $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007354cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007355/* confdefs.h. */
7356_ACEOF
7357cat confdefs.h >>conftest.$ac_ext
7358cat >>conftest.$ac_ext <<_ACEOF
7359/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007360
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007361/* Override any GCC internal prototype to avoid an error.
7362 Use char because int might match the return type of a GCC
7363 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007364#ifdef __cplusplus
7365extern "C"
7366#endif
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007367char pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007368int
7369main ()
7370{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007371return pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007372 ;
7373 return 0;
7374}
7375_ACEOF
7376rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007378 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007379 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007380 grep -v '^ *+' conftest.er1 >conftest.err
7381 rm -f conftest.er1
7382 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007384 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 (eval $ac_try) 2>&5
7388 ac_status=$?
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); }; } &&
7391 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007393 (eval $ac_try) 2>&5
7394 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007396 (exit $ac_status); }; }; then
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007397 ac_cv_lib_pthread_pthread_create=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007398else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007399 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007400sed 's/^/| /' conftest.$ac_ext >&5
7401
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007402 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007403fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007404
Alexandre Julliard875927f2004-01-02 01:55:29 +00007405rm -f conftest.err conftest.$ac_objext \
7406 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007407LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007408fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007409{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
7410echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007411if test $ac_cv_lib_pthread_pthread_create = yes; then
7412 LIBPTHREAD="-lpthread"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007413
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007414fi
7415
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007416
Alexandre Julliard82776022005-08-08 11:17:25 +00007417XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00007418
7419XFILES=""
7420
7421OPENGLFILES=""
7422
7423GLU32FILES=""
7424
7425OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00007426
Rein Klazes7ff12562004-11-09 20:16:35 +00007427
Alexandre Julliard82776022005-08-08 11:17:25 +00007428
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007429{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7430echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007431if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007432 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00007433else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007434 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007435/* confdefs.h. */
7436_ACEOF
7437cat confdefs.h >>conftest.$ac_ext
7438cat >>conftest.$ac_ext <<_ACEOF
7439/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007440#include <stdlib.h>
7441#include <stdarg.h>
7442#include <string.h>
7443#include <float.h>
7444
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007445int
7446main ()
7447{
7448
7449 ;
7450 return 0;
7451}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007452_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007453rm -f conftest.$ac_objext
7454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007455 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007456 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007457 grep -v '^ *+' conftest.er1 >conftest.err
7458 rm -f conftest.er1
7459 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007461 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464 (eval $ac_try) 2>&5
7465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; } &&
7468 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 (eval $ac_try) 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007474 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007475else
7476 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007477sed 's/^/| /' conftest.$ac_ext >&5
7478
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007479 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00007480fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007481
Alexandre Julliard875927f2004-01-02 01:55:29 +00007482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007483
7484if test $ac_cv_header_stdc = yes; then
7485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7486 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007487/* confdefs.h. */
7488_ACEOF
7489cat confdefs.h >>conftest.$ac_ext
7490cat >>conftest.$ac_ext <<_ACEOF
7491/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007492#include <string.h>
7493
7494_ACEOF
7495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007496 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007497 :
7498else
7499 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00007500fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007501rm -f conftest*
7502
7503fi
7504
7505if test $ac_cv_header_stdc = yes; then
7506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7507 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007508/* confdefs.h. */
7509_ACEOF
7510cat confdefs.h >>conftest.$ac_ext
7511cat >>conftest.$ac_ext <<_ACEOF
7512/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007513#include <stdlib.h>
7514
7515_ACEOF
7516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007517 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007518 :
7519else
7520 ac_cv_header_stdc=no
7521fi
7522rm -f conftest*
7523
7524fi
7525
7526if test $ac_cv_header_stdc = yes; then
7527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7528 if test "$cross_compiling" = yes; then
7529 :
7530else
7531 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007532/* confdefs.h. */
7533_ACEOF
7534cat confdefs.h >>conftest.$ac_ext
7535cat >>conftest.$ac_ext <<_ACEOF
7536/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007537#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007538#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007539#if ((' ' & 0x0FF) == 0x020)
7540# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7541# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7542#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007543# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007544 (('a' <= (c) && (c) <= 'i') \
7545 || ('j' <= (c) && (c) <= 'r') \
7546 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007547# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7548#endif
7549
7550#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7551int
7552main ()
7553{
7554 int i;
7555 for (i = 0; i < 256; i++)
7556 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00007557 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007558 return 2;
7559 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007560}
7561_ACEOF
7562rm -f conftest$ac_exeext
7563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7564 (eval $ac_link) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 (eval $ac_try) 2>&5
7570 ac_status=$?
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; }; then
7573 :
7574else
7575 echo "$as_me: program exited with status $ac_status" >&5
7576echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007577sed 's/^/| /' conftest.$ac_ext >&5
7578
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007579( exit $ac_status )
7580ac_cv_header_stdc=no
7581fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7583fi
7584
7585
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007586fi
7587fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007588{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7589echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007590if test $ac_cv_header_stdc = yes; then
7591
7592cat >>confdefs.h <<\_ACEOF
7593#define STDC_HEADERS 1
7594_ACEOF
7595
7596fi
7597
7598# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007609 inttypes.h stdint.h unistd.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007610do
7611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007612{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007615 echo $ECHO_N "(cached) $ECHO_C" >&6
7616else
7617 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007618/* confdefs.h. */
7619_ACEOF
7620cat confdefs.h >>conftest.$ac_ext
7621cat >>conftest.$ac_ext <<_ACEOF
7622/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007623$ac_includes_default
7624
7625#include <$ac_header>
7626_ACEOF
7627rm -f conftest.$ac_objext
7628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007629 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007630 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 (eval $ac_try) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; } &&
7642 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7648 eval "$as_ac_Header=yes"
7649else
7650 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007651sed 's/^/| /' conftest.$ac_ext >&5
7652
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007653 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007654fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007655
Alexandre Julliard875927f2004-01-02 01:55:29 +00007656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007657fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007658ac_res=`eval echo '${'$as_ac_Header'}'`
7659 { echo "$as_me:$LINENO: result: $ac_res" >&5
7660echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007661if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007662 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007664_ACEOF
7665
7666fi
7667
7668done
7669
7670
7671
Rein Klazes7ff12562004-11-09 20:16:35 +00007672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
Steven Edwards57279182005-03-04 12:38:36 +00007754
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00007755
Emmanuel Maillard64c07782005-05-18 18:20:23 +00007756
7757
Phil Krylov0f6c0392005-07-01 19:15:26 +00007758
Hans Leidekkerea524de2005-07-15 16:39:42 +00007759
7760
Alexandre Julliard73482142005-08-03 19:21:04 +00007761
7762
7763
7764
7765
7766
7767
7768
7769
7770
Gerald Pfeiferebe04842005-08-22 09:33:37 +00007771
Robert Shearman1e5153c2005-12-01 11:18:43 +01007772
Mike McCormack0cd06262006-03-01 01:07:04 +09007773
Alexandre Julliard9603ee02006-04-06 11:57:37 +02007774
Emmanuel Maillard144a5352006-05-28 22:46:23 +02007775
7776
Rein Klazes7ff12562004-11-09 20:16:35 +00007777for ac_header in \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02007778 AudioUnit/AudioUnit.h \
7779 CoreAudio/CoreAudio.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00007780 IOKit/IOKitLib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007781 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007782 arpa/inet.h \
7783 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00007784 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007785 capi20.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007786 cups/cups.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007787 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007788 direct.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007789 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007790 elf.h \
7791 float.h \
7792 fontconfig/fontconfig.h \
7793 getopt.h \
7794 gif_lib.h \
7795 ieeefp.h \
7796 io.h \
7797 jack/jack.h \
7798 jpeglib.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00007799 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007800 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007801 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00007802 ldap.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007803 libaudioio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007804 link.h \
7805 linux/cdrom.h \
7806 linux/compiler.h \
7807 linux/hdreg.h \
7808 linux/input.h \
7809 linux/ioctl.h \
7810 linux/joystick.h \
7811 linux/major.h \
7812 linux/param.h \
7813 linux/serial.h \
7814 linux/ucdrom.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00007815 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007816 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00007817 machine/limits.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007818 machine/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007819 mntent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007820 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007821 netdb.h \
7822 netinet/in.h \
7823 netinet/in_systm.h \
7824 netinet/tcp.h \
7825 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01007826 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007827 openssl/ssl.h \
Steven Edwards57279182005-03-04 12:38:36 +00007828 poll.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007829 process.h \
7830 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007831 pwd.h \
7832 regex.h \
7833 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007834 scsi/scsi.h \
7835 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007836 scsi/sg.h \
7837 soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007838 stdint.h \
7839 strings.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007840 sys/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007841 sys/cdio.h \
7842 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007843 sys/epoll.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007844 sys/errno.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007845 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007846 sys/filio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007847 sys/ioctl.h \
7848 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00007849 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007850 sys/link.h \
7851 sys/lwp.h \
7852 sys/mman.h \
7853 sys/modem.h \
7854 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01007855 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007856 sys/param.h \
7857 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02007858 sys/prctl.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007859 sys/ptrace.h \
7860 sys/reg.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09007861 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007862 sys/scsiio.h \
7863 sys/shm.h \
7864 sys/signal.h \
7865 sys/socket.h \
7866 sys/sockio.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007867 sys/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007868 sys/statvfs.h \
7869 sys/strtio.h \
7870 sys/syscall.h \
7871 sys/sysctl.h \
7872 sys/time.h \
7873 sys/times.h \
7874 sys/uio.h \
7875 sys/un.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007876 sys/vm86.h \
7877 sys/wait.h \
7878 syscall.h \
7879 termios.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007880 unicode/ubidi.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007881 unistd.h \
7882 utime.h \
7883 valgrind/memcheck.h
7884
7885do
7886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7890if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Rein Klazes7ff12562004-11-09 20:16:35 +00007891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007893ac_res=`eval echo '${'$as_ac_Header'}'`
7894 { echo "$as_me:$LINENO: result: $ac_res" >&5
7895echo "${ECHO_T}$ac_res" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00007896else
7897 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007898{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7899echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00007900cat >conftest.$ac_ext <<_ACEOF
7901/* confdefs.h. */
7902_ACEOF
7903cat confdefs.h >>conftest.$ac_ext
7904cat >>conftest.$ac_ext <<_ACEOF
7905/* end confdefs.h. */
7906$ac_includes_default
7907#include <$ac_header>
7908_ACEOF
7909rm -f conftest.$ac_objext
7910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7911 (eval $ac_compile) 2>conftest.er1
7912 ac_status=$?
7913 grep -v '^ *+' conftest.er1 >conftest.err
7914 rm -f conftest.er1
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } &&
7918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 (eval $ac_try) 2>&5
7921 ac_status=$?
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; } &&
7924 { ac_try='test -s conftest.$ac_objext'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 (eval $ac_try) 2>&5
7927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 ac_header_compiler=yes
7931else
7932 echo "$as_me: failed program was:" >&5
7933sed 's/^/| /' conftest.$ac_ext >&5
7934
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007935 ac_header_compiler=no
Rein Klazes7ff12562004-11-09 20:16:35 +00007936fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007937
Rein Klazes7ff12562004-11-09 20:16:35 +00007938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007939{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7940echo "${ECHO_T}$ac_header_compiler" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00007941
7942# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007943{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7944echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00007945cat >conftest.$ac_ext <<_ACEOF
7946/* confdefs.h. */
7947_ACEOF
7948cat confdefs.h >>conftest.$ac_ext
7949cat >>conftest.$ac_ext <<_ACEOF
7950/* end confdefs.h. */
7951#include <$ac_header>
7952_ACEOF
7953if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7954 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } >/dev/null; then
7961 if test -s conftest.err; then
7962 ac_cpp_err=$ac_c_preproc_warn_flag
7963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7964 else
7965 ac_cpp_err=
7966 fi
7967else
7968 ac_cpp_err=yes
7969fi
7970if test -z "$ac_cpp_err"; then
7971 ac_header_preproc=yes
7972else
7973 echo "$as_me: failed program was:" >&5
7974sed 's/^/| /' conftest.$ac_ext >&5
7975
7976 ac_header_preproc=no
7977fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007978
Rein Klazes7ff12562004-11-09 20:16:35 +00007979rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007980{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7981echo "${ECHO_T}$ac_header_preproc" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00007982
7983# So? What about this header?
7984case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7985 yes:no: )
7986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7987echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7989echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7990 ac_header_preproc=yes
7991 ;;
7992 no:yes:* )
7993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7994echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7996echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7998echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8000echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8002echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8004echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008005 ( cat <<\_ASBOX
Rein Klazes7ff12562004-11-09 20:16:35 +00008006## ------------------------------------ ##
8007## Report this to wine-devel@winehq.org ##
8008## ------------------------------------ ##
8009_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008010 ) | sed "s/^/$as_me: WARNING: /" >&2
Rein Klazes7ff12562004-11-09 20:16:35 +00008011 ;;
8012esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008013{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Rein Klazes7ff12562004-11-09 20:16:35 +00008016 echo $ECHO_N "(cached) $ECHO_C" >&6
8017else
8018 eval "$as_ac_Header=\$ac_header_preproc"
8019fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008020ac_res=`eval echo '${'$as_ac_Header'}'`
8021 { echo "$as_me:$LINENO: result: $ac_res" >&5
8022echo "${ECHO_T}$ac_res" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008023
8024fi
8025if test `eval echo '${'$as_ac_Header'}'` = yes; then
8026 cat >>confdefs.h <<_ACEOF
8027#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8028_ACEOF
8029
8030fi
8031
8032done
8033
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008034{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8035echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008036if test "${ac_cv_header_stat_broken+set}" = set; then
8037 echo $ECHO_N "(cached) $ECHO_C" >&6
8038else
8039 cat >conftest.$ac_ext <<_ACEOF
8040/* confdefs.h. */
8041_ACEOF
8042cat confdefs.h >>conftest.$ac_ext
8043cat >>conftest.$ac_ext <<_ACEOF
8044/* end confdefs.h. */
8045#include <sys/types.h>
8046#include <sys/stat.h>
8047
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008048#if defined S_ISBLK && defined S_IFDIR
Rein Klazes7ff12562004-11-09 20:16:35 +00008049# if S_ISBLK (S_IFDIR)
8050You lose.
8051# endif
8052#endif
8053
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008054#if defined S_ISBLK && defined S_IFCHR
Rein Klazes7ff12562004-11-09 20:16:35 +00008055# if S_ISBLK (S_IFCHR)
8056You lose.
8057# endif
8058#endif
8059
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008060#if defined S_ISLNK && defined S_IFREG
Rein Klazes7ff12562004-11-09 20:16:35 +00008061# if S_ISLNK (S_IFREG)
8062You lose.
8063# endif
8064#endif
8065
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008066#if defined S_ISSOCK && defined S_IFREG
Rein Klazes7ff12562004-11-09 20:16:35 +00008067# if S_ISSOCK (S_IFREG)
8068You lose.
8069# endif
8070#endif
8071
8072_ACEOF
8073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8074 $EGREP "You lose" >/dev/null 2>&1; then
8075 ac_cv_header_stat_broken=yes
8076else
8077 ac_cv_header_stat_broken=no
8078fi
8079rm -f conftest*
8080
8081fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008082{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8083echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008084if test $ac_cv_header_stat_broken = yes; then
8085
8086cat >>confdefs.h <<\_ACEOF
8087#define STAT_MACROS_BROKEN 1
8088_ACEOF
8089
8090fi
8091
8092
8093
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008094
8095
8096
8097
8098for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
8099do
8100as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008101{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8103if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105else
8106 cat >conftest.$ac_ext <<_ACEOF
8107/* confdefs.h. */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h. */
8112#include <sys/types.h>
8113 #if HAVE_SYS_PARAM_H
8114 # include <sys/param.h>
8115 #endif
8116
8117#include <$ac_header>
8118_ACEOF
8119rm -f conftest.$ac_objext
8120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8121 (eval $ac_compile) 2>conftest.er1
8122 ac_status=$?
8123 grep -v '^ *+' conftest.er1 >conftest.err
8124 rm -f conftest.er1
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 (eval $ac_try) 2>&5
8131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; } &&
8134 { ac_try='test -s conftest.$ac_objext'
8135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 (eval $ac_try) 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 eval "$as_ac_Header=yes"
8141else
8142 echo "$as_me: failed program was:" >&5
8143sed 's/^/| /' conftest.$ac_ext >&5
8144
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008145 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008146fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008147
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8149fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008150ac_res=`eval echo '${'$as_ac_Header'}'`
8151 { echo "$as_me:$LINENO: result: $ac_res" >&5
8152echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008153if test `eval echo '${'$as_ac_Header'}'` = yes; then
8154 cat >>confdefs.h <<_ACEOF
8155#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8156_ACEOF
8157
8158fi
8159
8160done
8161
8162
8163
8164
8165
8166
8167
8168
8169for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
8170do
8171as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008172{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177 cat >conftest.$ac_ext <<_ACEOF
8178/* confdefs.h. */
8179_ACEOF
8180cat confdefs.h >>conftest.$ac_ext
8181cat >>conftest.$ac_ext <<_ACEOF
8182/* end confdefs.h. */
8183#include <sys/types.h>
8184 #if HAVE_SYS_SOCKET_H
8185 # include <sys/socket.h>
8186 #endif
8187
8188#include <$ac_header>
8189_ACEOF
8190rm -f conftest.$ac_objext
8191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8192 (eval $ac_compile) 2>conftest.er1
8193 ac_status=$?
8194 grep -v '^ *+' conftest.er1 >conftest.err
8195 rm -f conftest.er1
8196 cat conftest.err >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } &&
8199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 (eval $ac_try) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try='test -s conftest.$ac_objext'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 (eval $ac_try) 2>&5
8208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8211 eval "$as_ac_Header=yes"
8212else
8213 echo "$as_me: failed program was:" >&5
8214sed 's/^/| /' conftest.$ac_ext >&5
8215
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008216 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008217fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008218
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8220fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008221ac_res=`eval echo '${'$as_ac_Header'}'`
8222 { echo "$as_me:$LINENO: result: $ac_res" >&5
8223echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008224if test `eval echo '${'$as_ac_Header'}'` = yes; then
8225 cat >>confdefs.h <<_ACEOF
8226#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8227_ACEOF
8228
8229fi
8230
8231done
8232
8233
8234
8235for ac_header in resolv.h
8236do
8237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008238{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008241 echo $ECHO_N "(cached) $ECHO_C" >&6
8242else
8243 cat >conftest.$ac_ext <<_ACEOF
8244/* confdefs.h. */
8245_ACEOF
8246cat confdefs.h >>conftest.$ac_ext
8247cat >>conftest.$ac_ext <<_ACEOF
8248/* end confdefs.h. */
8249#include <sys/types.h>
8250 #if HAVE_SYS_SOCKET_H
8251 # include <sys/socket.h>
8252 #endif
8253 #if HAVE_NETINET_IN_H
8254 # include <netinet/in.h>
8255 #endif
8256 #if HAVE_ARPA_NAMESER_H
8257 # include <arpa/nameser.h>
8258 #endif
8259
8260#include <$ac_header>
8261_ACEOF
8262rm -f conftest.$ac_objext
8263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8264 (eval $ac_compile) 2>conftest.er1
8265 ac_status=$?
8266 grep -v '^ *+' conftest.er1 >conftest.err
8267 rm -f conftest.er1
8268 cat conftest.err >&5
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
8271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 (eval $ac_try) 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; } &&
8277 { ac_try='test -s conftest.$ac_objext'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 (eval $ac_try) 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 eval "$as_ac_Header=yes"
8284else
8285 echo "$as_me: failed program was:" >&5
8286sed 's/^/| /' conftest.$ac_ext >&5
8287
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008288 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008289fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008290
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8292fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008293ac_res=`eval echo '${'$as_ac_Header'}'`
8294 { echo "$as_me:$LINENO: result: $ac_res" >&5
8295echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008296if test `eval echo '${'$as_ac_Header'}'` = yes; then
8297 cat >>confdefs.h <<_ACEOF
8298#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8299_ACEOF
8300
8301fi
8302
8303done
8304
8305
8306
8307for ac_header in ucontext.h
8308do
8309as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008310{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008313 echo $ECHO_N "(cached) $ECHO_C" >&6
8314else
8315 cat >conftest.$ac_ext <<_ACEOF
8316/* confdefs.h. */
8317_ACEOF
8318cat confdefs.h >>conftest.$ac_ext
8319cat >>conftest.$ac_ext <<_ACEOF
8320/* end confdefs.h. */
8321#include <signal.h>
8322
8323#include <$ac_header>
8324_ACEOF
8325rm -f conftest.$ac_objext
8326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8327 (eval $ac_compile) 2>conftest.er1
8328 ac_status=$?
8329 grep -v '^ *+' conftest.er1 >conftest.err
8330 rm -f conftest.er1
8331 cat conftest.err >&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } &&
8334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8336 (eval $ac_try) 2>&5
8337 ac_status=$?
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; } &&
8340 { ac_try='test -s conftest.$ac_objext'
8341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 (eval $ac_try) 2>&5
8343 ac_status=$?
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; }; then
8346 eval "$as_ac_Header=yes"
8347else
8348 echo "$as_me: failed program was:" >&5
8349sed 's/^/| /' conftest.$ac_ext >&5
8350
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008351 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008352fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008353
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8355fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008356ac_res=`eval echo '${'$as_ac_Header'}'`
8357 { echo "$as_me:$LINENO: result: $ac_res" >&5
8358echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008359if test `eval echo '${'$as_ac_Header'}'` = yes; then
8360 cat >>confdefs.h <<_ACEOF
8361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8362_ACEOF
8363
8364fi
8365
8366done
8367
8368
8369
8370
8371for ac_header in linux/ipx.h linux/videodev.h
8372do
8373as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008374{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378else
8379 cat >conftest.$ac_ext <<_ACEOF
8380/* confdefs.h. */
8381_ACEOF
8382cat confdefs.h >>conftest.$ac_ext
8383cat >>conftest.$ac_ext <<_ACEOF
8384/* end confdefs.h. */
8385#ifdef HAVE_SYS_TIME_H
8386#include <sys/time.h>
8387#endif
8388#include <sys/types.h>
8389#ifdef HAVE_ASM_TYPES_H
8390#include <asm/types.h>
8391#endif
8392
8393#include <$ac_header>
8394_ACEOF
8395rm -f conftest.$ac_objext
8396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8397 (eval $ac_compile) 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
8404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406 (eval $ac_try) 2>&5
8407 ac_status=$?
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest.$ac_objext'
8411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412 (eval $ac_try) 2>&5
8413 ac_status=$?
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); }; }; then
8416 eval "$as_ac_Header=yes"
8417else
8418 echo "$as_me: failed program was:" >&5
8419sed 's/^/| /' conftest.$ac_ext >&5
8420
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008421 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008422fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008423
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8425fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008426ac_res=`eval echo '${'$as_ac_Header'}'`
8427 { echo "$as_me:$LINENO: result: $ac_res" >&5
8428echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008429if test `eval echo '${'$as_ac_Header'}'` = yes; then
8430 cat >>confdefs.h <<_ACEOF
8431#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8432_ACEOF
8433
8434fi
8435
8436done
8437
8438
8439
Alexandre Julliardb079add2006-02-24 11:46:17 +01008440for ac_header in linux/capi.h
8441do
8442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008443{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardb079add2006-02-24 11:46:17 +01008446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447else
8448 cat >conftest.$ac_ext <<_ACEOF
8449/* confdefs.h. */
8450_ACEOF
8451cat confdefs.h >>conftest.$ac_ext
8452cat >>conftest.$ac_ext <<_ACEOF
8453/* end confdefs.h. */
8454#define __user
8455
8456#include <$ac_header>
8457_ACEOF
8458rm -f conftest.$ac_objext
8459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8460 (eval $ac_compile) 2>conftest.er1
8461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
8467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 eval "$as_ac_Header=yes"
8480else
8481 echo "$as_me: failed program was:" >&5
8482sed 's/^/| /' conftest.$ac_ext >&5
8483
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008484 eval "$as_ac_Header=no"
Alexandre Julliardb079add2006-02-24 11:46:17 +01008485fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008486
Alexandre Julliardb079add2006-02-24 11:46:17 +01008487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8488fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008489ac_res=`eval echo '${'$as_ac_Header'}'`
8490 { echo "$as_me:$LINENO: result: $ac_res" >&5
8491echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardb079add2006-02-24 11:46:17 +01008492if test `eval echo '${'$as_ac_Header'}'` = yes; then
8493 cat >>confdefs.h <<_ACEOF
8494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8495_ACEOF
8496
8497fi
8498
8499done
8500
8501
8502
Rein Klazes7ff12562004-11-09 20:16:35 +00008503if test "$have_x" = "yes"
8504then
8505 XLIB="-lXext -lX11"
8506 ac_save_CPPFLAGS="$CPPFLAGS"
8507 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8508
8509
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008510
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008511
Alexandre Julliard255b4862003-10-15 04:09:55 +00008512
8513
8514
8515
8516
8517
8518
Alexandre Julliard73482142005-08-03 19:21:04 +00008519for ac_header in X11/Xlib.h \
8520 X11/XKBlib.h \
8521 X11/Xutil.h \
8522 X11/extensions/shape.h \
8523 X11/extensions/XInput.h \
8524 X11/extensions/XShm.h \
8525 X11/extensions/Xrandr.h \
8526 X11/extensions/Xrender.h \
8527 X11/extensions/xf86dga.h \
8528 X11/extensions/xf86vmode.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008529do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008531{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8533if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008534 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008535else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00008536 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008537/* confdefs.h. */
8538_ACEOF
8539cat confdefs.h >>conftest.$ac_ext
8540cat >>conftest.$ac_ext <<_ACEOF
8541/* end confdefs.h. */
Alexandre Julliard73482142005-08-03 19:21:04 +00008542#ifdef HAVE_X11_XLIB_H
8543# include <X11/Xlib.h>
8544#endif
8545#ifdef HAVE_X11_XUTIL_H
8546# include <X11/Xutil.h>
8547#endif
Gregg Mattinson044b5c42002-07-19 03:16:51 +00008548
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008549#include <$ac_header>
8550_ACEOF
8551rm -f conftest.$ac_objext
8552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008553 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008554 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8562 (eval $ac_try) 2>&5
8563 ac_status=$?
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; } &&
8566 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00008572 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008573else
8574 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008575sed 's/^/| /' conftest.$ac_ext >&5
8576
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008577 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008578fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008579
Alexandre Julliard875927f2004-01-02 01:55:29 +00008580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008581fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008582ac_res=`eval echo '${'$as_ac_Header'}'`
8583 { echo "$as_me:$LINENO: result: $ac_res" >&5
8584echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008585if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008586 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008587#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008588_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00008589
8590fi
8591
8592done
8593
8594
8595 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8596 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008597 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
8598echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008599if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008601else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008602 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00008603LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008604cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008605/* confdefs.h. */
8606_ACEOF
8607cat confdefs.h >>conftest.$ac_ext
8608cat >>conftest.$ac_ext <<_ACEOF
8609/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008610
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008611/* Override any GCC internal prototype to avoid an error.
8612 Use char because int might match the return type of a GCC
8613 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008614#ifdef __cplusplus
8615extern "C"
8616#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008617char XkbQueryExtension ();
8618int
8619main ()
8620{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008621return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008622 ;
8623 return 0;
8624}
8625_ACEOF
8626rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008628 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008629 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008630 grep -v '^ *+' conftest.er1 >conftest.err
8631 rm -f conftest.er1
8632 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008634 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; } &&
8641 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008643 (eval $ac_try) 2>&5
8644 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008646 (exit $ac_status); }; }; then
8647 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008648else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008649 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008650sed 's/^/| /' conftest.$ac_ext >&5
8651
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008652 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008653fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008654
Alexandre Julliard875927f2004-01-02 01:55:29 +00008655rm -f conftest.err conftest.$ac_objext \
8656 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008657LIBS=$ac_check_lib_save_LIBS
8658fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008659{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8660echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008661if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00008662
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008663cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00008664#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008665_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00008666
Patrik Stridvall24110281999-02-04 10:09:54 +00008667fi
8668
Alexandre Julliard255b4862003-10-15 04:09:55 +00008669 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008670
Alexandre Julliard255b4862003-10-15 04:09:55 +00008671 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8672 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008673 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
8674echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008675if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00008677else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008678 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00008679LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008680cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008681/* confdefs.h. */
8682_ACEOF
8683cat confdefs.h >>conftest.$ac_ext
8684cat >>conftest.$ac_ext <<_ACEOF
8685/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008686
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008687/* Override any GCC internal prototype to avoid an error.
8688 Use char because int might match the return type of a GCC
8689 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008690#ifdef __cplusplus
8691extern "C"
8692#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008693char XShmQueryExtension ();
8694int
8695main ()
8696{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008697return XShmQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008698 ;
8699 return 0;
8700}
8701_ACEOF
8702rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008704 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008705 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008706 grep -v '^ *+' conftest.er1 >conftest.err
8707 rm -f conftest.er1
8708 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008710 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008719 (eval $ac_try) 2>&5
8720 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008722 (exit $ac_status); }; }; then
8723 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00008724else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008725 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008726sed 's/^/| /' conftest.$ac_ext >&5
8727
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008728 ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00008729fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008730
Alexandre Julliard875927f2004-01-02 01:55:29 +00008731rm -f conftest.err conftest.$ac_objext \
8732 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008733LIBS=$ac_check_lib_save_LIBS
8734fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008735{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8736echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008737if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00008738
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008739cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00008740#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008741_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00008742
Francois Jacques5b6879c2000-07-28 23:04:54 +00008743fi
8744
Alexandre Julliard255b4862003-10-15 04:09:55 +00008745 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008746
Alexandre Julliard255b4862003-10-15 04:09:55 +00008747 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8748 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008749 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8750echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008751if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00008753else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008754 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00008755LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008756cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008757/* confdefs.h. */
8758_ACEOF
8759cat confdefs.h >>conftest.$ac_ext
8760cat >>conftest.$ac_ext <<_ACEOF
8761/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008762
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008763/* Override any GCC internal prototype to avoid an error.
8764 Use char because int might match the return type of a GCC
8765 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008766#ifdef __cplusplus
8767extern "C"
8768#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008769char XShapeQueryExtension ();
8770int
8771main ()
8772{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008773return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008774 ;
8775 return 0;
8776}
8777_ACEOF
8778rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008780 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008781 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008782 grep -v '^ *+' conftest.er1 >conftest.err
8783 rm -f conftest.er1
8784 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008786 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789 (eval $ac_try) 2>&5
8790 ac_status=$?
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; } &&
8793 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008795 (eval $ac_try) 2>&5
8796 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008798 (exit $ac_status); }; }; then
8799 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00008800else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008801 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008802sed 's/^/| /' conftest.$ac_ext >&5
8803
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008804 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00008805fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008806
Alexandre Julliard875927f2004-01-02 01:55:29 +00008807rm -f conftest.err conftest.$ac_objext \
8808 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008809LIBS=$ac_check_lib_save_LIBS
8810fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008811{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8812echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008813if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00008814
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008815cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00008816#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008817_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00008818
Ove Kaavenc90fb252001-01-02 22:39:14 +00008819fi
8820
Alexandre Julliard255b4862003-10-15 04:09:55 +00008821 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008822
Alexandre Julliard255b4862003-10-15 04:09:55 +00008823 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
8824 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008825 { echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
8826echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008827if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008829else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008830 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00008831LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008832cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008833/* confdefs.h. */
8834_ACEOF
8835cat confdefs.h >>conftest.$ac_ext
8836cat >>conftest.$ac_ext <<_ACEOF
8837/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008838
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008839/* Override any GCC internal prototype to avoid an error.
8840 Use char because int might match the return type of a GCC
8841 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008842#ifdef __cplusplus
8843extern "C"
8844#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008845char XDGAQueryExtension ();
8846int
8847main ()
8848{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008849return XDGAQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008850 ;
8851 return 0;
8852}
8853_ACEOF
8854rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008856 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008857 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008858 grep -v '^ *+' conftest.er1 >conftest.err
8859 rm -f conftest.er1
8860 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008862 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 (eval $ac_try) 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; } &&
8869 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008871 (eval $ac_try) 2>&5
8872 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008874 (exit $ac_status); }; }; then
8875 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008876else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008877 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008878sed 's/^/| /' conftest.$ac_ext >&5
8879
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008880 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008881fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008882
Alexandre Julliard875927f2004-01-02 01:55:29 +00008883rm -f conftest.err conftest.$ac_objext \
8884 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008885LIBS=$ac_check_lib_save_LIBS
8886fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008887{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
8888echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008889if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008890
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008891cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00008892#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008893_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00008894
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008895 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008896
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008897fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008898
Alexandre Julliard255b4862003-10-15 04:09:55 +00008899 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008900
Alexandre Julliard255b4862003-10-15 04:09:55 +00008901 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
8902 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008903 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
8904echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008905if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008907else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008908 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00008909LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008910cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008911/* confdefs.h. */
8912_ACEOF
8913cat confdefs.h >>conftest.$ac_ext
8914cat >>conftest.$ac_ext <<_ACEOF
8915/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008916
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008917/* Override any GCC internal prototype to avoid an error.
8918 Use char because int might match the return type of a GCC
8919 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008920#ifdef __cplusplus
8921extern "C"
8922#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008923char XF86VidModeQueryExtension ();
8924int
8925main ()
8926{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008927return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008928 ;
8929 return 0;
8930}
8931_ACEOF
8932rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008934 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008935 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008936 grep -v '^ *+' conftest.er1 >conftest.err
8937 rm -f conftest.er1
8938 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008940 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8943 (eval $ac_try) 2>&5
8944 ac_status=$?
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; } &&
8947 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008949 (eval $ac_try) 2>&5
8950 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008952 (exit $ac_status); }; }; then
8953 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008954else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008955 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008956sed 's/^/| /' conftest.$ac_ext >&5
8957
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008958 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008959fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008960
Alexandre Julliard875927f2004-01-02 01:55:29 +00008961rm -f conftest.err conftest.$ac_objext \
8962 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008963LIBS=$ac_check_lib_save_LIBS
8964fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008965{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
8966echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008967if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00008968
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008969cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00008970#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008971_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008972
8973 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008974
Patrik Stridvall24110281999-02-04 10:09:54 +00008975fi
8976
Alexandre Julliard255b4862003-10-15 04:09:55 +00008977 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008978
Alexandre Julliard255b4862003-10-15 04:09:55 +00008979 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8980 then
Mike McCormackc7c9f932004-04-07 03:57:35 +00008981 cat >conftest.$ac_ext <<_ACEOF
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008982/* confdefs.h. */
8983_ACEOF
8984cat confdefs.h >>conftest.$ac_ext
8985cat >>conftest.$ac_ext <<_ACEOF
8986/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008987#include <X11/Xlib.h>
8988#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008989int
8990main ()
8991{
Mike McCormackc7c9f932004-04-07 03:57:35 +00008992static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008993 ;
8994 return 0;
8995}
8996_ACEOF
Mike McCormackc7c9f932004-04-07 03:57:35 +00008997rm -f conftest.$ac_objext
8998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999 (eval $ac_compile) 2>conftest.er1
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009000 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
Mike McCormackc7c9f932004-04-07 03:57:35 +00009012 { ac_try='test -s conftest.$ac_objext'
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; }; then
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009018
9019cat >>confdefs.h <<\_ACEOF
9020#define HAVE_LIBXRANDR 1
9021_ACEOF
9022
Mike McCormackc7c9f932004-04-07 03:57:35 +00009023else
9024 echo "$as_me: failed program was:" >&5
9025sed 's/^/| /' conftest.$ac_ext >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009026
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009027
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009028fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009029
Mike McCormackc7c9f932004-04-07 03:57:35 +00009030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00009031 fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009032
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009033 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9034 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009035 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9036echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009037if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9039else
9040 ac_check_lib_save_LIBS=$LIBS
9041LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9042cat >conftest.$ac_ext <<_ACEOF
9043/* confdefs.h. */
9044_ACEOF
9045cat confdefs.h >>conftest.$ac_ext
9046cat >>conftest.$ac_ext <<_ACEOF
9047/* end confdefs.h. */
9048
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009049/* Override any GCC internal prototype to avoid an error.
9050 Use char because int might match the return type of a GCC
9051 builtin and then its argument prototype would still apply. */
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009052#ifdef __cplusplus
9053extern "C"
9054#endif
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009055char XRenderSetPictureTransform ();
9056int
9057main ()
9058{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009059return XRenderSetPictureTransform ();
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009060 ;
9061 return 0;
9062}
9063_ACEOF
9064rm -f conftest.$ac_objext conftest$ac_exeext
9065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9066 (eval $ac_link) 2>conftest.er1
9067 ac_status=$?
9068 grep -v '^ *+' conftest.er1 >conftest.err
9069 rm -f conftest.er1
9070 cat conftest.err >&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 (eval $ac_try) 2>&5
9076 ac_status=$?
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; } &&
9079 { ac_try='test -s conftest$ac_exeext'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9081 (eval $ac_try) 2>&5
9082 ac_status=$?
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9086else
9087 echo "$as_me: failed program was:" >&5
9088sed 's/^/| /' conftest.$ac_ext >&5
9089
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009090 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009091fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009092
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009093rm -f conftest.err conftest.$ac_objext \
9094 conftest$ac_exeext conftest.$ac_ext
9095LIBS=$ac_check_lib_save_LIBS
9096fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009097{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9098echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009099if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9100
9101cat >>confdefs.h <<\_ACEOF
9102#define HAVE_XRENDERSETPICTURETRANSFORM 1
9103_ACEOF
9104
9105fi
9106
9107 fi
9108
Alexandre Julliardb8074992002-11-21 21:51:24 +00009109 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009110 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009111
9112
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009113
Huw Davies4eb45462006-03-07 13:55:35 +00009114
9115for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009116do
9117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009118{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9120if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009121 echo $ECHO_N "(cached) $ECHO_C" >&6
9122else
9123 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009124/* confdefs.h. */
9125_ACEOF
9126cat confdefs.h >>conftest.$ac_ext
9127cat >>conftest.$ac_ext <<_ACEOF
9128/* end confdefs.h. */
Alexandre Julliard73482142005-08-03 19:21:04 +00009129#ifdef HAVE_GL_GLX_H
9130# include <GL/glx.h>
9131#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009132
9133#include <$ac_header>
9134_ACEOF
9135rm -f conftest.$ac_objext
9136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009137 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009138 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 (eval $ac_try) 2>&5
9147 ac_status=$?
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; } &&
9150 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 (eval $ac_try) 2>&5
9153 ac_status=$?
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; }; then
9156 eval "$as_ac_Header=yes"
9157else
9158 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009159sed 's/^/| /' conftest.$ac_ext >&5
9160
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009161 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009162fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009163
Alexandre Julliard875927f2004-01-02 01:55:29 +00009164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009165fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009166ac_res=`eval echo '${'$as_ac_Header'}'`
9167 { echo "$as_me:$LINENO: result: $ac_res" >&5
9168echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009169if test `eval echo '${'$as_ac_Header'}'` = yes; then
9170 cat >>confdefs.h <<_ACEOF
9171#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9172_ACEOF
9173
9174fi
9175
9176done
9177
Alexandre Julliard73482142005-08-03 19:21:04 +00009178 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
9179 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009180 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
9181echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009182if test "${wine_cv_opengl_version_OK+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00009184else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009185 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009186/* confdefs.h. */
9187_ACEOF
9188cat confdefs.h >>conftest.$ac_ext
9189cat >>conftest.$ac_ext <<_ACEOF
9190/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00009191#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009192int
9193main ()
9194{
Lionel Ulmer5c085701999-02-28 19:48:53 +00009195GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009196 ;
9197 return 0;
9198}
9199_ACEOF
9200rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009202 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009203 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009204 grep -v '^ *+' conftest.er1 >conftest.err
9205 rm -f conftest.er1
9206 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009208 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; } &&
9215 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009217 (eval $ac_try) 2>&5
9218 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009220 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00009221 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00009222else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009223 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009224sed 's/^/| /' conftest.$ac_ext >&5
9225
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009226 wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00009227
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009228fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009229
Alexandre Julliard875927f2004-01-02 01:55:29 +00009230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00009231
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009232fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009233{ echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
9234echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009235
Alexandre Julliardb8074992002-11-21 21:51:24 +00009236 if test "$wine_cv_opengl_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009237 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009238 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
9239echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009240if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
9241 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009242else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009243 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00009244LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009245cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009246/* confdefs.h. */
9247_ACEOF
9248cat confdefs.h >>conftest.$ac_ext
9249cat >>conftest.$ac_ext <<_ACEOF
9250/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009251
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009252/* Override any GCC internal prototype to avoid an error.
9253 Use char because int might match the return type of a GCC
9254 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009255#ifdef __cplusplus
9256extern "C"
9257#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009258char glXCreateContext ();
9259int
9260main ()
9261{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009262return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009263 ;
9264 return 0;
9265}
9266_ACEOF
9267rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009269 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009270 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009271 grep -v '^ *+' conftest.er1 >conftest.err
9272 rm -f conftest.er1
9273 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009275 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; } &&
9282 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009284 (eval $ac_try) 2>&5
9285 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009287 (exit $ac_status); }; }; then
9288 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00009289else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009290 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009291sed 's/^/| /' conftest.$ac_ext >&5
9292
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009293 ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009294fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009295
Alexandre Julliard875927f2004-01-02 01:55:29 +00009296rm -f conftest.err conftest.$ac_objext \
9297 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009298LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00009299fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009300{ echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
9301echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009302if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00009303 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00009304
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009305fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009306
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009307
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00009308 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00009309 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00009310 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009311
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009312cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00009313#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009314_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00009315
Anderson Lizardo5a2da4e2005-07-25 11:12:11 +00009316 else
9317 if test -f /usr/X11R6/lib/libGL.a
9318 then
9319 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
9320This prevents linking to OpenGL. Delete the file and restart configure." >&5
9321echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
9322This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
9323 { (exit 1); exit 1; }; }
9324 fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009325 fi
Anderson Lizardo5a2da4e2005-07-25 11:12:11 +00009326
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009327 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
9328echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009329if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009331else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009332 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00009333LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009334 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009335cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009336/* confdefs.h. */
9337_ACEOF
9338cat confdefs.h >>conftest.$ac_ext
9339cat >>conftest.$ac_ext <<_ACEOF
9340/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009341
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009342/* Override any GCC internal prototype to avoid an error.
9343 Use char because int might match the return type of a GCC
9344 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009345#ifdef __cplusplus
9346extern "C"
9347#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009348char gluLookAt ();
9349int
9350main ()
9351{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009352return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009353 ;
9354 return 0;
9355}
9356_ACEOF
9357rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009359 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009360 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009361 grep -v '^ *+' conftest.er1 >conftest.err
9362 rm -f conftest.er1
9363 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009365 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368 (eval $ac_try) 2>&5
9369 ac_status=$?
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); }; } &&
9372 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009374 (eval $ac_try) 2>&5
9375 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009377 (exit $ac_status); }; }; then
9378 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009379else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009380 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009381sed 's/^/| /' conftest.$ac_ext >&5
9382
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009383 ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009384fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009385
Alexandre Julliard875927f2004-01-02 01:55:29 +00009386rm -f conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009388LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009389fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009390{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
9391echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009392if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00009393 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009394 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009395
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009396fi
9397
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009398 fi
Jacek Cabanef799c42003-12-02 04:11:09 +00009399
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009400 { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
9401echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
Jacek Cabanef799c42003-12-02 04:11:09 +00009402if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9404else
9405 ac_check_lib_save_LIBS=$LIBS
Jacek Caban5e69f112003-12-03 20:26:43 +00009406LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
Jacek Cabanef799c42003-12-02 04:11:09 +00009407cat >conftest.$ac_ext <<_ACEOF
Jacek Cabanef799c42003-12-02 04:11:09 +00009408/* confdefs.h. */
9409_ACEOF
9410cat confdefs.h >>conftest.$ac_ext
9411cat >>conftest.$ac_ext <<_ACEOF
9412/* end confdefs.h. */
9413
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009414/* Override any GCC internal prototype to avoid an error.
9415 Use char because int might match the return type of a GCC
9416 builtin and then its argument prototype would still apply. */
Jacek Cabanef799c42003-12-02 04:11:09 +00009417#ifdef __cplusplus
9418extern "C"
9419#endif
Jacek Cabanef799c42003-12-02 04:11:09 +00009420char glutMainLoop ();
9421int
9422main ()
9423{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009424return glutMainLoop ();
Jacek Cabanef799c42003-12-02 04:11:09 +00009425 ;
9426 return 0;
9427}
9428_ACEOF
9429rm -f conftest.$ac_objext conftest$ac_exeext
9430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009431 (eval $ac_link) 2>conftest.er1
Jacek Cabanef799c42003-12-02 04:11:09 +00009432 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009433 grep -v '^ *+' conftest.er1 >conftest.err
9434 rm -f conftest.er1
9435 cat conftest.err >&5
Jacek Cabanef799c42003-12-02 04:11:09 +00009436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 (eval $ac_try) 2>&5
9441 ac_status=$?
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; } &&
9444 { ac_try='test -s conftest$ac_exeext'
Jacek Cabanef799c42003-12-02 04:11:09 +00009445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 (eval $ac_try) 2>&5
9447 ac_status=$?
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; }; then
9450 ac_cv_lib_glut_glutMainLoop=yes
9451else
9452 echo "$as_me: failed program was:" >&5
9453sed 's/^/| /' conftest.$ac_ext >&5
9454
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009455 ac_cv_lib_glut_glutMainLoop=no
Jacek Cabanef799c42003-12-02 04:11:09 +00009456fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009457
Alexandre Julliard875927f2004-01-02 01:55:29 +00009458rm -f conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
Jacek Cabanef799c42003-12-02 04:11:09 +00009460LIBS=$ac_check_lib_save_LIBS
9461fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009462{ echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9463echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
Jacek Cabanef799c42003-12-02 04:11:09 +00009464if test $ac_cv_lib_glut_glutMainLoop = yes; then
Jacek Caban5e69f112003-12-03 20:26:43 +00009465 GLUT_LIBS="-lglut -lXmu -lXi"
Jacek Cabanef799c42003-12-02 04:11:09 +00009466
9467 GLUT32FILES='$(GLUT32FILES)'
9468
9469fi
9470
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009471 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009472 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00009473
Francois Gouget6f670b12002-10-10 17:54:27 +00009474 NASLIBS=""
9475
9476
9477for ac_header in audio/audiolib.h
9478do
9479as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9482echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9483if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Francois Gouget6f670b12002-10-10 17:54:27 +00009484 echo $ECHO_N "(cached) $ECHO_C" >&6
9485fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009486ac_res=`eval echo '${'$as_ac_Header'}'`
9487 { echo "$as_me:$LINENO: result: $ac_res" >&5
9488echo "${ECHO_T}$ac_res" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009489else
9490 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009491{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9492echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009493cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009494/* confdefs.h. */
9495_ACEOF
9496cat confdefs.h >>conftest.$ac_ext
9497cat >>conftest.$ac_ext <<_ACEOF
9498/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009499$ac_includes_default
9500#include <$ac_header>
9501_ACEOF
9502rm -f conftest.$ac_objext
9503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009504 (eval $ac_compile) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00009505 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009506 grep -v '^ *+' conftest.er1 >conftest.err
9507 rm -f conftest.er1
9508 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00009509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; } &&
9517 { ac_try='test -s conftest.$ac_objext'
Francois Gouget6f670b12002-10-10 17:54:27 +00009518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519 (eval $ac_try) 2>&5
9520 ac_status=$?
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 ac_header_compiler=yes
9524else
9525 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009526sed 's/^/| /' conftest.$ac_ext >&5
9527
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009528 ac_header_compiler=no
Francois Gouget6f670b12002-10-10 17:54:27 +00009529fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009530
Alexandre Julliard875927f2004-01-02 01:55:29 +00009531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009532{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9533echo "${ECHO_T}$ac_header_compiler" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009534
9535# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009536{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9537echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009538cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009539/* confdefs.h. */
9540_ACEOF
9541cat confdefs.h >>conftest.$ac_ext
9542cat >>conftest.$ac_ext <<_ACEOF
9543/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009544#include <$ac_header>
9545_ACEOF
9546if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9548 ac_status=$?
9549 grep -v '^ *+' conftest.er1 >conftest.err
9550 rm -f conftest.er1
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } >/dev/null; then
9554 if test -s conftest.err; then
9555 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Francois Gouget6f670b12002-10-10 17:54:27 +00009557 else
9558 ac_cpp_err=
9559 fi
9560else
9561 ac_cpp_err=yes
9562fi
9563if test -z "$ac_cpp_err"; then
9564 ac_header_preproc=yes
9565else
9566 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009567sed 's/^/| /' conftest.$ac_ext >&5
9568
Francois Gouget6f670b12002-10-10 17:54:27 +00009569 ac_header_preproc=no
9570fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009571
Francois Gouget6f670b12002-10-10 17:54:27 +00009572rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009573{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9574echo "${ECHO_T}$ac_header_preproc" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009575
9576# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9578 yes:no: )
Francois Gouget6f670b12002-10-10 17:54:27 +00009579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9582echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9583 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009584 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009585 no:yes:* )
Francois Gouget6f670b12002-10-10 17:54:27 +00009586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9587echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9589echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9591echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9593echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Francois Gouget6f670b12002-10-10 17:54:27 +00009594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9597echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009598 ( cat <<\_ASBOX
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009599## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009600## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009601## ------------------------------------ ##
9602_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009603 ) | sed "s/^/$as_me: WARNING: /" >&2
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009604 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00009605esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009606{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Francois Gouget6f670b12002-10-10 17:54:27 +00009609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009611 eval "$as_ac_Header=\$ac_header_preproc"
Francois Gouget6f670b12002-10-10 17:54:27 +00009612fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009613ac_res=`eval echo '${'$as_ac_Header'}'`
9614 { echo "$as_me:$LINENO: result: $ac_res" >&5
9615echo "${ECHO_T}$ac_res" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009616
9617fi
9618if test `eval echo '${'$as_ac_Header'}'` = yes; then
9619 cat >>confdefs.h <<_ACEOF
9620#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9621_ACEOF
9622
9623for ac_header in audio/soundlib.h
9624do
9625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009626{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Francois Gouget6f670b12002-10-10 17:54:27 +00009629 echo $ECHO_N "(cached) $ECHO_C" >&6
9630else
9631 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009632/* confdefs.h. */
9633_ACEOF
9634cat confdefs.h >>conftest.$ac_ext
9635cat >>conftest.$ac_ext <<_ACEOF
9636/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009637#include <audio/audiolib.h>
9638
9639#include <$ac_header>
9640_ACEOF
9641rm -f conftest.$ac_objext
9642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009643 (eval $ac_compile) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00009644 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009645 grep -v '^ *+' conftest.er1 >conftest.err
9646 rm -f conftest.er1
9647 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00009648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; } &&
9656 { ac_try='test -s conftest.$ac_objext'
Francois Gouget6f670b12002-10-10 17:54:27 +00009657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 (eval $ac_try) 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 eval "$as_ac_Header=yes"
9663else
9664 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009665sed 's/^/| /' conftest.$ac_ext >&5
9666
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009667 eval "$as_ac_Header=no"
Francois Gouget6f670b12002-10-10 17:54:27 +00009668fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009669
Alexandre Julliard875927f2004-01-02 01:55:29 +00009670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00009671fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009672ac_res=`eval echo '${'$as_ac_Header'}'`
9673 { echo "$as_me:$LINENO: result: $ac_res" >&5
9674echo "${ECHO_T}$ac_res" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009675if test `eval echo '${'$as_ac_Header'}'` = yes; then
9676 cat >>confdefs.h <<_ACEOF
9677#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9678_ACEOF
9679
9680fi
9681
9682done
9683
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009684 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9685echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009686if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688else
9689 ac_check_lib_save_LIBS=$LIBS
9690LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9691cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009692/* confdefs.h. */
9693_ACEOF
9694cat confdefs.h >>conftest.$ac_ext
9695cat >>conftest.$ac_ext <<_ACEOF
9696/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009697
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009698/* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009701#ifdef __cplusplus
9702extern "C"
9703#endif
Francois Gouget6f670b12002-10-10 17:54:27 +00009704char AuCreateFlow ();
9705int
9706main ()
9707{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009708return AuCreateFlow ();
Francois Gouget6f670b12002-10-10 17:54:27 +00009709 ;
9710 return 0;
9711}
9712_ACEOF
9713rm -f conftest.$ac_objext conftest$ac_exeext
9714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009715 (eval $ac_link) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00009716 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00009720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 (eval $ac_try) 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; } &&
9728 { ac_try='test -s conftest$ac_exeext'
Francois Gouget6f670b12002-10-10 17:54:27 +00009729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 ac_cv_lib_audio_AuCreateFlow=yes
9735else
9736 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009737sed 's/^/| /' conftest.$ac_ext >&5
9738
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009739 ac_cv_lib_audio_AuCreateFlow=no
Francois Gouget6f670b12002-10-10 17:54:27 +00009740fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009741
Alexandre Julliard875927f2004-01-02 01:55:29 +00009742rm -f conftest.err conftest.$ac_objext \
9743 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00009744LIBS=$ac_check_lib_save_LIBS
9745fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009746{ echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
9747echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009748if test $ac_cv_lib_audio_AuCreateFlow = yes; then
9749
9750cat >>confdefs.h <<\_ACEOF
9751#define HAVE_NAS 1
9752_ACEOF
9753
9754 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
9755fi
9756
9757fi
9758
9759done
9760
9761
Ove Kaaven1eb593c1999-02-14 09:34:46 +00009762 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00009763 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00009764else
9765 XLIB=""
9766 X_CFLAGS=""
9767 X_LIBS=""
9768fi
Alexandre Julliard902da691995-11-05 14:39:02 +00009769
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009770
9771XML2LIBS=""
9772
9773XML2INCL=""
9774
Mike McCormackf3719a82005-09-03 09:39:38 +00009775XSLTLIBS=""
9776
9777XSLTINCL=""
9778
Mike McCormack90c75bd2005-08-08 18:36:53 +00009779if test "$PKG_CONFIG" != "false"
9780then
9781 ac_save_CPPFLAGS="$CPPFLAGS"
9782 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0`"
9783 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0`"
9784 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009785
9786for ac_header in libxml/parser.h
9787do
9788as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009795ac_res=`eval echo '${'$as_ac_Header'}'`
9796 { echo "$as_me:$LINENO: result: $ac_res" >&5
9797echo "${ECHO_T}$ac_res" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009798else
9799 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009800{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009802cat >conftest.$ac_ext <<_ACEOF
9803/* confdefs.h. */
9804_ACEOF
9805cat confdefs.h >>conftest.$ac_ext
9806cat >>conftest.$ac_ext <<_ACEOF
9807/* end confdefs.h. */
9808$ac_includes_default
9809#include <$ac_header>
9810_ACEOF
9811rm -f conftest.$ac_objext
9812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9813 (eval $ac_compile) 2>conftest.er1
9814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
9820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest.$ac_objext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 ac_header_compiler=yes
9833else
9834 echo "$as_me: failed program was:" >&5
9835sed 's/^/| /' conftest.$ac_ext >&5
9836
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009837 ac_header_compiler=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009838fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009839
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009841{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9842echo "${ECHO_T}$ac_header_compiler" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009843
9844# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009845{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009847cat >conftest.$ac_ext <<_ACEOF
9848/* confdefs.h. */
9849_ACEOF
9850cat confdefs.h >>conftest.$ac_ext
9851cat >>conftest.$ac_ext <<_ACEOF
9852/* end confdefs.h. */
9853#include <$ac_header>
9854_ACEOF
9855if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } >/dev/null; then
9863 if test -s conftest.err; then
9864 ac_cpp_err=$ac_c_preproc_warn_flag
9865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9866 else
9867 ac_cpp_err=
9868 fi
9869else
9870 ac_cpp_err=yes
9871fi
9872if test -z "$ac_cpp_err"; then
9873 ac_header_preproc=yes
9874else
9875 echo "$as_me: failed program was:" >&5
9876sed 's/^/| /' conftest.$ac_ext >&5
9877
9878 ac_header_preproc=no
9879fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009880
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009881rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009882{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9883echo "${ECHO_T}$ac_header_preproc" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009884
9885# So? What about this header?
9886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9887 yes:no: )
9888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9889echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9891echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9892 ac_header_preproc=yes
9893 ;;
9894 no:yes:* )
9895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9898echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9900echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9902echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9904echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9906echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009907 ( cat <<\_ASBOX
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009908## ------------------------------------ ##
9909## Report this to wine-devel@winehq.org ##
9910## ------------------------------------ ##
9911_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009912 ) | sed "s/^/$as_me: WARNING: /" >&2
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009913 ;;
9914esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009915{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009918 echo $ECHO_N "(cached) $ECHO_C" >&6
9919else
9920 eval "$as_ac_Header=\$ac_header_preproc"
9921fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009922ac_res=`eval echo '${'$as_ac_Header'}'`
9923 { echo "$as_me:$LINENO: result: $ac_res" >&5
9924echo "${ECHO_T}$ac_res" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009925
9926fi
9927if test `eval echo '${'$as_ac_Header'}'` = yes; then
9928 cat >>confdefs.h <<_ACEOF
9929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9930_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009931 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
9932echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00009933if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935else
9936 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +00009937LIBS="-lxml2 $ac_xml_libs $LIBS"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009938cat >conftest.$ac_ext <<_ACEOF
9939/* confdefs.h. */
9940_ACEOF
9941cat confdefs.h >>conftest.$ac_ext
9942cat >>conftest.$ac_ext <<_ACEOF
9943/* end confdefs.h. */
9944
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009945/* Override any GCC internal prototype to avoid an error.
9946 Use char because int might match the return type of a GCC
9947 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009948#ifdef __cplusplus
9949extern "C"
9950#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +00009951char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009952int
9953main ()
9954{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009955return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009956 ;
9957 return 0;
9958}
9959_ACEOF
9960rm -f conftest.$ac_objext conftest$ac_exeext
9961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962 (eval $ac_link) 2>conftest.er1
9963 ac_status=$?
9964 grep -v '^ *+' conftest.er1 >conftest.err
9965 rm -f conftest.er1
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971 (eval $ac_try) 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
Mike McCormack90c75bd2005-08-08 18:36:53 +00009981 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009982else
9983 echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009986 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009987fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009988
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009989rm -f conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991LIBS=$ac_check_lib_save_LIBS
9992fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009993{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
9994echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00009995if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009996
9997cat >>confdefs.h <<\_ACEOF
9998#define HAVE_LIBXML2 1
9999_ACEOF
10000
Mike McCormack90c75bd2005-08-08 18:36:53 +000010001 XML2LIBS="$ac_xml_libs"
10002 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010003fi
10004
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010005 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
10006echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
Mike McCormack70adb8f2005-08-12 10:35:17 +000010007if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009else
10010 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +000010011LIBS="-lxml2 $ac_xml_libs $LIBS"
Mike McCormack70adb8f2005-08-12 10:35:17 +000010012cat >conftest.$ac_ext <<_ACEOF
10013/* confdefs.h. */
10014_ACEOF
10015cat confdefs.h >>conftest.$ac_ext
10016cat >>conftest.$ac_ext <<_ACEOF
10017/* end confdefs.h. */
10018
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010019/* Override any GCC internal prototype to avoid an error.
10020 Use char because int might match the return type of a GCC
10021 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +000010022#ifdef __cplusplus
10023extern "C"
10024#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +000010025char xmlReadMemory ();
10026int
10027main ()
10028{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010029return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +000010030 ;
10031 return 0;
10032}
10033_ACEOF
10034rm -f conftest.$ac_objext conftest$ac_exeext
10035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10036 (eval $ac_link) 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; } &&
10049 { ac_try='test -s conftest$ac_exeext'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 ac_cv_lib_xml2_xmlReadMemory=yes
10056else
10057 echo "$as_me: failed program was:" >&5
10058sed 's/^/| /' conftest.$ac_ext >&5
10059
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010060 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +000010061fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010062
Mike McCormack70adb8f2005-08-12 10:35:17 +000010063rm -f conftest.err conftest.$ac_objext \
10064 conftest$ac_exeext conftest.$ac_ext
10065LIBS=$ac_check_lib_save_LIBS
10066fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010067{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10068echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Mike McCormack70adb8f2005-08-12 10:35:17 +000010069if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
10070
10071cat >>confdefs.h <<\_ACEOF
10072#define HAVE_XMLREADMEMORY 1
10073_ACEOF
10074
10075fi
10076
10077
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010078fi
10079
10080done
10081
Mike McCormack90c75bd2005-08-08 18:36:53 +000010082 CPPFLAGS="$ac_save_CPPFLAGS"
Mike McCormackf3719a82005-09-03 09:39:38 +000010083 ac_xslt_libs="`$PKG_CONFIG --libs libxslt`"
10084 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt`"
10085 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
10086
10087
Vincent BĂ©rond7f64242005-09-15 09:39:09 +000010088for ac_header in libxslt/pattern.h libxslt/transform.h
Mike McCormackf3719a82005-09-03 09:39:38 +000010089do
10090as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010091{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Mike McCormackf3719a82005-09-03 09:39:38 +000010094 echo $ECHO_N "(cached) $ECHO_C" >&6
Mike McCormackf3719a82005-09-03 09:39:38 +000010095else
Vincent BĂ©rond7f64242005-09-15 09:39:09 +000010096 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +000010097/* confdefs.h. */
10098_ACEOF
10099cat confdefs.h >>conftest.$ac_ext
10100cat >>conftest.$ac_ext <<_ACEOF
10101/* end confdefs.h. */
Vincent BĂ©rond7f64242005-09-15 09:39:09 +000010102#ifdef HAVE_LIBXSLT_PATTERN_H
10103# include <libxslt/pattern.h>
10104#endif
10105
Mike McCormackf3719a82005-09-03 09:39:38 +000010106#include <$ac_header>
10107_ACEOF
10108rm -f conftest.$ac_objext
10109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10110 (eval $ac_compile) 2>conftest.er1
10111 ac_status=$?
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } &&
10117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; } &&
10123 { ac_try='test -s conftest.$ac_objext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
Vincent BĂ©rond7f64242005-09-15 09:39:09 +000010129 eval "$as_ac_Header=yes"
Mike McCormackf3719a82005-09-03 09:39:38 +000010130else
10131 echo "$as_me: failed program was:" >&5
10132sed 's/^/| /' conftest.$ac_ext >&5
10133
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010134 eval "$as_ac_Header=no"
Mike McCormackf3719a82005-09-03 09:39:38 +000010135fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010136
Mike McCormackf3719a82005-09-03 09:39:38 +000010137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +000010138fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010139ac_res=`eval echo '${'$as_ac_Header'}'`
10140 { echo "$as_me:$LINENO: result: $ac_res" >&5
10141echo "${ECHO_T}$ac_res" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +000010142if test `eval echo '${'$as_ac_Header'}'` = yes; then
10143 cat >>confdefs.h <<_ACEOF
10144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10145_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010146 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
10147echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +000010148if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150else
10151 ac_check_lib_save_LIBS=$LIBS
10152LIBS="-lxslt $ac_xslt_libs $LIBS"
10153cat >conftest.$ac_ext <<_ACEOF
10154/* confdefs.h. */
10155_ACEOF
10156cat confdefs.h >>conftest.$ac_ext
10157cat >>conftest.$ac_ext <<_ACEOF
10158/* end confdefs.h. */
10159
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010160/* Override any GCC internal prototype to avoid an error.
10161 Use char because int might match the return type of a GCC
10162 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +000010163#ifdef __cplusplus
10164extern "C"
10165#endif
Mike McCormackf3719a82005-09-03 09:39:38 +000010166char xsltCompilePattern ();
10167int
10168main ()
10169{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010170return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +000010171 ;
10172 return 0;
10173}
10174_ACEOF
10175rm -f conftest.$ac_objext conftest$ac_exeext
10176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10177 (eval $ac_link) 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } &&
10184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; } &&
10190 { ac_try='test -s conftest$ac_exeext'
10191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192 (eval $ac_try) 2>&5
10193 ac_status=$?
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; }; then
10196 ac_cv_lib_xslt_xsltCompilePattern=yes
10197else
10198 echo "$as_me: failed program was:" >&5
10199sed 's/^/| /' conftest.$ac_ext >&5
10200
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010201 ac_cv_lib_xslt_xsltCompilePattern=no
Mike McCormackf3719a82005-09-03 09:39:38 +000010202fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010203
Mike McCormackf3719a82005-09-03 09:39:38 +000010204rm -f conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206LIBS=$ac_check_lib_save_LIBS
10207fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010208{ echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
10209echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +000010210if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
10211
10212cat >>confdefs.h <<\_ACEOF
10213#define HAVE_LIBXSLT 1
10214_ACEOF
10215
10216 XSLTLIBS="$ac_xslt_libs"
10217 XSLTINCL="$ac_xslt_cflags"
10218fi
10219
10220
10221fi
10222
10223done
10224
10225 CPPFLAGS="$ac_save_CPPFLAGS"
Mike McCormack90c75bd2005-08-08 18:36:53 +000010226fi
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010227
Alexandre Julliard00068982006-04-18 16:47:53 +020010228HALINCL=""
10229
10230if test "$PKG_CONFIG" != "false"
10231then
10232 ac_save_CPPFLAGS="$CPPFLAGS"
10233 ac_hal_libs="`$PKG_CONFIG --libs hal`"
10234 ac_hal_cflags="`$PKG_CONFIG --cflags hal`"
10235 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
10236
10237
10238for ac_header in dbus/dbus.h hal/libhal.h
10239do
10240as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard00068982006-04-18 16:47:53 +020010245 echo $ECHO_N "(cached) $ECHO_C" >&6
10246fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010247ac_res=`eval echo '${'$as_ac_Header'}'`
10248 { echo "$as_me:$LINENO: result: $ac_res" >&5
10249echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010250else
10251 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010252{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10253echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010254cat >conftest.$ac_ext <<_ACEOF
10255/* confdefs.h. */
10256_ACEOF
10257cat confdefs.h >>conftest.$ac_ext
10258cat >>conftest.$ac_ext <<_ACEOF
10259/* end confdefs.h. */
10260$ac_includes_default
10261#include <$ac_header>
10262_ACEOF
10263rm -f conftest.$ac_objext
10264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10265 (eval $ac_compile) 2>conftest.er1
10266 ac_status=$?
10267 grep -v '^ *+' conftest.er1 >conftest.err
10268 rm -f conftest.er1
10269 cat conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } &&
10272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; } &&
10278 { ac_try='test -s conftest.$ac_objext'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 ac_header_compiler=yes
10285else
10286 echo "$as_me: failed program was:" >&5
10287sed 's/^/| /' conftest.$ac_ext >&5
10288
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010289 ac_header_compiler=no
Alexandre Julliard00068982006-04-18 16:47:53 +020010290fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010291
Alexandre Julliard00068982006-04-18 16:47:53 +020010292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010293{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10294echo "${ECHO_T}$ac_header_compiler" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010295
10296# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010297{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10298echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010299cat >conftest.$ac_ext <<_ACEOF
10300/* confdefs.h. */
10301_ACEOF
10302cat confdefs.h >>conftest.$ac_ext
10303cat >>conftest.$ac_ext <<_ACEOF
10304/* end confdefs.h. */
10305#include <$ac_header>
10306_ACEOF
10307if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10309 ac_status=$?
10310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } >/dev/null; then
10315 if test -s conftest.err; then
10316 ac_cpp_err=$ac_c_preproc_warn_flag
10317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10318 else
10319 ac_cpp_err=
10320 fi
10321else
10322 ac_cpp_err=yes
10323fi
10324if test -z "$ac_cpp_err"; then
10325 ac_header_preproc=yes
10326else
10327 echo "$as_me: failed program was:" >&5
10328sed 's/^/| /' conftest.$ac_ext >&5
10329
10330 ac_header_preproc=no
10331fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010332
Alexandre Julliard00068982006-04-18 16:47:53 +020010333rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010334{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10335echo "${ECHO_T}$ac_header_preproc" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010336
10337# So? What about this header?
10338case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10339 yes:no: )
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10341echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10343echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10344 ac_header_preproc=yes
10345 ;;
10346 no:yes:* )
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10348echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10350echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10352echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10354echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10356echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10358echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010359 ( cat <<\_ASBOX
Alexandre Julliard00068982006-04-18 16:47:53 +020010360## ------------------------------------ ##
10361## Report this to wine-devel@winehq.org ##
10362## ------------------------------------ ##
10363_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010364 ) | sed "s/^/$as_me: WARNING: /" >&2
Alexandre Julliard00068982006-04-18 16:47:53 +020010365 ;;
10366esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010367{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard00068982006-04-18 16:47:53 +020010370 echo $ECHO_N "(cached) $ECHO_C" >&6
10371else
10372 eval "$as_ac_Header=\$ac_header_preproc"
10373fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010374ac_res=`eval echo '${'$as_ac_Header'}'`
10375 { echo "$as_me:$LINENO: result: $ac_res" >&5
10376echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010377
10378fi
10379if test `eval echo '${'$as_ac_Header'}'` = yes; then
10380 cat >>confdefs.h <<_ACEOF
10381#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10382_ACEOF
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010383
10384fi
10385
10386done
10387
10388 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
10389 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010390 { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
10391echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010392if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10394else
10395 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010396LIBS="-lhal $LIBS"
Alexandre Julliard00068982006-04-18 16:47:53 +020010397cat >conftest.$ac_ext <<_ACEOF
10398/* confdefs.h. */
10399_ACEOF
10400cat confdefs.h >>conftest.$ac_ext
10401cat >>conftest.$ac_ext <<_ACEOF
10402/* end confdefs.h. */
10403
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010404/* Override any GCC internal prototype to avoid an error.
10405 Use char because int might match the return type of a GCC
10406 builtin and then its argument prototype would still apply. */
Alexandre Julliard00068982006-04-18 16:47:53 +020010407#ifdef __cplusplus
10408extern "C"
10409#endif
Alexandre Julliard00068982006-04-18 16:47:53 +020010410char libhal_ctx_new ();
10411int
10412main ()
10413{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010414return libhal_ctx_new ();
Alexandre Julliard00068982006-04-18 16:47:53 +020010415 ;
10416 return 0;
10417}
10418_ACEOF
10419rm -f conftest.$ac_objext conftest$ac_exeext
10420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10421 (eval $ac_link) 2>conftest.er1
10422 ac_status=$?
10423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } &&
10428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10431 ac_status=$?
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; } &&
10434 { ac_try='test -s conftest$ac_exeext'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; }; then
10440 ac_cv_lib_hal_libhal_ctx_new=yes
10441else
10442 echo "$as_me: failed program was:" >&5
10443sed 's/^/| /' conftest.$ac_ext >&5
10444
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010445 ac_cv_lib_hal_libhal_ctx_new=no
Alexandre Julliard00068982006-04-18 16:47:53 +020010446fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010447
Alexandre Julliard00068982006-04-18 16:47:53 +020010448rm -f conftest.err conftest.$ac_objext \
10449 conftest$ac_exeext conftest.$ac_ext
10450LIBS=$ac_check_lib_save_LIBS
10451fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010452{ echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
10453echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010454if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010455 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
10456echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010457if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10459else
10460 ac_check_lib_save_LIBS=$LIBS
10461LIBS="-ldbus-1 $ac_hal_libs $LIBS"
10462cat >conftest.$ac_ext <<_ACEOF
10463/* confdefs.h. */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h. */
10468
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010469/* Override any GCC internal prototype to avoid an error.
10470 Use char because int might match the return type of a GCC
10471 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010472#ifdef __cplusplus
10473extern "C"
10474#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010475char dbus_connection_close ();
10476int
10477main ()
10478{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010479return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010480 ;
10481 return 0;
10482}
10483_ACEOF
10484rm -f conftest.$ac_objext conftest$ac_exeext
10485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10486 (eval $ac_link) 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; } &&
10499 { ac_try='test -s conftest$ac_exeext'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10505 ac_cv_lib_dbus_1_dbus_connection_close=yes
10506else
10507 echo "$as_me: failed program was:" >&5
10508sed 's/^/| /' conftest.$ac_ext >&5
10509
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010510 ac_cv_lib_dbus_1_dbus_connection_close=no
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010511fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010512
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010513rm -f conftest.err conftest.$ac_objext \
10514 conftest$ac_exeext conftest.$ac_ext
10515LIBS=$ac_check_lib_save_LIBS
10516fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010517{ echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
10518echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010519if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
Alexandre Julliard00068982006-04-18 16:47:53 +020010520
10521cat >>confdefs.h <<\_ACEOF
10522#define HAVE_LIBHAL 1
10523_ACEOF
10524
10525 HALINCL="$ac_hal_cflags"
10526fi
10527
10528fi
10529
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010530 fi
Alexandre Julliard00068982006-04-18 16:47:53 +020010531 CPPFLAGS="$ac_save_CPPFLAGS"
10532fi
10533
Alexandre Julliard48957682001-12-26 23:08:31 +000010534CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010535if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +000010536then
Alexandre Julliard73482142005-08-03 19:21:04 +000010537 if test "$ac_cv_header_ncurses_h" = "yes"
10538 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010539 { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
10540echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010541if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010543else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010544 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010545LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010546cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010547/* confdefs.h. */
10548_ACEOF
10549cat confdefs.h >>conftest.$ac_ext
10550cat >>conftest.$ac_ext <<_ACEOF
10551/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010552
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010553/* Override any GCC internal prototype to avoid an error.
10554 Use char because int might match the return type of a GCC
10555 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010556#ifdef __cplusplus
10557extern "C"
10558#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010559char waddch ();
10560int
10561main ()
10562{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010563return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010564 ;
10565 return 0;
10566}
10567_ACEOF
10568rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010570 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010571 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010576 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; } &&
10583 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010585 (eval $ac_try) 2>&5
10586 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010588 (exit $ac_status); }; }; then
10589 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010590else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010591 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010592sed 's/^/| /' conftest.$ac_ext >&5
10593
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010594 ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010595fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010596
Alexandre Julliard875927f2004-01-02 01:55:29 +000010597rm -f conftest.err conftest.$ac_objext \
10598 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010599LIBS=$ac_check_lib_save_LIBS
10600fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010601{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
10602echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010603if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010604
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010605cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +000010606#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010607_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010608
Alexandre Julliard48957682001-12-26 23:08:31 +000010609 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010610fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010611
Alexandre Julliard73482142005-08-03 19:21:04 +000010612 elif test "$ac_cv_header_curses_h" = "yes"
10613 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010614 { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
10615echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010616if test "${ac_cv_lib_curses_waddch+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010618else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010619 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010620LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010621cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010622/* confdefs.h. */
10623_ACEOF
10624cat confdefs.h >>conftest.$ac_ext
10625cat >>conftest.$ac_ext <<_ACEOF
10626/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010627
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010628/* Override any GCC internal prototype to avoid an error.
10629 Use char because int might match the return type of a GCC
10630 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010631#ifdef __cplusplus
10632extern "C"
10633#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010634char waddch ();
10635int
10636main ()
10637{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010638return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010639 ;
10640 return 0;
10641}
10642_ACEOF
10643rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010645 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010646 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010651 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10655 ac_status=$?
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010660 (eval $ac_try) 2>&5
10661 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010663 (exit $ac_status); }; }; then
10664 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010665else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010666 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010667sed 's/^/| /' conftest.$ac_ext >&5
10668
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010669 ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010670fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010671
Alexandre Julliard875927f2004-01-02 01:55:29 +000010672rm -f conftest.err conftest.$ac_objext \
10673 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010674LIBS=$ac_check_lib_save_LIBS
10675fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010676{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
10677echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010678if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010679
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010680cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +000010681#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010682_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010683
Alexandre Julliard73482142005-08-03 19:21:04 +000010684 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010685fi
10686
Alexandre Julliard73482142005-08-03 19:21:04 +000010687 fi
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010688fi
10689
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010690
Shi Quan He6b0720f2002-03-21 02:58:39 +000010691# Extract the first word of "sane-config", so it can be a program name with args.
10692set dummy sane-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010693{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000010695if test "${ac_cv_prog_sane_devel+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10697else
10698 if test -n "$sane_devel"; then
10699 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
10700else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702for as_dir in $PATH
10703do
10704 IFS=$as_save_IFS
10705 test -z "$as_dir" && as_dir=.
10706 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010708 ac_cv_prog_sane_devel="sane-config"
10709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10710 break 2
10711 fi
10712done
Shi Quan He6b0720f2002-03-21 02:58:39 +000010713done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010714IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +000010715
10716 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
10717fi
10718fi
10719sane_devel=$ac_cv_prog_sane_devel
10720if test -n "$sane_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010721 { echo "$as_me:$LINENO: result: $sane_devel" >&5
10722echo "${ECHO_T}$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000010723else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010724 { echo "$as_me:$LINENO: result: no" >&5
10725echo "${ECHO_T}no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000010726fi
10727
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010728
Alexandre Julliard82776022005-08-08 11:17:25 +000010729SANELIBS=""
10730
10731SANEINCL=""
10732
10733if test "$sane_devel" != "no"
Shi Quan He6b0720f2002-03-21 02:58:39 +000010734then
Shi Quan He6b0720f2002-03-21 02:58:39 +000010735 SANELIBS="`$sane_devel --libs`"
10736 SANEINCL="`$sane_devel --cflags`"
10737 ac_save_CPPFLAGS="$CPPFLAGS"
10738 ac_save_LIBS="$LIBS"
10739 CPPFLAGS="$CPPFLAGS $SANEINCL"
10740 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010741 if test "${ac_cv_header_sane_sane_h+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010742 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10743echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000010744if test "${ac_cv_header_sane_sane_h+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010746fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010747{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10748echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000010749else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010750 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010751{ echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
10752echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010753cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010754/* confdefs.h. */
10755_ACEOF
10756cat confdefs.h >>conftest.$ac_ext
10757cat >>conftest.$ac_ext <<_ACEOF
10758/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010759$ac_includes_default
10760#include <sane/sane.h>
10761_ACEOF
10762rm -f conftest.$ac_objext
10763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010764 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010765 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 ac_header_compiler=yes
10784else
10785 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010786sed 's/^/| /' conftest.$ac_ext >&5
10787
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010788 ac_header_compiler=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010789fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010790
Alexandre Julliard875927f2004-01-02 01:55:29 +000010791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010792{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10793echo "${ECHO_T}$ac_header_compiler" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010794
10795# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010796{ echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
10797echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010798cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010799/* confdefs.h. */
10800_ACEOF
10801cat confdefs.h >>conftest.$ac_ext
10802cat >>conftest.$ac_ext <<_ACEOF
10803/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000010804#include <sane/sane.h>
10805_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000010807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10808 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010809 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +000010810 rm -f conftest.er1
10811 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000010813 (exit $ac_status); } >/dev/null; then
10814 if test -s conftest.err; then
10815 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Shi Quan He6b0720f2002-03-21 02:58:39 +000010817 else
10818 ac_cpp_err=
10819 fi
10820else
10821 ac_cpp_err=yes
10822fi
10823if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010824 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +000010825else
10826 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010827sed 's/^/| /' conftest.$ac_ext >&5
10828
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010829 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +000010830fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010831
Shi Quan He6b0720f2002-03-21 02:58:39 +000010832rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010833{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10834echo "${ECHO_T}$ac_header_preproc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010835
10836# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10838 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010839 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
10840echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010841 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
10842echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
10843 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010844 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000010845 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010846 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
10847echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010848 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
10849echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
10850 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
10851echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
10852 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
10853echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010854 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010855echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010856 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
10857echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010858 ( cat <<\_ASBOX
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010859## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000010860## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010861## ------------------------------------ ##
10862_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010863 ) | sed "s/^/$as_me: WARNING: /" >&2
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010864 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010865esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010866{ echo "$as_me:$LINENO: checking for sane/sane.h" >&5
10867echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010868if test "${ac_cv_header_sane_sane_h+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870else
10871 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +000010872fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010873{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
10874echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010875
10876fi
Shi Quan He6b0720f2002-03-21 02:58:39 +000010877if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010878 { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
10879echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000010880if test "${ac_cv_lib_sane_sane_open+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882else
10883 ac_check_lib_save_LIBS=$LIBS
10884LIBS="-lsane $LIBS"
10885cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010886/* confdefs.h. */
10887_ACEOF
10888cat confdefs.h >>conftest.$ac_ext
10889cat >>conftest.$ac_ext <<_ACEOF
10890/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000010891
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010892/* 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. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000010895#ifdef __cplusplus
10896extern "C"
10897#endif
Shi Quan He6b0720f2002-03-21 02:58:39 +000010898char sane_open ();
10899int
10900main ()
10901{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010902return sane_open ();
Shi Quan He6b0720f2002-03-21 02:58:39 +000010903 ;
10904 return 0;
10905}
10906_ACEOF
10907rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010909 (eval $ac_link) 2>conftest.er1
Shi Quan He6b0720f2002-03-21 02:58:39 +000010910 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010911 grep -v '^ *+' conftest.er1 >conftest.err
10912 rm -f conftest.er1
10913 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000010915 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; } &&
10922 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000010924 (eval $ac_try) 2>&5
10925 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000010927 (exit $ac_status); }; }; then
10928 ac_cv_lib_sane_sane_open=yes
10929else
10930 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010931sed 's/^/| /' conftest.$ac_ext >&5
10932
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010933 ac_cv_lib_sane_sane_open=no
Shi Quan He6b0720f2002-03-21 02:58:39 +000010934fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010935
Alexandre Julliard875927f2004-01-02 01:55:29 +000010936rm -f conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext conftest.$ac_ext
Shi Quan He6b0720f2002-03-21 02:58:39 +000010938LIBS=$ac_check_lib_save_LIBS
10939fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010940{ echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
10941echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000010942if test $ac_cv_lib_sane_sane_open = yes; then
10943
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010944cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000010945#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010946_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000010947
10948else
10949 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +000010950 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +000010951fi
10952
Alexandre Julliard96328b32002-03-31 19:23:41 +000010953else
10954 SANELIBS=""
10955 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +000010956fi
10957
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010958
Shi Quan He6b0720f2002-03-21 02:58:39 +000010959 LIBS="$ac_save_LIBS"
10960 CPPFLAGS="$ac_save_CPPFLAGS"
10961fi
10962
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010963# Extract the first word of "gphoto2-config", so it can be a program name with args.
10964set dummy gphoto2-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010965{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010967if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969else
10970 if test -n "$gphoto2_devel"; then
10971 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10972else
10973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974for as_dir in $PATH
10975do
10976 IFS=$as_save_IFS
10977 test -z "$as_dir" && as_dir=.
10978 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010980 ac_cv_prog_gphoto2_devel="gphoto2-config"
10981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10982 break 2
10983 fi
10984done
10985done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010986IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010987
10988 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10989fi
10990fi
10991gphoto2_devel=$ac_cv_prog_gphoto2_devel
10992if test -n "$gphoto2_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010993 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
10994echo "${ECHO_T}$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010995else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010996 { echo "$as_me:$LINENO: result: no" >&5
10997echo "${ECHO_T}no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010998fi
10999
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011000
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011001# Extract the first word of "gphoto2-port-config", so it can be a program name with args.
11002set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011005if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11007else
11008 if test -n "$gphoto2port_devel"; then
11009 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
11010else
11011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11012for as_dir in $PATH
11013do
11014 IFS=$as_save_IFS
11015 test -z "$as_dir" && as_dir=.
11016 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011018 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
11019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11020 break 2
11021 fi
11022done
11023done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011024IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011025
11026 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
11027fi
11028fi
11029gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
11030if test -n "$gphoto2port_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011031 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
11032echo "${ECHO_T}$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011033else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011034 { echo "$as_me:$LINENO: result: no" >&5
11035echo "${ECHO_T}no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011036fi
11037
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011038
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011039GPHOTO2LIBS=""
11040
11041GPHOTO2INCL=""
11042
11043if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
11044then
11045 GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
11046 GPHOTO2LIBS=""
11047 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
11048 do
11049 case "$i" in
11050 -L/usr/lib|-L/usr/lib64) ;;
11051 -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
11052 esac
11053 done
11054 ac_save_CPPFLAGS="$CPPFLAGS"
11055 ac_save_LIBS="$LIBS"
11056 CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
11057 LIBS="$LIBS $GPHOTO2LIBS"
11058 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011059 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11060echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011061if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011064{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11065echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011066else
11067 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011068{ echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
11069echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011070cat >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$ac_includes_default
11077#include <gphoto2-camera.h>
11078_ACEOF
11079rm -f conftest.$ac_objext
11080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11081 (eval $ac_compile) 2>conftest.er1
11082 ac_status=$?
11083 grep -v '^ *+' conftest.er1 >conftest.err
11084 rm -f conftest.er1
11085 cat conftest.err >&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; } &&
11094 { ac_try='test -s conftest.$ac_objext'
11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11097 ac_status=$?
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100 ac_header_compiler=yes
11101else
11102 echo "$as_me: failed program was:" >&5
11103sed 's/^/| /' conftest.$ac_ext >&5
11104
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011105 ac_header_compiler=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011106fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011107
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011109{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11110echo "${ECHO_T}$ac_header_compiler" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011111
11112# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011113{ echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
11114echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011115cat >conftest.$ac_ext <<_ACEOF
11116/* confdefs.h. */
11117_ACEOF
11118cat confdefs.h >>conftest.$ac_ext
11119cat >>conftest.$ac_ext <<_ACEOF
11120/* end confdefs.h. */
11121#include <gphoto2-camera.h>
11122_ACEOF
11123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } >/dev/null; then
11131 if test -s conftest.err; then
11132 ac_cpp_err=$ac_c_preproc_warn_flag
11133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11134 else
11135 ac_cpp_err=
11136 fi
11137else
11138 ac_cpp_err=yes
11139fi
11140if test -z "$ac_cpp_err"; then
11141 ac_header_preproc=yes
11142else
11143 echo "$as_me: failed program was:" >&5
11144sed 's/^/| /' conftest.$ac_ext >&5
11145
11146 ac_header_preproc=no
11147fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011148
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011149rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011150{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11151echo "${ECHO_T}$ac_header_preproc" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011152
11153# So? What about this header?
11154case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11155 yes:no: )
11156 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
11157echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
11159echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
11160 ac_header_preproc=yes
11161 ;;
11162 no:yes:* )
11163 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
11164echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
11165 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
11166echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
11168echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
11170echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
11171 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
11172echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
11173 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
11174echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011175 ( cat <<\_ASBOX
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011176## ------------------------------------ ##
11177## Report this to wine-devel@winehq.org ##
11178## ------------------------------------ ##
11179_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011180 ) | sed "s/^/$as_me: WARNING: /" >&2
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011181 ;;
11182esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011183{ echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11184echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011185if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11187else
11188 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
11189fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011190{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11191echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011192
11193fi
11194if test $ac_cv_header_gphoto2_camera_h = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011195 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
11196echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011197if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11199else
11200 ac_check_lib_save_LIBS=$LIBS
11201LIBS="-lgphoto2 $LIBS"
11202cat >conftest.$ac_ext <<_ACEOF
11203/* confdefs.h. */
11204_ACEOF
11205cat confdefs.h >>conftest.$ac_ext
11206cat >>conftest.$ac_ext <<_ACEOF
11207/* end confdefs.h. */
11208
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011209/* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011212#ifdef __cplusplus
11213extern "C"
11214#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011215char gp_camera_new ();
11216int
11217main ()
11218{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011219return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011220 ;
11221 return 0;
11222}
11223_ACEOF
11224rm -f conftest.$ac_objext conftest$ac_exeext
11225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226 (eval $ac_link) 2>conftest.er1
11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
11233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; } &&
11239 { ac_try='test -s conftest$ac_exeext'
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_cv_lib_gphoto2_gp_camera_new=yes
11246else
11247 echo "$as_me: failed program was:" >&5
11248sed 's/^/| /' conftest.$ac_ext >&5
11249
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011250 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011251fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011252
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011253rm -f conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255LIBS=$ac_check_lib_save_LIBS
11256fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011257{ echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11258echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011259if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
11260
11261cat >>confdefs.h <<\_ACEOF
11262#define HAVE_GPHOTO2 1
11263_ACEOF
11264
11265else
11266 GPHOTO2LIBS=""
11267 GPHOTO2INCL=""
11268fi
11269
11270else
11271 GPHOTO2LIBS=""
11272 GPHOTO2INCL=""
11273fi
11274
11275
11276 LIBS="$ac_save_LIBS"
11277 CPPFLAGS="$ac_save_CPPFLAGS"
11278fi
11279
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011280if test "$ac_cv_header_unicode_ubidi_h" = "yes"
11281then
Marcus Meissnerbc624582004-01-18 22:15:46 +000011282 saved_libs="$LIBS"
11283 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
Shachar Shemesh9f2627e2004-04-06 20:13:21 +000011284 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
11285 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011286 { echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
11287echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6; }
Marcus Meissnerbc624582004-01-18 22:15:46 +000011288 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
11289 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011290/* confdefs.h. */
11291_ACEOF
11292cat confdefs.h >>conftest.$ac_ext
11293cat >>conftest.$ac_ext <<_ACEOF
11294/* end confdefs.h. */
11295#include <unicode/ubidi.h>
11296int
11297main ()
11298{
11299ubidi_open()
11300 ;
11301 return 0;
11302}
11303_ACEOF
11304rm -f conftest.$ac_objext conftest$ac_exeext
11305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011306 (eval $ac_link) 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011307 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011308 grep -v '^ *+' conftest.er1 >conftest.err
11309 rm -f conftest.er1
11310 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; } &&
11319 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011325
11326cat >>confdefs.h <<\_ACEOF
11327#define HAVE_ICU 1
11328_ACEOF
11329
Marcus Meissnerbc624582004-01-18 22:15:46 +000011330 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011331
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011332 { echo "$as_me:$LINENO: result: yes" >&5
11333echo "${ECHO_T}yes" >&6; }
Marcus Meissnerbc624582004-01-18 22:15:46 +000011334else
11335 echo "$as_me: failed program was:" >&5
11336sed 's/^/| /' conftest.$ac_ext >&5
11337
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011338 { echo "$as_me:$LINENO: result: no" >&5
11339echo "${ECHO_T}no" >&6; }
Marcus Meissnerbc624582004-01-18 22:15:46 +000011340fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011341
Marcus Meissnerbc624582004-01-18 22:15:46 +000011342rm -f conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344 LIBS="$saved_libs"
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011345fi
11346
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020011347RESOLVLIBS=""
11348
11349if test "$ac_cv_header_resolv_h" = "yes"
11350then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011351 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
11352echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020011353if test "${ac_cv_lib_resolv_res_query+set}" = set; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11355else
11356 ac_check_lib_save_LIBS=$LIBS
11357LIBS="-lresolv $LIBS"
11358cat >conftest.$ac_ext <<_ACEOF
11359/* confdefs.h. */
11360_ACEOF
11361cat confdefs.h >>conftest.$ac_ext
11362cat >>conftest.$ac_ext <<_ACEOF
11363/* end confdefs.h. */
11364
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011365/* Override any GCC internal prototype to avoid an error.
11366 Use char because int might match the return type of a GCC
11367 builtin and then its argument prototype would still apply. */
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020011368#ifdef __cplusplus
11369extern "C"
11370#endif
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020011371char res_query ();
11372int
11373main ()
11374{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011375return res_query ();
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020011376 ;
11377 return 0;
11378}
11379_ACEOF
11380rm -f conftest.$ac_objext conftest$ac_exeext
11381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11382 (eval $ac_link) 2>conftest.er1
11383 ac_status=$?
11384 grep -v '^ *+' conftest.er1 >conftest.err
11385 rm -f conftest.er1
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388 (exit $ac_status); } &&
11389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11391 (eval $ac_try) 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try='test -s conftest$ac_exeext'
11396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11397 (eval $ac_try) 2>&5
11398 ac_status=$?
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }; }; then
11401 ac_cv_lib_resolv_res_query=yes
11402else
11403 echo "$as_me: failed program was:" >&5
11404sed 's/^/| /' conftest.$ac_ext >&5
11405
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011406 ac_cv_lib_resolv_res_query=no
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020011407fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011408
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020011409rm -f conftest.err conftest.$ac_objext \
11410 conftest$ac_exeext conftest.$ac_ext
11411LIBS=$ac_check_lib_save_LIBS
11412fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011413{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
11414echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020011415if test $ac_cv_lib_resolv_res_query = yes; then
11416
11417cat >>confdefs.h <<\_ACEOF
11418#define HAVE_RESOLV 1
11419_ACEOF
11420
11421 RESOLVLIBS="-lresolv"
11422fi
11423
11424fi
11425
Hans Leidekkerd3447022005-07-15 10:09:43 +000011426LCMSLIBS=""
11427
11428if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
11429then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011430 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
11431echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
Hans Leidekkerd3447022005-07-15 10:09:43 +000011432if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11434else
11435 ac_check_lib_save_LIBS=$LIBS
11436LIBS="-llcms $LIBS"
11437cat >conftest.$ac_ext <<_ACEOF
11438/* confdefs.h. */
11439_ACEOF
11440cat confdefs.h >>conftest.$ac_ext
11441cat >>conftest.$ac_ext <<_ACEOF
11442/* end confdefs.h. */
11443
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011444/* Override any GCC internal prototype to avoid an error.
11445 Use char because int might match the return type of a GCC
11446 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +000011447#ifdef __cplusplus
11448extern "C"
11449#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +000011450char cmsOpenProfileFromFile ();
11451int
11452main ()
11453{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011454return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000011455 ;
11456 return 0;
11457}
11458_ACEOF
11459rm -f conftest.$ac_objext conftest$ac_exeext
11460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461 (eval $ac_link) 2>conftest.er1
11462 ac_status=$?
11463 grep -v '^ *+' conftest.er1 >conftest.err
11464 rm -f conftest.er1
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } &&
11468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11471 ac_status=$?
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; } &&
11474 { ac_try='test -s conftest$ac_exeext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11477 ac_status=$?
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
11481else
11482 echo "$as_me: failed program was:" >&5
11483sed 's/^/| /' conftest.$ac_ext >&5
11484
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011485 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000011486fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011487
Hans Leidekkerd3447022005-07-15 10:09:43 +000011488rm -f conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11490LIBS=$ac_check_lib_save_LIBS
11491fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011492{ echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
11493echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Hans Leidekkerd3447022005-07-15 10:09:43 +000011494if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
11495
11496cat >>confdefs.h <<\_ACEOF
11497#define HAVE_LCMS 1
11498_ACEOF
11499
11500 LCMSLIBS="-llcms"
11501fi
11502
11503fi
11504
Hans Leidekkerea524de2005-07-15 16:39:42 +000011505LDAPLIBS=""
11506
11507if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
11508then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011509 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
11510echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010011511if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
Hans Leidekkerea524de2005-07-15 16:39:42 +000011512 echo $ECHO_N "(cached) $ECHO_C" >&6
11513else
11514 ac_check_lib_save_LIBS=$LIBS
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010011515LIBS="-lldap_r $LIBPTHREAD $LIBS"
Hans Leidekkerea524de2005-07-15 16:39:42 +000011516cat >conftest.$ac_ext <<_ACEOF
11517/* confdefs.h. */
11518_ACEOF
11519cat confdefs.h >>conftest.$ac_ext
11520cat >>conftest.$ac_ext <<_ACEOF
11521/* end confdefs.h. */
11522
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011523/* Override any GCC internal prototype to avoid an error.
11524 Use char because int might match the return type of a GCC
11525 builtin and then its argument prototype would still apply. */
Hans Leidekkerea524de2005-07-15 16:39:42 +000011526#ifdef __cplusplus
11527extern "C"
11528#endif
Hans Leidekker20d0e802005-11-18 16:56:44 +000011529char ldap_initialize ();
Hans Leidekkerea524de2005-07-15 16:39:42 +000011530int
11531main ()
11532{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011533return ldap_initialize ();
Hans Leidekkerea524de2005-07-15 16:39:42 +000011534 ;
11535 return 0;
11536}
11537_ACEOF
11538rm -f conftest.$ac_objext conftest$ac_exeext
11539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11540 (eval $ac_link) 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } &&
11547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; } &&
11553 { ac_try='test -s conftest$ac_exeext'
11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); }; }; then
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010011559 ac_cv_lib_ldap_r_ldap_initialize=yes
Hans Leidekkerea524de2005-07-15 16:39:42 +000011560else
11561 echo "$as_me: failed program was:" >&5
11562sed 's/^/| /' conftest.$ac_ext >&5
11563
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011564 ac_cv_lib_ldap_r_ldap_initialize=no
Hans Leidekkerea524de2005-07-15 16:39:42 +000011565fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011566
Hans Leidekkerea524de2005-07-15 16:39:42 +000011567rm -f conftest.err conftest.$ac_objext \
11568 conftest$ac_exeext conftest.$ac_ext
11569LIBS=$ac_check_lib_save_LIBS
11570fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011571{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
11572echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010011573if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011574 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
11575echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
Hans Leidekkerea524de2005-07-15 16:39:42 +000011576if test "${ac_cv_lib_lber_ber_init+set}" = set; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11578else
11579 ac_check_lib_save_LIBS=$LIBS
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010011580LIBS="-llber $LIBPTHREAD $LIBS"
Hans Leidekkerea524de2005-07-15 16:39:42 +000011581cat >conftest.$ac_ext <<_ACEOF
11582/* confdefs.h. */
11583_ACEOF
11584cat confdefs.h >>conftest.$ac_ext
11585cat >>conftest.$ac_ext <<_ACEOF
11586/* end confdefs.h. */
11587
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011588/* Override any GCC internal prototype to avoid an error.
11589 Use char because int might match the return type of a GCC
11590 builtin and then its argument prototype would still apply. */
Hans Leidekkerea524de2005-07-15 16:39:42 +000011591#ifdef __cplusplus
11592extern "C"
11593#endif
Hans Leidekkerea524de2005-07-15 16:39:42 +000011594char ber_init ();
11595int
11596main ()
11597{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011598return ber_init ();
Hans Leidekkerea524de2005-07-15 16:39:42 +000011599 ;
11600 return 0;
11601}
11602_ACEOF
11603rm -f conftest.$ac_objext conftest$ac_exeext
11604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11605 (eval $ac_link) 2>conftest.er1
11606 ac_status=$?
11607 grep -v '^ *+' conftest.er1 >conftest.err
11608 rm -f conftest.er1
11609 cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; } &&
11618 { ac_try='test -s conftest$ac_exeext'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 ac_cv_lib_lber_ber_init=yes
11625else
11626 echo "$as_me: failed program was:" >&5
11627sed 's/^/| /' conftest.$ac_ext >&5
11628
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011629 ac_cv_lib_lber_ber_init=no
Hans Leidekkerea524de2005-07-15 16:39:42 +000011630fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011631
Hans Leidekkerea524de2005-07-15 16:39:42 +000011632rm -f conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
11634LIBS=$ac_check_lib_save_LIBS
11635fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011636{ echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
11637echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
Hans Leidekkerea524de2005-07-15 16:39:42 +000011638if test $ac_cv_lib_lber_ber_init = yes; then
11639
11640cat >>confdefs.h <<\_ACEOF
11641#define HAVE_LDAP 1
11642_ACEOF
11643
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010011644 LDAPLIBS="-lldap_r -llber"
Hans Leidekkerea524de2005-07-15 16:39:42 +000011645fi
11646
11647fi
11648
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010011649 ac_wine_check_funcs_save_LIBS="$LIBS"
11650LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010011651
11652
11653
11654
11655for ac_func in \
11656 ldap_count_references \
11657 ldap_first_reference \
11658 ldap_next_reference \
11659 ldap_parse_reference
11660do
11661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011662{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11664if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010011665 echo $ECHO_N "(cached) $ECHO_C" >&6
11666else
11667 cat >conftest.$ac_ext <<_ACEOF
11668/* confdefs.h. */
11669_ACEOF
11670cat confdefs.h >>conftest.$ac_ext
11671cat >>conftest.$ac_ext <<_ACEOF
11672/* end confdefs.h. */
11673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11675#define $ac_func innocuous_$ac_func
11676
11677/* System header to define __stub macros and hopefully few prototypes,
11678 which can conflict with char $ac_func (); below.
11679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11680 <limits.h> exists even on freestanding compilers. */
11681
11682#ifdef __STDC__
11683# include <limits.h>
11684#else
11685# include <assert.h>
11686#endif
11687
11688#undef $ac_func
11689
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011690/* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010011693#ifdef __cplusplus
11694extern "C"
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010011695#endif
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010011696char $ac_func ();
11697/* The GNU C library defines this for functions which it implements
11698 to always fail with ENOSYS. Some functions are actually named
11699 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011700#if defined __stub_$ac_func || defined __stub___$ac_func
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010011701choke me
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010011702#endif
11703
11704int
11705main ()
11706{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011707return $ac_func ();
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010011708 ;
11709 return 0;
11710}
11711_ACEOF
11712rm -f conftest.$ac_objext conftest$ac_exeext
11713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11714 (eval $ac_link) 2>conftest.er1
11715 ac_status=$?
11716 grep -v '^ *+' conftest.er1 >conftest.err
11717 rm -f conftest.er1
11718 cat conftest.err >&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } &&
11721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11723 (eval $ac_try) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; } &&
11727 { ac_try='test -s conftest$ac_exeext'
11728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729 (eval $ac_try) 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 eval "$as_ac_var=yes"
11734else
11735 echo "$as_me: failed program was:" >&5
11736sed 's/^/| /' conftest.$ac_ext >&5
11737
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011738 eval "$as_ac_var=no"
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010011739fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011740
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010011741rm -f conftest.err conftest.$ac_objext \
11742 conftest$ac_exeext conftest.$ac_ext
11743fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011744ac_res=`eval echo '${'$as_ac_var'}'`
11745 { echo "$as_me:$LINENO: result: $ac_res" >&5
11746echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010011747if test `eval echo '${'$as_ac_var'}'` = yes; then
11748 cat >>confdefs.h <<_ACEOF
11749#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11750_ACEOF
11751
11752fi
11753done
11754
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010011755LIBS="$ac_wine_check_funcs_save_LIBS"
Hans Leidekkerea524de2005-07-15 16:39:42 +000011756fi
11757
Alexandre Julliard82776022005-08-08 11:17:25 +000011758FREETYPELIBS=""
11759
11760FREETYPEINCL=""
11761
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011762{ echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
11763echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011764if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
11765 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000011766else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011767 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +000011768LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011769cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011770/* confdefs.h. */
11771_ACEOF
11772cat confdefs.h >>conftest.$ac_ext
11773cat >>conftest.$ac_ext <<_ACEOF
11774/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011775
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011776/* Override any GCC internal prototype to avoid an error.
11777 Use char because int might match the return type of a GCC
11778 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011779#ifdef __cplusplus
11780extern "C"
11781#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011782char FT_Init_FreeType ();
11783int
11784main ()
11785{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011786return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011787 ;
11788 return 0;
11789}
11790_ACEOF
11791rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011793 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011794 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011795 grep -v '^ *+' conftest.er1 >conftest.err
11796 rm -f conftest.er1
11797 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011799 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802 (eval $ac_try) 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; } &&
11806 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011808 (eval $ac_try) 2>&5
11809 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011811 (exit $ac_status); }; }; then
11812 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000011813else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011814 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011815sed 's/^/| /' conftest.$ac_ext >&5
11816
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011817 ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +000011818fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011819
Alexandre Julliard875927f2004-01-02 01:55:29 +000011820rm -f conftest.err conftest.$ac_objext \
11821 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011822LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000011823fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011824{ echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
11825echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011826if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +000011827 ft_lib=yes
11828else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011829 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000011830fi
11831
11832if test "$ft_lib" = "no"
11833then
Ian Pilcher563598d2001-05-16 20:56:05 +000011834 wine_cv_msg_freetype=no
11835else
11836 # Extract the first word of "freetype-config", so it can be a program name with args.
11837set dummy freetype-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011840if test "${ac_cv_prog_ft_devel+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000011842else
11843 if test -n "$ft_devel"; then
11844 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
11845else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847for as_dir in $PATH
11848do
11849 IFS=$as_save_IFS
11850 test -z "$as_dir" && as_dir=.
11851 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011853 ac_cv_prog_ft_devel="freetype-config"
11854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11855 break 2
11856 fi
11857done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011858done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011859IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011860
Ian Pilcher563598d2001-05-16 20:56:05 +000011861 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
11862fi
11863fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011864ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +000011865if test -n "$ft_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011866 { echo "$as_me:$LINENO: result: $ft_devel" >&5
11867echo "${ECHO_T}$ft_devel" >&6; }
Ian Pilcher563598d2001-05-16 20:56:05 +000011868else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011869 { echo "$as_me:$LINENO: result: no" >&5
11870echo "${ECHO_T}no" >&6; }
Ian Pilcher563598d2001-05-16 20:56:05 +000011871fi
11872
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011873
Ian Pilcher563598d2001-05-16 20:56:05 +000011874 if test "$ft_devel" = "no"
11875 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +000011876 # Extract the first word of "freetype2-config", so it can be a program name with args.
11877set dummy freetype2-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011880if test "${ac_cv_prog_ft_devel2+set}" = set; then
11881 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000011882else
11883 if test -n "$ft_devel2"; then
11884 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
11885else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887for as_dir in $PATH
11888do
11889 IFS=$as_save_IFS
11890 test -z "$as_dir" && as_dir=.
11891 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011893 ac_cv_prog_ft_devel2="freetype2-config"
11894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11895 break 2
11896 fi
11897done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011898done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011899IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011900
Marcus Meissnerd28955d2001-05-31 21:35:15 +000011901 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
11902fi
11903fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011904ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +000011905if test -n "$ft_devel2"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011906 { echo "$as_me:$LINENO: result: $ft_devel2" >&5
11907echo "${ECHO_T}$ft_devel2" >&6; }
Marcus Meissnerd28955d2001-05-31 21:35:15 +000011908else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011909 { echo "$as_me:$LINENO: result: no" >&5
11910echo "${ECHO_T}no" >&6; }
Marcus Meissnerd28955d2001-05-31 21:35:15 +000011911fi
11912
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011913
Marcus Meissnerd28955d2001-05-31 21:35:15 +000011914 if test "$ft_devel2" = "freetype2-config"
11915 then
11916 ft_devel=$ft_devel2
11917 fi
11918 fi
11919 if test "$ft_devel" = "no"
11920 then
Ian Pilcher563598d2001-05-16 20:56:05 +000011921 wine_cv_msg_freetype=yes
11922 else
Huw Davies00acb5f2004-08-17 22:33:14 +000011923 FREETYPELIBS=`$ft_devel --libs`
Marcus Meissnerd28955d2001-05-31 21:35:15 +000011924 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +000011925 ac_save_CPPFLAGS="$CPPFLAGS"
11926 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011927
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011928
11929
11930
11931
11932
11933
11934
Rein Klazese617a9c2003-11-19 02:18:13 +000011935
Huw Daviesc2217182004-06-16 20:06:26 +000011936
Huw Davies603d21c2006-01-24 10:57:35 +010011937
Rein Klazese617a9c2003-11-19 02:18:13 +000011938for ac_header in ft2build.h \
11939 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000011940 freetype/ftglyph.h \
11941 freetype/tttables.h \
11942 freetype/ftnames.h \
11943 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000011944 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000011945 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000011946 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010011947 freetype/ftmodapi.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000011948 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +000011949do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011950as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011951{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011954 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011955else
Rein Klazes9c269172003-11-20 04:17:33 +000011956 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011957/* confdefs.h. */
11958_ACEOF
11959cat confdefs.h >>conftest.$ac_ext
11960cat >>conftest.$ac_ext <<_ACEOF
11961/* end confdefs.h. */
Rein Klazes9c269172003-11-20 04:17:33 +000011962#if HAVE_FT2BUILD_H
11963 #include <ft2build.h>
11964 #endif
11965
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011966#include <$ac_header>
11967_ACEOF
11968rm -f conftest.$ac_objext
11969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011970 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011971 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979 (eval $ac_try) 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; }; then
Rein Klazes9c269172003-11-20 04:17:33 +000011989 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011990else
11991 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011992sed 's/^/| /' conftest.$ac_ext >&5
11993
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011994 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011995fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011996
Alexandre Julliard875927f2004-01-02 01:55:29 +000011997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011998fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011999ac_res=`eval echo '${'$as_ac_Header'}'`
12000 { echo "$as_me:$LINENO: result: $ac_res" >&5
12001echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012002if test `eval echo '${'$as_ac_Header'}'` = yes; then
12003 cat >>confdefs.h <<_ACEOF
12004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12005_ACEOF
12006
12007fi
12008
Ian Pilcher40432fe2001-06-06 21:05:23 +000012009done
12010
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012011 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012012/* confdefs.h. */
12013_ACEOF
12014cat confdefs.h >>conftest.$ac_ext
12015cat >>conftest.$ac_ext <<_ACEOF
12016/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000012017#include <ft2build.h>
12018 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012019_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012020if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12022 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012023 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012024 rm -f conftest.er1
12025 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012027 (exit $ac_status); } >/dev/null; then
12028 if test -s conftest.err; then
12029 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000012030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012031 else
12032 ac_cpp_err=
12033 fi
12034else
12035 ac_cpp_err=yes
12036fi
12037if test -z "$ac_cpp_err"; then
12038
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012039cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000012040#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012041_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000012042
Huw D M Daviesc1d38132002-02-08 17:09:50 +000012043 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000012044else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012045 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012046sed 's/^/| /' conftest.$ac_ext >&5
12047
Huw D M Daviesc1d38132002-02-08 17:09:50 +000012048 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000012049fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012050
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012051rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012052 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
12053echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
Huw Daviesd8a6c272006-02-22 12:24:25 +000012054if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12056else
12057 cat >conftest.$ac_ext <<_ACEOF
12058/* confdefs.h. */
12059_ACEOF
12060cat confdefs.h >>conftest.$ac_ext
12061cat >>conftest.$ac_ext <<_ACEOF
12062/* end confdefs.h. */
12063#include <freetype/ftmodapi.h>
12064
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012065typedef FT_TrueTypeEngineType ac__type_new_;
Huw Daviesd8a6c272006-02-22 12:24:25 +000012066int
12067main ()
12068{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012069if ((ac__type_new_ *) 0)
Huw Daviesd8a6c272006-02-22 12:24:25 +000012070 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012071if (sizeof (ac__type_new_))
Huw Daviesd8a6c272006-02-22 12:24:25 +000012072 return 0;
12073 ;
12074 return 0;
12075}
12076_ACEOF
12077rm -f conftest.$ac_objext
12078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12079 (eval $ac_compile) 2>conftest.er1
12080 ac_status=$?
12081 grep -v '^ *+' conftest.er1 >conftest.err
12082 rm -f conftest.er1
12083 cat conftest.err >&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } &&
12086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; } &&
12092 { ac_try='test -s conftest.$ac_objext'
12093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094 (eval $ac_try) 2>&5
12095 ac_status=$?
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; }; then
12098 ac_cv_type_FT_TrueTypeEngineType=yes
12099else
12100 echo "$as_me: failed program was:" >&5
12101sed 's/^/| /' conftest.$ac_ext >&5
12102
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012103 ac_cv_type_FT_TrueTypeEngineType=no
Huw Daviesd8a6c272006-02-22 12:24:25 +000012104fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012105
Huw Daviesd8a6c272006-02-22 12:24:25 +000012106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12107fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012108{ echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
12109echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
Huw Daviesd8a6c272006-02-22 12:24:25 +000012110if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
12111
12112cat >>confdefs.h <<_ACEOF
12113#define HAVE_FT_TRUETYPEENGINETYPE 1
12114_ACEOF
12115
12116
12117fi
12118
Huw Davies35bca772006-04-12 12:14:27 +010012119 ac_save_CFLAGS="$CFLAGS"
12120 CFLAGS="$CFLAGS $FREETYPELIBS"
12121
12122for ac_func in FT_Load_Sfnt_Table
12123do
12124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012125{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12127if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Huw Davies35bca772006-04-12 12:14:27 +010012128 echo $ECHO_N "(cached) $ECHO_C" >&6
12129else
12130 cat >conftest.$ac_ext <<_ACEOF
12131/* confdefs.h. */
12132_ACEOF
12133cat confdefs.h >>conftest.$ac_ext
12134cat >>conftest.$ac_ext <<_ACEOF
12135/* end confdefs.h. */
12136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12138#define $ac_func innocuous_$ac_func
12139
12140/* System header to define __stub macros and hopefully few prototypes,
12141 which can conflict with char $ac_func (); below.
12142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12143 <limits.h> exists even on freestanding compilers. */
12144
12145#ifdef __STDC__
12146# include <limits.h>
12147#else
12148# include <assert.h>
12149#endif
12150
12151#undef $ac_func
12152
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012153/* Override any GCC internal prototype to avoid an error.
12154 Use char because int might match the return type of a GCC
12155 builtin and then its argument prototype would still apply. */
Huw Davies35bca772006-04-12 12:14:27 +010012156#ifdef __cplusplus
12157extern "C"
Huw Davies35bca772006-04-12 12:14:27 +010012158#endif
Huw Davies35bca772006-04-12 12:14:27 +010012159char $ac_func ();
12160/* The GNU C library defines this for functions which it implements
12161 to always fail with ENOSYS. Some functions are actually named
12162 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012163#if defined __stub_$ac_func || defined __stub___$ac_func
Huw Davies35bca772006-04-12 12:14:27 +010012164choke me
Huw Davies35bca772006-04-12 12:14:27 +010012165#endif
12166
12167int
12168main ()
12169{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012170return $ac_func ();
Huw Davies35bca772006-04-12 12:14:27 +010012171 ;
12172 return 0;
12173}
12174_ACEOF
12175rm -f conftest.$ac_objext conftest$ac_exeext
12176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12177 (eval $ac_link) 2>conftest.er1
12178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
12184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12187 ac_status=$?
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; } &&
12190 { ac_try='test -s conftest$ac_exeext'
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; }; then
12196 eval "$as_ac_var=yes"
12197else
12198 echo "$as_me: failed program was:" >&5
12199sed 's/^/| /' conftest.$ac_ext >&5
12200
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012201 eval "$as_ac_var=no"
Huw Davies35bca772006-04-12 12:14:27 +010012202fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012203
Huw Davies35bca772006-04-12 12:14:27 +010012204rm -f conftest.err conftest.$ac_objext \
12205 conftest$ac_exeext conftest.$ac_ext
12206fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012207ac_res=`eval echo '${'$as_ac_var'}'`
12208 { echo "$as_me:$LINENO: result: $ac_res" >&5
12209echo "${ECHO_T}$ac_res" >&6; }
Huw Davies35bca772006-04-12 12:14:27 +010012210if test `eval echo '${'$as_ac_var'}'` = yes; then
12211 cat >>confdefs.h <<_ACEOF
12212#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12213_ACEOF
12214
12215fi
12216done
12217
12218 CFLAGS="$ac_save_CFLAGS"
Ian Pilcher40432fe2001-06-06 21:05:23 +000012219 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000012220 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000012221 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012222
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012223cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000012224#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012225_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000012226
12227 wine_cv_msg_freetype=no
12228 else
Huw Davies00acb5f2004-08-17 22:33:14 +000012229 FREETYPELIBS=""
Huw D M Davies9b1d3722002-01-29 17:09:28 +000012230 FREETYPEINCL=""
12231 wine_cv_msg_freetype=yes
12232 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000012233 fi
12234fi
12235
Huw Davies00acb5f2004-08-17 22:33:14 +000012236if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
12237then
12238 FONTSSUBDIRS="fonts"
12239
12240fi
12241
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012242{ echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
12243echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012244if test "${ac_cv_c_ppdev+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000012246else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012247 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012248/* confdefs.h. */
12249_ACEOF
12250cat confdefs.h >>conftest.$ac_ext
12251cat >>conftest.$ac_ext <<_ACEOF
12252/* end confdefs.h. */
Uwe Bonnes6509fa92001-06-26 21:06:07 +000012253#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012254int
12255main ()
12256{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000012257ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012258 ;
12259 return 0;
12260}
12261_ACEOF
12262rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012264 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012265 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012266 grep -v '^ *+' conftest.er1 >conftest.err
12267 rm -f conftest.er1
12268 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012270 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; } &&
12277 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012279 (eval $ac_try) 2>&5
12280 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012282 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +000012283 ac_cv_c_ppdev="yes"
12284else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012285 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012286sed 's/^/| /' conftest.$ac_ext >&5
12287
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012288 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000012289fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012290
Alexandre Julliard875927f2004-01-02 01:55:29 +000012291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +000012292
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012293fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012294{ echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
12295echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000012296if test "$ac_cv_c_ppdev" = "yes"
12297then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012298
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012299cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000012300#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012301_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000012302
12303fi
12304
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012305{ echo "$as_me:$LINENO: checking for va_copy" >&5
12306echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012307if test "${ac_cv_c_va_copy+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12309else
12310 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012311/* confdefs.h. */
12312_ACEOF
12313cat confdefs.h >>conftest.$ac_ext
12314cat >>conftest.$ac_ext <<_ACEOF
12315/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012316#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012317int
12318main ()
12319{
12320va_list ap1, ap2;
12321 va_copy(ap1,ap2);
12322
12323 ;
12324 return 0;
12325}
12326_ACEOF
12327rm -f conftest.$ac_objext conftest$ac_exeext
12328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012329 (eval $ac_link) 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012330 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012331 grep -v '^ *+' conftest.er1 >conftest.err
12332 rm -f conftest.er1
12333 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; } &&
12342 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12344 (eval $ac_try) 2>&5
12345 ac_status=$?
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); }; }; then
12348 ac_cv_c_va_copy="yes"
12349else
12350 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012351sed 's/^/| /' conftest.$ac_ext >&5
12352
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012353 ac_cv_c_va_copy="no"
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012354fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012355
Alexandre Julliard875927f2004-01-02 01:55:29 +000012356rm -f conftest.err conftest.$ac_objext \
12357 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012358
12359fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012360{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
12361echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012362if test "$ac_cv_c_va_copy" = "yes"
12363then
12364
12365cat >>confdefs.h <<\_ACEOF
12366#define HAVE_VA_COPY 1
12367_ACEOF
12368
12369fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012370{ echo "$as_me:$LINENO: checking for __va_copy" >&5
12371echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012372if test "${ac_cv_c___va_copy+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12374else
12375 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012376/* confdefs.h. */
12377_ACEOF
12378cat confdefs.h >>conftest.$ac_ext
12379cat >>conftest.$ac_ext <<_ACEOF
12380/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012381#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012382int
12383main ()
12384{
12385va_list ap1, ap2;
12386 __va_copy(ap1,ap2);
12387
12388 ;
12389 return 0;
12390}
12391_ACEOF
12392rm -f conftest.$ac_objext conftest$ac_exeext
12393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012394 (eval $ac_link) 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012395 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; } &&
12407 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 ac_cv_c___va_copy="yes"
12414else
12415 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012416sed 's/^/| /' conftest.$ac_ext >&5
12417
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012418 ac_cv_c___va_copy="no"
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012419fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012420
Alexandre Julliard875927f2004-01-02 01:55:29 +000012421rm -f conftest.err conftest.$ac_objext \
12422 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012423
12424fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012425{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
12426echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000012427if test "$ac_cv_c___va_copy" = "yes"
12428then
12429
12430cat >>confdefs.h <<\_ACEOF
12431#define HAVE___VA_COPY 1
12432_ACEOF
12433
12434fi
12435
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012436{ echo "$as_me:$LINENO: checking for sigsetjmp" >&5
12437echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000012438if test "${ac_cv_c_sigsetjmp+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12440else
12441 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000012442/* confdefs.h. */
12443_ACEOF
12444cat confdefs.h >>conftest.$ac_ext
12445cat >>conftest.$ac_ext <<_ACEOF
12446/* end confdefs.h. */
12447#include <setjmp.h>
12448int
12449main ()
12450{
12451sigjmp_buf buf;
12452 sigsetjmp( buf, 1 );
12453 siglongjmp( buf, 1 );
12454 ;
12455 return 0;
12456}
12457_ACEOF
12458rm -f conftest.$ac_objext conftest$ac_exeext
12459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012460 (eval $ac_link) 2>conftest.er1
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000012461 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000012465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000012474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 ac_cv_c_sigsetjmp="yes"
12480else
12481 echo "$as_me: failed program was:" >&5
12482sed 's/^/| /' conftest.$ac_ext >&5
12483
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012484 ac_cv_c_sigsetjmp="no"
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000012485fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012486
Alexandre Julliard875927f2004-01-02 01:55:29 +000012487rm -f conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000012489
12490fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012491{ echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
12492echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000012493if test "$ac_cv_c_sigsetjmp" = "yes"
12494then
12495
12496cat >>confdefs.h <<\_ACEOF
12497#define HAVE_SIGSETJMP 1
12498_ACEOF
12499
12500fi
12501
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012502{ echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
12503echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012504if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12506else
12507 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012508/* confdefs.h. */
12509_ACEOF
12510cat confdefs.h >>conftest.$ac_ext
12511cat >>conftest.$ac_ext <<_ACEOF
12512/* end confdefs.h. */
12513#define _GNU_SOURCE
12514#include <pthread.h>
12515
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012516typedef pthread_rwlock_t ac__type_new_;
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012517int
12518main ()
12519{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012520if ((ac__type_new_ *) 0)
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012521 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012522if (sizeof (ac__type_new_))
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012523 return 0;
12524 ;
12525 return 0;
12526}
12527_ACEOF
12528rm -f conftest.$ac_objext
12529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012530 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012531 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012532 grep -v '^ *+' conftest.er1 >conftest.err
12533 rm -f conftest.er1
12534 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12540 ac_status=$?
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; } &&
12543 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545 (eval $ac_try) 2>&5
12546 ac_status=$?
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); }; }; then
12549 ac_cv_type_pthread_rwlock_t=yes
12550else
12551 echo "$as_me: failed program was:" >&5
12552sed 's/^/| /' conftest.$ac_ext >&5
12553
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012554 ac_cv_type_pthread_rwlock_t=no
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012555fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012556
Alexandre Julliard875927f2004-01-02 01:55:29 +000012557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012558fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012559{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
12560echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012561if test $ac_cv_type_pthread_rwlock_t = yes; then
12562
12563cat >>confdefs.h <<_ACEOF
12564#define HAVE_PTHREAD_RWLOCK_T 1
12565_ACEOF
12566
12567
12568fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012569{ echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
12570echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012571if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573else
12574 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012575/* confdefs.h. */
12576_ACEOF
12577cat confdefs.h >>conftest.$ac_ext
12578cat >>conftest.$ac_ext <<_ACEOF
12579/* end confdefs.h. */
12580#define _GNU_SOURCE
12581#include <pthread.h>
12582
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012583typedef pthread_rwlockattr_t ac__type_new_;
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012584int
12585main ()
12586{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012587if ((ac__type_new_ *) 0)
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012588 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012589if (sizeof (ac__type_new_))
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012590 return 0;
12591 ;
12592 return 0;
12593}
12594_ACEOF
12595rm -f conftest.$ac_objext
12596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012597 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012598 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12607 ac_status=$?
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; } &&
12610 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; }; then
12616 ac_cv_type_pthread_rwlockattr_t=yes
12617else
12618 echo "$as_me: failed program was:" >&5
12619sed 's/^/| /' conftest.$ac_ext >&5
12620
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012621 ac_cv_type_pthread_rwlockattr_t=no
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012622fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012623
Alexandre Julliard875927f2004-01-02 01:55:29 +000012624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012625fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012626{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
12627echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012628if test $ac_cv_type_pthread_rwlockattr_t = yes; then
12629
12630cat >>confdefs.h <<_ACEOF
12631#define HAVE_PTHREAD_RWLOCKATTR_T 1
12632_ACEOF
12633
12634
12635fi
12636
12637
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010012638ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000012639LIBS="$LIBS $LIBPTHREAD"
12640
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000012641
12642
12643for ac_func in \
12644 pthread_getattr_np \
12645 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010012646 pthread_get_stacksize_np
Alexandre Julliard821ab862003-11-12 22:44:56 +000012647do
12648as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012649{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12651if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard821ab862003-11-12 22:44:56 +000012652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653else
12654 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard821ab862003-11-12 22:44:56 +000012655/* confdefs.h. */
12656_ACEOF
12657cat confdefs.h >>conftest.$ac_ext
12658cat >>conftest.$ac_ext <<_ACEOF
12659/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000012660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12662#define $ac_func innocuous_$ac_func
12663
Alexandre Julliard821ab862003-11-12 22:44:56 +000012664/* System header to define __stub macros and hopefully few prototypes,
12665 which can conflict with char $ac_func (); below.
12666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12667 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000012668
Alexandre Julliard821ab862003-11-12 22:44:56 +000012669#ifdef __STDC__
12670# include <limits.h>
12671#else
12672# include <assert.h>
12673#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000012674
12675#undef $ac_func
12676
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012677/* Override any GCC internal prototype to avoid an error.
12678 Use char because int might match the return type of a GCC
12679 builtin and then its argument prototype would still apply. */
Alexandre Julliard821ab862003-11-12 22:44:56 +000012680#ifdef __cplusplus
12681extern "C"
Alexandre Julliard821ab862003-11-12 22:44:56 +000012682#endif
Alexandre Julliard821ab862003-11-12 22:44:56 +000012683char $ac_func ();
12684/* The GNU C library defines this for functions which it implements
12685 to always fail with ENOSYS. Some functions are actually named
12686 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012687#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliard821ab862003-11-12 22:44:56 +000012688choke me
Alexandre Julliard821ab862003-11-12 22:44:56 +000012689#endif
12690
12691int
12692main ()
12693{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012694return $ac_func ();
Alexandre Julliard821ab862003-11-12 22:44:56 +000012695 ;
12696 return 0;
12697}
12698_ACEOF
12699rm -f conftest.$ac_objext conftest$ac_exeext
12700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012701 (eval $ac_link) 2>conftest.er1
Alexandre Julliard821ab862003-11-12 22:44:56 +000012702 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012703 grep -v '^ *+' conftest.er1 >conftest.err
12704 rm -f conftest.er1
12705 cat conftest.err >&5
Alexandre Julliard821ab862003-11-12 22:44:56 +000012706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; } &&
12714 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard821ab862003-11-12 22:44:56 +000012715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; }; then
12720 eval "$as_ac_var=yes"
12721else
12722 echo "$as_me: failed program was:" >&5
12723sed 's/^/| /' conftest.$ac_ext >&5
12724
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012725 eval "$as_ac_var=no"
Alexandre Julliard821ab862003-11-12 22:44:56 +000012726fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012727
Alexandre Julliard875927f2004-01-02 01:55:29 +000012728rm -f conftest.err conftest.$ac_objext \
12729 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard821ab862003-11-12 22:44:56 +000012730fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012731ac_res=`eval echo '${'$as_ac_var'}'`
12732 { echo "$as_me:$LINENO: result: $ac_res" >&5
12733echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard821ab862003-11-12 22:44:56 +000012734if test `eval echo '${'$as_ac_var'}'` = yes; then
12735 cat >>confdefs.h <<_ACEOF
12736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12737_ACEOF
12738
12739fi
12740done
12741
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010012742LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000012743
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012744# Extract the first word of "artsc-config", so it can be a program name with args.
12745set dummy artsc-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012748if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12750else
12751 case $ARTSCCONFIG in
12752 [\\/]* | ?:[\\/]*)
12753 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
12754 ;;
12755 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12757for as_dir in $PATH
12758do
12759 IFS=$as_save_IFS
12760 test -z "$as_dir" && as_dir=.
12761 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012763 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
12764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12765 break 2
12766 fi
12767done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012768done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012769IFS=$as_save_IFS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012770
12771 ;;
12772esac
12773fi
12774ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012775if test -n "$ARTSCCONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012776 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
12777echo "${ECHO_T}$ARTSCCONFIG" >&6; }
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012778else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012779 { echo "$as_me:$LINENO: result: no" >&5
12780echo "${ECHO_T}no" >&6; }
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012781fi
12782
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012783
Marcus Meissnerbc624582004-01-18 22:15:46 +000012784if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
12785then
Alexandre Julliardb3b12cf2004-02-24 01:24:20 +000012786 ARTSC_CFLAGS=""
12787 for i in `$ARTSCCONFIG --cflags`
12788 do
12789 case "$i" in
12790 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
12791 esac
12792 done
Alexandre Julliard197a7d02006-04-04 12:08:30 +020012793 ARTSC_LIBS=""
12794 for i in `$ARTSCCONFIG --libs`
12795 do
12796 case "$i" in
12797 -L/usr/lib|-L/usr/lib64) ;;
12798 -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
12799 esac
12800 done
Marcus Meissnerbc624582004-01-18 22:15:46 +000012801 save_CFLAGS="$CFLAGS"
12802 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012803 { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
12804echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
Jacek Caban6f8f4752005-03-28 09:58:45 +000012805if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12807else
12808 ac_check_lib_save_LIBS=$LIBS
Vitaliy Margolen80816e92005-06-30 20:46:59 +000012809LIBS="-lartsc $ARTSC_LIBS $LIBS"
Jacek Caban6f8f4752005-03-28 09:58:45 +000012810cat >conftest.$ac_ext <<_ACEOF
12811/* confdefs.h. */
12812_ACEOF
12813cat confdefs.h >>conftest.$ac_ext
12814cat >>conftest.$ac_ext <<_ACEOF
12815/* end confdefs.h. */
12816
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012817/* Override any GCC internal prototype to avoid an error.
12818 Use char because int might match the return type of a GCC
12819 builtin and then its argument prototype would still apply. */
Jacek Caban6f8f4752005-03-28 09:58:45 +000012820#ifdef __cplusplus
12821extern "C"
12822#endif
Jacek Caban6f8f4752005-03-28 09:58:45 +000012823char arts_init ();
12824int
12825main ()
12826{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012827return arts_init ();
Jacek Caban6f8f4752005-03-28 09:58:45 +000012828 ;
12829 return 0;
12830}
12831_ACEOF
12832rm -f conftest.$ac_objext conftest$ac_exeext
12833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12834 (eval $ac_link) 2>conftest.er1
12835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } &&
12841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest$ac_exeext'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; }; then
12853 ac_cv_lib_artsc_arts_init=yes
12854else
12855 echo "$as_me: failed program was:" >&5
12856sed 's/^/| /' conftest.$ac_ext >&5
12857
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012858 ac_cv_lib_artsc_arts_init=no
Jacek Caban6f8f4752005-03-28 09:58:45 +000012859fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012860
Jacek Caban6f8f4752005-03-28 09:58:45 +000012861rm -f conftest.err conftest.$ac_objext \
12862 conftest$ac_exeext conftest.$ac_ext
12863LIBS=$ac_check_lib_save_LIBS
12864fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012865{ echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
12866echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
Jacek Caban6f8f4752005-03-28 09:58:45 +000012867if test $ac_cv_lib_artsc_arts_init = yes; then
12868 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012869/* confdefs.h. */
12870_ACEOF
12871cat confdefs.h >>conftest.$ac_ext
12872cat >>conftest.$ac_ext <<_ACEOF
12873/* end confdefs.h. */
Marcus Meissnerbc624582004-01-18 22:15:46 +000012874#include <artsc.h>
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012875int
12876main ()
12877{
Marcus Meissnerbc624582004-01-18 22:15:46 +000012878arts_stream_t stream;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012879 ;
12880 return 0;
12881}
12882_ACEOF
12883rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012885 (eval $ac_compile) 2>conftest.er1
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012886 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012887 grep -v '^ *+' conftest.er1 >conftest.err
12888 rm -f conftest.er1
12889 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012891 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12895 ac_status=$?
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; } &&
12898 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012900 (eval $ac_try) 2>&5
12901 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012903 (exit $ac_status); }; }; then
Marcus Meissnerbc624582004-01-18 22:15:46 +000012904 ARTSLIBS=$ARTSC_LIBS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012905
Jacek Caban6f8f4752005-03-28 09:58:45 +000012906 ARTSINCL=$ARTSC_CFLAGS
Marcus Meissnerbc624582004-01-18 22:15:46 +000012907
12908
12909cat >>confdefs.h <<\_ACEOF
12910#define HAVE_ARTS 1
12911_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012912
12913else
12914 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012915sed 's/^/| /' conftest.$ac_ext >&5
12916
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012917
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012918fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012919
Alexandre Julliard875927f2004-01-02 01:55:29 +000012920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Jacek Caban6f8f4752005-03-28 09:58:45 +000012921fi
12922
Marcus Meissnerbc624582004-01-18 22:15:46 +000012923 CFLAGS="$save_CFLAGS"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000012924fi
12925
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000012926# Extract the first word of "esd-config", so it can be a program name with args.
12927set dummy esd-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000012930if test "${ac_cv_path_ESDCONFIG+set}" = set; then
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
12932else
12933 case $ESDCONFIG in
12934 [\\/]* | ?:[\\/]*)
12935 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
12936 ;;
12937 *)
12938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12939for as_dir in $PATH
12940do
12941 IFS=$as_save_IFS
12942 test -z "$as_dir" && as_dir=.
12943 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000012945 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12947 break 2
12948 fi
12949done
12950done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012951IFS=$as_save_IFS
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000012952
12953 ;;
12954esac
12955fi
12956ESDCONFIG=$ac_cv_path_ESDCONFIG
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000012957if test -n "$ESDCONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012958 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
12959echo "${ECHO_T}$ESDCONFIG" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000012960else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012961 { echo "$as_me:$LINENO: result: no" >&5
12962echo "${ECHO_T}no" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000012963fi
12964
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012965
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000012966if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
12967then
12968 ESD_CFLAGS=""
12969 for i in `$ESDCONFIG --cflags`
12970 do
12971 case "$i" in
12972 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
12973 esac
12974 done
12975 ESD_LIBS=`$ESDCONFIG --libs`
12976 save_CFLAGS="$CFLAGS"
12977 CFLAGS="$CFLAGS $ESD_CFLAGS"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012978 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
12979echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000012980if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12982else
12983 ac_check_lib_save_LIBS=$LIBS
12984LIBS="-lesd $LIBS"
12985cat >conftest.$ac_ext <<_ACEOF
12986/* confdefs.h. */
12987_ACEOF
12988cat confdefs.h >>conftest.$ac_ext
12989cat >>conftest.$ac_ext <<_ACEOF
12990/* end confdefs.h. */
12991
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012992/* Override any GCC internal prototype to avoid an error.
12993 Use char because int might match the return type of a GCC
12994 builtin and then its argument prototype would still apply. */
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000012995#ifdef __cplusplus
12996extern "C"
12997#endif
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000012998char esd_open_sound ();
12999int
13000main ()
13001{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013002return esd_open_sound ();
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013003 ;
13004 return 0;
13005}
13006_ACEOF
13007rm -f conftest.$ac_objext conftest$ac_exeext
13008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13009 (eval $ac_link) 2>conftest.er1
13010 ac_status=$?
13011 grep -v '^ *+' conftest.er1 >conftest.err
13012 rm -f conftest.er1
13013 cat conftest.err >&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018 (eval $ac_try) 2>&5
13019 ac_status=$?
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; } &&
13022 { ac_try='test -s conftest$ac_exeext'
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13025 ac_status=$?
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13028 ac_cv_lib_esd_esd_open_sound=yes
13029else
13030 echo "$as_me: failed program was:" >&5
13031sed 's/^/| /' conftest.$ac_ext >&5
13032
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013033 ac_cv_lib_esd_esd_open_sound=no
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013034fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013035
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013036rm -f conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13038LIBS=$ac_check_lib_save_LIBS
13039fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013040{ echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
13041echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013042if test $ac_cv_lib_esd_esd_open_sound = yes; then
13043 ESDLIBS=$ESD_LIBS
13044
13045 ESDINCL=$ESD_CFLAGS
13046
13047
13048cat >>confdefs.h <<\_ACEOF
13049#define HAVE_ESD 1
13050_ACEOF
13051
13052fi
13053
13054 CFLAGS="$save_CFLAGS"
13055fi
13056
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013057ALSALIBS=""
13058
Marco Pietrobono0e79a412002-08-29 01:51:31 +000013059if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013060then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013061 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
13062echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000013063if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013064 echo $ECHO_N "(cached) $ECHO_C" >&6
13065else
13066 ac_check_lib_save_LIBS=$LIBS
13067LIBS="-lasound $LIBS"
13068cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013069/* confdefs.h. */
13070_ACEOF
13071cat confdefs.h >>conftest.$ac_ext
13072cat >>conftest.$ac_ext <<_ACEOF
13073/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013074
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013075/* Override any GCC internal prototype to avoid an error.
13076 Use char because int might match the return type of a GCC
13077 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013078#ifdef __cplusplus
13079extern "C"
13080#endif
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000013081char snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013082int
13083main ()
13084{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013085return snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013086 ;
13087 return 0;
13088}
13089_ACEOF
13090rm -f conftest.$ac_objext conftest$ac_exeext
13091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013092 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013093 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013094 grep -v '^ *+' conftest.er1 >conftest.err
13095 rm -f conftest.er1
13096 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; } &&
13105 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000013111 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013112else
13113 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013114sed 's/^/| /' conftest.$ac_ext >&5
13115
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013116 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013117fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013118
Alexandre Julliard875927f2004-01-02 01:55:29 +000013119rm -f conftest.err conftest.$ac_objext \
13120 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013121LIBS=$ac_check_lib_save_LIBS
13122fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013123{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
13124echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000013125if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
13126 cat >conftest.$ac_ext <<_ACEOF
13127/* confdefs.h. */
13128_ACEOF
13129cat confdefs.h >>conftest.$ac_ext
13130cat >>conftest.$ac_ext <<_ACEOF
13131/* end confdefs.h. */
13132#ifdef HAVE_ALSA_ASOUNDLIB_H
13133#include <alsa/asoundlib.h>
13134#elif defined(HAVE_SYS_ASOUNDLIB_H)
13135#include <sys/asoundlib.h>
13136#endif
13137int
13138main ()
13139{
13140int ret = snd_pcm_hw_params_get_access(NULL, NULL)
13141 ;
13142 return 0;
13143}
13144_ACEOF
13145rm -f conftest.$ac_objext
13146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13147 (eval $ac_compile) 2>conftest.er1
13148 ac_status=$?
13149 grep -v '^ *+' conftest.er1 >conftest.err
13150 rm -f conftest.er1
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } &&
13154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; } &&
13160 { ac_try='test -s conftest.$ac_objext'
13161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13162 (eval $ac_try) 2>&5
13163 ac_status=$?
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); }; }; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013166
13167cat >>confdefs.h <<\_ACEOF
13168#define HAVE_ALSA 1
13169_ACEOF
13170
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000013171 ALSALIBS="-lasound"
13172else
13173 echo "$as_me: failed program was:" >&5
13174sed 's/^/| /' conftest.$ac_ext >&5
13175
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013176
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000013177fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013178
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000013179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013180fi
13181
13182fi
13183
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013184
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013185AUDIOIOLIBS=""
13186
Alexandre Julliard73482142005-08-03 19:21:04 +000013187if test "$ac_cv_header_libaudioio_h" = "yes"
13188then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013189 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
13190echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013191if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13193else
13194 ac_check_lib_save_LIBS=$LIBS
13195LIBS="-laudioio $LIBS"
13196cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013197/* confdefs.h. */
13198_ACEOF
13199cat confdefs.h >>conftest.$ac_ext
13200cat >>conftest.$ac_ext <<_ACEOF
13201/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013202
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013203/* Override any GCC internal prototype to avoid an error.
13204 Use char because int might match the return type of a GCC
13205 builtin and then its argument prototype would still apply. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013206#ifdef __cplusplus
13207extern "C"
13208#endif
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013209char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013210int
13211main ()
13212{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013213return AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013214 ;
13215 return 0;
13216}
13217_ACEOF
13218rm -f conftest.$ac_objext conftest$ac_exeext
13219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013220 (eval $ac_link) 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013221 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013222 grep -v '^ *+' conftest.er1 >conftest.err
13223 rm -f conftest.er1
13224 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest$ac_exeext'
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235 (eval $ac_try) 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; }; then
13239 ac_cv_lib_audioio_AudioIOGetVersion=yes
13240else
13241 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013242sed 's/^/| /' conftest.$ac_ext >&5
13243
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013244 ac_cv_lib_audioio_AudioIOGetVersion=no
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013245fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013246
Alexandre Julliard875927f2004-01-02 01:55:29 +000013247rm -f conftest.err conftest.$ac_objext \
13248 conftest$ac_exeext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013249LIBS=$ac_check_lib_save_LIBS
13250fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013251{ echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
13252echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013253if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
13254 AUDIOIOLIBS="-laudioio"
13255
13256cat >>confdefs.h <<\_ACEOF
13257#define HAVE_LIBAUDIOIO 1
13258_ACEOF
13259
13260fi
13261
13262fi
13263
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013264
Alexandre Julliard73482142005-08-03 19:21:04 +000013265if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
13266then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013267 { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
13268echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000013269if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
13271else
13272 ac_check_lib_save_LIBS=$LIBS
13273LIBS="-lcapi20 $LIBS"
13274cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000013275/* confdefs.h. */
13276_ACEOF
13277cat confdefs.h >>conftest.$ac_ext
13278cat >>conftest.$ac_ext <<_ACEOF
13279/* end confdefs.h. */
13280
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013281/* Override any GCC internal prototype to avoid an error.
13282 Use char because int might match the return type of a GCC
13283 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000013284#ifdef __cplusplus
13285extern "C"
13286#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000013287char capi20_register ();
13288int
13289main ()
13290{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013291return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000013292 ;
13293 return 0;
13294}
13295_ACEOF
13296rm -f conftest.$ac_objext conftest$ac_exeext
13297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013298 (eval $ac_link) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000013299 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013300 grep -v '^ *+' conftest.er1 >conftest.err
13301 rm -f conftest.er1
13302 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000013303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13308 ac_status=$?
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; } &&
13311 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000013312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13314 ac_status=$?
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13317 ac_cv_lib_capi20_capi20_register=yes
13318else
13319 echo "$as_me: failed program was:" >&5
13320sed 's/^/| /' conftest.$ac_ext >&5
13321
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013322 ac_cv_lib_capi20_capi20_register=no
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000013323fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013324
Alexandre Julliard875927f2004-01-02 01:55:29 +000013325rm -f conftest.err conftest.$ac_objext \
13326 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000013327LIBS=$ac_check_lib_save_LIBS
13328fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013329{ echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
13330echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000013331if test $ac_cv_lib_capi20_capi20_register = yes; then
13332
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000013333cat >>confdefs.h <<\_ACEOF
13334#define HAVE_CAPI4LINUX 1
13335_ACEOF
13336
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000013337fi
13338
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000013339fi
13340
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000013341
Alexandre Julliardfc094232003-04-14 21:46:41 +000013342EXTRACFLAGS=""
13343
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000013344if test "x${GCC}" = "xyes"
13345then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000013346 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000013347
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013348 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
13349echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013350if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000013352else
13353 if test "$cross_compiling" = yes; then
13354 ac_cv_c_gcc_strength_bug="yes"
13355else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013356 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013357/* confdefs.h. */
13358_ACEOF
13359cat confdefs.h >>conftest.$ac_ext
13360cat >>conftest.$ac_ext <<_ACEOF
13361/* end confdefs.h. */
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000013362
Eric Pouech5aee80f2000-11-11 00:31:39 +000013363int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000013364int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000013365 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000013366 unsigned int B = 3;
13367 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000013368 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000013369 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
13370 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013371
Eric Pouech5aee80f2000-11-11 00:31:39 +000013372 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000013373}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013374_ACEOF
13375rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013377 (eval $ac_link) 2>&5
13378 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013380 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013382 (eval $ac_try) 2>&5
13383 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013385 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000013386 ac_cv_c_gcc_strength_bug="no"
13387else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013388 echo "$as_me: program exited with status $ac_status" >&5
13389echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013390sed 's/^/| /' conftest.$ac_ext >&5
13391
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013392( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013393ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000013394fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013395rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000013396fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013397
13398
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000013399fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013400{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
13401echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000013402 if test "$ac_cv_c_gcc_strength_bug" = "yes"
13403 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000013404 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000013405 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000013406
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013407 { echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
13408echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013409if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13411else
13412 ac_wine_try_cflags_saved=$CFLAGS
13413CFLAGS="$CFLAGS -fshort-wchar"
13414cat >conftest.$ac_ext <<_ACEOF
13415/* confdefs.h. */
13416_ACEOF
13417cat confdefs.h >>conftest.$ac_ext
13418cat >>conftest.$ac_ext <<_ACEOF
13419/* end confdefs.h. */
13420
13421int
13422main ()
13423{
13424
13425 ;
13426 return 0;
13427}
13428_ACEOF
13429rm -f conftest.$ac_objext conftest$ac_exeext
13430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13431 (eval $ac_link) 2>conftest.er1
13432 ac_status=$?
13433 grep -v '^ *+' conftest.er1 >conftest.err
13434 rm -f conftest.er1
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } &&
13438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13441 ac_status=$?
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try='test -s conftest$ac_exeext'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13447 ac_status=$?
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450 ac_cv_c_gcc_fshort_wchar="yes"
13451else
13452 echo "$as_me: failed program was:" >&5
13453sed 's/^/| /' conftest.$ac_ext >&5
13454
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013455 ac_cv_c_gcc_fshort_wchar="no"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013456fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013457
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013458rm -f conftest.err conftest.$ac_objext \
13459 conftest$ac_exeext conftest.$ac_ext
13460CFLAGS=$ac_wine_try_cflags_saved
13461fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013462{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
13463echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013464 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
13465 then
13466
13467cat >>confdefs.h <<\_ACEOF
13468#define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
13469_ACEOF
13470
13471 fi
13472
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013473 { echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
13474echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000013475if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13477else
13478 ac_wine_try_cflags_saved=$CFLAGS
13479CFLAGS="$CFLAGS -fno-strict-aliasing"
13480cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardefca0f62003-07-24 00:09:51 +000013481/* confdefs.h. */
13482_ACEOF
13483cat confdefs.h >>conftest.$ac_ext
13484cat >>conftest.$ac_ext <<_ACEOF
13485/* end confdefs.h. */
13486
13487int
13488main ()
13489{
13490
13491 ;
13492 return 0;
13493}
13494_ACEOF
13495rm -f conftest.$ac_objext conftest$ac_exeext
13496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013497 (eval $ac_link) 2>conftest.er1
Alexandre Julliardefca0f62003-07-24 00:09:51 +000013498 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013499 grep -v '^ *+' conftest.er1 >conftest.err
13500 rm -f conftest.er1
13501 cat conftest.err >&5
Alexandre Julliardefca0f62003-07-24 00:09:51 +000013502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; } &&
13510 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardefca0f62003-07-24 00:09:51 +000013511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13516 ac_cv_c_gcc_no_strict_aliasing="yes"
13517else
13518 echo "$as_me: failed program was:" >&5
13519sed 's/^/| /' conftest.$ac_ext >&5
13520
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013521 ac_cv_c_gcc_no_strict_aliasing="no"
Alexandre Julliardefca0f62003-07-24 00:09:51 +000013522fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013523
Alexandre Julliard875927f2004-01-02 01:55:29 +000013524rm -f conftest.err conftest.$ac_objext \
13525 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000013526CFLAGS=$ac_wine_try_cflags_saved
13527fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013528{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
13529echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000013530 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
13531 then
13532 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
13533 fi
13534
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013535 { echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
13536echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6; }
Alexandre Julliard14bd1202003-01-09 00:42:26 +000013537if test "${ac_cv_c_gcc_gstabs+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13539else
13540 ac_wine_try_cflags_saved=$CFLAGS
13541CFLAGS="$CFLAGS -gstabs+"
13542cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard14bd1202003-01-09 00:42:26 +000013543/* confdefs.h. */
13544_ACEOF
13545cat confdefs.h >>conftest.$ac_ext
13546cat >>conftest.$ac_ext <<_ACEOF
13547/* end confdefs.h. */
13548
13549int
13550main ()
13551{
13552
13553 ;
13554 return 0;
13555}
13556_ACEOF
13557rm -f conftest.$ac_objext conftest$ac_exeext
13558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013559 (eval $ac_link) 2>conftest.er1
Alexandre Julliard14bd1202003-01-09 00:42:26 +000013560 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013561 grep -v '^ *+' conftest.er1 >conftest.err
13562 rm -f conftest.er1
13563 cat conftest.err >&5
Alexandre Julliard14bd1202003-01-09 00:42:26 +000013564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } &&
13572 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard14bd1202003-01-09 00:42:26 +000013573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13575 ac_status=$?
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
13578 ac_cv_c_gcc_gstabs="yes"
13579else
13580 echo "$as_me: failed program was:" >&5
13581sed 's/^/| /' conftest.$ac_ext >&5
13582
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013583 ac_cv_c_gcc_gstabs="no"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000013584fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013585
Alexandre Julliard875927f2004-01-02 01:55:29 +000013586rm -f conftest.err conftest.$ac_objext \
13587 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard14bd1202003-01-09 00:42:26 +000013588CFLAGS=$ac_wine_try_cflags_saved
13589fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013590{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
13591echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6; }
Alexandre Julliard14bd1202003-01-09 00:42:26 +000013592 if test "$ac_cv_c_gcc_gstabs" = "yes"
13593 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000013594 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000013595 fi
Mike McCormackc509bc42003-02-25 04:01:58 +000013596
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013597 { echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5
13598echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000013599if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13601else
13602 ac_wine_try_cflags_saved=$CFLAGS
13603CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13604cat >conftest.$ac_ext <<_ACEOF
13605/* confdefs.h. */
13606_ACEOF
13607cat confdefs.h >>conftest.$ac_ext
13608cat >>conftest.$ac_ext <<_ACEOF
13609/* end confdefs.h. */
13610
13611int
13612main ()
13613{
13614
13615 ;
13616 return 0;
13617}
13618_ACEOF
13619rm -f conftest.$ac_objext conftest$ac_exeext
13620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13621 (eval $ac_link) 2>conftest.er1
13622 ac_status=$?
13623 grep -v '^ *+' conftest.er1 >conftest.err
13624 rm -f conftest.er1
13625 cat conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 (exit $ac_status); } &&
13628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try='test -s conftest$ac_exeext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_cv_c_gcc_decl_after_statement="yes"
13641else
13642 echo "$as_me: failed program was:" >&5
13643sed 's/^/| /' conftest.$ac_ext >&5
13644
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013645 ac_cv_c_gcc_decl_after_statement="no"
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000013646fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013647
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000013648rm -f conftest.err conftest.$ac_objext \
13649 conftest$ac_exeext conftest.$ac_ext
13650CFLAGS=$ac_wine_try_cflags_saved
13651fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013652{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5
13653echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000013654 if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
13655 then
13656 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
13657 fi
13658
Alexandre Julliard4d52d372003-03-24 19:33:20 +000013659 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000013660 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013661 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
13662echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
Mike McCormackc509bc42003-02-25 04:01:58 +000013663if test "${ac_cv_c_string_h_warnings+set}" = set; then
13664 echo $ECHO_N "(cached) $ECHO_C" >&6
13665else
13666 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackc509bc42003-02-25 04:01:58 +000013667/* confdefs.h. */
13668_ACEOF
13669cat confdefs.h >>conftest.$ac_ext
13670cat >>conftest.$ac_ext <<_ACEOF
13671/* end confdefs.h. */
13672#include <string.h>
13673int
13674main ()
13675{
13676
13677 ;
13678 return 0;
13679}
13680_ACEOF
13681rm -f conftest.$ac_objext
13682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013683 (eval $ac_compile) 2>conftest.er1
Mike McCormackc509bc42003-02-25 04:01:58 +000013684 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013685 grep -v '^ *+' conftest.er1 >conftest.err
13686 rm -f conftest.er1
13687 cat conftest.err >&5
Mike McCormackc509bc42003-02-25 04:01:58 +000013688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; } &&
13696 { ac_try='test -s conftest.$ac_objext'
Mike McCormackc509bc42003-02-25 04:01:58 +000013697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13698 (eval $ac_try) 2>&5
13699 ac_status=$?
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; }; then
13702 ac_cv_c_string_h_warnings=no
13703else
13704 echo "$as_me: failed program was:" >&5
13705sed 's/^/| /' conftest.$ac_ext >&5
13706
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013707 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000013708fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013709
Alexandre Julliard875927f2004-01-02 01:55:29 +000013710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000013711fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013712{ echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
13713echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000013714 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000013715 if test "$ac_cv_c_string_h_warnings" = "no"
13716 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000013717 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000013718 fi
Mike McCormackb7443722005-08-11 17:12:18 +000013719
13720 BUILTINFLAG=""
13721
13722 saved_CFLAGS="$CFLAGS"
13723 CFLAGS="$CFLAGS -Werror"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013724 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
13725echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
Mike McCormackb7443722005-08-11 17:12:18 +000013726if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13728else
13729 cat >conftest.$ac_ext <<_ACEOF
13730/* confdefs.h. */
13731_ACEOF
13732cat confdefs.h >>conftest.$ac_ext
13733cat >>conftest.$ac_ext <<_ACEOF
13734/* end confdefs.h. */
13735
13736int
13737main ()
13738{
13739int iswlower(unsigned short);
13740 ;
13741 return 0;
13742}
13743_ACEOF
13744rm -f conftest.$ac_objext
13745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13746 (eval $ac_compile) 2>conftest.er1
13747 ac_status=$?
13748 grep -v '^ *+' conftest.er1 >conftest.err
13749 rm -f conftest.er1
13750 cat conftest.err >&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } &&
13753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; } &&
13759 { ac_try='test -s conftest.$ac_objext'
13760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13761 (eval $ac_try) 2>&5
13762 ac_status=$?
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; }; then
13765 ac_cv_c_builtin_wchar_ctype=no
13766else
13767 echo "$as_me: failed program was:" >&5
13768sed 's/^/| /' conftest.$ac_ext >&5
13769
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013770 ac_cv_c_builtin_wchar_ctype=yes
Mike McCormackb7443722005-08-11 17:12:18 +000013771fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013772
Mike McCormackb7443722005-08-11 17:12:18 +000013773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13774fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013775{ echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
13776echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
Mike McCormackb7443722005-08-11 17:12:18 +000013777 CFLAGS="$saved_CFLAGS"
13778 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
13779 then
13780 BUILTINFLAG=""
13781 for builtin in \
13782 iswalnum iswalpha iswcntrl iswdigit iswgraph iswlower \
13783 iswprint iswpunct iswspace iswupper iswxdigit towlower towupper
13784 do
13785 BUILTINFLAG="$BUILTINFLAG -fno-builtin-$builtin"
13786 done
13787 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000013788fi
13789
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013790
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013791{ echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
13792echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013793if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013794 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000013795else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013796 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013797/* confdefs.h. */
13798_ACEOF
13799cat confdefs.h >>conftest.$ac_ext
13800cat >>conftest.$ac_ext <<_ACEOF
13801/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000013802void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000013803
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013804int
13805main ()
13806{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000013807
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013808 ;
13809 return 0;
13810}
13811_ACEOF
13812rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013814 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013815 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013816 grep -v '^ *+' conftest.er1 >conftest.err
13817 rm -f conftest.er1
13818 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013820 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; } &&
13827 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013829 (eval $ac_try) 2>&5
13830 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013832 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013833 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000013834else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013835 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013836sed 's/^/| /' conftest.$ac_ext >&5
13837
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013838 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013839/* confdefs.h. */
13840_ACEOF
13841cat confdefs.h >>conftest.$ac_ext
13842cat >>conftest.$ac_ext <<_ACEOF
13843/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000013844void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013845
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013846int
13847main ()
13848{
13849
13850 ;
13851 return 0;
13852}
13853_ACEOF
13854rm -f conftest.$ac_objext conftest$ac_exeext
13855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013856 (eval $ac_link) 2>conftest.er1
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013857 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013858 grep -v '^ *+' conftest.er1 >conftest.err
13859 rm -f conftest.er1
13860 cat conftest.err >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865 (eval $ac_try) 2>&5
13866 ac_status=$?
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }; } &&
13869 { ac_try='test -s conftest$ac_exeext'
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 (eval $ac_try) 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013875 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013876else
13877 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013878sed 's/^/| /' conftest.$ac_ext >&5
13879
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013880 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013881/* confdefs.h. */
13882_ACEOF
13883cat confdefs.h >>conftest.$ac_ext
13884cat >>conftest.$ac_ext <<_ACEOF
13885/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000013886void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013887
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013888int
13889main ()
13890{
13891
13892 ;
13893 return 0;
13894}
13895_ACEOF
13896rm -f conftest.$ac_objext conftest$ac_exeext
13897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013898 (eval $ac_link) 2>conftest.er1
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013899 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907 (eval $ac_try) 2>&5
13908 ac_status=$?
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; } &&
13911 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; }; then
13917 ac_cv_asm_func_def=".type 2"
13918else
13919 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013920sed 's/^/| /' conftest.$ac_ext >&5
13921
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013922 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013923fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013924
Alexandre Julliard875927f2004-01-02 01:55:29 +000013925rm -f conftest.err conftest.$ac_objext \
13926 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013927fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013928
Alexandre Julliard875927f2004-01-02 01:55:29 +000013929rm -f conftest.err conftest.$ac_objext \
13930 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013931fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013932
Alexandre Julliard875927f2004-01-02 01:55:29 +000013933rm -f conftest.err conftest.$ac_objext \
13934 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013935fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013936{ echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
13937echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013938
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013939
13940
13941case "$ac_cv_asm_func_def" in
13942 ".def")
13943 cat >>confdefs.h <<\_ACEOF
13944#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013945_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013946 ;;
13947 ".type @function")
13948 cat >>confdefs.h <<\_ACEOF
13949#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
13950_ACEOF
13951 ;;
13952 ".type 2")
13953 cat >>confdefs.h <<\_ACEOF
13954#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
13955_ACEOF
13956 ;;
13957 *)
13958 cat >>confdefs.h <<\_ACEOF
13959#define __ASM_FUNC(name) ""
13960_ACEOF
13961 ;;
13962esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013963
13964
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013965{ echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
13966echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013967if test "${ac_cv_c_extern_prefix+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000013969else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000013970 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013971/* confdefs.h. */
13972_ACEOF
13973cat confdefs.h >>conftest.$ac_ext
13974cat >>conftest.$ac_ext <<_ACEOF
13975/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000013976void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000013977extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013978int
13979main ()
13980{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000013981if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013982 ;
13983 return 0;
13984}
13985_ACEOF
13986rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013988 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013989 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013994 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; } &&
14001 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014003 (eval $ac_try) 2>&5
14004 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014006 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000014007 ac_cv_c_extern_prefix="yes"
14008else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014009 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014010sed 's/^/| /' conftest.$ac_ext >&5
14011
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014012 ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000014013fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014014
Alexandre Julliard875927f2004-01-02 01:55:29 +000014015rm -f conftest.err conftest.$ac_objext \
14016 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000014017fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014018{ echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
14019echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000014020
14021
14022
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000014023if test "$ac_cv_c_extern_prefix" = "yes"
14024then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000014025 cat >>confdefs.h <<\_ACEOF
14026#define __ASM_NAME(name) "_" name
14027_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014028
Alexandre Julliard84555cc2002-07-22 20:51:02 +000014029else
14030 cat >>confdefs.h <<\_ACEOF
14031#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014032_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000014033
14034fi
14035
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014036
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014037DLLEXT=""
14038
Alexandre Julliardfc094232003-04-14 21:46:41 +000014039DLLFLAGS="-D_REENTRANT"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014040
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014041DLLIBS=""
14042
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014043LDSHARED=""
14044
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014045LDDLLFLAGS=""
Alexandre Julliard6ac34ac2003-10-11 01:05:18 +000014046
Alexandre Julliardada5e652002-12-12 22:03:14 +000014047LIBEXT="so"
14048
14049IMPLIBEXT="def"
14050
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014051
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014052case $host_os in
14053 cygwin*|mingw32*)
14054 if test -n "$ac_tool_prefix"; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000014055 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14056set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014057{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000014059if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14061else
14062 if test -n "$DLLTOOL"; then
14063 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14064else
14065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14066for as_dir in $PATH
14067do
14068 IFS=$as_save_IFS
14069 test -z "$as_dir" && as_dir=.
14070 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000014072 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14074 break 2
14075 fi
14076done
14077done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014078IFS=$as_save_IFS
Alexandre Julliardada5e652002-12-12 22:03:14 +000014079
14080fi
14081fi
14082DLLTOOL=$ac_cv_prog_DLLTOOL
14083if test -n "$DLLTOOL"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014084 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14085echo "${ECHO_T}$DLLTOOL" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000014086else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014087 { echo "$as_me:$LINENO: result: no" >&5
14088echo "${ECHO_T}no" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000014089fi
14090
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014091
Alexandre Julliardada5e652002-12-12 22:03:14 +000014092fi
14093if test -z "$ac_cv_prog_DLLTOOL"; then
14094 ac_ct_DLLTOOL=$DLLTOOL
14095 # Extract the first word of "dlltool", so it can be a program name with args.
14096set dummy dlltool; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000014099if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14101else
14102 if test -n "$ac_ct_DLLTOOL"; then
14103 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14104else
14105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106for as_dir in $PATH
14107do
14108 IFS=$as_save_IFS
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000014112 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14114 break 2
14115 fi
14116done
14117done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014118IFS=$as_save_IFS
Alexandre Julliardada5e652002-12-12 22:03:14 +000014119
Alexandre Julliardada5e652002-12-12 22:03:14 +000014120fi
14121fi
14122ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14123if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014124 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14125echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000014126else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014127 { echo "$as_me:$LINENO: result: no" >&5
14128echo "${ECHO_T}no" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000014129fi
14130
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014131 if test "x$ac_ct_DLLTOOL" = x; then
14132 DLLTOOL="false"
14133 else
14134 case $cross_compiling:$ac_tool_warned in
14135yes:)
14136{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14137whose name does not start with the host triplet. If you think this
14138configuration is useful to you, please write to autoconf@gnu.org." >&5
14139echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14140whose name does not start with the host triplet. If you think this
14141configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14142ac_tool_warned=yes ;;
14143esac
14144 DLLTOOL=$ac_ct_DLLTOOL
14145 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000014146else
14147 DLLTOOL="$ac_cv_prog_DLLTOOL"
14148fi
14149
14150 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014151 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
14152set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014153{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000014155if test "${ac_cv_prog_DLLWRAP+set}" = set; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14157else
14158 if test -n "$DLLWRAP"; then
14159 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
14160else
14161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14162for as_dir in $PATH
14163do
14164 IFS=$as_save_IFS
14165 test -z "$as_dir" && as_dir=.
14166 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014168 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000014169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14170 break 2
14171 fi
14172done
14173done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014174IFS=$as_save_IFS
Alexandre Julliard466ae142002-05-07 18:33:47 +000014175
Alexandre Julliard466ae142002-05-07 18:33:47 +000014176fi
14177fi
14178DLLWRAP=$ac_cv_prog_DLLWRAP
14179if test -n "$DLLWRAP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014180 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
14181echo "${ECHO_T}$DLLWRAP" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000014182else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014183 { echo "$as_me:$LINENO: result: no" >&5
14184echo "${ECHO_T}no" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000014185fi
14186
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014187
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014188fi
14189if test -z "$ac_cv_prog_DLLWRAP"; then
14190 ac_ct_DLLWRAP=$DLLWRAP
14191 # Extract the first word of "dllwrap", so it can be a program name with args.
14192set dummy dllwrap; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014195if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14197else
14198 if test -n "$ac_ct_DLLWRAP"; then
14199 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
14200else
14201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14202for as_dir in $PATH
14203do
14204 IFS=$as_save_IFS
14205 test -z "$as_dir" && as_dir=.
14206 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014208 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
14209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14210 break 2
14211 fi
14212done
14213done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014214IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014215
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014216fi
14217fi
14218ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
14219if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014220 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
14221echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014222else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014223 { echo "$as_me:$LINENO: result: no" >&5
14224echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014225fi
14226
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014227 if test "x$ac_ct_DLLWRAP" = x; then
14228 DLLWRAP="false"
14229 else
14230 case $cross_compiling:$ac_tool_warned in
14231yes:)
14232{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14233whose name does not start with the host triplet. If you think this
14234configuration is useful to you, please write to autoconf@gnu.org." >&5
14235echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14236whose name does not start with the host triplet. If you think this
14237configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14238ac_tool_warned=yes ;;
14239esac
14240 DLLWRAP=$ac_ct_DLLWRAP
14241 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014242else
14243 DLLWRAP="$ac_cv_prog_DLLWRAP"
14244fi
14245
14246 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014247 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014248 else
14249 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014250 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000014251 IMPLIBEXT="a"
Alexandre Julliard56a4a762004-08-12 03:27:50 +000014252 WIN16_FILES=""
14253 WIN16_INSTALL=""
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014254 ;;
14255 *)
Alexandre Julliard73482142005-08-03 19:21:04 +000014256 if test "$ac_cv_header_dlfcn_h" = "yes"
14257 then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014258
14259for ac_func in dlopen
14260do
14261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014262{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14264if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266else
14267 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014268/* confdefs.h. */
14269_ACEOF
14270cat confdefs.h >>conftest.$ac_ext
14271cat >>conftest.$ac_ext <<_ACEOF
14272/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000014273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14275#define $ac_func innocuous_$ac_func
14276
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014277/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014278 which can conflict with char $ac_func (); below.
14279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14280 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000014281
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014282#ifdef __STDC__
14283# include <limits.h>
14284#else
14285# include <assert.h>
14286#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000014287
14288#undef $ac_func
14289
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014290/* Override any GCC internal prototype to avoid an error.
14291 Use char because int might match the return type of a GCC
14292 builtin and then its argument prototype would still apply. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014293#ifdef __cplusplus
14294extern "C"
14295#endif
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014296char $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014297/* The GNU C library defines this for functions which it implements
14298 to always fail with ENOSYS. Some functions are actually named
14299 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014300#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014301choke me
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014302#endif
14303
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014304int
14305main ()
14306{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014307return $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014308 ;
14309 return 0;
14310}
14311_ACEOF
14312rm -f conftest.$ac_objext conftest$ac_exeext
14313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014314 (eval $ac_link) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014315 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 eval "$as_ac_var=yes"
14334else
14335 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014336sed 's/^/| /' conftest.$ac_ext >&5
14337
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014338 eval "$as_ac_var=no"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014339fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014340
Alexandre Julliard875927f2004-01-02 01:55:29 +000014341rm -f conftest.err conftest.$ac_objext \
14342 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014343fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014344ac_res=`eval echo '${'$as_ac_var'}'`
14345 { echo "$as_me:$LINENO: result: $ac_res" >&5
14346echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014347if test `eval echo '${'$as_ac_var'}'` = yes; then
14348 cat >>confdefs.h <<_ACEOF
14349#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14350_ACEOF
14351
14352else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014353 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14354echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014355if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14356 echo $ECHO_N "(cached) $ECHO_C" >&6
14357else
14358 ac_check_lib_save_LIBS=$LIBS
14359LIBS="-ldl $LIBS"
14360cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014361/* confdefs.h. */
14362_ACEOF
14363cat confdefs.h >>conftest.$ac_ext
14364cat >>conftest.$ac_ext <<_ACEOF
14365/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014366
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014367/* Override any GCC internal prototype to avoid an error.
14368 Use char because int might match the return type of a GCC
14369 builtin and then its argument prototype would still apply. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014370#ifdef __cplusplus
14371extern "C"
14372#endif
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014373char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014374int
14375main ()
14376{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014377return dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014378 ;
14379 return 0;
14380}
14381_ACEOF
14382rm -f conftest.$ac_objext conftest$ac_exeext
14383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014384 (eval $ac_link) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014385 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014386 grep -v '^ *+' conftest.er1 >conftest.err
14387 rm -f conftest.er1
14388 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; } &&
14397 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_lib_dl_dlopen=yes
14404else
14405 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014406sed 's/^/| /' conftest.$ac_ext >&5
14407
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014408 ac_cv_lib_dl_dlopen=no
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014409fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014410
Alexandre Julliard875927f2004-01-02 01:55:29 +000014411rm -f conftest.err conftest.$ac_objext \
14412 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014413LIBS=$ac_check_lib_save_LIBS
14414fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014415{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14416echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014417if test $ac_cv_lib_dl_dlopen = yes; then
14418
14419cat >>confdefs.h <<\_ACEOF
14420#define HAVE_DLOPEN 1
14421_ACEOF
14422
14423 DLLIBS="-ldl"
14424else
14425 LIBEXT="a"
14426fi
14427
14428fi
14429done
14430
Alexandre Julliard266c6092006-02-11 20:55:50 +010014431 ac_wine_check_funcs_save_LIBS="$LIBS"
14432LIBS="$LIBS $DLLIBS"
14433
14434for ac_func in dladdr
14435do
14436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014437{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14439if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard266c6092006-02-11 20:55:50 +010014440 echo $ECHO_N "(cached) $ECHO_C" >&6
14441else
14442 cat >conftest.$ac_ext <<_ACEOF
14443/* confdefs.h. */
14444_ACEOF
14445cat confdefs.h >>conftest.$ac_ext
14446cat >>conftest.$ac_ext <<_ACEOF
14447/* end confdefs.h. */
14448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14450#define $ac_func innocuous_$ac_func
14451
14452/* System header to define __stub macros and hopefully few prototypes,
14453 which can conflict with char $ac_func (); below.
14454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14455 <limits.h> exists even on freestanding compilers. */
14456
14457#ifdef __STDC__
14458# include <limits.h>
14459#else
14460# include <assert.h>
14461#endif
14462
14463#undef $ac_func
14464
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014465/* Override any GCC internal prototype to avoid an error.
14466 Use char because int might match the return type of a GCC
14467 builtin and then its argument prototype would still apply. */
Alexandre Julliard266c6092006-02-11 20:55:50 +010014468#ifdef __cplusplus
14469extern "C"
Alexandre Julliard266c6092006-02-11 20:55:50 +010014470#endif
Alexandre Julliard266c6092006-02-11 20:55:50 +010014471char $ac_func ();
14472/* The GNU C library defines this for functions which it implements
14473 to always fail with ENOSYS. Some functions are actually named
14474 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014475#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliard266c6092006-02-11 20:55:50 +010014476choke me
Alexandre Julliard266c6092006-02-11 20:55:50 +010014477#endif
14478
14479int
14480main ()
14481{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014482return $ac_func ();
Alexandre Julliard266c6092006-02-11 20:55:50 +010014483 ;
14484 return 0;
14485}
14486_ACEOF
14487rm -f conftest.$ac_objext conftest$ac_exeext
14488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14489 (eval $ac_link) 2>conftest.er1
14490 ac_status=$?
14491 grep -v '^ *+' conftest.er1 >conftest.err
14492 rm -f conftest.er1
14493 cat conftest.err >&5
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } &&
14496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14499 ac_status=$?
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); }; } &&
14502 { ac_try='test -s conftest$ac_exeext'
14503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14505 ac_status=$?
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; }; then
14508 eval "$as_ac_var=yes"
14509else
14510 echo "$as_me: failed program was:" >&5
14511sed 's/^/| /' conftest.$ac_ext >&5
14512
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014513 eval "$as_ac_var=no"
Alexandre Julliard266c6092006-02-11 20:55:50 +010014514fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014515
Alexandre Julliard266c6092006-02-11 20:55:50 +010014516rm -f conftest.err conftest.$ac_objext \
14517 conftest$ac_exeext conftest.$ac_ext
14518fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014519ac_res=`eval echo '${'$as_ac_var'}'`
14520 { echo "$as_me:$LINENO: result: $ac_res" >&5
14521echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard266c6092006-02-11 20:55:50 +010014522if test `eval echo '${'$as_ac_var'}'` = yes; then
14523 cat >>confdefs.h <<_ACEOF
14524#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14525_ACEOF
14526
14527fi
14528done
14529
14530LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard73482142005-08-03 19:21:04 +000014531 else
14532 LIBEXT="a"
14533 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014534
14535 if test "$LIBEXT" = "so"
14536 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000014537 DLLFLAGS="$DLLFLAGS -fPIC"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014538 DLLEXT=".so"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014539 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
14540echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014541if test "${ac_cv_c_dll_gnuelf+set}" = set; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014543else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014544 ac_wine_try_cflags_saved=$CFLAGS
14545CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
14546cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000014547void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014548_ACEOF
14549rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014551 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014552 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014553 grep -v '^ *+' conftest.er1 >conftest.err
14554 rm -f conftest.er1
14555 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014557 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14561 ac_status=$?
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; } &&
14564 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014566 (eval $ac_try) 2>&5
14567 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014569 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000014570 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014571else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014572 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014573sed 's/^/| /' conftest.$ac_ext >&5
14574
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014575 ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014576fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014577
Alexandre Julliard875927f2004-01-02 01:55:29 +000014578rm -f conftest.err conftest.$ac_objext \
14579 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014580CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014581fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014582{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
14583echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000014584 if test "$ac_cv_c_dll_gnuelf" = "yes"
14585 then
14586 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014587 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014588 { echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
14589echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6; }
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014590if test "${ac_cv_c_dll_zdefs+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14592else
14593 ac_wine_try_cflags_saved=$CFLAGS
14594CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
14595cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014596/* confdefs.h. */
14597_ACEOF
14598cat confdefs.h >>conftest.$ac_ext
14599cat >>conftest.$ac_ext <<_ACEOF
14600/* end confdefs.h. */
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014601
14602int
14603main ()
14604{
14605
14606 ;
14607 return 0;
14608}
14609_ACEOF
14610rm -f conftest.$ac_objext conftest$ac_exeext
14611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014612 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014613 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014614 grep -v '^ *+' conftest.er1 >conftest.err
14615 rm -f conftest.er1
14616 cat conftest.err >&5
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5
14622 ac_status=$?
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; } &&
14625 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }; then
14631 ac_cv_c_dll_zdefs="yes"
14632else
14633 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014634sed 's/^/| /' conftest.$ac_ext >&5
14635
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014636 ac_cv_c_dll_zdefs="no"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014637fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014638
Alexandre Julliard875927f2004-01-02 01:55:29 +000014639rm -f conftest.err conftest.$ac_objext \
14640 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014641CFLAGS=$ac_wine_try_cflags_saved
14642fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014643{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
14644echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6; }
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014645 if test "$ac_cv_c_dll_zdefs" = "yes"
14646 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014647 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000014648 fi
Alexandre Julliard4d52d372003-03-24 19:33:20 +000014649
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014650 { echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
14651echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6; }
Alexandre Julliard36048242004-01-08 03:36:53 +000014652if test "${ac_cv_c_dll_init_fini+set}" = set; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14654else
14655 ac_wine_try_cflags_saved=$CFLAGS
14656CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
14657cat >conftest.$ac_ext <<_ACEOF
14658/* confdefs.h. */
14659_ACEOF
14660cat confdefs.h >>conftest.$ac_ext
14661cat >>conftest.$ac_ext <<_ACEOF
14662/* end confdefs.h. */
14663
14664int
14665main ()
14666{
14667
14668 ;
14669 return 0;
14670}
14671_ACEOF
14672rm -f conftest.$ac_objext conftest$ac_exeext
14673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14674 (eval $ac_link) 2>conftest.er1
14675 ac_status=$?
14676 grep -v '^ *+' conftest.er1 >conftest.err
14677 rm -f conftest.er1
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } &&
14681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14683 (eval $ac_try) 2>&5
14684 ac_status=$?
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); }; } &&
14687 { ac_try='test -s conftest$ac_exeext'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14690 ac_status=$?
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14693 ac_cv_c_dll_init_fini="yes"
14694else
14695 echo "$as_me: failed program was:" >&5
14696sed 's/^/| /' conftest.$ac_ext >&5
14697
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014698 ac_cv_c_dll_init_fini="no"
Alexandre Julliard36048242004-01-08 03:36:53 +000014699fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014700
Alexandre Julliard36048242004-01-08 03:36:53 +000014701rm -f conftest.err conftest.$ac_objext \
14702 conftest$ac_exeext conftest.$ac_ext
14703CFLAGS=$ac_wine_try_cflags_saved
14704fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014705{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
14706echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6; }
Alexandre Julliard36048242004-01-08 03:36:53 +000014707 if test "$ac_cv_c_dll_init_fini" = "yes"
14708 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014709 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard36048242004-01-08 03:36:53 +000014710 fi
14711
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014712 { echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
14713echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6; }
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000014714if test "${ac_cv_c_ld_version_scripts+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14716else
14717 echo '{ global: *; };' >conftest.map
14718 ac_wine_try_cflags_saved=$CFLAGS
14719CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
14720cat >conftest.$ac_ext <<_ACEOF
14721/* confdefs.h. */
14722_ACEOF
14723cat confdefs.h >>conftest.$ac_ext
14724cat >>conftest.$ac_ext <<_ACEOF
14725/* end confdefs.h. */
14726
14727int
14728main ()
14729{
14730
14731 ;
14732 return 0;
14733}
14734_ACEOF
14735rm -f conftest.$ac_objext conftest$ac_exeext
14736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14737 (eval $ac_link) 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14747 ac_status=$?
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; } &&
14750 { ac_try='test -s conftest$ac_exeext'
14751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; }; then
14756 ac_cv_c_ld_version_scripts="yes"
14757else
14758 echo "$as_me: failed program was:" >&5
14759sed 's/^/| /' conftest.$ac_ext >&5
14760
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014761 ac_cv_c_ld_version_scripts="no"
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000014762fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014763
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000014764rm -f conftest.err conftest.$ac_objext \
14765 conftest$ac_exeext conftest.$ac_ext
14766CFLAGS=$ac_wine_try_cflags_saved
14767 rm -f conftest.map
14768fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014769{ echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
14770echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6; }
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000014771 if test "$ac_cv_c_ld_version_scripts" = "yes"
14772 then
14773 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
14774 fi
14775
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014776 { echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
14777echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6; }
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014778if test "${ac_cv_c_export_dynamic+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14780else
14781 ac_wine_try_cflags_saved=$CFLAGS
14782CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
14783cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014784/* confdefs.h. */
14785_ACEOF
14786cat confdefs.h >>conftest.$ac_ext
14787cat >>conftest.$ac_ext <<_ACEOF
14788/* end confdefs.h. */
14789
14790int
14791main ()
14792{
14793
14794 ;
14795 return 0;
14796}
14797_ACEOF
14798rm -f conftest.$ac_objext conftest$ac_exeext
14799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014800 (eval $ac_link) 2>conftest.er1
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014801 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; } &&
14813 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; }; then
14819 ac_cv_c_export_dynamic="yes"
14820else
14821 echo "$as_me: failed program was:" >&5
14822sed 's/^/| /' conftest.$ac_ext >&5
14823
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014824 ac_cv_c_export_dynamic="no"
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014825fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014826
Alexandre Julliard875927f2004-01-02 01:55:29 +000014827rm -f conftest.err conftest.$ac_objext \
14828 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014829CFLAGS=$ac_wine_try_cflags_saved
14830fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014831{ echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
14832echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6; }
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014833 if test "$ac_cv_c_export_dynamic" = "yes"
14834 then
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014835 LDEXECFLAGS="-Wl,--export-dynamic"
14836
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000014837 fi
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014838
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014839 { echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5
14840echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6; }
Alexandre Julliard5ed59012006-02-20 11:20:47 +010014841if test "${ac_cv_ld_rpath+set}" = set; then
14842 echo $ECHO_N "(cached) $ECHO_C" >&6
14843else
14844 ac_wine_try_cflags_saved=$CFLAGS
14845CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
14846cat >conftest.$ac_ext <<_ACEOF
14847/* confdefs.h. */
14848_ACEOF
14849cat confdefs.h >>conftest.$ac_ext
14850cat >>conftest.$ac_ext <<_ACEOF
14851/* end confdefs.h. */
14852
14853int
14854main ()
14855{
14856
14857 ;
14858 return 0;
14859}
14860_ACEOF
14861rm -f conftest.$ac_objext conftest$ac_exeext
14862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14863 (eval $ac_link) 2>conftest.er1
14864 ac_status=$?
14865 grep -v '^ *+' conftest.er1 >conftest.err
14866 rm -f conftest.er1
14867 cat conftest.err >&5
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); } &&
14870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; } &&
14876 { ac_try='test -s conftest$ac_exeext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_cv_ld_rpath="yes"
14883else
14884 echo "$as_me: failed program was:" >&5
14885sed 's/^/| /' conftest.$ac_ext >&5
14886
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014887 ac_cv_ld_rpath="no"
Alexandre Julliard5ed59012006-02-20 11:20:47 +010014888fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014889
Alexandre Julliard5ed59012006-02-20 11:20:47 +010014890rm -f conftest.err conftest.$ac_objext \
14891 conftest$ac_exeext conftest.$ac_ext
14892CFLAGS=$ac_wine_try_cflags_saved
14893fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014894{ echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5
14895echo "${ECHO_T}$ac_cv_ld_rpath" >&6; }
Alexandre Julliard5ed59012006-02-20 11:20:47 +010014896 if test "$ac_cv_ld_rpath" = "yes"
14897 then
14898 LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
14899
Alexandre Julliard1fd32cf2006-03-20 22:08:26 +010014900 LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"
14901
Alexandre Julliard5ed59012006-02-20 11:20:47 +010014902 fi
14903
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014904 case $host_cpu in
14905 *i[3456789]86*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014906 { echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
14907echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6; }
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014908if test "${ac_cv_ld_reloc_exec+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14910else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014911 ac_wine_try_cflags_saved=$CFLAGS
Alexandre Julliard5729f582005-06-17 10:22:46 +000014912CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014913cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014914/* confdefs.h. */
14915_ACEOF
14916cat confdefs.h >>conftest.$ac_ext
14917cat >>conftest.$ac_ext <<_ACEOF
14918/* end confdefs.h. */
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014919
14920int
14921main ()
14922{
14923
14924 ;
14925 return 0;
14926}
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014927_ACEOF
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014928rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014930 (eval $ac_link) 2>conftest.er1
14931 ac_status=$?
14932 grep -v '^ *+' conftest.er1 >conftest.err
14933 rm -f conftest.er1
14934 cat conftest.err >&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } &&
14937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 (eval $ac_try) 2>&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014942 (exit $ac_status); }; } &&
14943 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; }; then
14949 ac_cv_ld_reloc_exec="yes"
14950else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014951 echo "$as_me: failed program was:" >&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014952sed 's/^/| /' conftest.$ac_ext >&5
14953
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014954 ac_cv_ld_reloc_exec="no"
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014955fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014956
Alexandre Julliardb1abca82004-05-28 20:59:22 +000014957rm -f conftest.err conftest.$ac_objext \
14958 conftest$ac_exeext conftest.$ac_ext
14959CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014960fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014961{ echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
14962echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6; }
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014963 if test "$ac_cv_ld_reloc_exec" = "yes"
14964 then
Alexandre Julliard5729f582005-06-17 10:22:46 +000014965 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000014966 fi
14967 ;;
14968 esac
14969
Alexandre Julliard466ae142002-05-07 18:33:47 +000014970 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014971 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
14972echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014973if test "${ac_cv_c_dll_unixware+set}" = set; then
14974 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000014975else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014976 ac_wine_try_cflags_saved=$CFLAGS
14977CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
14978cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000014979void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014980_ACEOF
14981rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014983 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014984 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014985 grep -v '^ *+' conftest.er1 >conftest.err
14986 rm -f conftest.er1
14987 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014989 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14992 (eval $ac_try) 2>&5
14993 ac_status=$?
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; } &&
14996 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014998 (eval $ac_try) 2>&5
14999 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015001 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000015002 ac_cv_c_dll_unixware="yes"
15003else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015004 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015005sed 's/^/| /' conftest.$ac_ext >&5
15006
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015007 ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000015008fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015009
Alexandre Julliard875927f2004-01-02 01:55:29 +000015010rm -f conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015012CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015013fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015014{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
15015echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000015016 if test "$ac_cv_c_dll_unixware" = "yes"
15017 then
15018 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015019 LDDLLFLAGS="-Wl,-G,-B,symbolic"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000015020
15021 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015022 { echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
15023echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6; }
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000015024if test "${ac_cv_c_dll_macho+set}" = set; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15026else
15027 ac_wine_try_cflags_saved=$CFLAGS
15028CFLAGS="$CFLAGS -bundle"
15029cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000015030void myfunc() {}
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000015031_ACEOF
15032rm -f conftest.$ac_objext conftest$ac_exeext
15033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015034 (eval $ac_link) 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000015035 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015036 grep -v '^ *+' conftest.er1 >conftest.err
15037 rm -f conftest.er1
15038 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000015039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15044 ac_status=$?
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; } &&
15047 { ac_try='test -s conftest$ac_exeext'
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000015048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15050 ac_status=$?
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 ac_cv_c_dll_macho="yes"
15054else
15055 echo "$as_me: failed program was:" >&5
15056sed 's/^/| /' conftest.$ac_ext >&5
15057
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015058 ac_cv_c_dll_macho="no"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000015059fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015060
Alexandre Julliard875927f2004-01-02 01:55:29 +000015061rm -f conftest.err conftest.$ac_objext \
15062 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000015063CFLAGS=$ac_wine_try_cflags_saved
15064fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015065{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
15066echo "${ECHO_T}$ac_cv_c_dll_macho" >&6; }
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000015067 if test "$ac_cv_c_dll_macho" = "yes"
15068 then
15069 LIBEXT="dylib"
Alexandre Julliard495bf512005-09-15 09:48:18 +000015070 LDDLLFLAGS="-bundle"
Alexandre Julliard7ed7e8f2006-05-15 15:14:45 +020015071 LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME) \$(SOVERSION:%=-compatibility_version %)"
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015072 STRIP="$STRIP -u -r"
Alexandre Julliard495bf512005-09-15 09:48:18 +000015073 COREFOUNDATIONLIB="-framework CoreFoundation"
Emmanuel Maillard46718f82004-07-22 19:48:41 +000015074
Alexandre Julliard495bf512005-09-15 09:48:18 +000015075 IOKITLIB="-framework IOKit -framework CoreFoundation"
Emmanuel Maillard46718f82004-07-22 19:48:41 +000015076
Emmanuel Maillardaaae6602006-02-15 13:52:02 +010015077 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7ffe0000"
Emmanuel Maillard2300ce62004-08-19 01:20:45 +000015078
Emmanuel Maillard144a5352006-05-28 22:46:23 +020015079 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
15080 then
15081 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
15082
15083 fi
Emmanuel Maillardaaae6602006-02-15 13:52:02 +010015084 case $host_cpu in
Alexandre Julliard495bf512005-09-15 09:48:18 +000015085 *powerpc*)
15086 CFLAGS="$CFLAGS -ffixed-r13"
15087 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
Alexandre Julliard495bf512005-09-15 09:48:18 +000015088 ;;
15089 esac
15090
Warren Baird421e8b92004-09-22 19:17:55 +000015091 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015092 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
15093echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
Warren Baird421e8b92004-09-22 19:17:55 +000015094if test "${ac_cv_c_dll_hpux+set}" = set; then
15095 echo $ECHO_N "(cached) $ECHO_C" >&6
15096else
15097 ac_wine_try_cflags_saved=$CFLAGS
15098CFLAGS="$CFLAGS -shared"
15099cat >conftest.$ac_ext <<_ACEOF
15100void myfunc() {}
15101_ACEOF
15102rm -f conftest.$ac_objext conftest$ac_exeext
15103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15104 (eval $ac_link) 2>conftest.er1
15105 ac_status=$?
15106 grep -v '^ *+' conftest.er1 >conftest.err
15107 rm -f conftest.er1
15108 cat conftest.err >&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); } &&
15111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15113 (eval $ac_try) 2>&5
15114 ac_status=$?
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); }; } &&
15117 { ac_try='test -s conftest$ac_exeext'
15118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119 (eval $ac_try) 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; }; then
15123 ac_cv_c_dll_hpux="yes"
15124else
15125 echo "$as_me: failed program was:" >&5
15126sed 's/^/| /' conftest.$ac_ext >&5
15127
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015128 ac_cv_c_dll_hpux="no"
Warren Baird421e8b92004-09-22 19:17:55 +000015129fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015130
Warren Baird421e8b92004-09-22 19:17:55 +000015131rm -f conftest.err conftest.$ac_objext \
15132 conftest$ac_exeext conftest.$ac_ext
15133CFLAGS=$ac_wine_try_cflags_saved
15134fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015135{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
15136echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
Warren Baird421e8b92004-09-22 19:17:55 +000015137 if test "$ac_cv_c_dll_hpux" = "yes"
15138 then
15139 LIBEXT="sl"
Warren Baird1023fe32004-10-19 21:37:09 +000015140 DLLEXT=".sl"
15141 LDDLLFLAGS="-shared -fPIC"
Warren Baird421e8b92004-09-22 19:17:55 +000015142 LDSHARED="\$(CC) -shared"
15143 fi
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000015144 fi
Alexandre Julliard466ae142002-05-07 18:33:47 +000015145 fi
15146 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015147 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015148
15149 CROSSTEST=""
15150
15151 if test "$cross_compiling" = "no"
15152 then
Kevin Koltzaud3444562004-04-15 00:01:05 +000015153 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015154do
15155 # Extract the first word of "$ac_prog", so it can be a program name with args.
15156set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015159if test "${ac_cv_prog_CROSSCC+set}" = set; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15161else
15162 if test -n "$CROSSCC"; then
15163 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
15164else
15165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15166for as_dir in $PATH
15167do
15168 IFS=$as_save_IFS
15169 test -z "$as_dir" && as_dir=.
15170 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015172 ac_cv_prog_CROSSCC="$ac_prog"
15173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15174 break 2
15175 fi
15176done
15177done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015178IFS=$as_save_IFS
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015179
15180fi
15181fi
15182CROSSCC=$ac_cv_prog_CROSSCC
15183if test -n "$CROSSCC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015184 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
15185echo "${ECHO_T}$CROSSCC" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015186else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015187 { echo "$as_me:$LINENO: result: no" >&5
15188echo "${ECHO_T}no" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015189fi
15190
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015191
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015192 test -n "$CROSSCC" && break
15193done
15194test -n "$CROSSCC" || CROSSCC="false"
15195
Kevin Koltzaud3444562004-04-15 00:01:05 +000015196 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015197do
15198 # Extract the first word of "$ac_prog", so it can be a program name with args.
15199set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015200{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015202if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204else
15205 if test -n "$DLLTOOL"; then
15206 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15207else
15208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15209for as_dir in $PATH
15210do
15211 IFS=$as_save_IFS
15212 test -z "$as_dir" && as_dir=.
15213 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015215 ac_cv_prog_DLLTOOL="$ac_prog"
15216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15217 break 2
15218 fi
15219done
15220done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015221IFS=$as_save_IFS
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015222
15223fi
15224fi
15225DLLTOOL=$ac_cv_prog_DLLTOOL
15226if test -n "$DLLTOOL"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015227 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15228echo "${ECHO_T}$DLLTOOL" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015229else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015230 { echo "$as_me:$LINENO: result: no" >&5
15231echo "${ECHO_T}no" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015232fi
15233
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015234
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015235 test -n "$DLLTOOL" && break
15236done
15237test -n "$DLLTOOL" || DLLTOOL="false"
15238
Kevin Koltzaud3444562004-04-15 00:01:05 +000015239 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
Alexandre Julliard21ee3292003-04-21 22:52:31 +000015240do
15241 # Extract the first word of "$ac_prog", so it can be a program name with args.
15242set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard21ee3292003-04-21 22:52:31 +000015245if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15247else
15248 if test -n "$CROSSWINDRES"; then
15249 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
15250else
15251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15252for as_dir in $PATH
15253do
15254 IFS=$as_save_IFS
15255 test -z "$as_dir" && as_dir=.
15256 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliard21ee3292003-04-21 22:52:31 +000015258 ac_cv_prog_CROSSWINDRES="$ac_prog"
15259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15260 break 2
15261 fi
15262done
15263done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015264IFS=$as_save_IFS
Alexandre Julliard21ee3292003-04-21 22:52:31 +000015265
15266fi
15267fi
15268CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
15269if test -n "$CROSSWINDRES"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015270 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
15271echo "${ECHO_T}$CROSSWINDRES" >&6; }
Alexandre Julliard21ee3292003-04-21 22:52:31 +000015272else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015273 { echo "$as_me:$LINENO: result: no" >&5
15274echo "${ECHO_T}no" >&6; }
Alexandre Julliard21ee3292003-04-21 22:52:31 +000015275fi
15276
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015277
Alexandre Julliard21ee3292003-04-21 22:52:31 +000015278 test -n "$CROSSWINDRES" && break
15279done
15280test -n "$CROSSWINDRES" || CROSSWINDRES="false"
15281
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000015282 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
15283 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015284 ;;
15285esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015286
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000015287if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015288 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015289It is currently not possible to build Wine without shared library
15290(.so) support to allow transparent switch between .so and .dll files.
15291If you are using Linux, you will need a newer binutils.
15292" >&5
15293echo "$as_me: error: could not find a way to build shared libraries.
15294It is currently not possible to build Wine without shared library
15295(.so) support to allow transparent switch between .so and .dll files.
15296If you are using Linux, you will need a newer binutils.
15297" >&2;}
15298 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000015299fi
15300
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015301case $build_os in
15302 cygwin*|mingw32*)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000015303 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015304 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000015305 darwin*|macosx*)
15306 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
15307 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015308 *)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000015309 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015310 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015311esac
15312
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015313case $host_os in
15314 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000015315 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000015316
15317 SOCKETLIBS="-lws2_32"
15318
15319 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000015320esac
15321
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010015322case $host_cpu in
15323 *i[3456789]86*)
15324 case $host_os in
15325 linux* | k*bsd*-gnu)
15326 MAIN_BINARY="wine-glibc"
Alexandre Julliard546839f2003-11-11 00:48:21 +000015327
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010015328 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
15329 ;;
Gerald Pfeifera82e2452006-04-16 17:21:49 +020015330 darwin*|freebsd*)
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010015331 MAIN_BINARY="wine-pthread"
15332 ;;
15333 *)
15334 MAIN_BINARY="wine-kthread"
15335 ;;
15336 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000015337 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010015338 *) MAIN_BINARY="wine-pthread"
Alexandre Julliard26639172006-02-17 14:12:29 +010015339 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015340esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015341
15342
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015343if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015344then
15345 # Extract the first word of "ldd", so it can be a program name with args.
15346set dummy ldd; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015347{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015349if test "${ac_cv_path_LDD+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15351else
15352 case $LDD in
15353 [\\/]* | ?:[\\/]*)
15354 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
15355 ;;
15356 *)
15357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015358as_dummy="/sbin:/usr/sbin:$PATH"
15359for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015360do
15361 IFS=$as_save_IFS
15362 test -z "$as_dir" && as_dir=.
15363 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015365 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
15366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15367 break 2
15368 fi
15369done
15370done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015371IFS=$as_save_IFS
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015372
15373 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
15374 ;;
15375esac
15376fi
15377LDD=$ac_cv_path_LDD
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015378if test -n "$LDD"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015379 { echo "$as_me:$LINENO: result: $LDD" >&5
15380echo "${ECHO_T}$LDD" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015381else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015382 { echo "$as_me:$LINENO: result: no" >&5
15383echo "${ECHO_T}no" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015384fi
15385
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015386
15387{ echo "$as_me:$LINENO: checking for -lX11 soname" >&5
15388echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015389if test "${ac_cv_lib_soname_X11+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15391else
15392 ac_get_soname_save_LIBS=$LIBS
15393LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
15394 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015395/* confdefs.h. */
15396_ACEOF
15397cat confdefs.h >>conftest.$ac_ext
15398cat >>conftest.$ac_ext <<_ACEOF
15399/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015400
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015401/* Override any GCC internal prototype to avoid an error.
15402 Use char because int might match the return type of a GCC
15403 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015404#ifdef __cplusplus
15405extern "C"
15406#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015407char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015408int
15409main ()
15410{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015411return XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015412 ;
15413 return 0;
15414}
15415_ACEOF
15416rm -f conftest.$ac_objext conftest$ac_exeext
15417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015418 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015419 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015420 grep -v '^ *+' conftest.er1 >conftest.err
15421 rm -f conftest.er1
15422 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; } &&
15431 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000015437 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015438 if test "x$ac_cv_lib_soname_X11" = "x"
15439 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015440 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015441 fi
15442else
15443 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015444sed 's/^/| /' conftest.$ac_ext >&5
15445
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015446 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015447fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015448
Alexandre Julliard875927f2004-01-02 01:55:29 +000015449rm -f conftest.err conftest.$ac_objext \
15450 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015451 LIBS=$ac_get_soname_save_LIBS
15452fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015453{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
15454echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010015455if test "${ac_cv_lib_soname_X11+set}" = set; then
15456
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015457cat >>confdefs.h <<_ACEOF
15458#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
15459_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010015460
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015461fi
15462
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015463 { echo "$as_me:$LINENO: checking for -lXext soname" >&5
15464echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015465if test "${ac_cv_lib_soname_Xext+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15467else
15468 ac_get_soname_save_LIBS=$LIBS
15469LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
15470 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015471/* confdefs.h. */
15472_ACEOF
15473cat confdefs.h >>conftest.$ac_ext
15474cat >>conftest.$ac_ext <<_ACEOF
15475/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015476
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015477/* Override any GCC internal prototype to avoid an error.
15478 Use char because int might match the return type of a GCC
15479 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015480#ifdef __cplusplus
15481extern "C"
15482#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015483char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015484int
15485main ()
15486{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015487return XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015488 ;
15489 return 0;
15490}
15491_ACEOF
15492rm -f conftest.$ac_objext conftest$ac_exeext
15493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015494 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015495 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015496 grep -v '^ *+' conftest.er1 >conftest.err
15497 rm -f conftest.er1
15498 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; } &&
15507 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000015513 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015514 if test "x$ac_cv_lib_soname_Xext" = "x"
15515 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015516 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015517 fi
15518else
15519 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015520sed 's/^/| /' conftest.$ac_ext >&5
15521
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015522 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015523fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015524
Alexandre Julliard875927f2004-01-02 01:55:29 +000015525rm -f conftest.err conftest.$ac_objext \
15526 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015527 LIBS=$ac_get_soname_save_LIBS
15528fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015529{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
15530echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010015531if test "${ac_cv_lib_soname_Xext+set}" = set; then
15532
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015533cat >>confdefs.h <<_ACEOF
15534#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
15535_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010015536
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015537fi
15538
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015539 { echo "$as_me:$LINENO: checking for -lXi soname" >&5
15540echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
Aric Stewart2eebf3c2004-01-09 00:03:00 +000015541if test "${ac_cv_lib_soname_Xi+set}" = set; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15543else
15544 ac_get_soname_save_LIBS=$LIBS
15545LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
15546 cat >conftest.$ac_ext <<_ACEOF
15547/* confdefs.h. */
15548_ACEOF
15549cat confdefs.h >>conftest.$ac_ext
15550cat >>conftest.$ac_ext <<_ACEOF
15551/* end confdefs.h. */
15552
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015553/* Override any GCC internal prototype to avoid an error.
15554 Use char because int might match the return type of a GCC
15555 builtin and then its argument prototype would still apply. */
Aric Stewart2eebf3c2004-01-09 00:03:00 +000015556#ifdef __cplusplus
15557extern "C"
15558#endif
Aric Stewart2eebf3c2004-01-09 00:03:00 +000015559char XOpenDevice ();
15560int
15561main ()
15562{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015563return XOpenDevice ();
Aric Stewart2eebf3c2004-01-09 00:03:00 +000015564 ;
15565 return 0;
15566}
15567_ACEOF
15568rm -f conftest.$ac_objext conftest$ac_exeext
15569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15570 (eval $ac_link) 2>conftest.er1
15571 ac_status=$?
15572 grep -v '^ *+' conftest.er1 >conftest.err
15573 rm -f conftest.er1
15574 cat conftest.err >&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); } &&
15577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; } &&
15583 { ac_try='test -s conftest$ac_exeext'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000015589 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Aric Stewart2eebf3c2004-01-09 00:03:00 +000015590 if test "x$ac_cv_lib_soname_Xi" = "x"
15591 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015592 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000015593 fi
15594else
15595 echo "$as_me: failed program was:" >&5
15596sed 's/^/| /' conftest.$ac_ext >&5
15597
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015598 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000015599fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015600
Aric Stewart2eebf3c2004-01-09 00:03:00 +000015601rm -f conftest.err conftest.$ac_objext \
15602 conftest$ac_exeext conftest.$ac_ext
15603 LIBS=$ac_get_soname_save_LIBS
15604fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015605{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
15606echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010015607if test "${ac_cv_lib_soname_Xi+set}" = set; then
15608
Aric Stewart2eebf3c2004-01-09 00:03:00 +000015609cat >>confdefs.h <<_ACEOF
15610#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
15611_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010015612
Aric Stewart2eebf3c2004-01-09 00:03:00 +000015613fi
15614
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015615 { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
15616echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015617if test "${ac_cv_lib_soname_Xrender+set}" = set; then
15618 echo $ECHO_N "(cached) $ECHO_C" >&6
15619else
15620 ac_get_soname_save_LIBS=$LIBS
15621LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
15622 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015623/* confdefs.h. */
15624_ACEOF
15625cat confdefs.h >>conftest.$ac_ext
15626cat >>conftest.$ac_ext <<_ACEOF
15627/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015628
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015629/* Override any GCC internal prototype to avoid an error.
15630 Use char because int might match the return type of a GCC
15631 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015632#ifdef __cplusplus
15633extern "C"
15634#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015635char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015636int
15637main ()
15638{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015639return XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015640 ;
15641 return 0;
15642}
15643_ACEOF
15644rm -f conftest.$ac_objext conftest$ac_exeext
15645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015646 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015647 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015648 grep -v '^ *+' conftest.er1 >conftest.err
15649 rm -f conftest.er1
15650 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15656 ac_status=$?
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; } &&
15659 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15661 (eval $ac_try) 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000015665 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015666 if test "x$ac_cv_lib_soname_Xrender" = "x"
15667 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015668 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015669 fi
15670else
15671 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015672sed 's/^/| /' conftest.$ac_ext >&5
15673
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015674 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015675fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015676
Alexandre Julliard875927f2004-01-02 01:55:29 +000015677rm -f conftest.err conftest.$ac_objext \
15678 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015679 LIBS=$ac_get_soname_save_LIBS
15680fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015681{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
15682echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010015683if test "${ac_cv_lib_soname_Xrender+set}" = set; then
15684
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015685cat >>confdefs.h <<_ACEOF
15686#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
15687_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010015688
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015689fi
15690
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015691 { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
15692echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
Mike McCormackc7c9f932004-04-07 03:57:35 +000015693if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15695else
15696 ac_get_soname_save_LIBS=$LIBS
15697LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
15698 cat >conftest.$ac_ext <<_ACEOF
15699/* confdefs.h. */
15700_ACEOF
15701cat confdefs.h >>conftest.$ac_ext
15702cat >>conftest.$ac_ext <<_ACEOF
15703/* end confdefs.h. */
15704
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015705/* Override any GCC internal prototype to avoid an error.
15706 Use char because int might match the return type of a GCC
15707 builtin and then its argument prototype would still apply. */
Mike McCormackc7c9f932004-04-07 03:57:35 +000015708#ifdef __cplusplus
15709extern "C"
15710#endif
Mike McCormackc7c9f932004-04-07 03:57:35 +000015711char XRRQueryExtension ();
15712int
15713main ()
15714{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015715return XRRQueryExtension ();
Mike McCormackc7c9f932004-04-07 03:57:35 +000015716 ;
15717 return 0;
15718}
15719_ACEOF
15720rm -f conftest.$ac_objext conftest$ac_exeext
15721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15722 (eval $ac_link) 2>conftest.er1
15723 ac_status=$?
15724 grep -v '^ *+' conftest.er1 >conftest.err
15725 rm -f conftest.er1
15726 cat conftest.err >&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } &&
15729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15732 ac_status=$?
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); }; } &&
15735 { ac_try='test -s conftest$ac_exeext'
15736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737 (eval $ac_try) 2>&5
15738 ac_status=$?
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000015741 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Mike McCormackc7c9f932004-04-07 03:57:35 +000015742 if test "x$ac_cv_lib_soname_Xrandr" = "x"
15743 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015744 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000015745 fi
15746else
15747 echo "$as_me: failed program was:" >&5
15748sed 's/^/| /' conftest.$ac_ext >&5
15749
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015750 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000015751fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015752
Mike McCormackc7c9f932004-04-07 03:57:35 +000015753rm -f conftest.err conftest.$ac_objext \
15754 conftest$ac_exeext conftest.$ac_ext
15755 LIBS=$ac_get_soname_save_LIBS
15756fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015757{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
15758echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010015759if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
15760
Mike McCormackc7c9f932004-04-07 03:57:35 +000015761cat >>confdefs.h <<_ACEOF
15762#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
15763_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010015764
Mike McCormackc7c9f932004-04-07 03:57:35 +000015765fi
15766
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015767 { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
15768echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015769if test "${ac_cv_lib_soname_freetype+set}" = set; then
15770 echo $ECHO_N "(cached) $ECHO_C" >&6
15771else
15772 ac_get_soname_save_LIBS=$LIBS
15773LIBS="-lfreetype $X_LIBS $LIBS"
15774 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015775/* confdefs.h. */
15776_ACEOF
15777cat confdefs.h >>conftest.$ac_ext
15778cat >>conftest.$ac_ext <<_ACEOF
15779/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015780
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015781/* Override any GCC internal prototype to avoid an error.
15782 Use char because int might match the return type of a GCC
15783 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015784#ifdef __cplusplus
15785extern "C"
15786#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015787char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015788int
15789main ()
15790{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015791return FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015792 ;
15793 return 0;
15794}
15795_ACEOF
15796rm -f conftest.$ac_objext conftest$ac_exeext
15797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015798 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015799 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015800 grep -v '^ *+' conftest.er1 >conftest.err
15801 rm -f conftest.er1
15802 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; } &&
15811 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813 (eval $ac_try) 2>&5
15814 ac_status=$?
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000015817 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015818 if test "x$ac_cv_lib_soname_freetype" = "x"
15819 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015820 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015821 fi
15822else
15823 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015824sed 's/^/| /' conftest.$ac_ext >&5
15825
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015826 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015827fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015828
Alexandre Julliard875927f2004-01-02 01:55:29 +000015829rm -f conftest.err conftest.$ac_objext \
15830 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015831 LIBS=$ac_get_soname_save_LIBS
15832fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015833{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
15834echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010015835if test "${ac_cv_lib_soname_freetype+set}" = set; then
15836
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015837cat >>confdefs.h <<_ACEOF
15838#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
15839_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010015840
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015841fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000015842
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015843 { echo "$as_me:$LINENO: checking for -lGL soname" >&5
15844echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015845if test "${ac_cv_lib_soname_GL+set}" = set; then
15846 echo $ECHO_N "(cached) $ECHO_C" >&6
15847else
15848 ac_get_soname_save_LIBS=$LIBS
15849LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
15850 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015851/* confdefs.h. */
15852_ACEOF
15853cat confdefs.h >>conftest.$ac_ext
15854cat >>conftest.$ac_ext <<_ACEOF
15855/* end confdefs.h. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015856
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015857/* Override any GCC internal prototype to avoid an error.
15858 Use char because int might match the return type of a GCC
15859 builtin and then its argument prototype would still apply. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015860#ifdef __cplusplus
15861extern "C"
15862#endif
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015863char glXQueryExtension ();
15864int
15865main ()
15866{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015867return glXQueryExtension ();
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015868 ;
15869 return 0;
15870}
15871_ACEOF
15872rm -f conftest.$ac_objext conftest$ac_exeext
15873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015874 (eval $ac_link) 2>conftest.er1
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015875 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015876 grep -v '^ *+' conftest.er1 >conftest.err
15877 rm -f conftest.er1
15878 cat conftest.err >&5
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15884 ac_status=$?
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; } &&
15887 { ac_try='test -s conftest$ac_exeext'
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000015893 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015894 if test "x$ac_cv_lib_soname_GL" = "x"
15895 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015896 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015897 fi
15898else
15899 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015900sed 's/^/| /' conftest.$ac_ext >&5
15901
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015902 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015903fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015904
Alexandre Julliard875927f2004-01-02 01:55:29 +000015905rm -f conftest.err conftest.$ac_objext \
15906 conftest$ac_exeext conftest.$ac_ext
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015907 LIBS=$ac_get_soname_save_LIBS
15908fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015909{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
15910echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010015911if test "${ac_cv_lib_soname_GL+set}" = set; then
15912
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015913cat >>confdefs.h <<_ACEOF
15914#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
15915_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010015916
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000015917fi
15918
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015919 { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
15920echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020015921if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15923else
15924 ac_get_soname_save_LIBS=$LIBS
15925LIBS="-ldbus-1 $LIBS"
15926 cat >conftest.$ac_ext <<_ACEOF
15927/* confdefs.h. */
15928_ACEOF
15929cat confdefs.h >>conftest.$ac_ext
15930cat >>conftest.$ac_ext <<_ACEOF
15931/* end confdefs.h. */
15932
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015933/* Override any GCC internal prototype to avoid an error.
15934 Use char because int might match the return type of a GCC
15935 builtin and then its argument prototype would still apply. */
Alexandre Julliard00068982006-04-18 16:47:53 +020015936#ifdef __cplusplus
15937extern "C"
15938#endif
Alexandre Julliard00068982006-04-18 16:47:53 +020015939char dbus_error_init ();
15940int
15941main ()
15942{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015943return dbus_error_init ();
Alexandre Julliard00068982006-04-18 16:47:53 +020015944 ;
15945 return 0;
15946}
15947_ACEOF
15948rm -f conftest.$ac_objext conftest$ac_exeext
15949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15950 (eval $ac_link) 2>conftest.er1
15951 ac_status=$?
15952 grep -v '^ *+' conftest.er1 >conftest.err
15953 rm -f conftest.er1
15954 cat conftest.err >&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } &&
15957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959 (eval $ac_try) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; } &&
15963 { ac_try='test -s conftest$ac_exeext'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep libdbus-1\\.$LIBEXT | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
15970 if test "x$ac_cv_lib_soname_dbus_1" = "x"
15971 then
15972 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
15973 fi
15974else
15975 echo "$as_me: failed program was:" >&5
15976sed 's/^/| /' conftest.$ac_ext >&5
15977
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015978 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
Alexandre Julliard00068982006-04-18 16:47:53 +020015979fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015980
Alexandre Julliard00068982006-04-18 16:47:53 +020015981rm -f conftest.err conftest.$ac_objext \
15982 conftest$ac_exeext conftest.$ac_ext
15983 LIBS=$ac_get_soname_save_LIBS
15984fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015985{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
15986echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020015987if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
15988
15989cat >>confdefs.h <<_ACEOF
15990#define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
15991_ACEOF
15992
15993fi
15994
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015995 { echo "$as_me:$LINENO: checking for -lhal soname" >&5
15996echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020015997if test "${ac_cv_lib_soname_hal+set}" = set; then
15998 echo $ECHO_N "(cached) $ECHO_C" >&6
15999else
16000 ac_get_soname_save_LIBS=$LIBS
16001LIBS="-lhal $LIBS"
16002 cat >conftest.$ac_ext <<_ACEOF
16003/* confdefs.h. */
16004_ACEOF
16005cat confdefs.h >>conftest.$ac_ext
16006cat >>conftest.$ac_ext <<_ACEOF
16007/* end confdefs.h. */
16008
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016009/* Override any GCC internal prototype to avoid an error.
16010 Use char because int might match the return type of a GCC
16011 builtin and then its argument prototype would still apply. */
Alexandre Julliard00068982006-04-18 16:47:53 +020016012#ifdef __cplusplus
16013extern "C"
16014#endif
Alexandre Julliard00068982006-04-18 16:47:53 +020016015char libhal_ctx_new ();
16016int
16017main ()
16018{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016019return libhal_ctx_new ();
Alexandre Julliard00068982006-04-18 16:47:53 +020016020 ;
16021 return 0;
16022}
16023_ACEOF
16024rm -f conftest.$ac_objext conftest$ac_exeext
16025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16026 (eval $ac_link) 2>conftest.er1
16027 ac_status=$?
16028 grep -v '^ *+' conftest.er1 >conftest.err
16029 rm -f conftest.er1
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } &&
16033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16036 ac_status=$?
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; } &&
16039 { ac_try='test -s conftest$ac_exeext'
16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16041 (eval $ac_try) 2>&5
16042 ac_status=$?
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; }; then
16045 ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
16046 if test "x$ac_cv_lib_soname_hal" = "x"
16047 then
16048 ac_cv_lib_soname_hal="libhal.$LIBEXT"
16049 fi
16050else
16051 echo "$as_me: failed program was:" >&5
16052sed 's/^/| /' conftest.$ac_ext >&5
16053
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016054 ac_cv_lib_soname_hal="libhal.$LIBEXT"
Alexandre Julliard00068982006-04-18 16:47:53 +020016055fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016056
Alexandre Julliard00068982006-04-18 16:47:53 +020016057rm -f conftest.err conftest.$ac_objext \
16058 conftest$ac_exeext conftest.$ac_ext
16059 LIBS=$ac_get_soname_save_LIBS
16060fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016061{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
16062echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020016063if test "${ac_cv_lib_soname_hal+set}" = set; then
16064
16065cat >>confdefs.h <<_ACEOF
16066#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
16067_ACEOF
16068
16069fi
16070
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016071 { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
16072echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
Christian Costaeac96b52004-07-30 18:54:32 +000016073if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
16074 echo $ECHO_N "(cached) $ECHO_C" >&6
16075else
16076 ac_get_soname_save_LIBS=$LIBS
16077LIBS="-ltxc_dxtn $LIBS"
16078 cat >conftest.$ac_ext <<_ACEOF
16079/* confdefs.h. */
16080_ACEOF
16081cat confdefs.h >>conftest.$ac_ext
16082cat >>conftest.$ac_ext <<_ACEOF
16083/* end confdefs.h. */
16084
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016085/* Override any GCC internal prototype to avoid an error.
16086 Use char because int might match the return type of a GCC
16087 builtin and then its argument prototype would still apply. */
Christian Costaeac96b52004-07-30 18:54:32 +000016088#ifdef __cplusplus
16089extern "C"
16090#endif
Christian Costaeac96b52004-07-30 18:54:32 +000016091char fetch_2d_texel_rgba_dxt1 ();
16092int
16093main ()
16094{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016095return fetch_2d_texel_rgba_dxt1 ();
Christian Costaeac96b52004-07-30 18:54:32 +000016096 ;
16097 return 0;
16098}
16099_ACEOF
16100rm -f conftest.$ac_objext conftest$ac_exeext
16101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16102 (eval $ac_link) 2>conftest.er1
16103 ac_status=$?
16104 grep -v '^ *+' conftest.er1 >conftest.err
16105 rm -f conftest.er1
16106 cat conftest.err >&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); } &&
16109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16112 ac_status=$?
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); }; } &&
16115 { ac_try='test -s conftest$ac_exeext'
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000016121 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed -e "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Christian Costaeac96b52004-07-30 18:54:32 +000016122 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
16123 then
16124 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
16125 fi
16126else
16127 echo "$as_me: failed program was:" >&5
16128sed 's/^/| /' conftest.$ac_ext >&5
16129
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016130 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
Christian Costaeac96b52004-07-30 18:54:32 +000016131fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016132
Christian Costaeac96b52004-07-30 18:54:32 +000016133rm -f conftest.err conftest.$ac_objext \
16134 conftest$ac_exeext conftest.$ac_ext
16135 LIBS=$ac_get_soname_save_LIBS
16136fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016137{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
16138echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016139if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
16140
Christian Costaeac96b52004-07-30 18:54:32 +000016141cat >>confdefs.h <<_ACEOF
16142#define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
16143_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016144
Christian Costaeac96b52004-07-30 18:54:32 +000016145fi
16146
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016147 { echo "$as_me:$LINENO: checking for -lcups soname" >&5
16148echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
Marcus Meissnerf061f762002-11-12 02:22:24 +000016149if test "${ac_cv_lib_soname_cups+set}" = set; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16151else
16152 ac_get_soname_save_LIBS=$LIBS
16153LIBS="-lcups $LIBS"
16154 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016155/* confdefs.h. */
16156_ACEOF
16157cat confdefs.h >>conftest.$ac_ext
16158cat >>conftest.$ac_ext <<_ACEOF
16159/* end confdefs.h. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000016160
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016161/* Override any GCC internal prototype to avoid an error.
16162 Use char because int might match the return type of a GCC
16163 builtin and then its argument prototype would still apply. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000016164#ifdef __cplusplus
16165extern "C"
16166#endif
Marcus Meissnerf061f762002-11-12 02:22:24 +000016167char cupsGetDefault ();
16168int
16169main ()
16170{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016171return cupsGetDefault ();
Marcus Meissnerf061f762002-11-12 02:22:24 +000016172 ;
16173 return 0;
16174}
16175_ACEOF
16176rm -f conftest.$ac_objext conftest$ac_exeext
16177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016178 (eval $ac_link) 2>conftest.er1
Marcus Meissnerf061f762002-11-12 02:22:24 +000016179 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016180 grep -v '^ *+' conftest.er1 >conftest.err
16181 rm -f conftest.er1
16182 cat conftest.err >&5
Marcus Meissnerf061f762002-11-12 02:22:24 +000016183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; } &&
16191 { ac_try='test -s conftest$ac_exeext'
Marcus Meissnerf061f762002-11-12 02:22:24 +000016192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16194 ac_status=$?
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000016197 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Marcus Meissnerf061f762002-11-12 02:22:24 +000016198 if test "x$ac_cv_lib_soname_cups" = "x"
16199 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000016200 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000016201 fi
16202else
16203 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016204sed 's/^/| /' conftest.$ac_ext >&5
16205
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016206 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000016207fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016208
Alexandre Julliard875927f2004-01-02 01:55:29 +000016209rm -f conftest.err conftest.$ac_objext \
16210 conftest$ac_exeext conftest.$ac_ext
Marcus Meissnerf061f762002-11-12 02:22:24 +000016211 LIBS=$ac_get_soname_save_LIBS
16212fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016213{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
16214echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016215if test "${ac_cv_lib_soname_cups+set}" = set; then
16216
Marcus Meissnerf061f762002-11-12 02:22:24 +000016217cat >>confdefs.h <<_ACEOF
16218#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
16219_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016220
Marcus Meissnerf061f762002-11-12 02:22:24 +000016221fi
Chris Morgan4691b182002-12-13 02:26:18 +000016222
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016223 { echo "$as_me:$LINENO: checking for -ljack soname" >&5
16224echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
Chris Morgan4691b182002-12-13 02:26:18 +000016225if test "${ac_cv_lib_soname_jack+set}" = set; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16227else
16228 ac_get_soname_save_LIBS=$LIBS
16229LIBS="-ljack $LIBS"
16230 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
Chris Morgan4691b182002-12-13 02:26:18 +000016236
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016237/* Override any GCC internal prototype to avoid an error.
16238 Use char because int might match the return type of a GCC
16239 builtin and then its argument prototype would still apply. */
Chris Morgan4691b182002-12-13 02:26:18 +000016240#ifdef __cplusplus
16241extern "C"
16242#endif
Chris Morgan4691b182002-12-13 02:26:18 +000016243char jack_client_new ();
16244int
16245main ()
16246{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016247return jack_client_new ();
Chris Morgan4691b182002-12-13 02:26:18 +000016248 ;
16249 return 0;
16250}
16251_ACEOF
16252rm -f conftest.$ac_objext conftest$ac_exeext
16253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016254 (eval $ac_link) 2>conftest.er1
Chris Morgan4691b182002-12-13 02:26:18 +000016255 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016256 grep -v '^ *+' conftest.er1 >conftest.err
16257 rm -f conftest.er1
16258 cat conftest.err >&5
Chris Morgan4691b182002-12-13 02:26:18 +000016259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263 (eval $ac_try) 2>&5
16264 ac_status=$?
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; } &&
16267 { ac_try='test -s conftest$ac_exeext'
Chris Morgan4691b182002-12-13 02:26:18 +000016268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16269 (eval $ac_try) 2>&5
16270 ac_status=$?
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000016273 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed -e "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Chris Morgan4691b182002-12-13 02:26:18 +000016274 if test "x$ac_cv_lib_soname_jack" = "x"
16275 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000016276 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000016277 fi
16278else
16279 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016280sed 's/^/| /' conftest.$ac_ext >&5
16281
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016282 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000016283fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016284
Alexandre Julliard875927f2004-01-02 01:55:29 +000016285rm -f conftest.err conftest.$ac_objext \
16286 conftest$ac_exeext conftest.$ac_ext
Chris Morgan4691b182002-12-13 02:26:18 +000016287 LIBS=$ac_get_soname_save_LIBS
16288fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016289{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
16290echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016291if test "${ac_cv_lib_soname_jack+set}" = set; then
16292
Chris Morgan4691b182002-12-13 02:26:18 +000016293cat >>confdefs.h <<_ACEOF
16294#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
16295_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016296
Chris Morgan4691b182002-12-13 02:26:18 +000016297fi
David Hammerton852c7ae2003-06-20 23:26:56 +000016298
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016299 { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
16300echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
Huw Davies6e128072003-11-09 00:30:13 +000016301if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16303else
16304 ac_get_soname_save_LIBS=$LIBS
16305LIBS="-lfontconfig $LIBS"
16306 cat >conftest.$ac_ext <<_ACEOF
Huw Davies6e128072003-11-09 00:30:13 +000016307/* confdefs.h. */
16308_ACEOF
16309cat confdefs.h >>conftest.$ac_ext
16310cat >>conftest.$ac_ext <<_ACEOF
16311/* end confdefs.h. */
16312
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016313/* Override any GCC internal prototype to avoid an error.
16314 Use char because int might match the return type of a GCC
16315 builtin and then its argument prototype would still apply. */
Huw Davies6e128072003-11-09 00:30:13 +000016316#ifdef __cplusplus
16317extern "C"
16318#endif
Huw Davies6e128072003-11-09 00:30:13 +000016319char FcInit ();
16320int
16321main ()
16322{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016323return FcInit ();
Huw Davies6e128072003-11-09 00:30:13 +000016324 ;
16325 return 0;
16326}
16327_ACEOF
16328rm -f conftest.$ac_objext conftest$ac_exeext
16329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016330 (eval $ac_link) 2>conftest.er1
Huw Davies6e128072003-11-09 00:30:13 +000016331 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016332 grep -v '^ *+' conftest.er1 >conftest.err
16333 rm -f conftest.er1
16334 cat conftest.err >&5
Huw Davies6e128072003-11-09 00:30:13 +000016335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16339 (eval $ac_try) 2>&5
16340 ac_status=$?
16341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342 (exit $ac_status); }; } &&
16343 { ac_try='test -s conftest$ac_exeext'
Huw Davies6e128072003-11-09 00:30:13 +000016344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345 (eval $ac_try) 2>&5
16346 ac_status=$?
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000016349 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Huw Davies6e128072003-11-09 00:30:13 +000016350 if test "x$ac_cv_lib_soname_fontconfig" = "x"
16351 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000016352 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000016353 fi
16354else
16355 echo "$as_me: failed program was:" >&5
16356sed 's/^/| /' conftest.$ac_ext >&5
16357
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016358 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000016359fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016360
Alexandre Julliard875927f2004-01-02 01:55:29 +000016361rm -f conftest.err conftest.$ac_objext \
16362 conftest$ac_exeext conftest.$ac_ext
Huw Davies6e128072003-11-09 00:30:13 +000016363 LIBS=$ac_get_soname_save_LIBS
16364fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016365{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
16366echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016367if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
16368
Huw Davies6e128072003-11-09 00:30:13 +000016369cat >>confdefs.h <<_ACEOF
16370#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
16371_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016372
Alexandre Julliard79994692003-11-13 20:58:55 +000016373fi
Huw Davies6e128072003-11-09 00:30:13 +000016374
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016375 { echo "$as_me:$LINENO: checking for -lssl soname" >&5
16376echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
David Hammerton852c7ae2003-06-20 23:26:56 +000016377if test "${ac_cv_lib_soname_ssl+set}" = set; then
16378 echo $ECHO_N "(cached) $ECHO_C" >&6
16379else
16380 ac_get_soname_save_LIBS=$LIBS
16381LIBS="-lssl $LIBS"
16382 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000016383/* confdefs.h. */
16384_ACEOF
16385cat confdefs.h >>conftest.$ac_ext
16386cat >>conftest.$ac_ext <<_ACEOF
16387/* end confdefs.h. */
16388
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016389/* Override any GCC internal prototype to avoid an error.
16390 Use char because int might match the return type of a GCC
16391 builtin and then its argument prototype would still apply. */
David Hammerton852c7ae2003-06-20 23:26:56 +000016392#ifdef __cplusplus
16393extern "C"
16394#endif
David Hammerton852c7ae2003-06-20 23:26:56 +000016395char SSL_library_init ();
16396int
16397main ()
16398{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016399return SSL_library_init ();
David Hammerton852c7ae2003-06-20 23:26:56 +000016400 ;
16401 return 0;
16402}
16403_ACEOF
16404rm -f conftest.$ac_objext conftest$ac_exeext
16405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016406 (eval $ac_link) 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000016407 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016408 grep -v '^ *+' conftest.er1 >conftest.err
16409 rm -f conftest.er1
16410 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000016411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415 (eval $ac_try) 2>&5
16416 ac_status=$?
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); }; } &&
16419 { ac_try='test -s conftest$ac_exeext'
David Hammerton852c7ae2003-06-20 23:26:56 +000016420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421 (eval $ac_try) 2>&5
16422 ac_status=$?
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000016425 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
David Hammerton852c7ae2003-06-20 23:26:56 +000016426 if test "x$ac_cv_lib_soname_ssl" = "x"
16427 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000016428 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000016429 fi
16430else
16431 echo "$as_me: failed program was:" >&5
16432sed 's/^/| /' conftest.$ac_ext >&5
16433
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016434 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000016435fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016436
Alexandre Julliard875927f2004-01-02 01:55:29 +000016437rm -f conftest.err conftest.$ac_objext \
16438 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000016439 LIBS=$ac_get_soname_save_LIBS
16440fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016441{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
16442echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016443if test "${ac_cv_lib_soname_ssl+set}" = set; then
16444
David Hammerton852c7ae2003-06-20 23:26:56 +000016445cat >>confdefs.h <<_ACEOF
16446#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
16447_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016448
David Hammerton852c7ae2003-06-20 23:26:56 +000016449fi
16450
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016451 { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
16452echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
David Hammerton852c7ae2003-06-20 23:26:56 +000016453if test "${ac_cv_lib_soname_crypto+set}" = set; then
16454 echo $ECHO_N "(cached) $ECHO_C" >&6
16455else
16456 ac_get_soname_save_LIBS=$LIBS
16457LIBS="-lcrypto $LIBS"
16458 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000016459/* confdefs.h. */
16460_ACEOF
16461cat confdefs.h >>conftest.$ac_ext
16462cat >>conftest.$ac_ext <<_ACEOF
16463/* end confdefs.h. */
16464
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016465/* Override any GCC internal prototype to avoid an error.
16466 Use char because int might match the return type of a GCC
16467 builtin and then its argument prototype would still apply. */
David Hammerton852c7ae2003-06-20 23:26:56 +000016468#ifdef __cplusplus
16469extern "C"
16470#endif
David Hammerton852c7ae2003-06-20 23:26:56 +000016471char BIO_new_socket ();
16472int
16473main ()
16474{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016475return BIO_new_socket ();
David Hammerton852c7ae2003-06-20 23:26:56 +000016476 ;
16477 return 0;
16478}
16479_ACEOF
16480rm -f conftest.$ac_objext conftest$ac_exeext
16481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016482 (eval $ac_link) 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000016483 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016484 grep -v '^ *+' conftest.er1 >conftest.err
16485 rm -f conftest.er1
16486 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000016487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest$ac_exeext'
David Hammerton852c7ae2003-06-20 23:26:56 +000016496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000016501 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
David Hammerton852c7ae2003-06-20 23:26:56 +000016502 if test "x$ac_cv_lib_soname_crypto" = "x"
16503 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000016504 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000016505 fi
16506else
16507 echo "$as_me: failed program was:" >&5
16508sed 's/^/| /' conftest.$ac_ext >&5
16509
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016510 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000016511fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016512
Alexandre Julliard875927f2004-01-02 01:55:29 +000016513rm -f conftest.err conftest.$ac_objext \
16514 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000016515 LIBS=$ac_get_soname_save_LIBS
16516fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016517{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
16518echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016519if test "${ac_cv_lib_soname_crypto+set}" = set; then
16520
David Hammerton852c7ae2003-06-20 23:26:56 +000016521cat >>confdefs.h <<_ACEOF
16522#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
16523_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016524
David Hammerton852c7ae2003-06-20 23:26:56 +000016525fi
Mike McCormack9557d1b2003-08-20 04:19:01 +000016526
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016527 { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
16528echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
Mike McCormack9557d1b2003-08-20 04:19:01 +000016529if test "${ac_cv_lib_soname_ncurses+set}" = set; then
16530 echo $ECHO_N "(cached) $ECHO_C" >&6
16531else
16532 ac_get_soname_save_LIBS=$LIBS
16533LIBS="-lncurses $LIBS"
16534 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000016535/* confdefs.h. */
16536_ACEOF
16537cat confdefs.h >>conftest.$ac_ext
16538cat >>conftest.$ac_ext <<_ACEOF
16539/* end confdefs.h. */
16540
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016541/* Override any GCC internal prototype to avoid an error.
16542 Use char because int might match the return type of a GCC
16543 builtin and then its argument prototype would still apply. */
Mike McCormack9557d1b2003-08-20 04:19:01 +000016544#ifdef __cplusplus
16545extern "C"
16546#endif
Mike McCormack9557d1b2003-08-20 04:19:01 +000016547char waddch ();
16548int
16549main ()
16550{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016551return waddch ();
Mike McCormack9557d1b2003-08-20 04:19:01 +000016552 ;
16553 return 0;
16554}
16555_ACEOF
16556rm -f conftest.$ac_objext conftest$ac_exeext
16557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016558 (eval $ac_link) 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000016559 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016560 grep -v '^ *+' conftest.er1 >conftest.err
16561 rm -f conftest.er1
16562 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000016563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16567 (eval $ac_try) 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; } &&
16571 { ac_try='test -s conftest$ac_exeext'
Mike McCormack9557d1b2003-08-20 04:19:01 +000016572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16573 (eval $ac_try) 2>&5
16574 ac_status=$?
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000016577 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Mike McCormack9557d1b2003-08-20 04:19:01 +000016578 if test "x$ac_cv_lib_soname_ncurses" = "x"
16579 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000016580 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000016581 fi
16582else
16583 echo "$as_me: failed program was:" >&5
16584sed 's/^/| /' conftest.$ac_ext >&5
16585
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016586 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000016587fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016588
Alexandre Julliard875927f2004-01-02 01:55:29 +000016589rm -f conftest.err conftest.$ac_objext \
16590 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000016591 LIBS=$ac_get_soname_save_LIBS
16592fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016593{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
16594echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016595if test "${ac_cv_lib_soname_ncurses+set}" = set; then
16596
Mike McCormack9557d1b2003-08-20 04:19:01 +000016597cat >>confdefs.h <<_ACEOF
16598#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
16599_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016600
Mike McCormack9557d1b2003-08-20 04:19:01 +000016601fi
16602
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016603 { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
16604echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
Mike McCormack9557d1b2003-08-20 04:19:01 +000016605if test "${ac_cv_lib_soname_curses+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16607else
16608 ac_get_soname_save_LIBS=$LIBS
16609LIBS="-lcurses $LIBS"
16610 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000016611/* confdefs.h. */
16612_ACEOF
16613cat confdefs.h >>conftest.$ac_ext
16614cat >>conftest.$ac_ext <<_ACEOF
16615/* end confdefs.h. */
16616
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016617/* Override any GCC internal prototype to avoid an error.
16618 Use char because int might match the return type of a GCC
16619 builtin and then its argument prototype would still apply. */
Mike McCormack9557d1b2003-08-20 04:19:01 +000016620#ifdef __cplusplus
16621extern "C"
16622#endif
Mike McCormack9557d1b2003-08-20 04:19:01 +000016623char waddch ();
16624int
16625main ()
16626{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016627return waddch ();
Mike McCormack9557d1b2003-08-20 04:19:01 +000016628 ;
16629 return 0;
16630}
16631_ACEOF
16632rm -f conftest.$ac_objext conftest$ac_exeext
16633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016634 (eval $ac_link) 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000016635 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016636 grep -v '^ *+' conftest.er1 >conftest.err
16637 rm -f conftest.er1
16638 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000016639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643 (eval $ac_try) 2>&5
16644 ac_status=$?
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; } &&
16647 { ac_try='test -s conftest$ac_exeext'
Mike McCormack9557d1b2003-08-20 04:19:01 +000016648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16650 ac_status=$?
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000016653 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Mike McCormack9557d1b2003-08-20 04:19:01 +000016654 if test "x$ac_cv_lib_soname_curses" = "x"
16655 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000016656 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000016657 fi
16658else
16659 echo "$as_me: failed program was:" >&5
16660sed 's/^/| /' conftest.$ac_ext >&5
16661
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016662 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000016663fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016664
Alexandre Julliard875927f2004-01-02 01:55:29 +000016665rm -f conftest.err conftest.$ac_objext \
16666 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000016667 LIBS=$ac_get_soname_save_LIBS
16668fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016669{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
16670echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016671if test "${ac_cv_lib_soname_curses+set}" = set; then
16672
Mike McCormack9557d1b2003-08-20 04:19:01 +000016673cat >>confdefs.h <<_ACEOF
16674#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
16675_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016676
Mike McCormack9557d1b2003-08-20 04:19:01 +000016677fi
Huw Daviese82dfab2004-08-04 19:10:26 +000016678
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016679 { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
16680echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
Huw Daviese82dfab2004-08-04 19:10:26 +000016681if test "${ac_cv_lib_soname_jpeg+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16683else
16684 ac_get_soname_save_LIBS=$LIBS
16685LIBS="-ljpeg $LIBS"
16686 cat >conftest.$ac_ext <<_ACEOF
16687/* confdefs.h. */
16688_ACEOF
16689cat confdefs.h >>conftest.$ac_ext
16690cat >>conftest.$ac_ext <<_ACEOF
16691/* end confdefs.h. */
16692
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016693/* Override any GCC internal prototype to avoid an error.
16694 Use char because int might match the return type of a GCC
16695 builtin and then its argument prototype would still apply. */
Huw Daviese82dfab2004-08-04 19:10:26 +000016696#ifdef __cplusplus
16697extern "C"
16698#endif
Huw Daviese82dfab2004-08-04 19:10:26 +000016699char jpeg_start_decompress ();
16700int
16701main ()
16702{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016703return jpeg_start_decompress ();
Huw Daviese82dfab2004-08-04 19:10:26 +000016704 ;
16705 return 0;
16706}
16707_ACEOF
16708rm -f conftest.$ac_objext conftest$ac_exeext
16709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16710 (eval $ac_link) 2>conftest.er1
16711 ac_status=$?
16712 grep -v '^ *+' conftest.er1 >conftest.err
16713 rm -f conftest.er1
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } &&
16717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16719 (eval $ac_try) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; } &&
16723 { ac_try='test -s conftest$ac_exeext'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000016729 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Huw Daviese82dfab2004-08-04 19:10:26 +000016730 if test "x$ac_cv_lib_soname_jpeg" = "x"
16731 then
16732 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
16733 fi
16734else
16735 echo "$as_me: failed program was:" >&5
16736sed 's/^/| /' conftest.$ac_ext >&5
16737
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016738 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
Huw Daviese82dfab2004-08-04 19:10:26 +000016739fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016740
Huw Daviese82dfab2004-08-04 19:10:26 +000016741rm -f conftest.err conftest.$ac_objext \
16742 conftest$ac_exeext conftest.$ac_ext
16743 LIBS=$ac_get_soname_save_LIBS
16744fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016745{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
16746echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016747if test "${ac_cv_lib_soname_jpeg+set}" = set; then
16748
Huw Daviese82dfab2004-08-04 19:10:26 +000016749cat >>confdefs.h <<_ACEOF
16750#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
16751_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016752
Huw Daviese82dfab2004-08-04 19:10:26 +000016753fi
16754
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016755 { echo "$as_me:$LINENO: checking for -lungif soname" >&5
16756echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; }
Huw Daviese82dfab2004-08-04 19:10:26 +000016757if test "${ac_cv_lib_soname_ungif+set}" = set; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16759else
16760 ac_get_soname_save_LIBS=$LIBS
16761LIBS="-lungif $LIBS"
16762 cat >conftest.$ac_ext <<_ACEOF
16763/* confdefs.h. */
16764_ACEOF
16765cat confdefs.h >>conftest.$ac_ext
16766cat >>conftest.$ac_ext <<_ACEOF
16767/* end confdefs.h. */
16768
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016769/* Override any GCC internal prototype to avoid an error.
16770 Use char because int might match the return type of a GCC
16771 builtin and then its argument prototype would still apply. */
Huw Daviese82dfab2004-08-04 19:10:26 +000016772#ifdef __cplusplus
16773extern "C"
16774#endif
Huw Daviese82dfab2004-08-04 19:10:26 +000016775char DGifOpen ();
16776int
16777main ()
16778{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016779return DGifOpen ();
Huw Daviese82dfab2004-08-04 19:10:26 +000016780 ;
16781 return 0;
16782}
16783_ACEOF
16784rm -f conftest.$ac_objext conftest$ac_exeext
16785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16786 (eval $ac_link) 2>conftest.er1
16787 ac_status=$?
16788 grep -v '^ *+' conftest.er1 >conftest.err
16789 rm -f conftest.er1
16790 cat conftest.err >&5
16791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792 (exit $ac_status); } &&
16793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16796 ac_status=$?
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; } &&
16799 { ac_try='test -s conftest$ac_exeext'
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000016805 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed -e "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Huw Daviese82dfab2004-08-04 19:10:26 +000016806 if test "x$ac_cv_lib_soname_ungif" = "x"
16807 then
16808 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
16809 fi
16810else
16811 echo "$as_me: failed program was:" >&5
16812sed 's/^/| /' conftest.$ac_ext >&5
16813
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016814 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
Huw Daviese82dfab2004-08-04 19:10:26 +000016815fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016816
Huw Daviese82dfab2004-08-04 19:10:26 +000016817rm -f conftest.err conftest.$ac_objext \
16818 conftest$ac_exeext conftest.$ac_ext
16819 LIBS=$ac_get_soname_save_LIBS
16820fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016821{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
16822echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016823if test "${ac_cv_lib_soname_ungif+set}" = set; then
16824
Huw Daviese82dfab2004-08-04 19:10:26 +000016825cat >>confdefs.h <<_ACEOF
16826#define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
16827_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016828
Huw Daviese82dfab2004-08-04 19:10:26 +000016829fi
Marcus Meissner00cf13a2004-09-14 19:27:58 +000016830
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016831 { echo "$as_me:$LINENO: checking for -lgif soname" >&5
16832echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; }
Marcus Meissner00cf13a2004-09-14 19:27:58 +000016833if test "${ac_cv_lib_soname_gif+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16835else
16836 ac_get_soname_save_LIBS=$LIBS
16837LIBS="-lgif $LIBS"
16838 cat >conftest.$ac_ext <<_ACEOF
16839/* confdefs.h. */
16840_ACEOF
16841cat confdefs.h >>conftest.$ac_ext
16842cat >>conftest.$ac_ext <<_ACEOF
16843/* end confdefs.h. */
16844
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016845/* Override any GCC internal prototype to avoid an error.
16846 Use char because int might match the return type of a GCC
16847 builtin and then its argument prototype would still apply. */
Marcus Meissner00cf13a2004-09-14 19:27:58 +000016848#ifdef __cplusplus
16849extern "C"
16850#endif
Marcus Meissner00cf13a2004-09-14 19:27:58 +000016851char DGifOpen ();
16852int
16853main ()
16854{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016855return DGifOpen ();
Marcus Meissner00cf13a2004-09-14 19:27:58 +000016856 ;
16857 return 0;
16858}
16859_ACEOF
16860rm -f conftest.$ac_objext conftest$ac_exeext
16861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16862 (eval $ac_link) 2>conftest.er1
16863 ac_status=$?
16864 grep -v '^ *+' conftest.er1 >conftest.err
16865 rm -f conftest.er1
16866 cat conftest.err >&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } &&
16869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest$ac_exeext'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16878 ac_status=$?
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000016881 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed -e "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Marcus Meissner00cf13a2004-09-14 19:27:58 +000016882 if test "x$ac_cv_lib_soname_gif" = "x"
16883 then
16884 ac_cv_lib_soname_gif="libgif.$LIBEXT"
16885 fi
16886else
16887 echo "$as_me: failed program was:" >&5
16888sed 's/^/| /' conftest.$ac_ext >&5
16889
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016890 ac_cv_lib_soname_gif="libgif.$LIBEXT"
Marcus Meissner00cf13a2004-09-14 19:27:58 +000016891fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016892
Marcus Meissner00cf13a2004-09-14 19:27:58 +000016893rm -f conftest.err conftest.$ac_objext \
16894 conftest$ac_exeext conftest.$ac_ext
16895 LIBS=$ac_get_soname_save_LIBS
16896fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016897{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
16898echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016899if test "${ac_cv_lib_soname_gif+set}" = set; then
16900
Marcus Meissner00cf13a2004-09-14 19:27:58 +000016901cat >>confdefs.h <<_ACEOF
16902#define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
16903_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016904
Marcus Meissner00cf13a2004-09-14 19:27:58 +000016905fi
Hans Leidekker081b2502004-10-07 19:12:41 +000016906
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016907 { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
16908echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
Marcus Meissner67d3afb2005-01-07 15:33:02 +000016909if test "${ac_cv_lib_soname_capi20+set}" = set; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16911else
16912 ac_get_soname_save_LIBS=$LIBS
16913LIBS="-lcapi20 $LIBS"
16914 cat >conftest.$ac_ext <<_ACEOF
16915/* confdefs.h. */
16916_ACEOF
16917cat confdefs.h >>conftest.$ac_ext
16918cat >>conftest.$ac_ext <<_ACEOF
16919/* end confdefs.h. */
16920
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016921/* Override any GCC internal prototype to avoid an error.
16922 Use char because int might match the return type of a GCC
16923 builtin and then its argument prototype would still apply. */
Marcus Meissner67d3afb2005-01-07 15:33:02 +000016924#ifdef __cplusplus
16925extern "C"
16926#endif
Marcus Meissner67d3afb2005-01-07 15:33:02 +000016927char capi20_isinstalled ();
16928int
16929main ()
16930{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016931return capi20_isinstalled ();
Marcus Meissner67d3afb2005-01-07 15:33:02 +000016932 ;
16933 return 0;
16934}
16935_ACEOF
16936rm -f conftest.$ac_objext conftest$ac_exeext
16937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16938 (eval $ac_link) 2>conftest.er1
16939 ac_status=$?
16940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947 (eval $ac_try) 2>&5
16948 ac_status=$?
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; } &&
16951 { ac_try='test -s conftest$ac_exeext'
16952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16953 (eval $ac_try) 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000016957 ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Marcus Meissner67d3afb2005-01-07 15:33:02 +000016958 if test "x$ac_cv_lib_soname_capi20" = "x"
16959 then
16960 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
16961 fi
16962else
16963 echo "$as_me: failed program was:" >&5
16964sed 's/^/| /' conftest.$ac_ext >&5
16965
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016966 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
Marcus Meissner67d3afb2005-01-07 15:33:02 +000016967fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016968
Marcus Meissner67d3afb2005-01-07 15:33:02 +000016969rm -f conftest.err conftest.$ac_objext \
16970 conftest$ac_exeext conftest.$ac_ext
16971 LIBS=$ac_get_soname_save_LIBS
16972fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016973{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
16974echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016975if test "${ac_cv_lib_soname_capi20+set}" = set; then
16976
Marcus Meissner67d3afb2005-01-07 15:33:02 +000016977cat >>confdefs.h <<_ACEOF
16978#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
16979_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016980
Marcus Meissner67d3afb2005-01-07 15:33:02 +000016981fi
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016982
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016983fi
16984
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016985
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016986
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
Steven Edwardsb9627c12002-05-05 21:03:44 +000017029
17030
Steven Edwards0a8e15a2002-05-10 01:33:40 +000017031
17032
Alexandre Julliard142dab82002-07-01 18:17:30 +000017033
Patrik Stridvall6caeb722002-11-25 21:12:26 +000017034
17035
17036
Pavel Roskin7add08a2003-09-24 18:54:40 +000017037
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000017038
Alexandre Julliarde2930742004-01-08 05:07:05 +000017039
Alexandre Julliard13af4892004-03-05 21:03:46 +000017040
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000017041
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000017042
17043
Alexandre Julliard969f57c2004-09-23 04:48:24 +000017044
Paul Millar10a6c562004-12-07 17:19:54 +000017045
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000017046
Marcus Meissner7a6fdea2005-11-17 12:58:35 +000017047
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010017048
Hans Leidekkerc0e6bb22006-02-20 14:16:38 +010017049
Alexandre Julliard9603ee02006-04-06 11:57:37 +020017050
Patrik Stridvall1bb94031999-05-08 15:47:44 +000017051for ac_func in \
17052 _lwp_create \
Alexandre Julliard6f7a2042003-04-01 04:39:35 +000017053 _lwp_self \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000017054 _pclose \
17055 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000017056 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000017057 _spawnvp \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000017058 _stricmp \
17059 _strnicmp \
Steven Edwardsbe514b92003-01-14 19:35:03 +000017060 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010017061 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000017062 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000017063 clone \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000017064 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000017065 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000017066 finite \
Hans Leidekkerbed38422004-10-14 03:08:57 +000017067 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000017068 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000017069 fstatfs \
17070 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000017071 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000017072 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000017073 futimesat \
Marcus Meissner7a6fdea2005-11-17 12:58:35 +000017074 getaddrinfo \
Hans Leidekkerc0e6bb22006-02-20 14:16:38 +010017075 getnameinfo \
Patrik Stridvallb9010211999-11-13 22:23:35 +000017076 getnetbyname \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000017077 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000017078 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000017079 getprotobyname \
17080 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000017081 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000017082 getservbyport \
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000017083 gettid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000017084 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000017085 getuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000017086 inet_network \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000017087 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000017088 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000017089 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000017090 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000017091 popen \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020017092 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000017093 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000017094 pwrite \
Alexandre Julliarde2930742004-01-08 05:07:05 +000017095 readlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000017096 rfork \
Jeremy White08c0f692004-10-09 02:26:29 +000017097 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000017098 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000017099 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000017100 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000017101 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000017102 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000017103 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000017104 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000017105 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000017106 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000017107 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000017108 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000017109 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000017110 tcgetattr \
17111 timegm \
17112 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000017113 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000017114 wait4 \
17115 waitpid \
17116
17117do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017119{ echo "$as_me:$LINENO: checking for $ac_func" >&5
17120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17121if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017122 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000017123else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017124 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017125/* confdefs.h. */
17126_ACEOF
17127cat confdefs.h >>conftest.$ac_ext
17128cat >>conftest.$ac_ext <<_ACEOF
17129/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000017130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17132#define $ac_func innocuous_$ac_func
17133
Patrik Stridvall1bb94031999-05-08 15:47:44 +000017134/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017135 which can conflict with char $ac_func (); below.
17136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17137 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000017138
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017139#ifdef __STDC__
17140# include <limits.h>
17141#else
17142# include <assert.h>
17143#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000017144
17145#undef $ac_func
17146
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017147/* Override any GCC internal prototype to avoid an error.
17148 Use char because int might match the return type of a GCC
17149 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017150#ifdef __cplusplus
17151extern "C"
17152#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017153char $ac_func ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000017154/* The GNU C library defines this for functions which it implements
17155 to always fail with ENOSYS. Some functions are actually named
17156 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017157#if defined __stub_$ac_func || defined __stub___$ac_func
Patrik Stridvall1bb94031999-05-08 15:47:44 +000017158choke me
Patrik Stridvall1bb94031999-05-08 15:47:44 +000017159#endif
17160
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017161int
17162main ()
17163{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017164return $ac_func ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017165 ;
17166 return 0;
17167}
17168_ACEOF
17169rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017171 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017172 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017173 grep -v '^ *+' conftest.er1 >conftest.err
17174 rm -f conftest.er1
17175 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017177 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17180 (eval $ac_try) 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; } &&
17184 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017186 (eval $ac_try) 2>&5
17187 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017189 (exit $ac_status); }; }; then
17190 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017191else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017192 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017193sed 's/^/| /' conftest.$ac_ext >&5
17194
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017195 eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017196fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017197
Alexandre Julliard875927f2004-01-02 01:55:29 +000017198rm -f conftest.err conftest.$ac_objext \
17199 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017200fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017201ac_res=`eval echo '${'$as_ac_var'}'`
17202 { echo "$as_me:$LINENO: result: $ac_res" >&5
17203echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017204if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017205 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017207_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000017208
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017209fi
17210done
17211
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017212
17213
17214
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017215{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17216echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017217if test "${ac_cv_c_const+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219else
17220 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017221/* confdefs.h. */
17222_ACEOF
17223cat confdefs.h >>conftest.$ac_ext
17224cat >>conftest.$ac_ext <<_ACEOF
17225/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017226
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017227int
17228main ()
17229{
17230/* FIXME: Include the comments suggested by Paul. */
17231#ifndef __cplusplus
17232 /* Ultrix mips cc rejects this. */
17233 typedef int charset[2];
17234 const charset x;
17235 /* SunOS 4.1.1 cc rejects this. */
17236 char const *const *ccp;
17237 char **p;
17238 /* NEC SVR4.0.2 mips cc rejects this. */
17239 struct point {int x, y;};
17240 static struct point const zero = {0,0};
17241 /* AIX XL C 1.02.0.0 rejects this.
17242 It does not let you subtract one const X* pointer from another in
17243 an arm of an if-expression whose if-part is not a constant
17244 expression */
17245 const char *g = "string";
17246 ccp = &g + (g ? g-g : 0);
17247 /* HPUX 7.0 cc rejects these. */
17248 ++ccp;
17249 p = (char**) ccp;
17250 ccp = (char const *const *) p;
17251 { /* SCO 3.2v4 cc rejects this. */
17252 char *t;
17253 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017254
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017255 *t++ = 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017256 if (s) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017257 }
17258 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17259 int x[] = {25, 17};
17260 const int *foo = &x[0];
17261 ++foo;
17262 }
17263 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17264 typedef const int *iptr;
17265 iptr p = 0;
17266 ++p;
17267 }
17268 { /* AIX XL C 1.02.0.0 rejects this saying
17269 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17270 struct s { int j; const int *ap[3]; };
17271 struct s *b; b->j = 5;
17272 }
17273 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17274 const int foo = 10;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017275 if (!foo) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017276 }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017277 return !x[0] && !zero.x;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017278#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017279
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017280 ;
17281 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017282}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017283_ACEOF
17284rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017286 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017287 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017288 grep -v '^ *+' conftest.er1 >conftest.err
17289 rm -f conftest.er1
17290 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017292 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017301 (eval $ac_try) 2>&5
17302 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017304 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017305 ac_cv_c_const=yes
17306else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017307 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017308sed 's/^/| /' conftest.$ac_ext >&5
17309
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017310 ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017311fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017312
Alexandre Julliard875927f2004-01-02 01:55:29 +000017313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017314fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017315{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17316echo "${ECHO_T}$ac_cv_c_const" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017317if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017318
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017319cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017320#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017321_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017322
17323fi
17324
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017325{ echo "$as_me:$LINENO: checking for inline" >&5
17326echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017327if test "${ac_cv_c_inline+set}" = set; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017329else
17330 ac_cv_c_inline=no
17331for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017332 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017333/* confdefs.h. */
17334_ACEOF
17335cat confdefs.h >>conftest.$ac_ext
17336cat >>conftest.$ac_ext <<_ACEOF
17337/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017338#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017339typedef int foo_t;
17340static $ac_kw foo_t static_foo () {return 0; }
17341$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017342#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017343
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017344_ACEOF
17345rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017347 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017348 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017349 grep -v '^ *+' conftest.er1 >conftest.err
17350 rm -f conftest.er1
17351 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017353 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; } &&
17360 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017362 (eval $ac_try) 2>&5
17363 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017365 (exit $ac_status); }; }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017366 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017367else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017368 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017369sed 's/^/| /' conftest.$ac_ext >&5
17370
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017371
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017372fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017373
Alexandre Julliard875927f2004-01-02 01:55:29 +000017374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017375 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017376done
17377
17378fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017379{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17380echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000017381
17382
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017383case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017384 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000017385 *)
17386 case $ac_cv_c_inline in
17387 no) ac_val=;;
17388 *) ac_val=$ac_cv_c_inline;;
17389 esac
17390 cat >>confdefs.h <<_ACEOF
17391#ifndef __cplusplus
17392#define inline $ac_val
17393#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017394_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000017395 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000017396esac
17397
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017398{ echo "$as_me:$LINENO: checking for mode_t" >&5
17399echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017400if test "${ac_cv_type_mode_t+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17402else
17403 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017404/* confdefs.h. */
17405_ACEOF
17406cat confdefs.h >>conftest.$ac_ext
17407cat >>conftest.$ac_ext <<_ACEOF
17408/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017409$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017410typedef mode_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017411int
17412main ()
17413{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017414if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017415 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017416if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017417 return 0;
17418 ;
17419 return 0;
17420}
17421_ACEOF
17422rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017424 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017425 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017426 grep -v '^ *+' conftest.er1 >conftest.err
17427 rm -f conftest.er1
17428 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017430 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; } &&
17437 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017439 (eval $ac_try) 2>&5
17440 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017442 (exit $ac_status); }; }; then
17443 ac_cv_type_mode_t=yes
17444else
17445 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017446sed 's/^/| /' conftest.$ac_ext >&5
17447
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017448 ac_cv_type_mode_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017449fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017450
Alexandre Julliard875927f2004-01-02 01:55:29 +000017451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017452fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017453{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17454echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017455if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017456
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017457cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017458#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017459_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017460
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017461
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017462fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017463{ echo "$as_me:$LINENO: checking for off_t" >&5
17464echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017465if test "${ac_cv_type_off_t+set}" = set; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17467else
17468 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017469/* confdefs.h. */
17470_ACEOF
17471cat confdefs.h >>conftest.$ac_ext
17472cat >>conftest.$ac_ext <<_ACEOF
17473/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017474$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017475typedef off_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017476int
17477main ()
17478{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017479if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017480 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017481if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017482 return 0;
17483 ;
17484 return 0;
17485}
17486_ACEOF
17487rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017489 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017490 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017491 grep -v '^ *+' conftest.er1 >conftest.err
17492 rm -f conftest.er1
17493 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017495 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; } &&
17502 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017504 (eval $ac_try) 2>&5
17505 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017507 (exit $ac_status); }; }; then
17508 ac_cv_type_off_t=yes
17509else
17510 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017511sed 's/^/| /' conftest.$ac_ext >&5
17512
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017513 ac_cv_type_off_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017514fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017515
Alexandre Julliard875927f2004-01-02 01:55:29 +000017516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017517fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017518{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17519echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017520if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017521
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017522cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017523#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017524_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017525
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017526
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017527fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017528{ echo "$as_me:$LINENO: checking for pid_t" >&5
17529echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017530if test "${ac_cv_type_pid_t+set}" = set; then
17531 echo $ECHO_N "(cached) $ECHO_C" >&6
17532else
17533 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017534/* confdefs.h. */
17535_ACEOF
17536cat confdefs.h >>conftest.$ac_ext
17537cat >>conftest.$ac_ext <<_ACEOF
17538/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017539$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017540typedef pid_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017541int
17542main ()
17543{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017544if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017545 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017546if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017547 return 0;
17548 ;
17549 return 0;
17550}
17551_ACEOF
17552rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017554 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017555 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017556 grep -v '^ *+' conftest.er1 >conftest.err
17557 rm -f conftest.er1
17558 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017560 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; } &&
17567 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017569 (eval $ac_try) 2>&5
17570 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017572 (exit $ac_status); }; }; then
17573 ac_cv_type_pid_t=yes
17574else
17575 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017576sed 's/^/| /' conftest.$ac_ext >&5
17577
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017578 ac_cv_type_pid_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017579fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017580
Alexandre Julliard875927f2004-01-02 01:55:29 +000017581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017582fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017583{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17584echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017585if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017586
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017587cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017588#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017589_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017590
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017591
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017592fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017593{ echo "$as_me:$LINENO: checking for size_t" >&5
17594echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017595if test "${ac_cv_type_size_t+set}" = set; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17597else
17598 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017599/* confdefs.h. */
17600_ACEOF
17601cat confdefs.h >>conftest.$ac_ext
17602cat >>conftest.$ac_ext <<_ACEOF
17603/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017604$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017605typedef size_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017606int
17607main ()
17608{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017609if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017610 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017611if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017612 return 0;
17613 ;
17614 return 0;
17615}
17616_ACEOF
17617rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017619 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017620 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017621 grep -v '^ *+' conftest.er1 >conftest.err
17622 rm -f conftest.er1
17623 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017625 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; } &&
17632 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017634 (eval $ac_try) 2>&5
17635 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017637 (exit $ac_status); }; }; then
17638 ac_cv_type_size_t=yes
17639else
17640 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017641sed 's/^/| /' conftest.$ac_ext >&5
17642
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017643 ac_cv_type_size_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017644fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017645
Alexandre Julliard875927f2004-01-02 01:55:29 +000017646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017647fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017648{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17649echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017650if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017651
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017652cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017653#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017654_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017655
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017656
17657fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017658{ echo "$as_me:$LINENO: checking for ssize_t" >&5
17659echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017660if test "${ac_cv_type_ssize_t+set}" = set; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17662else
17663 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017664/* confdefs.h. */
17665_ACEOF
17666cat confdefs.h >>conftest.$ac_ext
17667cat >>conftest.$ac_ext <<_ACEOF
17668/* end confdefs.h. */
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017669$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017670typedef ssize_t ac__type_new_;
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017671int
17672main ()
17673{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017674if ((ac__type_new_ *) 0)
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017675 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017676if (sizeof (ac__type_new_))
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017677 return 0;
17678 ;
17679 return 0;
17680}
17681_ACEOF
17682rm -f conftest.$ac_objext
17683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017684 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017685 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017686 grep -v '^ *+' conftest.er1 >conftest.err
17687 rm -f conftest.er1
17688 cat conftest.err >&5
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; } &&
17697 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17700 ac_status=$?
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; }; then
17703 ac_cv_type_ssize_t=yes
17704else
17705 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017706sed 's/^/| /' conftest.$ac_ext >&5
17707
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017708 ac_cv_type_ssize_t=no
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017709fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017710
Alexandre Julliard875927f2004-01-02 01:55:29 +000017711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017712fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017713{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17714echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017715if test $ac_cv_type_ssize_t = yes; then
17716
17717cat >>confdefs.h <<_ACEOF
17718#define HAVE_SSIZE_T 1
17719_ACEOF
17720
17721
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017722fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017723{ echo "$as_me:$LINENO: checking for long long" >&5
17724echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017725if test "${ac_cv_type_long_long+set}" = set; then
17726 echo $ECHO_N "(cached) $ECHO_C" >&6
17727else
17728 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017729/* confdefs.h. */
17730_ACEOF
17731cat confdefs.h >>conftest.$ac_ext
17732cat >>conftest.$ac_ext <<_ACEOF
17733/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017734$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017735typedef long long ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017736int
17737main ()
17738{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017739if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017740 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017741if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017742 return 0;
17743 ;
17744 return 0;
17745}
17746_ACEOF
17747rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017749 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017750 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017751 grep -v '^ *+' conftest.er1 >conftest.err
17752 rm -f conftest.er1
17753 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017755 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017764 (eval $ac_try) 2>&5
17765 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017767 (exit $ac_status); }; }; then
17768 ac_cv_type_long_long=yes
17769else
17770 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017771sed 's/^/| /' conftest.$ac_ext >&5
17772
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017773 ac_cv_type_long_long=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017774fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017775
Alexandre Julliard875927f2004-01-02 01:55:29 +000017776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017777fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017778{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17779echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017780if test $ac_cv_type_long_long = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017781
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017782cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017783#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017784_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000017785
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017786
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017787fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017788{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17789echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000017790if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17792else
17793 cat >conftest.$ac_ext <<_ACEOF
17794/* confdefs.h. */
17795_ACEOF
17796cat confdefs.h >>conftest.$ac_ext
17797cat >>conftest.$ac_ext <<_ACEOF
17798/* end confdefs.h. */
17799$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017800typedef fsblkcnt_t ac__type_new_;
Alexandre Julliard13af4892004-03-05 21:03:46 +000017801int
17802main ()
17803{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017804if ((ac__type_new_ *) 0)
Alexandre Julliard13af4892004-03-05 21:03:46 +000017805 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017806if (sizeof (ac__type_new_))
Alexandre Julliard13af4892004-03-05 21:03:46 +000017807 return 0;
17808 ;
17809 return 0;
17810}
17811_ACEOF
17812rm -f conftest.$ac_objext
17813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17814 (eval $ac_compile) 2>conftest.er1
17815 ac_status=$?
17816 grep -v '^ *+' conftest.er1 >conftest.err
17817 rm -f conftest.er1
17818 cat conftest.err >&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } &&
17821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17824 ac_status=$?
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; } &&
17827 { ac_try='test -s conftest.$ac_objext'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; }; then
17833 ac_cv_type_fsblkcnt_t=yes
17834else
17835 echo "$as_me: failed program was:" >&5
17836sed 's/^/| /' conftest.$ac_ext >&5
17837
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017838 ac_cv_type_fsblkcnt_t=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000017839fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017840
Alexandre Julliard13af4892004-03-05 21:03:46 +000017841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17842fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017843{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17844echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000017845if test $ac_cv_type_fsblkcnt_t = yes; then
17846
17847cat >>confdefs.h <<_ACEOF
17848#define HAVE_FSBLKCNT_T 1
17849_ACEOF
17850
17851
17852fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017853{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17854echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000017855if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17856 echo $ECHO_N "(cached) $ECHO_C" >&6
17857else
17858 cat >conftest.$ac_ext <<_ACEOF
17859/* confdefs.h. */
17860_ACEOF
17861cat confdefs.h >>conftest.$ac_ext
17862cat >>conftest.$ac_ext <<_ACEOF
17863/* end confdefs.h. */
17864$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017865typedef fsfilcnt_t ac__type_new_;
Alexandre Julliard13af4892004-03-05 21:03:46 +000017866int
17867main ()
17868{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017869if ((ac__type_new_ *) 0)
Alexandre Julliard13af4892004-03-05 21:03:46 +000017870 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017871if (sizeof (ac__type_new_))
Alexandre Julliard13af4892004-03-05 21:03:46 +000017872 return 0;
17873 ;
17874 return 0;
17875}
17876_ACEOF
17877rm -f conftest.$ac_objext
17878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17879 (eval $ac_compile) 2>conftest.er1
17880 ac_status=$?
17881 grep -v '^ *+' conftest.er1 >conftest.err
17882 rm -f conftest.er1
17883 cat conftest.err >&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); } &&
17886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest.$ac_objext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_cv_type_fsfilcnt_t=yes
17899else
17900 echo "$as_me: failed program was:" >&5
17901sed 's/^/| /' conftest.$ac_ext >&5
17902
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017903 ac_cv_type_fsfilcnt_t=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000017904fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017905
Alexandre Julliard13af4892004-03-05 21:03:46 +000017906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17907fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017908{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17909echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000017910if test $ac_cv_type_fsfilcnt_t = yes; then
17911
17912cat >>confdefs.h <<_ACEOF
17913#define HAVE_FSFILCNT_T 1
17914_ACEOF
17915
17916
17917fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017918
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017919{ echo "$as_me:$LINENO: checking for sigset_t" >&5
17920echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000017921if test "${ac_cv_type_sigset_t+set}" = set; then
17922 echo $ECHO_N "(cached) $ECHO_C" >&6
17923else
17924 cat >conftest.$ac_ext <<_ACEOF
17925/* confdefs.h. */
17926_ACEOF
17927cat confdefs.h >>conftest.$ac_ext
17928cat >>conftest.$ac_ext <<_ACEOF
17929/* end confdefs.h. */
17930#include <signal.h>
17931
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017932typedef sigset_t ac__type_new_;
Paul Millar10a6c562004-12-07 17:19:54 +000017933int
17934main ()
17935{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017936if ((ac__type_new_ *) 0)
Paul Millar10a6c562004-12-07 17:19:54 +000017937 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017938if (sizeof (ac__type_new_))
Paul Millar10a6c562004-12-07 17:19:54 +000017939 return 0;
17940 ;
17941 return 0;
17942}
17943_ACEOF
17944rm -f conftest.$ac_objext
17945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17946 (eval $ac_compile) 2>conftest.er1
17947 ac_status=$?
17948 grep -v '^ *+' conftest.er1 >conftest.err
17949 rm -f conftest.er1
17950 cat conftest.err >&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } &&
17953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; } &&
17959 { ac_try='test -s conftest.$ac_objext'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 ac_cv_type_sigset_t=yes
17966else
17967 echo "$as_me: failed program was:" >&5
17968sed 's/^/| /' conftest.$ac_ext >&5
17969
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017970 ac_cv_type_sigset_t=no
Paul Millar10a6c562004-12-07 17:19:54 +000017971fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017972
Paul Millar10a6c562004-12-07 17:19:54 +000017973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17974fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017975{ echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17976echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000017977if test $ac_cv_type_sigset_t = yes; then
17978
17979cat >>confdefs.h <<_ACEOF
17980#define HAVE_SIGSET_T 1
17981_ACEOF
17982
17983
17984fi
17985
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017986{ echo "$as_me:$LINENO: checking for request_sense" >&5
17987echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000017988if test "${ac_cv_type_request_sense+set}" = set; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17990else
17991 cat >conftest.$ac_ext <<_ACEOF
17992/* confdefs.h. */
17993_ACEOF
17994cat confdefs.h >>conftest.$ac_ext
17995cat >>conftest.$ac_ext <<_ACEOF
17996/* end confdefs.h. */
17997#include <linux/cdrom.h>
17998
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017999typedef request_sense ac__type_new_;
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000018000int
18001main ()
18002{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018003if ((ac__type_new_ *) 0)
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000018004 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018005if (sizeof (ac__type_new_))
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000018006 return 0;
18007 ;
18008 return 0;
18009}
18010_ACEOF
18011rm -f conftest.$ac_objext
18012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18013 (eval $ac_compile) 2>conftest.er1
18014 ac_status=$?
18015 grep -v '^ *+' conftest.er1 >conftest.err
18016 rm -f conftest.er1
18017 cat conftest.err >&5
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); } &&
18020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18023 ac_status=$?
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; } &&
18026 { ac_try='test -s conftest.$ac_objext'
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18029 ac_status=$?
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; }; then
18032 ac_cv_type_request_sense=yes
18033else
18034 echo "$as_me: failed program was:" >&5
18035sed 's/^/| /' conftest.$ac_ext >&5
18036
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018037 ac_cv_type_request_sense=no
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000018038fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018039
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000018040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18041fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018042{ echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
18043echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000018044if test $ac_cv_type_request_sense = yes; then
18045
18046cat >>confdefs.h <<_ACEOF
18047#define HAVE_REQUEST_SENSE 1
18048_ACEOF
18049
18050
18051fi
18052
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018053
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018054{ echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
18055echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
Daniel Remenake491e8f2005-07-29 14:18:58 +000018056if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
18057 echo $ECHO_N "(cached) $ECHO_C" >&6
18058else
18059 cat >conftest.$ac_ext <<_ACEOF
18060/* confdefs.h. */
18061_ACEOF
18062cat confdefs.h >>conftest.$ac_ext
18063cat >>conftest.$ac_ext <<_ACEOF
18064/* end confdefs.h. */
18065#ifdef HAVE_LINUX_INPUT_H
18066#include <linux/input.h>
18067#endif
18068
18069int
18070main ()
18071{
18072static struct ff_effect ac_aggr;
18073if (ac_aggr.direction)
18074return 0;
18075 ;
18076 return 0;
18077}
18078_ACEOF
18079rm -f conftest.$ac_objext
18080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081 (eval $ac_compile) 2>conftest.er1
18082 ac_status=$?
18083 grep -v '^ *+' conftest.er1 >conftest.err
18084 rm -f conftest.er1
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
18088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18090 (eval $ac_try) 2>&5
18091 ac_status=$?
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; } &&
18094 { ac_try='test -s conftest.$ac_objext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ac_cv_member_struct_ff_effect_direction=yes
18101else
18102 echo "$as_me: failed program was:" >&5
18103sed 's/^/| /' conftest.$ac_ext >&5
18104
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018105 cat >conftest.$ac_ext <<_ACEOF
Daniel Remenake491e8f2005-07-29 14:18:58 +000018106/* confdefs.h. */
18107_ACEOF
18108cat confdefs.h >>conftest.$ac_ext
18109cat >>conftest.$ac_ext <<_ACEOF
18110/* end confdefs.h. */
18111#ifdef HAVE_LINUX_INPUT_H
18112#include <linux/input.h>
18113#endif
18114
18115int
18116main ()
18117{
18118static struct ff_effect ac_aggr;
18119if (sizeof ac_aggr.direction)
18120return 0;
18121 ;
18122 return 0;
18123}
18124_ACEOF
18125rm -f conftest.$ac_objext
18126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18127 (eval $ac_compile) 2>conftest.er1
18128 ac_status=$?
18129 grep -v '^ *+' conftest.er1 >conftest.err
18130 rm -f conftest.er1
18131 cat conftest.err >&5
18132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133 (exit $ac_status); } &&
18134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18137 ac_status=$?
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; } &&
18140 { ac_try='test -s conftest.$ac_objext'
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18143 ac_status=$?
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; }; then
18146 ac_cv_member_struct_ff_effect_direction=yes
18147else
18148 echo "$as_me: failed program was:" >&5
18149sed 's/^/| /' conftest.$ac_ext >&5
18150
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018151 ac_cv_member_struct_ff_effect_direction=no
Daniel Remenake491e8f2005-07-29 14:18:58 +000018152fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018153
Daniel Remenake491e8f2005-07-29 14:18:58 +000018154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18155fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018156
Daniel Remenake491e8f2005-07-29 14:18:58 +000018157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18158fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018159{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
18160echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
Daniel Remenake491e8f2005-07-29 14:18:58 +000018161if test $ac_cv_member_struct_ff_effect_direction = yes; then
18162
18163cat >>confdefs.h <<_ACEOF
18164#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
18165_ACEOF
18166
18167
18168fi
18169
18170
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018171{ echo "$as_me:$LINENO: checking for sigaddset" >&5
18172echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000018173if test "${wine_cv_have_sigaddset+set}" = set; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18175else
18176 cat >conftest.$ac_ext <<_ACEOF
18177/* confdefs.h. */
18178_ACEOF
18179cat confdefs.h >>conftest.$ac_ext
18180cat >>conftest.$ac_ext <<_ACEOF
18181/* end confdefs.h. */
18182#include <signal.h>
18183int
18184main ()
18185{
18186sigset_t set; sigaddset(&set,SIGTERM);
18187 ;
18188 return 0;
18189}
18190_ACEOF
18191rm -f conftest.$ac_objext conftest$ac_exeext
18192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18193 (eval $ac_link) 2>conftest.er1
18194 ac_status=$?
18195 grep -v '^ *+' conftest.er1 >conftest.err
18196 rm -f conftest.er1
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } &&
18200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202 (eval $ac_try) 2>&5
18203 ac_status=$?
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; } &&
18206 { ac_try='test -s conftest$ac_exeext'
18207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18208 (eval $ac_try) 2>&5
18209 ac_status=$?
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; }; then
18212 wine_cv_have_sigaddset=yes
18213else
18214 echo "$as_me: failed program was:" >&5
18215sed 's/^/| /' conftest.$ac_ext >&5
18216
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018217 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000018218fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018219
Paul Millar10a6c562004-12-07 17:19:54 +000018220rm -f conftest.err conftest.$ac_objext \
18221 conftest$ac_exeext conftest.$ac_ext
18222fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018223{ echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
18224echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000018225if test "$wine_cv_have_sigaddset" = "yes"
18226then
18227
18228cat >>confdefs.h <<\_ACEOF
18229#define HAVE_SIGADDSET 1
18230_ACEOF
18231
18232fi
18233
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018234
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018235{ echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
18236echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018237if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000018239else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018240 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018241/* confdefs.h. */
18242_ACEOF
18243cat confdefs.h >>conftest.$ac_ext
18244cat >>conftest.$ac_ext <<_ACEOF
18245/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000018246
18247#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018248
18249int
18250main ()
18251{
Rein Klazesff7a61f2000-09-24 19:41:57 +000018252
18253 char *name=NULL;
18254 struct hostent he;
18255 struct hostent *result;
18256 char *buf=NULL;
18257 int bufsize=0;
18258 int res,errnr;
18259 char *addr=NULL;
18260 int addrlen=0;
18261 int addrtype=0;
18262 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
18263 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018264
18265 ;
18266 return 0;
18267}
18268_ACEOF
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000018269rm -f conftest.$ac_objext conftest$ac_exeext
18270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18271 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018272 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018273 grep -v '^ *+' conftest.er1 >conftest.err
18274 rm -f conftest.er1
18275 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018277 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000018284 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018286 (eval $ac_try) 2>&5
18287 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018289 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000018290 wine_cv_linux_gethostbyname_r_6=yes
18291else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018292 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018293sed 's/^/| /' conftest.$ac_ext >&5
18294
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018295 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000018296
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018297fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018298
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000018299rm -f conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018301
18302fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018303{ echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
18304echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000018305 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
18306 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018307
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018308cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000018309#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018310_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000018311
18312 fi
18313
Marcus Meissner028e9a11999-08-04 15:07:56 +000018314if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018315then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018316 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
18317echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018318if test "${wine_cv_linux_joystick_22_api+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018320else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018321 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018322/* confdefs.h. */
18323_ACEOF
18324cat confdefs.h >>conftest.$ac_ext
18325cat >>conftest.$ac_ext <<_ACEOF
18326/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018327
Marcus Meissner028e9a11999-08-04 15:07:56 +000018328 #include <sys/ioctl.h>
18329 #include <linux/joystick.h>
18330
18331 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000018332 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
18333 #error "no 2.2 header"
18334 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018335
18336int
18337main ()
18338{
Marcus Meissner028e9a11999-08-04 15:07:56 +000018339/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018340 ;
18341 return 0;
18342}
18343_ACEOF
18344rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018346 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018347 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018348 grep -v '^ *+' conftest.er1 >conftest.err
18349 rm -f conftest.er1
18350 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018352 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355 (eval $ac_try) 2>&5
18356 ac_status=$?
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; } &&
18359 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018361 (eval $ac_try) 2>&5
18362 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018364 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000018365 wine_cv_linux_joystick_22_api=yes
18366else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018367 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018368sed 's/^/| /' conftest.$ac_ext >&5
18369
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018370 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000018371fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018372
Alexandre Julliard875927f2004-01-02 01:55:29 +000018373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000018374
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018375fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018376{ echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
18377echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000018378 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000018379 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018380
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018381cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000018382#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018383_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000018384
18385 fi
18386fi
18387
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018388
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018389{ echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18390echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018391if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018392 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018393else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018394 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018395/* confdefs.h. */
18396_ACEOF
18397cat confdefs.h >>conftest.$ac_ext
18398cat >>conftest.$ac_ext <<_ACEOF
18399/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018400#include <sys/types.h>
18401#ifdef HAVE_SYS_PARAM_H
18402# include <sys/param.h>
18403#endif
Robert Millan55b74482006-02-06 21:53:27 +010018404#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018405# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010018406#endif
18407#ifdef HAVE_SYS_VFS_H
18408# include <sys/vfs.h>
18409#endif
18410#ifdef HAVE_SYS_STATFS_H
18411# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018412#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018413
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018414int
18415main ()
18416{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018417static struct statfs ac_aggr;
18418if (ac_aggr.f_bfree)
18419return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018420 ;
18421 return 0;
18422}
18423_ACEOF
18424rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018426 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018427 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018428 grep -v '^ *+' conftest.er1 >conftest.err
18429 rm -f conftest.er1
18430 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018432 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18436 ac_status=$?
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; } &&
18439 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018441 (eval $ac_try) 2>&5
18442 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018444 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018445 ac_cv_member_struct_statfs_f_bfree=yes
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018446else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018447 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018448sed 's/^/| /' conftest.$ac_ext >&5
18449
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018450 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018451/* confdefs.h. */
18452_ACEOF
18453cat confdefs.h >>conftest.$ac_ext
18454cat >>conftest.$ac_ext <<_ACEOF
18455/* end confdefs.h. */
18456#include <sys/types.h>
18457#ifdef HAVE_SYS_PARAM_H
18458# include <sys/param.h>
18459#endif
Robert Millan55b74482006-02-06 21:53:27 +010018460#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018461# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010018462#endif
18463#ifdef HAVE_SYS_VFS_H
18464# include <sys/vfs.h>
18465#endif
18466#ifdef HAVE_SYS_STATFS_H
18467# include <sys/statfs.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018468#endif
18469
18470int
18471main ()
18472{
18473static struct statfs ac_aggr;
18474if (sizeof ac_aggr.f_bfree)
18475return 0;
18476 ;
18477 return 0;
18478}
18479_ACEOF
18480rm -f conftest.$ac_objext
18481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018482 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018483 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018484 grep -v '^ *+' conftest.er1 >conftest.err
18485 rm -f conftest.er1
18486 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491 (eval $ac_try) 2>&5
18492 ac_status=$?
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; } &&
18495 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497 (eval $ac_try) 2>&5
18498 ac_status=$?
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; }; then
18501 ac_cv_member_struct_statfs_f_bfree=yes
18502else
18503 echo "$as_me: failed program was:" >&5
18504sed 's/^/| /' conftest.$ac_ext >&5
18505
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018506 ac_cv_member_struct_statfs_f_bfree=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018507fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018508
Alexandre Julliard875927f2004-01-02 01:55:29 +000018509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018510fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018511
Alexandre Julliard875927f2004-01-02 01:55:29 +000018512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018513fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018514{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18515echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018516if test $ac_cv_member_struct_statfs_f_bfree = yes; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018517
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018518cat >>confdefs.h <<_ACEOF
18519#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018520_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018521
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018522
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018523fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018524{ echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18525echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018526if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018527 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000018528else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018529 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018530/* confdefs.h. */
18531_ACEOF
18532cat confdefs.h >>conftest.$ac_ext
18533cat >>conftest.$ac_ext <<_ACEOF
18534/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018535#include <sys/types.h>
18536#ifdef HAVE_SYS_PARAM_H
18537# include <sys/param.h>
18538#endif
Robert Millan55b74482006-02-06 21:53:27 +010018539#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018540# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010018541#endif
18542#ifdef HAVE_SYS_VFS_H
18543# include <sys/vfs.h>
18544#endif
18545#ifdef HAVE_SYS_STATFS_H
18546# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018547#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018548
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018549int
18550main ()
18551{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018552static struct statfs ac_aggr;
18553if (ac_aggr.f_bavail)
18554return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018555 ;
18556 return 0;
18557}
18558_ACEOF
18559rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018561 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018562 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018563 grep -v '^ *+' conftest.er1 >conftest.err
18564 rm -f conftest.er1
18565 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018567 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18570 (eval $ac_try) 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); }; } &&
18574 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018576 (eval $ac_try) 2>&5
18577 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018579 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018580 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000018581else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018582 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018583sed 's/^/| /' conftest.$ac_ext >&5
18584
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018585 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018586/* confdefs.h. */
18587_ACEOF
18588cat confdefs.h >>conftest.$ac_ext
18589cat >>conftest.$ac_ext <<_ACEOF
18590/* end confdefs.h. */
Alexandre Julliard829fe321998-07-26 14:27:39 +000018591#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018592#ifdef HAVE_SYS_PARAM_H
18593# include <sys/param.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000018594#endif
Robert Millan55b74482006-02-06 21:53:27 +010018595#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018596# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010018597#endif
18598#ifdef HAVE_SYS_VFS_H
18599# include <sys/vfs.h>
18600#endif
18601#ifdef HAVE_SYS_STATFS_H
18602# include <sys/statfs.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018603#endif
18604
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018605int
18606main ()
18607{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018608static struct statfs ac_aggr;
18609if (sizeof ac_aggr.f_bavail)
18610return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018611 ;
18612 return 0;
18613}
18614_ACEOF
18615rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018617 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018618 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018623 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; } &&
18630 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018632 (eval $ac_try) 2>&5
18633 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018635 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018636 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliard829fe321998-07-26 14:27:39 +000018637else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018638 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018639sed 's/^/| /' conftest.$ac_ext >&5
18640
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018641 ac_cv_member_struct_statfs_f_bavail=no
Alexandre Julliard829fe321998-07-26 14:27:39 +000018642fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018643
Alexandre Julliard875927f2004-01-02 01:55:29 +000018644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000018645fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018646
Alexandre Julliard875927f2004-01-02 01:55:29 +000018647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000018648fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018649{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18650echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018651if test $ac_cv_member_struct_statfs_f_bavail = yes; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000018652
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018653cat >>confdefs.h <<_ACEOF
18654#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018655_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000018656
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018657
Patrik Stridvall09da9662001-07-08 22:30:50 +000018658fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018659{ echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18660echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000018661if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18662 echo $ECHO_N "(cached) $ECHO_C" >&6
18663else
18664 cat >conftest.$ac_ext <<_ACEOF
18665/* confdefs.h. */
18666_ACEOF
18667cat confdefs.h >>conftest.$ac_ext
18668cat >>conftest.$ac_ext <<_ACEOF
18669/* end confdefs.h. */
18670#include <sys/types.h>
18671#ifdef HAVE_SYS_PARAM_H
18672# include <sys/param.h>
18673#endif
Robert Millan55b74482006-02-06 21:53:27 +010018674#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000018675# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010018676#endif
18677#ifdef HAVE_SYS_VFS_H
18678# include <sys/vfs.h>
18679#endif
18680#ifdef HAVE_SYS_STATFS_H
18681# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000018682#endif
18683
18684int
18685main ()
18686{
18687static struct statfs ac_aggr;
18688if (ac_aggr.f_frsize)
18689return 0;
18690 ;
18691 return 0;
18692}
18693_ACEOF
18694rm -f conftest.$ac_objext
18695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18696 (eval $ac_compile) 2>conftest.er1
18697 ac_status=$?
18698 grep -v '^ *+' conftest.er1 >conftest.err
18699 rm -f conftest.er1
18700 cat conftest.err >&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } &&
18703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18706 ac_status=$?
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; } &&
18709 { ac_try='test -s conftest.$ac_objext'
18710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711 (eval $ac_try) 2>&5
18712 ac_status=$?
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); }; }; then
18715 ac_cv_member_struct_statfs_f_frsize=yes
18716else
18717 echo "$as_me: failed program was:" >&5
18718sed 's/^/| /' conftest.$ac_ext >&5
18719
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018720 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000018721/* confdefs.h. */
18722_ACEOF
18723cat confdefs.h >>conftest.$ac_ext
18724cat >>conftest.$ac_ext <<_ACEOF
18725/* end confdefs.h. */
18726#include <sys/types.h>
18727#ifdef HAVE_SYS_PARAM_H
18728# include <sys/param.h>
18729#endif
Robert Millan55b74482006-02-06 21:53:27 +010018730#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000018731# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010018732#endif
18733#ifdef HAVE_SYS_VFS_H
18734# include <sys/vfs.h>
18735#endif
18736#ifdef HAVE_SYS_STATFS_H
18737# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000018738#endif
18739
18740int
18741main ()
18742{
18743static struct statfs ac_aggr;
18744if (sizeof ac_aggr.f_frsize)
18745return 0;
18746 ;
18747 return 0;
18748}
18749_ACEOF
18750rm -f conftest.$ac_objext
18751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18752 (eval $ac_compile) 2>conftest.er1
18753 ac_status=$?
18754 grep -v '^ *+' conftest.er1 >conftest.err
18755 rm -f conftest.er1
18756 cat conftest.err >&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
18759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try='test -s conftest.$ac_objext'
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 ac_cv_member_struct_statfs_f_frsize=yes
18772else
18773 echo "$as_me: failed program was:" >&5
18774sed 's/^/| /' conftest.$ac_ext >&5
18775
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018776 ac_cv_member_struct_statfs_f_frsize=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000018777fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018778
Alexandre Julliard13af4892004-03-05 21:03:46 +000018779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18780fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018781
Alexandre Julliard13af4892004-03-05 21:03:46 +000018782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18783fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018784{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18785echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000018786if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18787
18788cat >>confdefs.h <<_ACEOF
18789#define HAVE_STRUCT_STATFS_F_FRSIZE 1
18790_ACEOF
18791
18792
18793fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018794{ echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18795echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000018796if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18798else
18799 cat >conftest.$ac_ext <<_ACEOF
18800/* confdefs.h. */
18801_ACEOF
18802cat confdefs.h >>conftest.$ac_ext
18803cat >>conftest.$ac_ext <<_ACEOF
18804/* end confdefs.h. */
18805#include <sys/types.h>
18806#ifdef HAVE_SYS_PARAM_H
18807# include <sys/param.h>
18808#endif
Robert Millan55b74482006-02-06 21:53:27 +010018809#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000018810# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010018811#endif
18812#ifdef HAVE_SYS_VFS_H
18813# include <sys/vfs.h>
18814#endif
18815#ifdef HAVE_SYS_STATFS_H
18816# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000018817#endif
18818
18819int
18820main ()
18821{
18822static struct statfs ac_aggr;
18823if (ac_aggr.f_ffree)
18824return 0;
18825 ;
18826 return 0;
18827}
18828_ACEOF
18829rm -f conftest.$ac_objext
18830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18831 (eval $ac_compile) 2>conftest.er1
18832 ac_status=$?
18833 grep -v '^ *+' conftest.er1 >conftest.err
18834 rm -f conftest.er1
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } &&
18838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840 (eval $ac_try) 2>&5
18841 ac_status=$?
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; } &&
18844 { ac_try='test -s conftest.$ac_objext'
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; }; then
18850 ac_cv_member_struct_statfs_f_ffree=yes
18851else
18852 echo "$as_me: failed program was:" >&5
18853sed 's/^/| /' conftest.$ac_ext >&5
18854
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018855 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000018856/* confdefs.h. */
18857_ACEOF
18858cat confdefs.h >>conftest.$ac_ext
18859cat >>conftest.$ac_ext <<_ACEOF
18860/* end confdefs.h. */
18861#include <sys/types.h>
18862#ifdef HAVE_SYS_PARAM_H
18863# include <sys/param.h>
18864#endif
Robert Millan55b74482006-02-06 21:53:27 +010018865#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000018866# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010018867#endif
18868#ifdef HAVE_SYS_VFS_H
18869# include <sys/vfs.h>
18870#endif
18871#ifdef HAVE_SYS_STATFS_H
18872# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000018873#endif
18874
18875int
18876main ()
18877{
18878static struct statfs ac_aggr;
18879if (sizeof ac_aggr.f_ffree)
18880return 0;
18881 ;
18882 return 0;
18883}
18884_ACEOF
18885rm -f conftest.$ac_objext
18886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18887 (eval $ac_compile) 2>conftest.er1
18888 ac_status=$?
18889 grep -v '^ *+' conftest.er1 >conftest.err
18890 rm -f conftest.er1
18891 cat conftest.err >&5
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } &&
18894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18897 ac_status=$?
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; } &&
18900 { ac_try='test -s conftest.$ac_objext'
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18903 ac_status=$?
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; }; then
18906 ac_cv_member_struct_statfs_f_ffree=yes
18907else
18908 echo "$as_me: failed program was:" >&5
18909sed 's/^/| /' conftest.$ac_ext >&5
18910
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018911 ac_cv_member_struct_statfs_f_ffree=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000018912fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018913
Alexandre Julliard13af4892004-03-05 21:03:46 +000018914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18915fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018916
Alexandre Julliard13af4892004-03-05 21:03:46 +000018917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18918fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018919{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18920echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000018921if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18922
18923cat >>confdefs.h <<_ACEOF
18924#define HAVE_STRUCT_STATFS_F_FFREE 1
18925_ACEOF
18926
18927
18928fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018929{ echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18930echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000018931if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18933else
18934 cat >conftest.$ac_ext <<_ACEOF
18935/* confdefs.h. */
18936_ACEOF
18937cat confdefs.h >>conftest.$ac_ext
18938cat >>conftest.$ac_ext <<_ACEOF
18939/* end confdefs.h. */
18940#include <sys/types.h>
18941#ifdef HAVE_SYS_PARAM_H
18942# include <sys/param.h>
18943#endif
Robert Millan55b74482006-02-06 21:53:27 +010018944#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000018945# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010018946#endif
18947#ifdef HAVE_SYS_VFS_H
18948# include <sys/vfs.h>
18949#endif
18950#ifdef HAVE_SYS_STATFS_H
18951# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000018952#endif
18953
18954int
18955main ()
18956{
18957static struct statfs ac_aggr;
18958if (ac_aggr.f_favail)
18959return 0;
18960 ;
18961 return 0;
18962}
18963_ACEOF
18964rm -f conftest.$ac_objext
18965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18966 (eval $ac_compile) 2>conftest.er1
18967 ac_status=$?
18968 grep -v '^ *+' conftest.er1 >conftest.err
18969 rm -f conftest.er1
18970 cat conftest.err >&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } &&
18973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18976 ac_status=$?
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; } &&
18979 { ac_try='test -s conftest.$ac_objext'
18980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18981 (eval $ac_try) 2>&5
18982 ac_status=$?
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; }; then
18985 ac_cv_member_struct_statfs_f_favail=yes
18986else
18987 echo "$as_me: failed program was:" >&5
18988sed 's/^/| /' conftest.$ac_ext >&5
18989
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018990 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000018991/* confdefs.h. */
18992_ACEOF
18993cat confdefs.h >>conftest.$ac_ext
18994cat >>conftest.$ac_ext <<_ACEOF
18995/* end confdefs.h. */
18996#include <sys/types.h>
18997#ifdef HAVE_SYS_PARAM_H
18998# include <sys/param.h>
18999#endif
Robert Millan55b74482006-02-06 21:53:27 +010019000#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000019001# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010019002#endif
19003#ifdef HAVE_SYS_VFS_H
19004# include <sys/vfs.h>
19005#endif
19006#ifdef HAVE_SYS_STATFS_H
19007# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000019008#endif
19009
19010int
19011main ()
19012{
19013static struct statfs ac_aggr;
19014if (sizeof ac_aggr.f_favail)
19015return 0;
19016 ;
19017 return 0;
19018}
19019_ACEOF
19020rm -f conftest.$ac_objext
19021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19022 (eval $ac_compile) 2>conftest.er1
19023 ac_status=$?
19024 grep -v '^ *+' conftest.er1 >conftest.err
19025 rm -f conftest.er1
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } &&
19029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try='test -s conftest.$ac_objext'
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19038 ac_status=$?
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 ac_cv_member_struct_statfs_f_favail=yes
19042else
19043 echo "$as_me: failed program was:" >&5
19044sed 's/^/| /' conftest.$ac_ext >&5
19045
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019046 ac_cv_member_struct_statfs_f_favail=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000019047fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019048
Alexandre Julliard13af4892004-03-05 21:03:46 +000019049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19050fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019051
Alexandre Julliard13af4892004-03-05 21:03:46 +000019052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19053fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019054{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
19055echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000019056if test $ac_cv_member_struct_statfs_f_favail = yes; then
19057
19058cat >>confdefs.h <<_ACEOF
19059#define HAVE_STRUCT_STATFS_F_FAVAIL 1
19060_ACEOF
19061
19062
19063fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019064{ echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
19065echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
Alexandre Julliardb859a682004-03-07 03:16:43 +000019066if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19068else
19069 cat >conftest.$ac_ext <<_ACEOF
19070/* confdefs.h. */
19071_ACEOF
19072cat confdefs.h >>conftest.$ac_ext
19073cat >>conftest.$ac_ext <<_ACEOF
19074/* end confdefs.h. */
19075#include <sys/types.h>
19076#ifdef HAVE_SYS_PARAM_H
19077# include <sys/param.h>
19078#endif
Robert Millan55b74482006-02-06 21:53:27 +010019079#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000019080# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010019081#endif
19082#ifdef HAVE_SYS_VFS_H
19083# include <sys/vfs.h>
19084#endif
19085#ifdef HAVE_SYS_STATFS_H
19086# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000019087#endif
19088
19089int
19090main ()
19091{
19092static struct statfs ac_aggr;
19093if (ac_aggr.f_namelen)
19094return 0;
19095 ;
19096 return 0;
19097}
19098_ACEOF
19099rm -f conftest.$ac_objext
19100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19101 (eval $ac_compile) 2>conftest.er1
19102 ac_status=$?
19103 grep -v '^ *+' conftest.er1 >conftest.err
19104 rm -f conftest.er1
19105 cat conftest.err >&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } &&
19108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; } &&
19114 { ac_try='test -s conftest.$ac_objext'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 ac_cv_member_struct_statfs_f_namelen=yes
19121else
19122 echo "$as_me: failed program was:" >&5
19123sed 's/^/| /' conftest.$ac_ext >&5
19124
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019125 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb859a682004-03-07 03:16:43 +000019126/* confdefs.h. */
19127_ACEOF
19128cat confdefs.h >>conftest.$ac_ext
19129cat >>conftest.$ac_ext <<_ACEOF
19130/* end confdefs.h. */
19131#include <sys/types.h>
19132#ifdef HAVE_SYS_PARAM_H
19133# include <sys/param.h>
19134#endif
Robert Millan55b74482006-02-06 21:53:27 +010019135#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000019136# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010019137#endif
19138#ifdef HAVE_SYS_VFS_H
19139# include <sys/vfs.h>
19140#endif
19141#ifdef HAVE_SYS_STATFS_H
19142# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000019143#endif
19144
19145int
19146main ()
19147{
19148static struct statfs ac_aggr;
19149if (sizeof ac_aggr.f_namelen)
19150return 0;
19151 ;
19152 return 0;
19153}
19154_ACEOF
19155rm -f conftest.$ac_objext
19156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19157 (eval $ac_compile) 2>conftest.er1
19158 ac_status=$?
19159 grep -v '^ *+' conftest.er1 >conftest.err
19160 rm -f conftest.er1
19161 cat conftest.err >&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } &&
19164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166 (eval $ac_try) 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; } &&
19170 { ac_try='test -s conftest.$ac_objext'
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; }; then
19176 ac_cv_member_struct_statfs_f_namelen=yes
19177else
19178 echo "$as_me: failed program was:" >&5
19179sed 's/^/| /' conftest.$ac_ext >&5
19180
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019181 ac_cv_member_struct_statfs_f_namelen=no
Alexandre Julliardb859a682004-03-07 03:16:43 +000019182fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019183
Alexandre Julliardb859a682004-03-07 03:16:43 +000019184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19185fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019186
Alexandre Julliardb859a682004-03-07 03:16:43 +000019187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19188fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019189{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
19190echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
Alexandre Julliardb859a682004-03-07 03:16:43 +000019191if test $ac_cv_member_struct_statfs_f_namelen = yes; then
19192
19193cat >>confdefs.h <<_ACEOF
19194#define HAVE_STRUCT_STATFS_F_NAMELEN 1
19195_ACEOF
19196
19197
19198fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000019199
19200
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019201{ echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
19202echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000019203if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19205else
19206 cat >conftest.$ac_ext <<_ACEOF
19207/* confdefs.h. */
19208_ACEOF
19209cat confdefs.h >>conftest.$ac_ext
19210cat >>conftest.$ac_ext <<_ACEOF
19211/* end confdefs.h. */
19212#ifdef HAVE_SYS_STATVFS_H
19213#include <sys/statvfs.h>
19214#endif
19215
19216int
19217main ()
19218{
19219static struct statvfs ac_aggr;
19220if (ac_aggr.f_blocks)
19221return 0;
19222 ;
19223 return 0;
19224}
19225_ACEOF
19226rm -f conftest.$ac_objext
19227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19228 (eval $ac_compile) 2>conftest.er1
19229 ac_status=$?
19230 grep -v '^ *+' conftest.er1 >conftest.err
19231 rm -f conftest.er1
19232 cat conftest.err >&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } &&
19235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19237 (eval $ac_try) 2>&5
19238 ac_status=$?
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); }; } &&
19241 { ac_try='test -s conftest.$ac_objext'
19242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243 (eval $ac_try) 2>&5
19244 ac_status=$?
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; }; then
19247 ac_cv_member_struct_statvfs_f_blocks=yes
19248else
19249 echo "$as_me: failed program was:" >&5
19250sed 's/^/| /' conftest.$ac_ext >&5
19251
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019252 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000019253/* confdefs.h. */
19254_ACEOF
19255cat confdefs.h >>conftest.$ac_ext
19256cat >>conftest.$ac_ext <<_ACEOF
19257/* end confdefs.h. */
19258#ifdef HAVE_SYS_STATVFS_H
19259#include <sys/statvfs.h>
19260#endif
19261
19262int
19263main ()
19264{
19265static struct statvfs ac_aggr;
19266if (sizeof ac_aggr.f_blocks)
19267return 0;
19268 ;
19269 return 0;
19270}
19271_ACEOF
19272rm -f conftest.$ac_objext
19273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19274 (eval $ac_compile) 2>conftest.er1
19275 ac_status=$?
19276 grep -v '^ *+' conftest.er1 >conftest.err
19277 rm -f conftest.er1
19278 cat conftest.err >&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); } &&
19281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19284 ac_status=$?
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; } &&
19287 { ac_try='test -s conftest.$ac_objext'
19288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289 (eval $ac_try) 2>&5
19290 ac_status=$?
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); }; }; then
19293 ac_cv_member_struct_statvfs_f_blocks=yes
19294else
19295 echo "$as_me: failed program was:" >&5
19296sed 's/^/| /' conftest.$ac_ext >&5
19297
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019298 ac_cv_member_struct_statvfs_f_blocks=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000019299fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019300
Alexandre Julliard13af4892004-03-05 21:03:46 +000019301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19302fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019303
Alexandre Julliard13af4892004-03-05 21:03:46 +000019304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19305fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019306{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
19307echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000019308if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
19309
19310cat >>confdefs.h <<_ACEOF
19311#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
19312_ACEOF
19313
19314
19315fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000019316
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019317
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019318{ echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
19319echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019320if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019321 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000019322else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019323 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019324/* confdefs.h. */
19325_ACEOF
19326cat confdefs.h >>conftest.$ac_ext
19327cat >>conftest.$ac_ext <<_ACEOF
19328/* end confdefs.h. */
Patrik Stridvall09da9662001-07-08 22:30:50 +000019329#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000019330#ifdef HAVE_SYS_SOCKET_H
19331# include <sys/socket.h>
19332#endif
19333#ifdef HAVE_SYS_UN_H
19334# include <sys/un.h>
19335#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019336
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019337int
19338main ()
19339{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019340static struct msghdr ac_aggr;
19341if (ac_aggr.msg_accrights)
19342return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019343 ;
19344 return 0;
19345}
19346_ACEOF
19347rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019349 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019350 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019351 grep -v '^ *+' conftest.er1 >conftest.err
19352 rm -f conftest.er1
19353 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019355 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019364 (eval $ac_try) 2>&5
19365 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019367 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019368 ac_cv_member_struct_msghdr_msg_accrights=yes
Juergen Lock2d33ab92000-02-13 16:03:29 +000019369else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019370 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019371sed 's/^/| /' conftest.$ac_ext >&5
19372
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019373 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019374/* confdefs.h. */
19375_ACEOF
19376cat confdefs.h >>conftest.$ac_ext
19377cat >>conftest.$ac_ext <<_ACEOF
19378/* end confdefs.h. */
19379#include <sys/types.h>
19380#ifdef HAVE_SYS_SOCKET_H
19381# include <sys/socket.h>
19382#endif
19383#ifdef HAVE_SYS_UN_H
19384# include <sys/un.h>
19385#endif
19386
19387int
19388main ()
19389{
19390static struct msghdr ac_aggr;
19391if (sizeof ac_aggr.msg_accrights)
19392return 0;
19393 ;
19394 return 0;
19395}
19396_ACEOF
19397rm -f conftest.$ac_objext
19398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019399 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019400 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019401 grep -v '^ *+' conftest.er1 >conftest.err
19402 rm -f conftest.er1
19403 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; } &&
19412 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19415 ac_status=$?
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19418 ac_cv_member_struct_msghdr_msg_accrights=yes
19419else
19420 echo "$as_me: failed program was:" >&5
19421sed 's/^/| /' conftest.$ac_ext >&5
19422
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019423 ac_cv_member_struct_msghdr_msg_accrights=no
Juergen Lock2d33ab92000-02-13 16:03:29 +000019424fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019425
Alexandre Julliard875927f2004-01-02 01:55:29 +000019426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000019427fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019428
Alexandre Julliard875927f2004-01-02 01:55:29 +000019429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019430fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019431{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19432echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019433if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000019434
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019435cat >>confdefs.h <<_ACEOF
19436#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019437_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000019438
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019439
19440fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019441{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19442echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019443if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19445else
19446 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019447/* confdefs.h. */
19448_ACEOF
19449cat confdefs.h >>conftest.$ac_ext
19450cat >>conftest.$ac_ext <<_ACEOF
19451/* end confdefs.h. */
19452#include <sys/types.h>
19453#ifdef HAVE_SYS_SOCKET_H
19454# include <sys/socket.h>
19455#endif
19456#ifdef HAVE_SYS_UN_H
19457# include <sys/un.h>
19458#endif
19459
19460int
19461main ()
19462{
19463static struct sockaddr ac_aggr;
19464if (ac_aggr.sa_len)
19465return 0;
19466 ;
19467 return 0;
19468}
19469_ACEOF
19470rm -f conftest.$ac_objext
19471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019472 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019473 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; } &&
19485 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19488 ac_status=$?
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; }; then
19491 ac_cv_member_struct_sockaddr_sa_len=yes
19492else
19493 echo "$as_me: failed program was:" >&5
19494sed 's/^/| /' conftest.$ac_ext >&5
19495
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019496 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019497/* confdefs.h. */
19498_ACEOF
19499cat confdefs.h >>conftest.$ac_ext
19500cat >>conftest.$ac_ext <<_ACEOF
19501/* end confdefs.h. */
19502#include <sys/types.h>
19503#ifdef HAVE_SYS_SOCKET_H
19504# include <sys/socket.h>
19505#endif
19506#ifdef HAVE_SYS_UN_H
19507# include <sys/un.h>
19508#endif
19509
19510int
19511main ()
19512{
19513static struct sockaddr ac_aggr;
19514if (sizeof ac_aggr.sa_len)
19515return 0;
19516 ;
19517 return 0;
19518}
19519_ACEOF
19520rm -f conftest.$ac_objext
19521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019522 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019523 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019524 grep -v '^ *+' conftest.er1 >conftest.err
19525 rm -f conftest.er1
19526 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19531 (eval $ac_try) 2>&5
19532 ac_status=$?
19533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534 (exit $ac_status); }; } &&
19535 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537 (eval $ac_try) 2>&5
19538 ac_status=$?
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); }; }; then
19541 ac_cv_member_struct_sockaddr_sa_len=yes
19542else
19543 echo "$as_me: failed program was:" >&5
19544sed 's/^/| /' conftest.$ac_ext >&5
19545
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019546 ac_cv_member_struct_sockaddr_sa_len=no
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019547fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019548
Alexandre Julliard875927f2004-01-02 01:55:29 +000019549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019550fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019551
Alexandre Julliard875927f2004-01-02 01:55:29 +000019552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019553fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019554{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19555echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019556if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19557
19558cat >>confdefs.h <<_ACEOF
19559#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19560_ACEOF
19561
19562
19563fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019564{ echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19565echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019566if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19567 echo $ECHO_N "(cached) $ECHO_C" >&6
19568else
19569 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019570/* confdefs.h. */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h. */
19575#include <sys/types.h>
19576#ifdef HAVE_SYS_SOCKET_H
19577# include <sys/socket.h>
19578#endif
19579#ifdef HAVE_SYS_UN_H
19580# include <sys/un.h>
19581#endif
19582
19583int
19584main ()
19585{
19586static struct sockaddr_un ac_aggr;
19587if (ac_aggr.sun_len)
19588return 0;
19589 ;
19590 return 0;
19591}
19592_ACEOF
19593rm -f conftest.$ac_objext
19594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019595 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019596 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019597 grep -v '^ *+' conftest.er1 >conftest.err
19598 rm -f conftest.er1
19599 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
19614 ac_cv_member_struct_sockaddr_un_sun_len=yes
19615else
19616 echo "$as_me: failed program was:" >&5
19617sed 's/^/| /' conftest.$ac_ext >&5
19618
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019619 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019620/* confdefs.h. */
19621_ACEOF
19622cat confdefs.h >>conftest.$ac_ext
19623cat >>conftest.$ac_ext <<_ACEOF
19624/* end confdefs.h. */
19625#include <sys/types.h>
19626#ifdef HAVE_SYS_SOCKET_H
19627# include <sys/socket.h>
19628#endif
19629#ifdef HAVE_SYS_UN_H
19630# include <sys/un.h>
19631#endif
19632
19633int
19634main ()
19635{
19636static struct sockaddr_un ac_aggr;
19637if (sizeof ac_aggr.sun_len)
19638return 0;
19639 ;
19640 return 0;
19641}
19642_ACEOF
19643rm -f conftest.$ac_objext
19644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019645 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019646 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019647 grep -v '^ *+' conftest.er1 >conftest.err
19648 rm -f conftest.er1
19649 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19655 ac_status=$?
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; } &&
19658 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660 (eval $ac_try) 2>&5
19661 ac_status=$?
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19664 ac_cv_member_struct_sockaddr_un_sun_len=yes
19665else
19666 echo "$as_me: failed program was:" >&5
19667sed 's/^/| /' conftest.$ac_ext >&5
19668
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019669 ac_cv_member_struct_sockaddr_un_sun_len=no
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019670fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019671
Alexandre Julliard875927f2004-01-02 01:55:29 +000019672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019673fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019674
Alexandre Julliard875927f2004-01-02 01:55:29 +000019675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019676fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019677{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19678echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019679if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19680
19681cat >>confdefs.h <<_ACEOF
19682#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19683_ACEOF
19684
19685
Juergen Lock2d33ab92000-02-13 16:03:29 +000019686fi
19687
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019688
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019689{ echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
19690echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000019691if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19693else
19694 cat >conftest.$ac_ext <<_ACEOF
19695/* confdefs.h. */
19696_ACEOF
19697cat confdefs.h >>conftest.$ac_ext
19698cat >>conftest.$ac_ext <<_ACEOF
19699/* end confdefs.h. */
19700#include <sys/types.h>
19701#ifdef HAVE_SCSI_SG_H
19702#include <scsi/sg.h>
19703#endif
19704
19705int
19706main ()
19707{
19708static scsireq_t ac_aggr;
19709if (ac_aggr.cmd)
19710return 0;
19711 ;
19712 return 0;
19713}
19714_ACEOF
19715rm -f conftest.$ac_objext
19716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19717 (eval $ac_compile) 2>conftest.er1
19718 ac_status=$?
19719 grep -v '^ *+' conftest.er1 >conftest.err
19720 rm -f conftest.er1
19721 cat conftest.err >&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); } &&
19724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19727 ac_status=$?
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try='test -s conftest.$ac_objext'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 ac_cv_member_scsireq_t_cmd=yes
19737else
19738 echo "$as_me: failed program was:" >&5
19739sed 's/^/| /' conftest.$ac_ext >&5
19740
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019741 cat >conftest.$ac_ext <<_ACEOF
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000019742/* confdefs.h. */
19743_ACEOF
19744cat confdefs.h >>conftest.$ac_ext
19745cat >>conftest.$ac_ext <<_ACEOF
19746/* end confdefs.h. */
19747#include <sys/types.h>
19748#ifdef HAVE_SCSI_SG_H
19749#include <scsi/sg.h>
19750#endif
19751
19752int
19753main ()
19754{
19755static scsireq_t ac_aggr;
19756if (sizeof ac_aggr.cmd)
19757return 0;
19758 ;
19759 return 0;
19760}
19761_ACEOF
19762rm -f conftest.$ac_objext
19763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19764 (eval $ac_compile) 2>conftest.er1
19765 ac_status=$?
19766 grep -v '^ *+' conftest.er1 >conftest.err
19767 rm -f conftest.er1
19768 cat conftest.err >&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
19771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773 (eval $ac_try) 2>&5
19774 ac_status=$?
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); }; } &&
19777 { ac_try='test -s conftest.$ac_objext'
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; }; then
19783 ac_cv_member_scsireq_t_cmd=yes
19784else
19785 echo "$as_me: failed program was:" >&5
19786sed 's/^/| /' conftest.$ac_ext >&5
19787
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019788 ac_cv_member_scsireq_t_cmd=no
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000019789fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019790
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000019791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19792fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019793
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000019794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19795fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019796{ echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
19797echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000019798if test $ac_cv_member_scsireq_t_cmd = yes; then
19799
19800cat >>confdefs.h <<_ACEOF
19801#define HAVE_SCSIREQ_T_CMD 1
19802_ACEOF
19803
19804
19805fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019806{ echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
19807echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000019808if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19810else
19811 cat >conftest.$ac_ext <<_ACEOF
19812/* confdefs.h. */
19813_ACEOF
19814cat confdefs.h >>conftest.$ac_ext
19815cat >>conftest.$ac_ext <<_ACEOF
19816/* end confdefs.h. */
19817#include <sys/types.h>
19818#ifdef HAVE_SCSI_SG_H
19819#include <scsi/sg.h>
19820#endif
19821
19822int
19823main ()
19824{
19825static sg_io_hdr_t ac_aggr;
19826if (ac_aggr.interface_id)
19827return 0;
19828 ;
19829 return 0;
19830}
19831_ACEOF
19832rm -f conftest.$ac_objext
19833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19834 (eval $ac_compile) 2>conftest.er1
19835 ac_status=$?
19836 grep -v '^ *+' conftest.er1 >conftest.err
19837 rm -f conftest.er1
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } &&
19841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; } &&
19847 { ac_try='test -s conftest.$ac_objext'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19853 ac_cv_member_sg_io_hdr_t_interface_id=yes
19854else
19855 echo "$as_me: failed program was:" >&5
19856sed 's/^/| /' conftest.$ac_ext >&5
19857
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019858 cat >conftest.$ac_ext <<_ACEOF
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000019859/* confdefs.h. */
19860_ACEOF
19861cat confdefs.h >>conftest.$ac_ext
19862cat >>conftest.$ac_ext <<_ACEOF
19863/* end confdefs.h. */
19864#include <sys/types.h>
19865#ifdef HAVE_SCSI_SG_H
19866#include <scsi/sg.h>
19867#endif
19868
19869int
19870main ()
19871{
19872static sg_io_hdr_t ac_aggr;
19873if (sizeof ac_aggr.interface_id)
19874return 0;
19875 ;
19876 return 0;
19877}
19878_ACEOF
19879rm -f conftest.$ac_objext
19880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19881 (eval $ac_compile) 2>conftest.er1
19882 ac_status=$?
19883 grep -v '^ *+' conftest.er1 >conftest.err
19884 rm -f conftest.er1
19885 cat conftest.err >&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } &&
19888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest.$ac_objext'
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19897 ac_status=$?
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19900 ac_cv_member_sg_io_hdr_t_interface_id=yes
19901else
19902 echo "$as_me: failed program was:" >&5
19903sed 's/^/| /' conftest.$ac_ext >&5
19904
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019905 ac_cv_member_sg_io_hdr_t_interface_id=no
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000019906fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019907
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000019908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19909fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019910
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000019911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19912fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019913{ echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
19914echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000019915if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
19916
19917cat >>confdefs.h <<_ACEOF
19918#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
19919_ACEOF
19920
19921
19922fi
19923
19924
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019925{ echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19926echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019927if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19928 echo $ECHO_N "(cached) $ECHO_C" >&6
19929else
19930 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019931/* confdefs.h. */
19932_ACEOF
19933cat confdefs.h >>conftest.$ac_ext
19934cat >>conftest.$ac_ext <<_ACEOF
19935/* end confdefs.h. */
19936#include <signal.h>
19937
19938int
19939main ()
19940{
19941static siginfo_t ac_aggr;
19942if (ac_aggr.si_fd)
19943return 0;
19944 ;
19945 return 0;
19946}
19947_ACEOF
19948rm -f conftest.$ac_objext
19949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019950 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019951 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019952 grep -v '^ *+' conftest.er1 >conftest.err
19953 rm -f conftest.er1
19954 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; } &&
19963 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19966 ac_status=$?
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; }; then
19969 ac_cv_member_siginfo_t_si_fd=yes
19970else
19971 echo "$as_me: failed program was:" >&5
19972sed 's/^/| /' conftest.$ac_ext >&5
19973
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019974 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019975/* confdefs.h. */
19976_ACEOF
19977cat confdefs.h >>conftest.$ac_ext
19978cat >>conftest.$ac_ext <<_ACEOF
19979/* end confdefs.h. */
19980#include <signal.h>
19981
19982int
19983main ()
19984{
19985static siginfo_t ac_aggr;
19986if (sizeof ac_aggr.si_fd)
19987return 0;
19988 ;
19989 return 0;
19990}
19991_ACEOF
19992rm -f conftest.$ac_objext
19993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019994 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019995 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019996 grep -v '^ *+' conftest.er1 >conftest.err
19997 rm -f conftest.er1
19998 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000020001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; } &&
20007 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20010 ac_status=$?
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 ac_cv_member_siginfo_t_si_fd=yes
20014else
20015 echo "$as_me: failed program was:" >&5
20016sed 's/^/| /' conftest.$ac_ext >&5
20017
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020018 ac_cv_member_siginfo_t_si_fd=no
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020019fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020020
Alexandre Julliard875927f2004-01-02 01:55:29 +000020021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020022fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020023
Alexandre Julliard875927f2004-01-02 01:55:29 +000020024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020025fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020026{ echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
20027echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020028if test $ac_cv_member_siginfo_t_si_fd = yes; then
20029
20030cat >>confdefs.h <<_ACEOF
20031#define HAVE_SIGINFO_T_SI_FD 1
20032_ACEOF
20033
20034
20035fi
20036
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020037
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020038{ echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
20039echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020040if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20042else
20043 cat >conftest.$ac_ext <<_ACEOF
20044/* confdefs.h. */
20045_ACEOF
20046cat confdefs.h >>conftest.$ac_ext
20047cat >>conftest.$ac_ext <<_ACEOF
20048/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010020049#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020050#ifdef HAVE_SYS_MTIO_H
20051#include <sys/mtio.h>
20052#endif
20053
20054int
20055main ()
20056{
20057static struct mtget ac_aggr;
20058if (ac_aggr.mt_blksiz)
20059return 0;
20060 ;
20061 return 0;
20062}
20063_ACEOF
20064rm -f conftest.$ac_objext
20065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20066 (eval $ac_compile) 2>conftest.er1
20067 ac_status=$?
20068 grep -v '^ *+' conftest.er1 >conftest.err
20069 rm -f conftest.er1
20070 cat conftest.err >&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); } &&
20073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075 (eval $ac_try) 2>&5
20076 ac_status=$?
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; } &&
20079 { ac_try='test -s conftest.$ac_objext'
20080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20081 (eval $ac_try) 2>&5
20082 ac_status=$?
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); }; }; then
20085 ac_cv_member_struct_mtget_mt_blksiz=yes
20086else
20087 echo "$as_me: failed program was:" >&5
20088sed 's/^/| /' conftest.$ac_ext >&5
20089
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020090 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020091/* confdefs.h. */
20092_ACEOF
20093cat confdefs.h >>conftest.$ac_ext
20094cat >>conftest.$ac_ext <<_ACEOF
20095/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010020096#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020097#ifdef HAVE_SYS_MTIO_H
20098#include <sys/mtio.h>
20099#endif
20100
20101int
20102main ()
20103{
20104static struct mtget ac_aggr;
20105if (sizeof ac_aggr.mt_blksiz)
20106return 0;
20107 ;
20108 return 0;
20109}
20110_ACEOF
20111rm -f conftest.$ac_objext
20112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20113 (eval $ac_compile) 2>conftest.er1
20114 ac_status=$?
20115 grep -v '^ *+' conftest.er1 >conftest.err
20116 rm -f conftest.er1
20117 cat conftest.err >&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } &&
20120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; } &&
20126 { ac_try='test -s conftest.$ac_objext'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 ac_cv_member_struct_mtget_mt_blksiz=yes
20133else
20134 echo "$as_me: failed program was:" >&5
20135sed 's/^/| /' conftest.$ac_ext >&5
20136
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020137 ac_cv_member_struct_mtget_mt_blksiz=no
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020138fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020139
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20141fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020142
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20144fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020145{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
20146echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020147if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
20148
20149cat >>confdefs.h <<_ACEOF
20150#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
20151_ACEOF
20152
20153
20154fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020155{ echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
20156echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020157if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20159else
20160 cat >conftest.$ac_ext <<_ACEOF
20161/* confdefs.h. */
20162_ACEOF
20163cat confdefs.h >>conftest.$ac_ext
20164cat >>conftest.$ac_ext <<_ACEOF
20165/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010020166#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020167#ifdef HAVE_SYS_MTIO_H
20168#include <sys/mtio.h>
20169#endif
20170
20171int
20172main ()
20173{
20174static struct mtget ac_aggr;
20175if (ac_aggr.mt_gstat)
20176return 0;
20177 ;
20178 return 0;
20179}
20180_ACEOF
20181rm -f conftest.$ac_objext
20182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20183 (eval $ac_compile) 2>conftest.er1
20184 ac_status=$?
20185 grep -v '^ *+' conftest.er1 >conftest.err
20186 rm -f conftest.er1
20187 cat conftest.err >&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } &&
20190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20193 ac_status=$?
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; } &&
20196 { ac_try='test -s conftest.$ac_objext'
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; }; then
20202 ac_cv_member_struct_mtget_mt_gstat=yes
20203else
20204 echo "$as_me: failed program was:" >&5
20205sed 's/^/| /' conftest.$ac_ext >&5
20206
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020207 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020208/* confdefs.h. */
20209_ACEOF
20210cat confdefs.h >>conftest.$ac_ext
20211cat >>conftest.$ac_ext <<_ACEOF
20212/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010020213#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020214#ifdef HAVE_SYS_MTIO_H
20215#include <sys/mtio.h>
20216#endif
20217
20218int
20219main ()
20220{
20221static struct mtget ac_aggr;
20222if (sizeof ac_aggr.mt_gstat)
20223return 0;
20224 ;
20225 return 0;
20226}
20227_ACEOF
20228rm -f conftest.$ac_objext
20229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20230 (eval $ac_compile) 2>conftest.er1
20231 ac_status=$?
20232 grep -v '^ *+' conftest.er1 >conftest.err
20233 rm -f conftest.er1
20234 cat conftest.err >&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } &&
20237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; } &&
20243 { ac_try='test -s conftest.$ac_objext'
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; }; then
20249 ac_cv_member_struct_mtget_mt_gstat=yes
20250else
20251 echo "$as_me: failed program was:" >&5
20252sed 's/^/| /' conftest.$ac_ext >&5
20253
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020254 ac_cv_member_struct_mtget_mt_gstat=no
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020255fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020256
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20258fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020259
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20261fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020262{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
20263echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020264if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
20265
20266cat >>confdefs.h <<_ACEOF
20267#define HAVE_STRUCT_MTGET_MT_GSTAT 1
20268_ACEOF
20269
20270
20271fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020272{ echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
20273echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010020274if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20276else
20277 cat >conftest.$ac_ext <<_ACEOF
20278/* confdefs.h. */
20279_ACEOF
20280cat confdefs.h >>conftest.$ac_ext
20281cat >>conftest.$ac_ext <<_ACEOF
20282/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010020283#include <sys/types.h>
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010020284#ifdef HAVE_SYS_MTIO_H
20285#include <sys/mtio.h>
20286#endif
20287
20288int
20289main ()
20290{
20291static struct mtget ac_aggr;
20292if (ac_aggr.mt_blkno)
20293return 0;
20294 ;
20295 return 0;
20296}
20297_ACEOF
20298rm -f conftest.$ac_objext
20299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20300 (eval $ac_compile) 2>conftest.er1
20301 ac_status=$?
20302 grep -v '^ *+' conftest.er1 >conftest.err
20303 rm -f conftest.er1
20304 cat conftest.err >&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } &&
20307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20310 ac_status=$?
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; } &&
20313 { ac_try='test -s conftest.$ac_objext'
20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20316 ac_status=$?
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; }; then
20319 ac_cv_member_struct_mtget_mt_blkno=yes
20320else
20321 echo "$as_me: failed program was:" >&5
20322sed 's/^/| /' conftest.$ac_ext >&5
20323
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020324 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010020325/* confdefs.h. */
20326_ACEOF
20327cat confdefs.h >>conftest.$ac_ext
20328cat >>conftest.$ac_ext <<_ACEOF
20329/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010020330#include <sys/types.h>
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010020331#ifdef HAVE_SYS_MTIO_H
20332#include <sys/mtio.h>
20333#endif
20334
20335int
20336main ()
20337{
20338static struct mtget ac_aggr;
20339if (sizeof ac_aggr.mt_blkno)
20340return 0;
20341 ;
20342 return 0;
20343}
20344_ACEOF
20345rm -f conftest.$ac_objext
20346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20347 (eval $ac_compile) 2>conftest.er1
20348 ac_status=$?
20349 grep -v '^ *+' conftest.er1 >conftest.err
20350 rm -f conftest.er1
20351 cat conftest.err >&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); } &&
20354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356 (eval $ac_try) 2>&5
20357 ac_status=$?
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; } &&
20360 { ac_try='test -s conftest.$ac_objext'
20361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20363 ac_status=$?
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
20366 ac_cv_member_struct_mtget_mt_blkno=yes
20367else
20368 echo "$as_me: failed program was:" >&5
20369sed 's/^/| /' conftest.$ac_ext >&5
20370
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020371 ac_cv_member_struct_mtget_mt_blkno=no
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010020372fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020373
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010020374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20375fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020376
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010020377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20378fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020379{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
20380echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010020381if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
20382
20383cat >>confdefs.h <<_ACEOF
20384#define HAVE_STRUCT_MTGET_MT_BLKNO 1
20385_ACEOF
20386
20387
20388fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010020389
20390
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020391{ echo "$as_me:$LINENO: checking for struct option.name" >&5
20392echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
Alexandre Julliarddb89a542003-04-20 02:56:14 +000020393if test "${ac_cv_member_struct_option_name+set}" = set; then
20394 echo $ECHO_N "(cached) $ECHO_C" >&6
20395else
20396 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000020397/* confdefs.h. */
20398_ACEOF
20399cat confdefs.h >>conftest.$ac_ext
20400cat >>conftest.$ac_ext <<_ACEOF
20401/* end confdefs.h. */
20402#ifdef HAVE_GETOPT_H
20403#include <getopt.h>
20404#endif
20405
20406int
20407main ()
20408{
20409static struct option ac_aggr;
20410if (ac_aggr.name)
20411return 0;
20412 ;
20413 return 0;
20414}
20415_ACEOF
20416rm -f conftest.$ac_objext
20417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020418 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000020419 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020420 grep -v '^ *+' conftest.er1 >conftest.err
20421 rm -f conftest.er1
20422 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000020423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000020425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20427 (eval $ac_try) 2>&5
20428 ac_status=$?
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); }; } &&
20431 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddb89a542003-04-20 02:56:14 +000020432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
20437 ac_cv_member_struct_option_name=yes
20438else
20439 echo "$as_me: failed program was:" >&5
20440sed 's/^/| /' conftest.$ac_ext >&5
20441
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020442 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000020443/* confdefs.h. */
20444_ACEOF
20445cat confdefs.h >>conftest.$ac_ext
20446cat >>conftest.$ac_ext <<_ACEOF
20447/* end confdefs.h. */
20448#ifdef HAVE_GETOPT_H
20449#include <getopt.h>
20450#endif
20451
20452int
20453main ()
20454{
20455static struct option ac_aggr;
20456if (sizeof ac_aggr.name)
20457return 0;
20458 ;
20459 return 0;
20460}
20461_ACEOF
20462rm -f conftest.$ac_objext
20463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020464 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000020465 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020466 grep -v '^ *+' conftest.er1 >conftest.err
20467 rm -f conftest.er1
20468 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000020469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000020471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20474 ac_status=$?
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; } &&
20477 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddb89a542003-04-20 02:56:14 +000020478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20480 ac_status=$?
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); }; }; then
20483 ac_cv_member_struct_option_name=yes
20484else
20485 echo "$as_me: failed program was:" >&5
20486sed 's/^/| /' conftest.$ac_ext >&5
20487
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020488 ac_cv_member_struct_option_name=no
Alexandre Julliarddb89a542003-04-20 02:56:14 +000020489fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020490
Alexandre Julliard875927f2004-01-02 01:55:29 +000020491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000020492fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020493
Alexandre Julliard875927f2004-01-02 01:55:29 +000020494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000020495fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020496{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
20497echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
Alexandre Julliarddb89a542003-04-20 02:56:14 +000020498if test $ac_cv_member_struct_option_name = yes; then
20499
20500cat >>confdefs.h <<_ACEOF
20501#define HAVE_STRUCT_OPTION_NAME 1
20502_ACEOF
20503
20504
20505fi
20506
20507
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020508{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20509echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
Pavel Roskind6507192003-10-03 03:28:40 +000020510if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20512else
20513 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000020514/* confdefs.h. */
20515_ACEOF
20516cat confdefs.h >>conftest.$ac_ext
20517cat >>conftest.$ac_ext <<_ACEOF
20518/* end confdefs.h. */
20519$ac_includes_default
20520int
20521main ()
20522{
20523static struct stat ac_aggr;
20524if (ac_aggr.st_blocks)
20525return 0;
20526 ;
20527 return 0;
20528}
20529_ACEOF
20530rm -f conftest.$ac_objext
20531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020532 (eval $ac_compile) 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000020533 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020534 grep -v '^ *+' conftest.er1 >conftest.err
20535 rm -f conftest.er1
20536 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000020537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000020539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20542 ac_status=$?
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; } &&
20545 { ac_try='test -s conftest.$ac_objext'
Pavel Roskind6507192003-10-03 03:28:40 +000020546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; }; then
20551 ac_cv_member_struct_stat_st_blocks=yes
20552else
20553 echo "$as_me: failed program was:" >&5
20554sed 's/^/| /' conftest.$ac_ext >&5
20555
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020556 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000020557/* confdefs.h. */
20558_ACEOF
20559cat confdefs.h >>conftest.$ac_ext
20560cat >>conftest.$ac_ext <<_ACEOF
20561/* end confdefs.h. */
20562$ac_includes_default
20563int
20564main ()
20565{
20566static struct stat ac_aggr;
20567if (sizeof ac_aggr.st_blocks)
20568return 0;
20569 ;
20570 return 0;
20571}
20572_ACEOF
20573rm -f conftest.$ac_objext
20574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020575 (eval $ac_compile) 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000020576 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020577 grep -v '^ *+' conftest.er1 >conftest.err
20578 rm -f conftest.er1
20579 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000020580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000020582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; } &&
20588 { ac_try='test -s conftest.$ac_objext'
Pavel Roskind6507192003-10-03 03:28:40 +000020589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20591 ac_status=$?
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20594 ac_cv_member_struct_stat_st_blocks=yes
20595else
20596 echo "$as_me: failed program was:" >&5
20597sed 's/^/| /' conftest.$ac_ext >&5
20598
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020599 ac_cv_member_struct_stat_st_blocks=no
Pavel Roskind6507192003-10-03 03:28:40 +000020600fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020601
Alexandre Julliard875927f2004-01-02 01:55:29 +000020602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000020603fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020604
Alexandre Julliard875927f2004-01-02 01:55:29 +000020605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000020606fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020607{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20608echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
Pavel Roskind6507192003-10-03 03:28:40 +000020609if test $ac_cv_member_struct_stat_st_blocks = yes; then
20610
20611cat >>confdefs.h <<_ACEOF
20612#define HAVE_STRUCT_STAT_ST_BLOCKS 1
20613_ACEOF
20614
20615
20616fi
20617
20618
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020619{ echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
20620echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030020621if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
20622 echo $ECHO_N "(cached) $ECHO_C" >&6
20623else
20624 cat >conftest.$ac_ext <<_ACEOF
20625/* confdefs.h. */
20626_ACEOF
20627cat confdefs.h >>conftest.$ac_ext
20628cat >>conftest.$ac_ext <<_ACEOF
20629/* end confdefs.h. */
20630#ifdef HAVE_SYS_TYPES_H
20631#include <sys/types.h>
20632#endif
20633#ifdef HAVE_NETINET_IN_H
20634#include <netinet/in.h>
20635#endif
20636
20637int
20638main ()
20639{
20640static struct sockaddr_in6 ac_aggr;
20641if (ac_aggr.sin6_scope_id)
20642return 0;
20643 ;
20644 return 0;
20645}
20646_ACEOF
20647rm -f conftest.$ac_objext
20648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20649 (eval $ac_compile) 2>conftest.er1
20650 ac_status=$?
20651 grep -v '^ *+' conftest.er1 >conftest.err
20652 rm -f conftest.er1
20653 cat conftest.err >&5
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); } &&
20656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20658 (eval $ac_try) 2>&5
20659 ac_status=$?
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); }; } &&
20662 { ac_try='test -s conftest.$ac_objext'
20663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20664 (eval $ac_try) 2>&5
20665 ac_status=$?
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); }; }; then
20668 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
20669else
20670 echo "$as_me: failed program was:" >&5
20671sed 's/^/| /' conftest.$ac_ext >&5
20672
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020673 cat >conftest.$ac_ext <<_ACEOF
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030020674/* confdefs.h. */
20675_ACEOF
20676cat confdefs.h >>conftest.$ac_ext
20677cat >>conftest.$ac_ext <<_ACEOF
20678/* end confdefs.h. */
20679#ifdef HAVE_SYS_TYPES_H
20680#include <sys/types.h>
20681#endif
20682#ifdef HAVE_NETINET_IN_H
20683#include <netinet/in.h>
20684#endif
20685
20686int
20687main ()
20688{
20689static struct sockaddr_in6 ac_aggr;
20690if (sizeof ac_aggr.sin6_scope_id)
20691return 0;
20692 ;
20693 return 0;
20694}
20695_ACEOF
20696rm -f conftest.$ac_objext
20697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20698 (eval $ac_compile) 2>conftest.er1
20699 ac_status=$?
20700 grep -v '^ *+' conftest.er1 >conftest.err
20701 rm -f conftest.er1
20702 cat conftest.err >&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } &&
20705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20707 (eval $ac_try) 2>&5
20708 ac_status=$?
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); }; } &&
20711 { ac_try='test -s conftest.$ac_objext'
20712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713 (eval $ac_try) 2>&5
20714 ac_status=$?
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; }; then
20717 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
20718else
20719 echo "$as_me: failed program was:" >&5
20720sed 's/^/| /' conftest.$ac_ext >&5
20721
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020722 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030020723fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020724
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030020725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20726fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020727
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030020728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20729fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020730{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
20731echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030020732if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
20733
20734cat >>confdefs.h <<_ACEOF
20735#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
20736_ACEOF
20737
20738
20739fi
20740
20741
Alexandre Julliard788e30f2006-05-31 14:43:21 +020020742{ echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
20743echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
20744if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20746else
20747 cat >conftest.$ac_ext <<_ACEOF
20748/* confdefs.h. */
20749_ACEOF
20750cat confdefs.h >>conftest.$ac_ext
20751cat >>conftest.$ac_ext <<_ACEOF
20752/* end confdefs.h. */
20753#ifdef HAVE_SYS_TYPES_H
20754#include <sys/types.h>
20755#endif
20756#ifdef HAVE_NETINET_IN_H
20757# include <netinet/in.h>
20758#endif
20759#ifdef HAVE_ARPA_NAMESER_H
20760# include <arpa/nameser.h>
20761#endif
20762
20763int
20764main ()
20765{
20766static ns_msg ac_aggr;
20767if (ac_aggr._msg_ptr)
20768return 0;
20769 ;
20770 return 0;
20771}
20772_ACEOF
20773rm -f conftest.$ac_objext
20774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20775 (eval $ac_compile) 2>conftest.er1
20776 ac_status=$?
20777 grep -v '^ *+' conftest.er1 >conftest.err
20778 rm -f conftest.er1
20779 cat conftest.err >&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } &&
20782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20785 ac_status=$?
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; } &&
20788 { ac_try='test -s conftest.$ac_objext'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 ac_cv_member_ns_msg__msg_ptr=yes
20795else
20796 echo "$as_me: failed program was:" >&5
20797sed 's/^/| /' conftest.$ac_ext >&5
20798
20799 cat >conftest.$ac_ext <<_ACEOF
20800/* confdefs.h. */
20801_ACEOF
20802cat confdefs.h >>conftest.$ac_ext
20803cat >>conftest.$ac_ext <<_ACEOF
20804/* end confdefs.h. */
20805#ifdef HAVE_SYS_TYPES_H
20806#include <sys/types.h>
20807#endif
20808#ifdef HAVE_NETINET_IN_H
20809# include <netinet/in.h>
20810#endif
20811#ifdef HAVE_ARPA_NAMESER_H
20812# include <arpa/nameser.h>
20813#endif
20814
20815int
20816main ()
20817{
20818static ns_msg ac_aggr;
20819if (sizeof ac_aggr._msg_ptr)
20820return 0;
20821 ;
20822 return 0;
20823}
20824_ACEOF
20825rm -f conftest.$ac_objext
20826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20827 (eval $ac_compile) 2>conftest.er1
20828 ac_status=$?
20829 grep -v '^ *+' conftest.er1 >conftest.err
20830 rm -f conftest.er1
20831 cat conftest.err >&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } &&
20834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20836 (eval $ac_try) 2>&5
20837 ac_status=$?
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); }; } &&
20840 { ac_try='test -s conftest.$ac_objext'
20841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20842 (eval $ac_try) 2>&5
20843 ac_status=$?
20844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845 (exit $ac_status); }; }; then
20846 ac_cv_member_ns_msg__msg_ptr=yes
20847else
20848 echo "$as_me: failed program was:" >&5
20849sed 's/^/| /' conftest.$ac_ext >&5
20850
20851 ac_cv_member_ns_msg__msg_ptr=no
20852fi
20853
20854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20855fi
20856
20857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20858fi
20859{ echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
20860echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
20861if test $ac_cv_member_ns_msg__msg_ptr = yes; then
20862
20863cat >>confdefs.h <<_ACEOF
20864#define HAVE_NS_MSG__MSG_PTR 1
20865_ACEOF
20866
20867
20868fi
20869
20870
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020871{ echo "$as_me:$LINENO: checking for timezone variable" >&5
20872echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000020873if test "${ac_cv_have_timezone+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20875else
20876 cat >conftest.$ac_ext <<_ACEOF
20877/* confdefs.h. */
20878_ACEOF
20879cat confdefs.h >>conftest.$ac_ext
20880cat >>conftest.$ac_ext <<_ACEOF
20881/* end confdefs.h. */
20882#include <time.h>
20883int
20884main ()
20885{
20886timezone;
20887 ;
20888 return 0;
20889}
20890_ACEOF
20891rm -f conftest.$ac_objext conftest$ac_exeext
20892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20893 (eval $ac_link) 2>conftest.er1
20894 ac_status=$?
20895 grep -v '^ *+' conftest.er1 >conftest.err
20896 rm -f conftest.er1
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } &&
20900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20903 ac_status=$?
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; } &&
20906 { ac_try='test -s conftest$ac_exeext'
20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908 (eval $ac_try) 2>&5
20909 ac_status=$?
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; }; then
20912 ac_cv_have_timezone="yes"
20913else
20914 echo "$as_me: failed program was:" >&5
20915sed 's/^/| /' conftest.$ac_ext >&5
20916
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020917 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000020918fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020919
Phil Krylov6618b032005-05-24 11:52:46 +000020920rm -f conftest.err conftest.$ac_objext \
20921 conftest$ac_exeext conftest.$ac_ext
20922fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020923{ echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
20924echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000020925if test "$ac_cv_have_timezone" = "yes"
20926then
20927
20928cat >>confdefs.h <<\_ACEOF
20929#define HAVE_TIMEZONE 1
20930_ACEOF
20931
20932fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020933{ echo "$as_me:$LINENO: checking for daylight variable" >&5
20934echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000020935if test "${ac_cv_have_daylight+set}" = set; then
20936 echo $ECHO_N "(cached) $ECHO_C" >&6
20937else
20938 cat >conftest.$ac_ext <<_ACEOF
20939/* confdefs.h. */
20940_ACEOF
20941cat confdefs.h >>conftest.$ac_ext
20942cat >>conftest.$ac_ext <<_ACEOF
20943/* end confdefs.h. */
20944#include <time.h>
20945int
20946main ()
20947{
20948daylight;
20949 ;
20950 return 0;
20951}
20952_ACEOF
20953rm -f conftest.$ac_objext conftest$ac_exeext
20954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20955 (eval $ac_link) 2>conftest.er1
20956 ac_status=$?
20957 grep -v '^ *+' conftest.er1 >conftest.err
20958 rm -f conftest.er1
20959 cat conftest.err >&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } &&
20962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964 (eval $ac_try) 2>&5
20965 ac_status=$?
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; } &&
20968 { ac_try='test -s conftest$ac_exeext'
20969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970 (eval $ac_try) 2>&5
20971 ac_status=$?
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; }; then
20974 ac_cv_have_daylight="yes"
20975else
20976 echo "$as_me: failed program was:" >&5
20977sed 's/^/| /' conftest.$ac_ext >&5
20978
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020979 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000020980fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020981
Phil Krylov6618b032005-05-24 11:52:46 +000020982rm -f conftest.err conftest.$ac_objext \
20983 conftest$ac_exeext conftest.$ac_ext
20984fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020985{ echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
20986echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000020987if test "$ac_cv_have_daylight" = "yes"
20988then
20989
20990cat >>confdefs.h <<\_ACEOF
20991#define HAVE_DAYLIGHT 1
20992_ACEOF
20993
20994fi
20995
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020996
Alexandre Julliardfc01b722002-05-12 03:16:39 +000020997case $host_cpu in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020998 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
20999echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000021000if test "${ac_cv_cpp_def___i386__+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021001 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000021002else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021003 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021004/* confdefs.h. */
21005_ACEOF
21006cat confdefs.h >>conftest.$ac_ext
21007cat >>conftest.$ac_ext <<_ACEOF
21008/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021009#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000021010yes
21011#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021012_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000021013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021014 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000021015 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000021016else
Alexandre Julliard05783b52002-12-11 00:21:55 +000021017 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000021018fi
21019rm -f conftest*
21020
21021fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021022{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
21023echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000021024if test $ac_cv_cpp_def___i386__ = yes; then
21025 CFLAGS="$CFLAGS -D__i386__"
21026 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000021027fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000021028 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021029 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
21030echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
Alexandre Julliarde3be5642005-09-09 09:30:02 +000021031if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
21032 echo $ECHO_N "(cached) $ECHO_C" >&6
21033else
21034 cat >conftest.$ac_ext <<_ACEOF
21035/* confdefs.h. */
21036_ACEOF
21037cat confdefs.h >>conftest.$ac_ext
21038cat >>conftest.$ac_ext <<_ACEOF
21039/* end confdefs.h. */
21040#ifndef __x86_64__
21041yes
21042#endif
21043_ACEOF
21044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21045 $EGREP "yes" >/dev/null 2>&1; then
21046 ac_cv_cpp_def___x86_64__=yes
21047else
21048 ac_cv_cpp_def___x86_64__=no
21049fi
21050rm -f conftest*
21051
21052fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021053{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
21054echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliarde3be5642005-09-09 09:30:02 +000021055if test $ac_cv_cpp_def___x86_64__ = yes; then
21056 CFLAGS="$CFLAGS -D__x86_64__"
21057 LINTFLAGS="$LINTFLAGS -D__x86_64__"
21058fi
21059 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021060 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
21061echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000021062if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
Steven Edwards69b67862002-12-10 22:48:48 +000021063 echo $ECHO_N "(cached) $ECHO_C" >&6
21064else
21065 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021066/* confdefs.h. */
21067_ACEOF
21068cat confdefs.h >>conftest.$ac_ext
21069cat >>conftest.$ac_ext <<_ACEOF
21070/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000021071#ifndef __ALPHA__
21072yes
21073#endif
21074_ACEOF
21075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21076 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000021077 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000021078else
Alexandre Julliard05783b52002-12-11 00:21:55 +000021079 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000021080fi
21081rm -f conftest*
21082
21083fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021084{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
21085echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000021086if test $ac_cv_cpp_def___ALPHA__ = yes; then
21087 CFLAGS="$CFLAGS -D__ALPHA__"
21088 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Steven Edwards69b67862002-12-10 22:48:48 +000021089fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000021090 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021091 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
21092echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000021093if test "${ac_cv_cpp_def___sparc__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000021094 echo $ECHO_N "(cached) $ECHO_C" >&6
21095else
21096 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021097/* confdefs.h. */
21098_ACEOF
21099cat confdefs.h >>conftest.$ac_ext
21100cat >>conftest.$ac_ext <<_ACEOF
21101/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000021102#ifndef __sparc__
21103yes
21104#endif
21105_ACEOF
21106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021107 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000021108 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000021109else
Alexandre Julliard05783b52002-12-11 00:21:55 +000021110 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000021111fi
21112rm -f conftest*
21113
21114fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021115{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
21116echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000021117if test $ac_cv_cpp_def___sparc__ = yes; then
21118 CFLAGS="$CFLAGS -D__sparc__"
21119 LINTFLAGS="$LINTFLAGS -D__sparc__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000021120fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000021121 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021122 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
21123echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000021124if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
21125 echo $ECHO_N "(cached) $ECHO_C" >&6
21126else
21127 cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000021128/* confdefs.h. */
21129_ACEOF
21130cat confdefs.h >>conftest.$ac_ext
21131cat >>conftest.$ac_ext <<_ACEOF
21132/* end confdefs.h. */
21133#ifndef __powerpc__
21134yes
21135#endif
21136_ACEOF
21137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21138 $EGREP "yes" >/dev/null 2>&1; then
21139 ac_cv_cpp_def___powerpc__=yes
21140else
21141 ac_cv_cpp_def___powerpc__=no
21142fi
21143rm -f conftest*
21144
21145fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021146{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
21147echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000021148if test $ac_cv_cpp_def___powerpc__ = yes; then
21149 CFLAGS="$CFLAGS -D__powerpc__"
21150 LINTFLAGS="$LINTFLAGS -D__powerpc__"
21151fi
21152 ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000021153esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000021154
21155case $host_vendor in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021156 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
21157echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000021158if test "${ac_cv_cpp_def___sun__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000021159 echo $ECHO_N "(cached) $ECHO_C" >&6
21160else
21161 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021162/* confdefs.h. */
21163_ACEOF
21164cat confdefs.h >>conftest.$ac_ext
21165cat >>conftest.$ac_ext <<_ACEOF
21166/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000021167#ifndef __sun__
21168yes
21169#endif
21170_ACEOF
21171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021172 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000021173 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000021174else
Alexandre Julliard05783b52002-12-11 00:21:55 +000021175 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000021176fi
21177rm -f conftest*
21178
21179fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021180{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
21181echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000021182if test $ac_cv_cpp_def___sun__ = yes; then
21183 CFLAGS="$CFLAGS -D__sun__"
21184 LINTFLAGS="$LINTFLAGS -D__sun__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000021185fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000021186 ;;
21187esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000021188
21189
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021190
21191
21192
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021193ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000021194
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021195ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000021196
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021197ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021198
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021199ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021200
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021201ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021202
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021203ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021204
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000021205
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000021206MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021207
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021208
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000021209MAKE_DLL_RULES=dlls/Makedll.rules
21210
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021211
Alexandre Julliard633b12d2005-08-25 12:14:13 +000021212MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
21213
21214
Alexandre Julliardedeee892002-08-09 01:22:40 +000021215MAKE_TEST_RULES=dlls/Maketest.rules
21216
21217
Alexandre Julliard117436e2003-05-01 00:39:29 +000021218MAKE_LIB_RULES=libs/Makelib.rules
21219
21220
Alexandre Julliard626f4252000-11-10 23:35:20 +000021221MAKE_PROG_RULES=programs/Makeprog.rules
21222
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021223
Alexandre Julliardbdb4fab2006-06-16 09:57:50 +020021224ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules libs/Makelib.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/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/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/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hlink/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/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/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/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/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/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/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/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/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/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/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/wcmd/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/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021225
Alexandre Julliard626f4252000-11-10 23:35:20 +000021226
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021227cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021228# This file is a shell script that caches the results of configure
21229# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021230# scripts and configure runs, see configure's option --config-cache.
21231# It is not useful on other systems. If it contains results you don't
21232# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021233#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021234# config.status only pays attention to the cache file if you give it
21235# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021236#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021237# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021238# loading this file, other *unset* `ac_cv_foo' will be assigned the
21239# following values.
21240
21241_ACEOF
21242
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000021243# The following way of writing the cache mishandles newlines in values,
21244# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021245# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021246# Ultrix sh set writes to stderr and can't be redirected directly,
21247# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021248(
21249 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21250 eval ac_val=\$$ac_var
21251 case $ac_val in #(
21252 *${as_nl}*)
21253 case $ac_var in #(
21254 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21255echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21256 esac
21257 case $ac_var in #(
21258 _ | IFS | as_nl) ;; #(
21259 *) $as_unset $ac_var ;;
21260 esac ;;
21261 esac
21262 done
21263
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021264 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021265 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21266 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021267 # `set' does not quote correctly, so add quotes (double-quote
21268 # substitution turns \\\\ into \\, and sed turns \\ into \).
21269 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021270 "s/'/'\\\\''/g;
21271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021272 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021273 *)
21274 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021275 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021276 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021277 esac |
21278 sort
21279) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021280 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021281 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021282 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021283 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21285 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021286 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21287 :end' >>confcache
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021288if diff $cache_file confcache >/dev/null 2>&1; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021289 if test -w $cache_file; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021290 test "x$cache_file" != "x/dev/null" &&
21291 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21292echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021293 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021294 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021295 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21296echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021297 fi
21298fi
21299rm -f confcache
21300
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021301test "x$prefix" = xNONE && prefix=$ac_default_prefix
21302# Let make expand exec_prefix.
21303test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21304
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021305DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021306
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021307ac_libobjs=
21308ac_ltlibobjs=
21309for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21310 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021311 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21312 ac_i=`echo "$ac_i" | sed "$ac_script"`
21313 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21314 # will be set to the directory where LIBOBJS objects are built.
21315 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21316 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021317done
21318LIBOBJS=$ac_libobjs
21319
21320LTLIBOBJS=$ac_ltlibobjs
21321
21322
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021323
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021324: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021325ac_clean_files_save=$ac_clean_files
21326ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021327{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021328echo "$as_me: creating $CONFIG_STATUS" >&6;}
21329cat >$CONFIG_STATUS <<_ACEOF
21330#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021331# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021332# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021333# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021334# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021335
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021336debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021337ac_cs_recheck=false
21338ac_cs_silent=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021339SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021340_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021341
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021342cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021343## --------------------- ##
21344## M4sh Initialization. ##
21345## --------------------- ##
21346
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021347# Be Bourne compatible
21348if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21349 emulate sh
21350 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021351 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21352 # is contrary to our usage. Disable this feature.
21353 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021354 setopt NO_GLOB_SUBST
21355else
21356 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000021357fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021358BIN_SH=xpg4; export BIN_SH # for Tru64
Alexandre Julliard875927f2004-01-02 01:55:29 +000021359DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021360
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021361
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021362# PATH needs CR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021363# Avoid depending upon Character Ranges.
21364as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21365as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21366as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21367as_cr_digits='0123456789'
21368as_cr_alnum=$as_cr_Letters$as_cr_digits
21369
21370# The user is always right.
21371if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021372 echo "#! /bin/sh" >conf$$.sh
21373 echo "exit 0" >>conf$$.sh
21374 chmod +x conf$$.sh
21375 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021376 PATH_SEPARATOR=';'
21377 else
21378 PATH_SEPARATOR=:
21379 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021380 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021381fi
21382
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021383# Support unset when possible.
21384if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21385 as_unset=unset
21386else
21387 as_unset=false
21388fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021389
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021390
21391# IFS
21392# We need space, tab and new line, in precisely that order. Quoting is
21393# there to prevent editors from complaining about space-tab.
21394# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21395# splitting by setting IFS to empty value.)
21396as_nl='
21397'
21398IFS=" "" $as_nl"
21399
21400# Find who we are. Look in the path if we contain no directory separator.
21401case $0 in
21402 *[\\/]* ) as_myself=$0 ;;
21403 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021404for as_dir in $PATH
21405do
21406 IFS=$as_save_IFS
21407 test -z "$as_dir" && as_dir=.
21408 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21409done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021410IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021411
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021412 ;;
21413esac
21414# We did not find ourselves, most probably we were run as `sh COMMAND'
21415# in which case we are not to be found in the path.
21416if test "x$as_myself" = x; then
21417 as_myself=$0
21418fi
21419if test ! -f "$as_myself"; then
21420 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21421 { (exit 1); exit 1; }
21422fi
21423
21424# Work around bugs in pre-3.0 UWIN ksh.
21425for as_var in ENV MAIL MAILPATH
21426do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21427done
21428PS1='$ '
21429PS2='> '
21430PS4='+ '
21431
21432# NLS nuisances.
21433for as_var in \
21434 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21435 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21436 LC_TELEPHONE LC_TIME
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021437do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021438 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21439 eval $as_var=C; export $as_var
21440 else
21441 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21442 fi
21443done
21444
21445# Required to use basename.
21446if expr a : '\(a\)' >/dev/null 2>&1 &&
21447 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21448 as_expr=expr
21449else
21450 as_expr=false
21451fi
21452
21453if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21454 as_basename=basename
21455else
21456 as_basename=false
21457fi
21458
21459
21460# Name of the executable.
21461as_me=`$as_basename -- "$0" ||
21462$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21463 X"$0" : 'X\(//\)$' \| \
21464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21465echo X/"$0" |
21466 sed '/^.*\/\([^/][^/]*\)\/*$/{
21467 s//\1/
21468 q
21469 }
21470 /^X\/\(\/\/\)$/{
21471 s//\1/
21472 q
21473 }
21474 /^X\/\(\/\).*/{
21475 s//\1/
21476 q
21477 }
21478 s/.*/./; q'`
21479
21480# CDPATH.
21481$as_unset CDPATH
21482
21483
21484
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021485 as_lineno_1=$LINENO
21486 as_lineno_2=$LINENO
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021487 test "x$as_lineno_1" != "x$as_lineno_2" &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021488 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021489
21490 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21491 # uniformly replaced by the line number. The first 'sed' inserts a
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021492 # line-number line after each line using $LINENO; the second 'sed'
21493 # does the real work. The second script uses 'N' to pair each
21494 # line-number line with the line containing $LINENO, and appends
21495 # trailing '-' during substitution so that $LINENO is not a special
21496 # case at line end.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021497 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021498 # scripts with optimization help from Paolo Bonzini. Blame Lee
21499 # E. McMahon (1931-1989) for sed's syntax. :-)
21500 sed -n '
21501 p
21502 /[$]LINENO/=
21503 ' <$as_myself |
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021504 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021505 s/[$]LINENO.*/&-/
21506 t lineno
21507 b
21508 :lineno
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021509 N
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021510 :loop
21511 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021512 t loop
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021513 s/-\n.*//
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021514 ' >$as_me.lineno &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021515 chmod +x "$as_me.lineno" ||
21516 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021517 { (exit 1); exit 1; }; }
21518
21519 # Don't try to exec as it changes $[0], causing all sort of problems
21520 # (the dirname of $[0] is not the place where we might find the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021521 # original and so on. Autoconf is especially sensitive to this).
21522 . "./$as_me.lineno"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021523 # Exit status is that of the last command.
21524 exit
21525}
21526
21527
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021528if (dirname -- /) >/dev/null 2>&1; then
21529 as_dirname=dirname
21530else
21531 as_dirname=false
21532fi
21533
21534ECHO_C= ECHO_N= ECHO_T=
21535case `echo -n x` in
21536-n*)
21537 case `echo 'x\c'` in
21538 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21539 *) ECHO_C='\c';;
21540 esac;;
21541*)
21542 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021543esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021544
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021545if expr a : '\(a\)' >/dev/null 2>&1 &&
21546 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021547 as_expr=expr
21548else
21549 as_expr=false
21550fi
21551
21552rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021553if test -d conf$$.dir; then
21554 rm -f conf$$.dir/conf$$.file
21555else
21556 rm -f conf$$.dir
21557 mkdir conf$$.dir
21558fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021559echo >conf$$.file
21560if ln -s conf$$.file conf$$ 2>/dev/null; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021561 as_ln_s='ln -s'
21562 # ... but there are two gotchas:
21563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21565 # In both cases, we have to default to `cp -p'.
21566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021567 as_ln_s='cp -p'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021568elif ln conf$$.file conf$$ 2>/dev/null; then
21569 as_ln_s=ln
21570else
21571 as_ln_s='cp -p'
21572fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021573rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21574rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021575
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021576if mkdir -p . 2>/dev/null; then
21577 as_mkdir_p=:
21578else
Alexandre Julliard875927f2004-01-02 01:55:29 +000021579 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021580 as_mkdir_p=false
21581fi
21582
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021583# Find out whether ``test -x'' works. Don't use a zero-byte file, as
21584# systems may use methods other than mode bits to determine executability.
21585cat >conf$$.file <<_ASEOF
21586#! /bin/sh
21587exit 0
21588_ASEOF
21589chmod +x conf$$.file
21590if test -x conf$$.file >/dev/null 2>&1; then
21591 as_executable_p="test -x"
21592else
21593 as_executable_p=:
21594fi
21595rm -f conf$$.file
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021596
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021597# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021598as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021599
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021600# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021601as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021602
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021603
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021604exec 6>&1
21605
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021606# Save the log message, to keep $[0] and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021607# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021608# values after options handling.
21609ac_log="
Alexandre Julliard2962ded2006-06-08 17:04:58 +020021610This file was extended by Wine $as_me 0.9.15, which was
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021611generated by GNU Autoconf 2.59d. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021612
21613 CONFIG_FILES = $CONFIG_FILES
21614 CONFIG_HEADERS = $CONFIG_HEADERS
21615 CONFIG_LINKS = $CONFIG_LINKS
21616 CONFIG_COMMANDS = $CONFIG_COMMANDS
21617 $ $0 $@
21618
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021619on `(hostname || uname -n) 2>/dev/null | sed 1q`
21620"
21621
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021622_ACEOF
21623
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021624cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021625# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021626config_files="$ac_config_files"
21627config_headers="$ac_config_headers"
21628config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021629
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021630_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021631
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021632cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021633ac_cs_usage="\
21634\`$as_me' instantiates files from templates according to the
21635current configuration.
21636
21637Usage: $0 [OPTIONS] [FILE]...
21638
21639 -h, --help print this help, then exit
21640 -V, --version print version number, then exit
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021641 -q, --quiet do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021642 -d, --debug don't remove temporary files
21643 --recheck update $as_me by reconfiguring in the same conditions
21644 --file=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000021645 instantiate the configuration file FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021646 --header=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000021647 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021648
21649Configuration files:
21650$config_files
21651
21652Configuration headers:
21653$config_headers
21654
21655Configuration commands:
21656$config_commands
21657
21658Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000021659
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021660_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021661cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021662ac_cs_version="\\
Alexandre Julliard2962ded2006-06-08 17:04:58 +020021663Wine config.status 0.9.15
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021664configured by $0, generated by GNU Autoconf 2.59d,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021665 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021666
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021667Copyright (C) 2006 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021668This config.status script is free software; the Free Software Foundation
21669gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021670
21671ac_pwd='$ac_pwd'
21672srcdir='$srcdir'
21673INSTALL='$INSTALL'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021674_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021675
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021676cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021677# If no file are specified by the user, then we need to provide default
21678# value. By we need to know if files were specified by the user.
21679ac_need_defaults=:
21680while test $# != 0
21681do
21682 case $1 in
21683 --*=*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021684 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21685 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021686 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021687 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021688 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021689 ac_option=$1
21690 ac_optarg=$2
21691 ac_shift=shift
21692 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021693 esac
21694
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021695 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021696 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021697 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21698 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021699 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21700 echo "$ac_cs_version"; exit ;;
21701 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021702 debug=: ;;
21703 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021704 $ac_shift
21705 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021706 ac_need_defaults=false;;
21707 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021708 $ac_shift
21709 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021710 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021711 --he | --h)
21712 # Conflict between --help and --header
21713 { echo "$as_me: error: ambiguous option: $1
21714Try \`$0 --help' for more information." >&2
21715 { (exit 1); exit 1; }; };;
21716 --help | --hel | -h )
21717 echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021718 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21719 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21720 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021721
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021722 # This is an error.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021723 -*) { echo "$as_me: error: unrecognized option: $1
21724Try \`$0 --help' for more information." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021725 { (exit 1); exit 1; }; } ;;
21726
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021727 *) ac_config_targets="$ac_config_targets $1"
21728 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021729
21730 esac
21731 shift
21732done
21733
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021734ac_configure_extra_args=
21735
21736if $ac_cs_silent; then
21737 exec 6>/dev/null
21738 ac_configure_extra_args="$ac_configure_extra_args --silent"
21739fi
21740
21741_ACEOF
21742cat >>$CONFIG_STATUS <<_ACEOF
21743if \$ac_cs_recheck; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021744 echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21745 CONFIG_SHELL=$SHELL
21746 export CONFIG_SHELL
21747 exec $SHELL "$0" $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021748fi
21749
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021750_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021751cat >>$CONFIG_STATUS <<\_ACEOF
21752exec 5>>config.log
21753{
21754 echo
21755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21756## Running $as_me. ##
21757_ASBOX
21758 echo "$ac_log"
21759} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021760
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021761_ACEOF
21762cat >>$CONFIG_STATUS <<_ACEOF
21763_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021764
21765cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021766
21767# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021768for ac_config_target in $ac_config_targets
21769do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021770 case $ac_config_target in
21771 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21772 "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
21773 "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
21774 "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
21775 "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
21776 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
21777 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
21778 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
21779 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
21780 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
21781 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
21782 "libs/Makelib.rules") CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
21783 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
21784 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21785 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
21786 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
21787 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
21788 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
21789 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
21790 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
21791 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
21792 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
21793 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
21794 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
21795 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
21796 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
21797 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
21798 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
21799 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
21800 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
21801 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
21802 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
21803 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
21804 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
21805 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
21806 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
21807 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
21808 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
21809 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
21810 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
21811 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
21812 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
21813 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
21814 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
21815 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
21816 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
21817 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
21818 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
21819 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
21820 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
21821 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
21822 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
21823 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
21824 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
21825 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
21826 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
21827 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
21828 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
21829 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
21830 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
21831 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
21832 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
21833 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
21834 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
21835 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
21836 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
21837 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
21838 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
21839 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
21840 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
21841 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
21842 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
21843 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
21844 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
21845 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
21846 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
21847 "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
21848 "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
21849 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
21850 "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
21851 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
21852 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
Mike McCormackb732e9b2006-06-06 19:26:24 +090021853 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021854 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
21855 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
21856 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
21857 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
21858 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
21859 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
21860 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
21861 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
21862 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
21863 "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
21864 "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
21865 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
21866 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
21867 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
21868 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
21869 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
21870 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
21871 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
21872 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
21873 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
21874 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
21875 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
21876 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
21877 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
21878 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
21879 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
21880 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
21881 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
21882 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
21883 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
21884 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
21885 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
21886 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
21887 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
21888 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
21889 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
21890 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
21891 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
21892 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
21893 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
21894 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
21895 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
21896 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
21897 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
21898 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
21899 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
21900 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
21901 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
21902 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
21903 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
21904 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
21905 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
21906 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
21907 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
21908 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
21909 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
21910 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
21911 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
21912 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
21913 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
21914 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
21915 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
21916 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
21917 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
21918 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
21919 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
21920 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
21921 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
21922 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
21923 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
21924 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
21925 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
21926 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
21927 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
21928 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
21929 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
21930 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
21931 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
21932 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
21933 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
21934 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
21935 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
21936 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
21937 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
21938 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
21939 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
21940 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
21941 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
21942 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
21943 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
21944 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
21945 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
21946 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
21947 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
21948 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
21949 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
21950 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
21951 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
21952 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
21953 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
21954 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
21955 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
21956 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
21957 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
21958 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
21959 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
21960 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
21961 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
21962 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
21963 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
21964 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
21965 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
21966 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
21967 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
21968 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
21969 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
21970 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
21971 "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
21972 "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Mike McCormacka6ea0f62006-06-05 14:01:10 +090021973 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021974 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
21975 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
21976 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
21977 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
Paul Vriens569a4522006-06-13 14:16:58 +020021978 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021979 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
21980 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
21981 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
21982 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
21983 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
21984 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
21985 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
21986 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
21987 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
21988 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
21989 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
21990 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
21991 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
21992 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
21993 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
Alexandre Julliardbdb4fab2006-06-16 09:57:50 +020021994 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021995 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
21996 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
21997 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
21998 "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
21999 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
22000 "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
22001 "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
22002 "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
Emmanuel Maillard144a5352006-05-28 22:46:23 +020022003 "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022004 "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
22005 "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
22006 "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
22007 "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
22008 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
22009 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
22010 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
22011 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
22012 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
22013 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
22014 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
22015 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
22016 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
22017 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
22018 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
22019 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022020 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
22021 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
22022 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22023 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
22024 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
22025 "libs/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
22026 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
22027 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
22028 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
22029 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
22030 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
22031 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
22032 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
22033 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
22034 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
22035 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
22036 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
22037 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
22038 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
22039 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
22040 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
22041 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
22042 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
22043 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
22044 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
22045 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
22046 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
22047 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
22048 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
22049 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
22050 "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
22051 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
22052 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
22053 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
22054 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
22055 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
22056 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
22057 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
22058 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
22059 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
22060 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
22061 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
22062 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
22063 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
22064 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
22065 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
22066 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22067 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
22068 "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
22069 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
22070 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
22071 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
22072 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
22073 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
22074
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022075 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022076echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22077 { (exit 1); exit 1; }; };;
22078 esac
22079done
22080
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022081
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022082# If the user did not use the arguments to specify the items to instantiate,
22083# then the envvar interface is used. Set only those that are not.
22084# We use the long form for the default assignment because of an extremely
22085# bizarre bug on SunOS 4.1.3.
22086if $ac_need_defaults; then
22087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22088 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22089 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22090fi
22091
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000022092# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022093# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000022094# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022095# Hook for its removal unless debugging.
22096# Note that there is a small window in which the directory will not be cleaned:
22097# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022098$debug ||
22099{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022100 tmp=
22101 trap 'exit_status=$?
22102 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22103' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022104 trap '{ (exit 1); exit 1; }' 1 2 13 15
22105}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022106# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000022107
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022108{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022109 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022110 test -n "$tmp" && test -d "$tmp"
22111} ||
22112{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022113 tmp=./conf$$-$RANDOM
22114 (umask 077 && mkdir "$tmp")
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022115} ||
22116{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000022117 echo "$me: cannot create a temporary directory in ." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022118 { (exit 1); exit 1; }
22119}
22120
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022121#
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022122# Set up the sed scripts for CONFIG_FILES section.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022123#
22124
22125# No need to generate the scripts if there are no CONFIG_FILES.
22126# This happens for instance when ./config.status config.h
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022127if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022128
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022129_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022130
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022131# Create sed commands to just substitute file output variables.
22132
22133# Remaining file output variables are in a fragment that also has non-file
22134# output varibles.
22135
22136
22137
22138ac_delim='%!_!# '
22139for ac_last_try in false false false false false :; do
22140 cat >conf$$subs.sed <<_ACEOF
22141SHELL!$SHELL$ac_delim
22142PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22143PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22144PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22145PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22146PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22147PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22148exec_prefix!$exec_prefix$ac_delim
22149prefix!$prefix$ac_delim
22150program_transform_name!$program_transform_name$ac_delim
22151bindir!$bindir$ac_delim
22152sbindir!$sbindir$ac_delim
22153libexecdir!$libexecdir$ac_delim
22154datarootdir!$datarootdir$ac_delim
22155datadir!$datadir$ac_delim
22156sysconfdir!$sysconfdir$ac_delim
22157sharedstatedir!$sharedstatedir$ac_delim
22158localstatedir!$localstatedir$ac_delim
22159includedir!$includedir$ac_delim
22160oldincludedir!$oldincludedir$ac_delim
22161docdir!$docdir$ac_delim
22162infodir!$infodir$ac_delim
22163htmldir!$htmldir$ac_delim
22164dvidir!$dvidir$ac_delim
22165pdfdir!$pdfdir$ac_delim
22166psdir!$psdir$ac_delim
22167libdir!$libdir$ac_delim
22168localedir!$localedir$ac_delim
22169mandir!$mandir$ac_delim
22170DEFS!$DEFS$ac_delim
22171ECHO_C!$ECHO_C$ac_delim
22172ECHO_N!$ECHO_N$ac_delim
22173ECHO_T!$ECHO_T$ac_delim
22174LIBS!$LIBS$ac_delim
22175build_alias!$build_alias$ac_delim
22176host_alias!$host_alias$ac_delim
22177target_alias!$target_alias$ac_delim
22178build!$build$ac_delim
22179build_cpu!$build_cpu$ac_delim
22180build_vendor!$build_vendor$ac_delim
22181build_os!$build_os$ac_delim
22182host!$host$ac_delim
22183host_cpu!$host_cpu$ac_delim
22184host_vendor!$host_vendor$ac_delim
22185host_os!$host_os$ac_delim
22186WIN16_FILES!$WIN16_FILES$ac_delim
22187WIN16_INSTALL!$WIN16_INSTALL$ac_delim
22188SET_MAKE!$SET_MAKE$ac_delim
22189CC!$CC$ac_delim
22190CFLAGS!$CFLAGS$ac_delim
22191LDFLAGS!$LDFLAGS$ac_delim
22192CPPFLAGS!$CPPFLAGS$ac_delim
22193ac_ct_CC!$ac_ct_CC$ac_delim
22194EXEEXT!$EXEEXT$ac_delim
22195OBJEXT!$OBJEXT$ac_delim
22196CXX!$CXX$ac_delim
22197CXXFLAGS!$CXXFLAGS$ac_delim
22198ac_ct_CXX!$ac_ct_CXX$ac_delim
22199CPPBIN!$CPPBIN$ac_delim
22200TOOLSDIR!$TOOLSDIR$ac_delim
22201XMKMF!$XMKMF$ac_delim
22202CPP!$CPP$ac_delim
22203X_CFLAGS!$X_CFLAGS$ac_delim
22204X_PRE_LIBS!$X_PRE_LIBS$ac_delim
22205X_LIBS!$X_LIBS$ac_delim
22206X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
22207LEX!$LEX$ac_delim
22208LEXLIB!$LEXLIB$ac_delim
22209LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
22210XLEX!$XLEX$ac_delim
22211BISON!$BISON$ac_delim
22212AS!$AS$ac_delim
22213ac_ct_AS!$ac_ct_AS$ac_delim
22214LD!$LD$ac_delim
22215AR!$AR$ac_delim
22216RANLIB!$RANLIB$ac_delim
22217STRIP!$STRIP$ac_delim
22218WINDRES!$WINDRES$ac_delim
22219LN_S!$LN_S$ac_delim
22220_ACEOF
22221
22222 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 79; then
22223 break
22224 elif $ac_last_try; then
22225 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22226echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22227 { (exit 1); exit 1; }; }
22228 else
22229 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022230 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022231done
22232
22233ac_eof=
22234if grep '^CEOF$' conf$$subs.sed >/dev/null; then
22235 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
22236 ac_eof=`expr 0$ac_eof + 1`
22237fi
22238
22239cat >>$CONFIG_STATUS <<_ACEOF
22240cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22241/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22242/^[ ]*@MAKE_RULES@[ ]*$/{
22243r $MAKE_RULES
22244d
22245}
22246/^[ ]*@MAKE_DLL_RULES@[ ]*$/{
22247r $MAKE_DLL_RULES
22248d
22249}
22250/^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
22251r $MAKE_IMPLIB_RULES
22252d
22253}
22254/^[ ]*@MAKE_TEST_RULES@[ ]*$/{
22255r $MAKE_TEST_RULES
22256d
22257}
22258/^[ ]*@MAKE_LIB_RULES@[ ]*$/{
22259r $MAKE_LIB_RULES
22260d
22261}
22262/^[ ]*@MAKE_PROG_RULES@[ ]*$/{
22263r $MAKE_PROG_RULES
22264d
22265}
22266_ACEOF
22267sed '
22268s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22269s/^/s,@/; s/!/@,|#_!!_#|/
22270:n
22271t n
22272s/'"$ac_delim"'$/,g/; t
22273s/$/\\/; p
22274N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22275' >>$CONFIG_STATUS <conf$$subs.sed
22276rm -f conf$$subs.sed
22277cat >>$CONFIG_STATUS <<_ACEOF
22278CEOF$ac_eof
22279_ACEOF
22280
22281
22282ac_delim='%!_!# '
22283for ac_last_try in false false false false false :; do
22284 cat >conf$$subs.sed <<_ACEOF
22285LN!$LN$ac_delim
22286GREP!$GREP$ac_delim
22287EGREP!$EGREP$ac_delim
22288LDCONFIG!$LDCONFIG$ac_delim
22289INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22290INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22291INSTALL_DATA!$INSTALL_DATA$ac_delim
22292LINT!$LINT$ac_delim
22293LINTFLAGS!$LINTFLAGS$ac_delim
22294FONTFORGE!$FONTFORGE$ac_delim
22295PKG_CONFIG!$PKG_CONFIG$ac_delim
22296PRELINK!$PRELINK$ac_delim
22297LIBPTHREAD!$LIBPTHREAD$ac_delim
22298XLIB!$XLIB$ac_delim
22299XFILES!$XFILES$ac_delim
22300OPENGLFILES!$OPENGLFILES$ac_delim
22301GLU32FILES!$GLU32FILES$ac_delim
22302OPENGL_LIBS!$OPENGL_LIBS$ac_delim
22303GLUT_LIBS!$GLUT_LIBS$ac_delim
22304GLUT32FILES!$GLUT32FILES$ac_delim
22305NASLIBS!$NASLIBS$ac_delim
22306XML2LIBS!$XML2LIBS$ac_delim
22307XML2INCL!$XML2INCL$ac_delim
22308XSLTLIBS!$XSLTLIBS$ac_delim
22309XSLTINCL!$XSLTINCL$ac_delim
22310HALINCL!$HALINCL$ac_delim
22311CURSESLIBS!$CURSESLIBS$ac_delim
22312sane_devel!$sane_devel$ac_delim
22313SANELIBS!$SANELIBS$ac_delim
22314SANEINCL!$SANEINCL$ac_delim
22315gphoto2_devel!$gphoto2_devel$ac_delim
22316gphoto2port_devel!$gphoto2port_devel$ac_delim
22317GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
22318GPHOTO2INCL!$GPHOTO2INCL$ac_delim
22319ICULIBS!$ICULIBS$ac_delim
22320RESOLVLIBS!$RESOLVLIBS$ac_delim
22321LCMSLIBS!$LCMSLIBS$ac_delim
22322LDAPLIBS!$LDAPLIBS$ac_delim
22323FREETYPELIBS!$FREETYPELIBS$ac_delim
22324FREETYPEINCL!$FREETYPEINCL$ac_delim
22325ft_devel!$ft_devel$ac_delim
22326ft_devel2!$ft_devel2$ac_delim
22327FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
22328ARTSCCONFIG!$ARTSCCONFIG$ac_delim
22329ARTSLIBS!$ARTSLIBS$ac_delim
22330ARTSINCL!$ARTSINCL$ac_delim
22331ESDCONFIG!$ESDCONFIG$ac_delim
22332ESDLIBS!$ESDLIBS$ac_delim
22333ESDINCL!$ESDINCL$ac_delim
22334ALSALIBS!$ALSALIBS$ac_delim
22335AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
22336EXTRACFLAGS!$EXTRACFLAGS$ac_delim
22337BUILTINFLAG!$BUILTINFLAG$ac_delim
22338DLLEXT!$DLLEXT$ac_delim
22339DLLFLAGS!$DLLFLAGS$ac_delim
22340DLLIBS!$DLLIBS$ac_delim
22341LDSHARED!$LDSHARED$ac_delim
22342LDDLLFLAGS!$LDDLLFLAGS$ac_delim
22343LIBEXT!$LIBEXT$ac_delim
22344IMPLIBEXT!$IMPLIBEXT$ac_delim
22345DLLTOOL!$DLLTOOL$ac_delim
22346DLLWRAP!$DLLWRAP$ac_delim
22347LDEXECFLAGS!$LDEXECFLAGS$ac_delim
22348LDEXERPATH!$LDEXERPATH$ac_delim
22349LDDLLRPATH!$LDDLLRPATH$ac_delim
22350COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
22351IOKITLIB!$IOKITLIB$ac_delim
Emmanuel Maillard144a5352006-05-28 22:46:23 +020022352COREAUDIO!$COREAUDIO$ac_delim
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022353CROSSTEST!$CROSSTEST$ac_delim
22354CROSSCC!$CROSSCC$ac_delim
22355CROSSWINDRES!$CROSSWINDRES$ac_delim
22356LDPATH!$LDPATH$ac_delim
22357CRTLIBS!$CRTLIBS$ac_delim
22358SOCKETLIBS!$SOCKETLIBS$ac_delim
22359MAIN_BINARY!$MAIN_BINARY$ac_delim
22360EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
22361LDD!$LDD$ac_delim
22362LIBOBJS!$LIBOBJS$ac_delim
22363LTLIBOBJS!$LTLIBOBJS$ac_delim
22364_ACEOF
22365
Emmanuel Maillard144a5352006-05-28 22:46:23 +020022366 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 79; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022367 break
22368 elif $ac_last_try; then
22369 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22370echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22371 { (exit 1); exit 1; }; }
22372 else
22373 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22374 fi
22375done
22376
22377ac_eof=
22378if grep '^CEOF$' conf$$subs.sed >/dev/null; then
22379 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
22380 ac_eof=`expr 0$ac_eof + 1`
22381fi
22382
22383cat >>$CONFIG_STATUS <<_ACEOF
22384cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22385/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22386_ACEOF
22387sed '
22388s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22389s/^/s,@/; s/!/@,|#_!!_#|/
22390:n
22391t n
22392s/'"$ac_delim"'$/,g/; t
22393s/$/\\/; p
22394N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22395' >>$CONFIG_STATUS <conf$$subs.sed
22396rm -f conf$$subs.sed
22397cat >>$CONFIG_STATUS <<_ACEOF
22398:end
22399s/|#_!!_#|//g
22400CEOF$ac_eof
22401_ACEOF
22402
22403
22404# VPATH may cause trouble with some makes, so we remove $(srcdir),
22405# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22406# trailing colons and then remove the whole line if VPATH becomes empty
22407# (actually we leave an empty line to preserve line numbers).
22408if test "x$srcdir" = x.; then
22409 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22410s/:*\$(srcdir):*/:/
22411s/:*\${srcdir}:*/:/
22412s/:*@srcdir@:*/:/
22413s/^\([^=]*=[ ]*\):*/\1/
22414s/:*$//
22415s/^[^=]*=[ ]*$//
22416}'
22417fi
22418
22419cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022420fi # test -n "$CONFIG_FILES"
22421
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022422
22423for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22424do
22425 case $ac_tag in
22426 :[FHLC]) ac_mode=$ac_tag; continue;;
22427 esac
22428 case $ac_mode$ac_tag in
22429 :[FHL]*:*);;
22430 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22431echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22432 { (exit 1); exit 1; }; };;
22433 :[FH]-) ac_tag=-:-;;
22434 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22435 esac
22436 ac_save_IFS=$IFS
22437 IFS=:
22438 set x $ac_tag
22439 IFS=$ac_save_IFS
22440 shift
22441 ac_file=$1
22442 shift
22443
22444 case $ac_mode in
22445 :L) ac_source=$1;;
22446 :[FH])
22447 ac_file_inputs=
22448 for ac_f
22449 do
22450 case $ac_f in
22451 -) ac_f="$tmp/stdin";;
22452 *) # Look for the file first in the build tree, then in the source tree
22453 # (if the path is not absolute). The absolute path cannot be DOS-style,
22454 # because $ac_f cannot contain `:'.
22455 test -f "$ac_f" ||
22456 case $ac_f in
22457 [\\/$]*) false;;
22458 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22459 esac ||
22460 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22461echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22462 { (exit 1); exit 1; }; };;
22463 esac
22464 ac_file_inputs="$ac_file_inputs $ac_f"
22465 done
22466
22467 # Let's still pretend it is `configure' which instantiates (i.e., don't
22468 # use $as_me), people would be surprised to read:
22469 # /* config.h. Generated by config.status. */
22470 configure_input="Generated from "`IFS=:
22471 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22472 if test x"$ac_file" != x-; then
22473 configure_input="$ac_file. $configure_input"
22474 { echo "$as_me:$LINENO: creating $ac_file" >&5
22475echo "$as_me: creating $ac_file" >&6;}
22476 fi
22477
22478 case $ac_tag in
22479 *:-:* | *:-) cat >"$tmp/stdin";;
22480 esac
22481 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022482 esac
22483
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022484 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022485$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000022486 X"$ac_file" : 'X\(//\)[^/]' \| \
22487 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022488 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022489echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22491 s//\1/
22492 q
22493 }
22494 /^X\(\/\/\)[^/].*/{
22495 s//\1/
22496 q
22497 }
22498 /^X\(\/\/\)$/{
22499 s//\1/
22500 q
22501 }
22502 /^X\(\/\).*/{
22503 s//\1/
22504 q
22505 }
22506 s/.*/./; q'`
22507 { as_dir="$ac_dir"
22508 case $as_dir in #(
22509 -*) as_dir=./$as_dir;;
22510 esac
22511 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Alexandre Julliard11af04e2002-10-10 03:48:04 +000022512 as_dirs=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022513 while :; do
22514 case $as_dir in #(
22515 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22516 *) as_qdir=$as_dir;;
22517 esac
22518 as_dirs="'$as_qdir' $as_dirs"
22519 as_dir=`$as_dirname -- "$as_dir" ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000022520$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000022521 X"$as_dir" : 'X\(//\)[^/]' \| \
22522 X"$as_dir" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022523 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000022524echo X"$as_dir" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22526 s//\1/
22527 q
22528 }
22529 /^X\(\/\/\)[^/].*/{
22530 s//\1/
22531 q
22532 }
22533 /^X\(\/\/\)$/{
22534 s//\1/
22535 q
22536 }
22537 /^X\(\/\).*/{
22538 s//\1/
22539 q
22540 }
22541 s/.*/./; q'`
22542 test -d "$as_dir" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +000022543 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022544 test -z "$as_dirs" || eval "mkdir $as_dirs"
22545 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22546echo "$as_me: error: cannot create directory $as_dir" >&2;}
Alexandre Julliard11af04e2002-10-10 03:48:04 +000022547 { (exit 1); exit 1; }; }; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022548 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000022549
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022550case "$ac_dir" in
22551.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22552*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022553 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022554 # A ".." for each directory in $ac_dir_suffix.
22555 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22556 case $ac_top_builddir_sub in
22557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22559 esac ;;
22560esac
22561ac_abs_top_builddir=$ac_pwd
22562ac_abs_builddir=$ac_pwd$ac_dir_suffix
22563# for backward compatibility:
22564ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022565
22566case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022567 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022568 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022569 ac_top_srcdir=$ac_top_builddir_sub
22570 ac_abs_top_srcdir=$ac_pwd ;;
22571 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022572 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022573 ac_top_srcdir=$srcdir
22574 ac_abs_top_srcdir=$srcdir ;;
22575 *) # Relative name.
22576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22577 ac_top_srcdir=$ac_top_build_prefix$srcdir
22578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022579esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022580ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000022581
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022582
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022583 case $ac_mode in
22584 :F)
22585 #
22586 # CONFIG_FILE
22587 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000022588
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022589 case $INSTALL in
22590 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022591 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000022592 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022593_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022594
22595cat >>$CONFIG_STATUS <<\_ACEOF
22596# If the template does not know about datarootdir, expand it.
22597# FIXME: This hack should be removed a few years after 2.60.
22598ac_datarootdir_hack=
22599
22600case `sed -n '/datarootdir/ {
22601 p
22602 q
22603}
22604/@datadir@/p
22605/@docdir@/p
22606/@infodir@/p
22607/@localedir@/p
22608/@mandir@/p
22609' $ac_file_inputs` in
22610*datarootdir*) ;;
22611*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22612 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22613echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22614_ACEOF
22615cat >>$CONFIG_STATUS <<_ACEOF
22616 ac_datarootdir_hack='
22617 s&@datadir@&$datadir&g
22618 s&@docdir@&$docdir&g
22619 s&@infodir@&$infodir&g
22620 s&@localedir@&$localedir&g
22621 s&@mandir@&$mandir&g
22622 s&\\\${datarootdir}&$datarootdir&g' ;;
22623esac
22624_ACEOF
22625
22626# Neutralize VPATH when `$srcdir' = `.'.
22627# Shell code in configure.ac might set extrasub.
22628# FIXME: do we really want to maintain this feature?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022629cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022630 sed "$ac_vpsub
22631$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022632_ACEOF
22633cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022634:t
22635/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022636s&@configure_input@&$configure_input&;t t
22637s&@top_builddir@&$ac_top_builddir_sub&;t t
22638s&@srcdir@&$ac_srcdir&;t t
22639s&@abs_srcdir@&$ac_abs_srcdir&;t t
22640s&@top_srcdir@&$ac_top_srcdir&;t t
22641s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22642s&@builddir@&$ac_builddir&;t t
22643s&@abs_builddir@&$ac_abs_builddir&;t t
22644s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22645s&@INSTALL@&$ac_INSTALL&;t t
22646$ac_datarootdir_hack
22647" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022648
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022649 rm -f "$tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022650 case $ac_file in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022651 -) cat "$tmp/out"; rm -f "$tmp/out";;
22652 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000022653 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022654 ;;
22655 :H)
22656 #
22657 # CONFIG_HEADER
22658 #
Alexandre Julliard18f92e71996-07-17 20:02:21 +000022659
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022660 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22661 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22662 # PARAMS is the parameter list in the macro definition--in most cases, it's
22663 # just an empty string.
22664 #
22665 ac_dA='s,^\([ ]*#[ ]*\)[^ ]*\([ ][ ]*'
22666 ac_dB='\)[ (].*$,\1define\2'
22667 ac_dC=' '
22668 ac_dD=' ,'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000022669
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022670 ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022671_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000022672
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022673# Transform confdefs.h into a sed script `conftest.defines', that
22674# substitutes the proper values into config.h.in to produce config.h.
22675rm -f conftest.defines conftest.tail
22676# First, append a space to every undef/define line, to ease matching.
22677echo 's/$/ /' >conftest.defines
22678# Then, protect against being on the right side of a sed subst, or in
22679# an unquoted here document, in config.status. If some macros were
22680# called several times there might be several #defines for the same
22681# symbol, which is useless. But do not sort them, since the last
22682# AC_DEFINE must be honored.
22683ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22684uniq confdefs.h |
22685 sed -n '
22686 t rset
22687 :rset
22688 s/^[ ]*#[ ]*define[ ][ ]*//
22689 t ok
22690 d
22691 :ok
22692 s/[\\&,]/\\&/g
22693 s/[\\$`]/\\&/g
22694 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
22695 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
22696 ' >>conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000022697
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022698# Remove the space that was appended to ease matching.
22699# Then replace #undef with comments. This is necessary, for
Alexandre Julliard18f92e71996-07-17 20:02:21 +000022700# example, in the case of _POSIX_SOURCE, which is predefined and required
22701# on some systems where configure will not decide to define it.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022702# (The regexp can be short, since the line contains either #define or #undef.)
22703echo 's/ $//
22704s,^[ #]*u.*,/* & */,' >>conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000022705
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022706# Break up conftest.defines:
22707ac_max_sed_lines=96
22708
22709# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22710# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22711# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22712# et cetera.
22713ac_in='$ac_file_inputs'
22714ac_out='"$tmp/out1"'
22715ac_nxt='"$tmp/out2"'
22716
22717while :
Alexandre Julliard18f92e71996-07-17 20:02:21 +000022718do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022719 # Write a here document:
22720 echo ' # First, check the format of the line:
22721 cat >"$tmp/defines.sed" <<CEOF
22722/^[ ]*#[ ]*undef[ ][ ]*$ac_word_regexp[ ]*$/b def
22723/^[ ]*#[ ]*define[ ][ ]*$ac_word_regexp[( ]/b def
22724b
22725:def' >>$CONFIG_STATUS
22726 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000022727 echo 'CEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022728 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22729 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22730 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22731 grep . conftest.tail >/dev/null || break
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022732 rm -f conftest.defines
22733 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000022734done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022735rm -f conftest.defines conftest.tail
Alexandre Julliard18f92e71996-07-17 20:02:21 +000022736
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022737echo "ac_result=$ac_in" >>$CONFIG_STATUS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022738cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022739 if test x"$ac_file" != x-; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022740 echo "/* $configure_input */" >"$tmp/config.h"
22741 cat "$ac_result" >>"$tmp/config.h"
22742 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022743 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022744echo "$as_me: $ac_file is unchanged" >&6;}
22745 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022746 rm -f $ac_file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022747 mv "$tmp/config.h" $ac_file
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022748 fi
22749 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022750 echo "/* $configure_input */"
22751 cat "$ac_result"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022752 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022753 rm -f "$tmp/out12"
22754 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000022755
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022756 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22757echo "$as_me: executing $ac_file commands" >&6;}
22758 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022759 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000022760
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022761
22762 case $ac_file$ac_mode in
22763 "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
22764echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
22765 "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
22766echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
22767 "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
22768echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
22769 "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
22770echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
22771 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
22772echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
22773 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
22774echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
22775
22776 esac
22777done # for ac_tag
22778
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000022779
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022780{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022781_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000022782chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022783ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000022784
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022785
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022786# configure is writing to config.log, and then calls config.status.
22787# config.status does its own redirection, appending to config.log.
22788# Unfortunately, on DOS this fails, as config.log is still kept open
22789# by configure, so config.status won't be able to write to it; its
22790# output is simply discarded. So we exec the FD to /dev/null,
22791# effectively closing config.log, so it can be properly (re)opened and
22792# appended to by config.status. When coming back to configure, we
22793# need to make the FD available again.
22794if test "$no_create" != yes; then
22795 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000022796 ac_config_status_args=
22797 test "$silent" = yes &&
22798 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022799 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000022800 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022801 exec 5>>config.log
22802 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22803 # would make configure fail if this is the last instruction.
22804 $ac_cs_success || { (exit 1); exit 1; }
22805fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000022806
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022807
Mike McCormack8d6b9aa2006-04-17 18:16:10 +090022808exitcode=0
Ove Kaaven8b4431f1999-01-23 13:59:11 +000022809if test "$have_x" = "no"
22810then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020022811 echo >&2
22812 { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
22813echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
22814 { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
22815echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
22816 { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
22817echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
22818 { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5
22819echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;}
Mike McCormack8d6b9aa2006-04-17 18:16:10 +090022820 exitcode=1
Ove Kaaven8b4431f1999-01-23 13:59:11 +000022821fi
22822
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000022823if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000022824then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020022825 echo >&2
22826 { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&5
22827echo "$as_me: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&2;}
22828 { echo "$as_me:$LINENO: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
22829echo "$as_me: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
Mike McCormack8d6b9aa2006-04-17 18:16:10 +090022830 exitcode=1
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000022831fi
22832
Ian Pilcher563598d2001-05-16 20:56:05 +000022833if test "$wine_cv_msg_freetype" = "yes"
22834then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020022835 echo >&2
22836 { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
22837echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
22838 { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
22839echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
22840 { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
22841echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
22842 { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
22843echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
Mike McCormack8d6b9aa2006-04-17 18:16:10 +090022844 exitcode=1
Ian Pilcher563598d2001-05-16 20:56:05 +000022845fi
22846
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020022847if test -z "$FONTSSUBDIRS"
Mike McCormack8f6aa412006-04-04 13:36:51 +090022848then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020022849 echo >&2
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020022850 if test "$FONTFORGE" = "false"
22851 then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020022852 { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
22853echo "$as_me: WARNING: FontForge is missing." >&2;}
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020022854 else
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020022855 { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
22856echo "$as_me: WARNING: FreeType is missing." >&2;}
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020022857 fi
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020022858 { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
22859echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
Mike McCormack8d6b9aa2006-04-17 18:16:10 +090022860 exitcode=1
Mike McCormack8f6aa412006-04-04 13:36:51 +090022861fi
22862
Alexandre Julliard82776022005-08-08 11:17:25 +000022863if test -z "$ALSALIBS" -a \
22864 -z "$ARTSC_LIBS" -a \
22865 -z "$AUDIOIOLIBS" -a \
22866 -z "$NASLIBS" -a \
22867 -z "$ESD_LIBS" -a \
22868 -z "$ac_cv_lib_soname_jack" -a \
22869 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
22870 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
22871 "$ac_cv_header_soundcard_h" != "yes"
Francois Gouget99d026f2005-03-19 17:08:18 +000022872then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020022873 echo >&2
22874 { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
22875echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
22876 { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
22877echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
22878 { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
22879echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
Mike McCormack8d6b9aa2006-04-17 18:16:10 +090022880 exitcode=1
Francois Gouget99d026f2005-03-19 17:08:18 +000022881fi
22882
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000022883echo
Vincent BĂ©ron5606d102004-08-19 00:03:45 +000022884echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000022885echo
22886
Mike McCormack8d6b9aa2006-04-17 18:16:10 +090022887exit $exitcode
22888