blob: 90aa97e4e36a9214e15caf54af3d574a5c4538d0 [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 Julliardf9cd7142006-07-27 16:55:50 +02003# Generated by GNU Autoconf 2.60a for Wine 0.9.18.
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
Jeremy White0ebeb532006-06-20 13:18:41 +0200235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200238# 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
Jeremy White0ebeb532006-06-20 13:18:41 +0200257 if { "$as_shell" 2> /dev/null <<\_ASEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200258# 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
Jeremy White0ebeb532006-06-20 13:18:41 +0200462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200463 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 Julliardf9cd7142006-07-27 16:55:50 +0200562PACKAGE_VERSION='0.9.18'
563PACKAGE_STRING='Wine 0.9.18'
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 Julliardf9cd7142006-07-27 16:55:50 +02001281\`configure' configures Wine 0.9.18 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 Julliardf9cd7142006-07-27 16:55:50 +02001350 short | recursive ) echo "Configuration of Wine 0.9.18:";;
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
Jeremy White0ebeb532006-06-20 13:18:41 +02001392 test -d "$ac_dir" || continue
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001393 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.
Jeremy White0ebeb532006-06-20 13:18:41 +02001429 if test -f "$ac_srcdir/configure.gnu"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001430 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001433 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001434 $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 Julliardf9cd7142006-07-27 16:55:50 +02001445Wine configure 0.9.18
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02001446generated by GNU Autoconf 2.60a
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 Julliardf9cd7142006-07-27 16:55:50 +02001459It was created by Wine $as_me 0.9.18, which was
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02001460generated by GNU Autoconf 2.60a. 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 Julliarde24bcc72002-12-24 00:35:19 +00001520ac_must_keep_next=false
1521for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001522do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001523 for ac_arg
1524 do
1525 case $ac_arg in
1526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1529 continue ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001530 *\'*)
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001531 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 esac
1533 case $ac_pass in
1534 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1535 2)
1536 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1537 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00001538 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001539 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00001540 case $ac_arg in
1541 *=* | --config-cache | -C | -disable-* | --disable-* \
1542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1544 | -with-* | --with-* | -without-* | --without-* | --x)
1545 case "$ac_configure_args0 " in
1546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 esac
1548 ;;
1549 -* ) ac_must_keep_next=true ;;
1550 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001551 fi
Jeremy White0ebeb532006-06-20 13:18:41 +02001552 ac_configure_args="$ac_configure_args '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001553 ;;
1554 esac
1555 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001556done
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001557$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1558$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 +00001559
1560# When interrupted or exit'd, cleanup temporary files, and complete
1561# config.log. We remove comments because anyway the quotes in there
1562# would cause problems or look ugly.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001563# WARNING: Use '\'' to represent an apostrophe within the trap.
1564# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001565trap 'exit_status=$?
1566 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001567 {
1568 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001569
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001570 cat <<\_ASBOX
1571## ---------------- ##
1572## Cache variables. ##
1573## ---------------- ##
1574_ASBOX
1575 echo
1576 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001577(
1578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1579 eval ac_val=\$$ac_var
1580 case $ac_val in #(
1581 *${as_nl}*)
1582 case $ac_var in #(
1583 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1584echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1585 esac
1586 case $ac_var in #(
1587 _ | IFS | as_nl) ;; #(
1588 *) $as_unset $ac_var ;;
1589 esac ;;
1590 esac
1591 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001592 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001593 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1594 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001595 sed -n \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001596 "s/'\''/'\''\\\\'\'''\''/g;
1597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1598 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001599 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001601 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001602 esac |
1603 sort
1604)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001605 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001606
1607 cat <<\_ASBOX
1608## ----------------- ##
1609## Output variables. ##
1610## ----------------- ##
1611_ASBOX
1612 echo
1613 for ac_var in $ac_subst_vars
1614 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001615 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02001616 case $ac_val in
1617 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001619 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
Jeremy White0ebeb532006-06-20 13:18:41 +02001633 case $ac_val in
1634 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001636 echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001637 done | sort
1638 echo
1639 fi
1640
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001641 if test -s confdefs.h; then
1642 cat <<\_ASBOX
1643## ----------- ##
1644## confdefs.h. ##
1645## ----------- ##
1646_ASBOX
1647 echo
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001648 cat confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001649 echo
1650 fi
1651 test "$ac_signal" != 0 &&
1652 echo "$as_me: caught signal $ac_signal"
1653 echo "$as_me: exit $exit_status"
1654 } >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001655 rm -f core *.core core.conftest.* &&
1656 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001657 exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001658' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001659for ac_signal in 1 2 13 15; do
1660 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1661done
1662ac_signal=0
1663
1664# confdefs.h avoids OS command line length limits that DEFS can exceed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001665rm -f -r conftest* confdefs.h
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001666
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001667# Predefined preprocessor variables.
1668
1669cat >>confdefs.h <<_ACEOF
1670#define PACKAGE_NAME "$PACKAGE_NAME"
1671_ACEOF
1672
1673
1674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1676_ACEOF
1677
1678
1679cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_VERSION "$PACKAGE_VERSION"
1681_ACEOF
1682
1683
1684cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_STRING "$PACKAGE_STRING"
1686_ACEOF
1687
1688
1689cat >>confdefs.h <<_ACEOF
1690#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1691_ACEOF
1692
1693
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001694# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001695# Prefer explicitly selected file to automatically selected ones.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001696if test -n "$CONFIG_SITE"; then
1697 set x "$CONFIG_SITE"
1698elif test "x$prefix" != xNONE; then
1699 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1700else
1701 set x "$ac_default_prefix/share/config.site" \
1702 "$ac_default_prefix/etc/config.site"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001703fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001704shift
1705for ac_site_file
1706do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001707 if test -r "$ac_site_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001708 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001709echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001710 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001711 . "$ac_site_file"
1712 fi
1713done
1714
1715if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001716 # Some versions of bash will fail to source /dev/null (special
1717 # files actually), so we avoid doing that.
1718 if test -f "$cache_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001719 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001720echo "$as_me: loading cache $cache_file" >&6;}
1721 case $cache_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02001722 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1723 *) . "./$cache_file";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001724 esac
1725 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001726else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001727 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001728echo "$as_me: creating cache $cache_file" >&6;}
1729 >$cache_file
1730fi
1731
1732# Check that the precious variables saved in the cache have kept the same
1733# value.
1734ac_cache_corrupted=false
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001735for ac_var in $ac_precious_vars; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001736 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1737 eval ac_new_set=\$ac_env_${ac_var}_set
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001738 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1739 eval ac_new_val=\$ac_env_${ac_var}_value
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001740 case $ac_old_set,$ac_new_set in
1741 set,)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001742 { 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 +00001743echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1745 ,set)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001746 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001747echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1748 ac_cache_corrupted=: ;;
1749 ,);;
1750 *)
1751 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00001752 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001753echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001754 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001755echo "$as_me: former value: $ac_old_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001756 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001757echo "$as_me: current value: $ac_new_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001758 ac_cache_corrupted=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001759 fi;;
1760 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001761 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001762 if test "$ac_new_set" = set; then
1763 case $ac_new_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001764 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001765 *) ac_arg=$ac_var=$ac_new_val ;;
1766 esac
1767 case " $ac_configure_args " in
1768 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1769 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001770 esac
1771 fi
1772done
1773if $ac_cache_corrupted; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001774 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001775echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001776 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001777echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1778 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001779fi
1780
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001805ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001806ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1809ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001810
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001811
1812
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001813ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001814
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001815ac_aux_dir=
Jeremy White0ebeb532006-06-20 13:18:41 +02001816for ac_dir in tools "$srcdir"/tools; do
1817 if test -f "$ac_dir/install-sh"; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001818 ac_aux_dir=$ac_dir
1819 ac_install_sh="$ac_aux_dir/install-sh -c"
1820 break
Jeremy White0ebeb532006-06-20 13:18:41 +02001821 elif test -f "$ac_dir/install.sh"; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001822 ac_aux_dir=$ac_dir
1823 ac_install_sh="$ac_aux_dir/install.sh -c"
1824 break
Jeremy White0ebeb532006-06-20 13:18:41 +02001825 elif test -f "$ac_dir/shtool"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001826 ac_aux_dir=$ac_dir
1827 ac_install_sh="$ac_aux_dir/shtool install -c"
1828 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001829 fi
1830done
1831if test -z "$ac_aux_dir"; then
Jeremy White0ebeb532006-06-20 13:18:41 +02001832 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1833echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001834 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001835fi
Jeremy White0ebeb532006-06-20 13:18:41 +02001836
1837# These three variables are undocumented and unsupported,
1838# and are intended to be withdrawn in a future Autoconf release.
1839# They can cause serious problems if a builder's source tree is in a directory
1840# whose full name contains unusual characters.
1841ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1842ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1843ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1844
Howard Abrams13277481999-07-10 13:16:29 +00001845
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001846
1847
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001848# Check whether --enable-win16 was given.
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001849if test "${enable_win16+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001850 enableval=$enable_win16;
1851fi
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001852
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001853# Check whether --enable-win64 was given.
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001854if test "${enable_win64+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001855 enableval=$enable_win64;
1856fi
Alexandre Julliardb8074992002-11-21 21:51:24 +00001857
1858
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001859
1860# Check whether --with-opengl was given.
Alexandre Julliardb8074992002-11-21 21:51:24 +00001861if test "${with_opengl+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001862 withval=$with_opengl;
1863fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001864
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001865
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001866# Check whether --with-curses was given.
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001867if test "${with_curses+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001868 withval=$with_curses;
1869fi
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001870
1871
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001872# Check whether --with-wine-tools was given.
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001873if test "${with_wine_tools+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001874 withval=$with_wine_tools;
1875fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001876
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001877
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001878# Make sure we can run config.sub.
Jeremy White0ebeb532006-06-20 13:18:41 +02001879$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1880 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1881echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001882 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001883
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001884{ echo "$as_me:$LINENO: checking build system type" >&5
1885echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001886if test "${ac_cv_build+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001888else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001889 ac_build_alias=$build_alias
1890test "x$ac_build_alias" = x &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001891 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001892test "x$ac_build_alias" = x &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001893 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001894echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1895 { (exit 1); exit 1; }; }
Jeremy White0ebeb532006-06-20 13:18:41 +02001896ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1897 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1898echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001899 { (exit 1); exit 1; }; }
1900
1901fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001902{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1903echo "${ECHO_T}$ac_cv_build" >&6; }
1904case $ac_cv_build in
1905*-*-*) ;;
1906*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1907echo "$as_me: error: invalid value of canonical build" >&2;}
1908 { (exit 1); exit 1; }; };;
1909esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001910build=$ac_cv_build
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001911ac_save_IFS=$IFS; IFS='-'
1912set x $ac_cv_build
1913shift
1914build_cpu=$1
1915build_vendor=$2
1916shift; shift
1917# Remember, the first character of IFS is used to create $*,
1918# except with old shells:
1919build_os=$*
1920IFS=$ac_save_IFS
1921case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001922
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001923
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001924{ echo "$as_me:$LINENO: checking host system type" >&5
1925echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001926if test "${ac_cv_host+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001929 if test "x$host_alias" = x; then
1930 ac_cv_host=$ac_cv_build
1931else
Jeremy White0ebeb532006-06-20 13:18:41 +02001932 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1933 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1934echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001935 { (exit 1); exit 1; }; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001936fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001937
1938fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001939{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1940echo "${ECHO_T}$ac_cv_host" >&6; }
1941case $ac_cv_host in
1942*-*-*) ;;
1943*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1944echo "$as_me: error: invalid value of canonical host" >&2;}
1945 { (exit 1); exit 1; }; };;
1946esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001947host=$ac_cv_host
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001948ac_save_IFS=$IFS; IFS='-'
1949set x $ac_cv_host
1950shift
1951host_cpu=$1
1952host_vendor=$2
1953shift; shift
1954# Remember, the first character of IFS is used to create $*,
1955# except with old shells:
1956host_os=$*
1957IFS=$ac_save_IFS
1958case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001959
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001960
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001961case $host in
1962 x86_64*linux*)
1963 if test "x$enable_win64" != "xyes"
1964 then
1965 test -n "$CC" || CC="gcc -m32"
1966 test -n "$LD" || LD="ld -m elf_i386"
1967 test -n "$AS" || AS="as --32"
Alex Woodsbbcf9862005-02-10 19:09:08 +00001968 host_cpu="i386"
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001969 fi
1970 ;;
1971esac
1972
Alexandre Julliard71440f32005-05-19 14:28:17 +00001973case $host_cpu in
1974 *i[3456789]86*)
1975 if test "x$enable_win16" != "xno"
1976 then
1977 enable_win16="yes"
1978 fi
1979 ;;
1980esac
1981
1982WIN16_FILES="\$(WIN16_FILES)"
1983
1984WIN16_INSTALL="\$(WIN16_INSTALL)"
1985
1986if test "x$enable_win16" != "xyes"
1987then
1988 WIN16_FILES=""
1989 WIN16_INSTALL=""
1990fi
1991
1992
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001993{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1994echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02001995set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001996if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001999 cat >conftest.make <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002000SHELL = /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002001all:
Jeremy White0ebeb532006-06-20 13:18:41 +02002002 @echo '@@@%%%=$(MAKE)=@@@%%%'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002003_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002004# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02002005case `${MAKE-make} -f conftest.make 2>/dev/null` in
2006 *@@@%%%=?*=@@@%%%*)
2007 eval ac_cv_prog_make_${ac_make}_set=yes;;
2008 *)
2009 eval ac_cv_prog_make_${ac_make}_set=no;;
2010esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002011rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002012fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002013if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002014 { echo "$as_me:$LINENO: result: yes" >&5
2015echo "${ECHO_T}yes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002016 SET_MAKE=
2017else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002018 { echo "$as_me:$LINENO: result: no" >&5
2019echo "${ECHO_T}no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002020 SET_MAKE="MAKE=${MAKE-make}"
2021fi
2022
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002023ac_ext=c
2024ac_cpp='$CPP $CPPFLAGS'
2025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2030set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002033if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002035else
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2038else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040for as_dir in $PATH
2041do
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002045 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 +00002046 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2049 fi
2050done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002051done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002052IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002053
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002054fi
2055fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002056CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002057if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002058 { echo "$as_me:$LINENO: result: $CC" >&5
2059echo "${ECHO_T}$CC" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002060else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002061 { echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002063fi
2064
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002065
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002066fi
2067if test -z "$ac_cv_prog_CC"; then
2068 ac_ct_CC=$CC
2069 # Extract the first word of "gcc", so it can be a program name with args.
2070set dummy gcc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002073if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076 if test -n "$ac_ct_CC"; then
2077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002085 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 +00002086 ac_cv_prog_ac_ct_CC="gcc"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 break 2
2089 fi
2090done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002091done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002092IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002093
2094fi
2095fi
2096ac_ct_CC=$ac_cv_prog_ac_ct_CC
2097if test -n "$ac_ct_CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002098 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2099echo "${ECHO_T}$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002100else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002101 { echo "$as_me:$LINENO: result: no" >&5
2102echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002103fi
2104
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002105 if test "x$ac_ct_CC" = x; then
2106 CC=""
2107 else
2108 case $cross_compiling:$ac_tool_warned in
2109yes:)
2110{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2111whose name does not start with the host triplet. If you think this
2112configuration is useful to you, please write to autoconf@gnu.org." >&5
2113echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2114whose name does not start with the host triplet. If you think this
2115configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2116ac_tool_warned=yes ;;
2117esac
2118 CC=$ac_ct_CC
2119 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002120else
2121 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002122fi
2123
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002124if test -z "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002125 if test -n "$ac_tool_prefix"; then
2126 # 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 +00002127set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002130if test "${ac_cv_prog_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002132else
2133 if test -n "$CC"; then
2134 ac_cv_prog_CC="$CC" # Let the user override the test.
2135else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002142 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 +00002143 ac_cv_prog_CC="${ac_tool_prefix}cc"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 break 2
2146 fi
2147done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002148done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002149IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002150
2151fi
2152fi
2153CC=$ac_cv_prog_CC
2154if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002155 { echo "$as_me:$LINENO: result: $CC" >&5
2156echo "${ECHO_T}$CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002157else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002158 { echo "$as_me:$LINENO: result: no" >&5
2159echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002160fi
2161
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002162
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002163 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002164fi
2165if test -z "$CC"; then
2166 # Extract the first word of "cc", so it can be a program name with args.
2167set dummy cc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002170if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002176 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002183 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 +00002184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185 ac_prog_rejected=yes
2186 continue
2187 fi
2188 ac_cv_prog_CC="cc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2191 fi
2192done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002193done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002194IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002195
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002196if test $ac_prog_rejected = yes; then
2197 # We found a bogon in the path, so make sure we never use it.
2198 set dummy $ac_cv_prog_CC
2199 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002200 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002201 # We chose a different compiler from the bogus one.
2202 # However, it has the same basename, so the bogon will be chosen
2203 # first if we set CC to just the basename; use the full file name.
2204 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002205 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002206 fi
2207fi
2208fi
2209fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002210CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002211if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002212 { echo "$as_me:$LINENO: result: $CC" >&5
2213echo "${ECHO_T}$CC" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002214else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002215 { echo "$as_me:$LINENO: result: no" >&5
2216echo "${ECHO_T}no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002217fi
2218
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002219
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002220fi
2221if test -z "$CC"; then
2222 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002223 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002224 do
2225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2226set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002229if test "${ac_cv_prog_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00002231else
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2234else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002241 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 +00002242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 break 2
2245 fi
2246done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002247done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002248IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002249
Eric Pouech18ad24a2000-01-16 22:16:33 +00002250fi
2251fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002252CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00002253if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002254 { echo "$as_me:$LINENO: result: $CC" >&5
2255echo "${ECHO_T}$CC" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002256else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002257 { echo "$as_me:$LINENO: result: no" >&5
2258echo "${ECHO_T}no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002259fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002260
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002261
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002262 test -n "$CC" && break
2263 done
2264fi
2265if test -z "$CC"; then
2266 ac_ct_CC=$CC
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002267 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002268do
2269 # Extract the first word of "$ac_prog", so it can be a program name with args.
2270set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002273if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275else
2276 if test -n "$ac_ct_CC"; then
2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2278else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002285 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 +00002286 ac_cv_prog_ac_ct_CC="$ac_prog"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 break 2
2289 fi
2290done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002291done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002292IFS=$as_save_IFS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002293
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002294fi
2295fi
2296ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297if test -n "$ac_ct_CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002298 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299echo "${ECHO_T}$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002300else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002301 { echo "$as_me:$LINENO: result: no" >&5
2302echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002303fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002304
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002305
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002306 test -n "$ac_ct_CC" && break
2307done
Eric Pouech18ad24a2000-01-16 22:16:33 +00002308
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002309 if test "x$ac_ct_CC" = x; then
2310 CC=""
2311 else
2312 case $cross_compiling:$ac_tool_warned in
2313yes:)
2314{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2315whose name does not start with the host triplet. If you think this
2316configuration is useful to you, please write to autoconf@gnu.org." >&5
2317echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2318whose name does not start with the host triplet. If you think this
2319configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2320ac_tool_warned=yes ;;
2321esac
2322 CC=$ac_ct_CC
2323 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002324fi
2325
2326fi
2327
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002328
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002329test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2330See \`config.log' for more details." >&5
2331echo "$as_me: error: no acceptable C compiler found in \$PATH
2332See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002333 { (exit 1); exit 1; }; }
2334
2335# Provide some information about the compiler.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002336echo "$as_me:$LINENO: checking for C compiler version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002337ac_compiler=`set X $ac_compile; echo $2`
Jeremy White0ebeb532006-06-20 13:18:41 +02002338{ (ac_try="$ac_compiler --version >&5"
2339case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342esac
2343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344 (eval "$ac_compiler --version >&5") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002345 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002347 (exit $ac_status); }
Jeremy White0ebeb532006-06-20 13:18:41 +02002348{ (ac_try="$ac_compiler -v >&5"
2349case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352esac
2353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_compiler -v >&5") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002355 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002357 (exit $ac_status); }
Jeremy White0ebeb532006-06-20 13:18:41 +02002358{ (ac_try="$ac_compiler -V >&5"
2359case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362esac
2363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364 (eval "$ac_compiler -V >&5") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002365 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002367 (exit $ac_status); }
2368
2369cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002370/* confdefs.h. */
2371_ACEOF
2372cat confdefs.h >>conftest.$ac_ext
2373cat >>conftest.$ac_ext <<_ACEOF
2374/* end confdefs.h. */
Eric Pouech18ad24a2000-01-16 22:16:33 +00002375
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002376int
2377main ()
2378{
2379
2380 ;
2381 return 0;
2382}
2383_ACEOF
2384ac_clean_files_save=$ac_clean_files
Jeremy White0ebeb532006-06-20 13:18:41 +02002385ac_clean_files="$ac_clean_files a.out a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002386# Try to create an executable without -o first, disregard a.out.
2387# It will help us diagnose broken compilers, and finding out an intuition
2388# of exeext.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002389{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2390echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002391ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Jeremy White0ebeb532006-06-20 13:18:41 +02002392#
2393# List of possible output files, starting from the most likely.
2394# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2395# only as a last resort. b.out is created by i960 compilers.
2396ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2397#
2398# The IRIX 6 linker writes into existing files which may not be
2399# executable, retaining their permissions. Remove them first so a
2400# subsequent execution test works.
2401ac_rmfiles=
2402for ac_file in $ac_files
2403do
2404 case $ac_file in
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2406 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2407 esac
2408done
2409rm -f $ac_rmfiles
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002410
Jeremy White0ebeb532006-06-20 13:18:41 +02002411if { (ac_try="$ac_link_default"
2412case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2415esac
2416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_link_default") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002418 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002420 (exit $ac_status); }; then
Jeremy White0ebeb532006-06-20 13:18:41 +02002421 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2422# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2423# in a Makefile. We should not override ac_cv_exeext if it was cached,
2424# so that the user can short-circuit this test for compilers unknown to
2425# Autoconf.
2426for ac_file in $ac_files
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002427do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002428 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002429 case $ac_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02002430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2431 ;;
2432 [ab].out )
2433 # We found the default executable, but exeext='' is most
2434 # certainly right.
2435 break;;
2436 *.* )
2437 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2438 then :; else
2439 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2440 fi
2441 # We set ac_cv_exeext here because the later test for it is not
2442 # safe: cross compilers may not add the suffix if given an `-o'
2443 # argument, so we may need to know it at that point already.
2444 # Even if this section looks crufty: it has the advantage of
2445 # actually working.
2446 break;;
2447 * )
2448 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002449 esac
2450done
Jeremy White0ebeb532006-06-20 13:18:41 +02002451test "$ac_cv_exeext" = no && ac_cv_exeext=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002452
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002453else
2454 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002455sed 's/^/| /' conftest.$ac_ext >&5
2456
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002457{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002458See \`config.log' for more details." >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002459echo "$as_me: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002460See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002461 { (exit 77); exit 77; }; }
2462fi
2463
Jeremy White0ebeb532006-06-20 13:18:41 +02002464ac_exeext=$ac_cv_exeext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002465{ echo "$as_me:$LINENO: result: $ac_file" >&5
2466echo "${ECHO_T}$ac_file" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02002467
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002468# Check that the compiler produces executables we can run. If not, either
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002469# the compiler is broken, or we cross compile.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002470{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2471echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002472# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2473# If not cross compiling, check that we can run a simple program.
2474if test "$cross_compiling" != yes; then
2475 if { ac_try='./$ac_file'
Jeremy White0ebeb532006-06-20 13:18:41 +02002476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479esac
2480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002482 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002484 (exit $ac_status); }; }; then
2485 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002486 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002487 if test "$cross_compiling" = maybe; then
2488 cross_compiling=yes
2489 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002490 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002491If you meant to cross compile, use \`--host'.
2492See \`config.log' for more details." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002493echo "$as_me: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002494If you meant to cross compile, use \`--host'.
2495See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002496 { (exit 1); exit 1; }; }
2497 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002498 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002499fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002500{ echo "$as_me:$LINENO: result: yes" >&5
2501echo "${ECHO_T}yes" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002502
Jeremy White0ebeb532006-06-20 13:18:41 +02002503rm -f a.out a.exe conftest$ac_cv_exeext b.out
2504ac_clean_files=$ac_clean_files_save
2505# Check that the compiler produces executables we can run. If not, either
2506# the compiler is broken, or we cross compile.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002507{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2508echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2509{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2510echo "${ECHO_T}$cross_compiling" >&6; }
2511
2512{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2513echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02002514if { (ac_try="$ac_link"
2515case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518esac
2519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002521 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002523 (exit $ac_status); }; then
Jeremy White0ebeb532006-06-20 13:18:41 +02002524 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2525# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2526# work properly (i.e., refer to `conftest.exe'), while it won't with
2527# `rm'.
2528for ac_file in conftest.exe conftest conftest.*; do
2529 test -f "$ac_file" || continue
2530 case $ac_file in
2531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2532 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2533 break;;
2534 * ) break;;
2535 esac
2536done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002537else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002538 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2539See \`config.log' for more details." >&5
2540echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2541See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002542 { (exit 1); exit 1; }; }
2543fi
2544
Jeremy White0ebeb532006-06-20 13:18:41 +02002545rm -f conftest$ac_cv_exeext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002546{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2547echo "${ECHO_T}$ac_cv_exeext" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02002548
2549rm -f conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002550EXEEXT=$ac_cv_exeext
2551ac_exeext=$EXEEXT
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002552{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2553echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002554if test "${ac_cv_objext+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556else
Jeremy White0ebeb532006-06-20 13:18:41 +02002557 cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h. */
2563
2564int
2565main ()
2566{
2567
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572rm -f conftest.o conftest.obj
2573if { (ac_try="$ac_compile"
2574case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577esac
2578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002580 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002582 (exit $ac_status); }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002583 for ac_file in conftest.o conftest.obj conftest.*; do
2584 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002585 case $ac_file in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002587 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2588 break;;
2589 esac
2590done
2591else
2592 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002593sed 's/^/| /' conftest.$ac_ext >&5
2594
2595{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2596See \`config.log' for more details." >&5
2597echo "$as_me: error: cannot compute suffix of object files: cannot compile
2598See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002599 { (exit 1); exit 1; }; }
2600fi
2601
Jeremy White0ebeb532006-06-20 13:18:41 +02002602rm -f conftest.$ac_cv_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002603fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002604{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2605echo "${ECHO_T}$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002606OBJEXT=$ac_cv_objext
2607ac_objext=$OBJEXT
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002608{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2609echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002610if test "${ac_cv_c_compiler_gnu+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612else
2613 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002614/* confdefs.h. */
2615_ACEOF
2616cat confdefs.h >>conftest.$ac_ext
2617cat >>conftest.$ac_ext <<_ACEOF
2618/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002619
2620int
2621main ()
2622{
2623#ifndef __GNUC__
2624 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002625#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002626
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002627 ;
2628 return 0;
2629}
2630_ACEOF
2631rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002632if { (ac_try="$ac_compile"
2633case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2636esac
2637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002639 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002640 grep -v '^ *+' conftest.er1 >conftest.err
2641 rm -f conftest.er1
2642 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002644 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2646 { (case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649esac
2650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002656 { (case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659esac
2660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002662 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002664 (exit $ac_status); }; }; then
2665 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00002666else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002667 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002668sed 's/^/| /' conftest.$ac_ext >&5
2669
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002670 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00002671fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002672
Jeremy White0ebeb532006-06-20 13:18:41 +02002673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002674ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00002675
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002676fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002677{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2678echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002679GCC=`test $ac_compiler_gnu = yes && echo yes`
2680ac_test_CFLAGS=${CFLAGS+set}
2681ac_save_CFLAGS=$CFLAGS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002682{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2683echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002684if test "${ac_cv_prog_cc_g+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002686else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002687 ac_save_c_werror_flag=$ac_c_werror_flag
2688 ac_c_werror_flag=yes
2689 ac_cv_prog_cc_g=no
2690 CFLAGS="-g"
2691 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002692/* confdefs.h. */
2693_ACEOF
2694cat confdefs.h >>conftest.$ac_ext
2695cat >>conftest.$ac_ext <<_ACEOF
2696/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002697
2698int
2699main ()
2700{
2701
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002707if { (ac_try="$ac_compile"
2708case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711esac
2712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002714 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002715 grep -v '^ *+' conftest.er1 >conftest.err
2716 rm -f conftest.er1
2717 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002719 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2721 { (case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724esac
2725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; } &&
2730 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002731 { (case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734esac
2735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002737 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002739 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002740 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002741else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002742 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002743sed 's/^/| /' conftest.$ac_ext >&5
2744
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002745 CFLAGS=""
2746 cat >conftest.$ac_ext <<_ACEOF
2747/* confdefs.h. */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h. */
2752
2753int
2754main ()
2755{
2756
2757 ;
2758 return 0;
2759}
2760_ACEOF
2761rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002762if { (ac_try="$ac_compile"
2763case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766esac
2767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002769 ac_status=$?
2770 grep -v '^ *+' conftest.er1 >conftest.err
2771 rm -f conftest.er1
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2776 { (case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
2780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; } &&
2785 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002786 { (case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789esac
2790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 :
2796else
2797 echo "$as_me: failed program was:" >&5
2798sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 ac_c_werror_flag=$ac_save_c_werror_flag
2801 CFLAGS="-g"
2802 cat >conftest.$ac_ext <<_ACEOF
2803/* confdefs.h. */
2804_ACEOF
2805cat confdefs.h >>conftest.$ac_ext
2806cat >>conftest.$ac_ext <<_ACEOF
2807/* end confdefs.h. */
2808
2809int
2810main ()
2811{
2812
2813 ;
2814 return 0;
2815}
2816_ACEOF
2817rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002818if { (ac_try="$ac_compile"
2819case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822esac
2823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002825 ac_status=$?
2826 grep -v '^ *+' conftest.er1 >conftest.err
2827 rm -f conftest.er1
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2832 { (case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835esac
2836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002842 { (case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845esac
2846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 ac_cv_prog_cc_g=yes
2852else
2853 echo "$as_me: failed program was:" >&5
2854sed 's/^/| /' conftest.$ac_ext >&5
2855
2856
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002857fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002858
Jeremy White0ebeb532006-06-20 13:18:41 +02002859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002860fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002861
Jeremy White0ebeb532006-06-20 13:18:41 +02002862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002863fi
2864
Jeremy White0ebeb532006-06-20 13:18:41 +02002865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002866 ac_c_werror_flag=$ac_save_c_werror_flag
2867fi
2868{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2869echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002870if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002871 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00002872elif test $ac_cv_prog_cc_g = yes; then
2873 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002874 CFLAGS="-g -O2"
2875 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002876 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002877 fi
2878else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002879 if test "$GCC" = yes; then
2880 CFLAGS="-O2"
2881 else
2882 CFLAGS=
2883 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002884fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002885{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2886echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2887if test "${ac_cv_prog_cc_c89+set}" = set; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002890 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002891ac_save_CC=$CC
2892cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002893/* confdefs.h. */
2894_ACEOF
2895cat confdefs.h >>conftest.$ac_ext
2896cat >>conftest.$ac_ext <<_ACEOF
2897/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002898#include <stdarg.h>
2899#include <stdio.h>
2900#include <sys/types.h>
2901#include <sys/stat.h>
2902/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2903struct buf { int x; };
2904FILE * (*rcsopen) (struct buf *, struct stat *, int);
2905static char *e (p, i)
2906 char **p;
2907 int i;
2908{
2909 return p[i];
2910}
2911static char *f (char * (*g) (char **, int), char **p, ...)
2912{
2913 char *s;
2914 va_list v;
2915 va_start (v,p);
2916 s = g (p, va_arg (v,int));
2917 va_end (v);
2918 return s;
2919}
Alexandre Julliard875927f2004-01-02 01:55:29 +00002920
2921/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2922 function prototypes and stuff, but not '\xHH' hex character constants.
2923 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002924 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00002925 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2926 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002927 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00002928int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2929
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02002930/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2931 inside strings and character constants. */
2932#define FOO(x) 'x'
2933int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2934
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002935int test (int i, double x);
2936struct s1 {int (*f) (int a);};
2937struct s2 {int (*f) (double a);};
2938int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2939int argc;
2940char **argv;
2941int
2942main ()
2943{
2944return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2945 ;
2946 return 0;
2947}
2948_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002949for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2950 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002951do
2952 CC="$ac_save_CC $ac_arg"
2953 rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002954if { (ac_try="$ac_compile"
2955case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958esac
2959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002961 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2968 { (case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971esac
2972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; } &&
2977 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002978 { (case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_try") 2>&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002987 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002988else
2989 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002990sed 's/^/| /' conftest.$ac_ext >&5
2991
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002992
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002993fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002994
Jeremy White0ebeb532006-06-20 13:18:41 +02002995rm -f core conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002996 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002997done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002998rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002999CC=$ac_save_CC
3000
3001fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003002# AC_CACHE_VAL
3003case "x$ac_cv_prog_cc_c89" in
3004 x)
3005 { echo "$as_me:$LINENO: result: none needed" >&5
3006echo "${ECHO_T}none needed" >&6; } ;;
3007 xno)
3008 { echo "$as_me:$LINENO: result: unsupported" >&5
3009echo "${ECHO_T}unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003010 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003011 CC="$CC $ac_cv_prog_cc_c89"
3012 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3013echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003014esac
3015
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003016
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003017ac_ext=c
3018ac_cpp='$CPP $CPPFLAGS'
3019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003023ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003024ac_cpp='$CXXCPP $CPPFLAGS'
3025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003028if test -z "$CXX"; then
3029 if test -n "$CCC"; then
3030 CXX=$CCC
3031 else
3032 if test -n "$ac_tool_prefix"; then
3033 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 +00003034 do
3035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3036set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003039if test "${ac_cv_prog_CXX+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041else
3042 if test -n "$CXX"; then
3043 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3044else
3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046for as_dir in $PATH
3047do
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003051 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 +00003052 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3055 fi
3056done
3057done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003058IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003059
3060fi
3061fi
3062CXX=$ac_cv_prog_CXX
3063if test -n "$CXX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003064 { echo "$as_me:$LINENO: result: $CXX" >&5
3065echo "${ECHO_T}$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003066else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003067 { echo "$as_me:$LINENO: result: no" >&5
3068echo "${ECHO_T}no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003069fi
3070
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003071
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003072 test -n "$CXX" && break
3073 done
3074fi
3075if test -z "$CXX"; then
3076 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003077 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 +00003078do
3079 # Extract the first word of "$ac_prog", so it can be a program name with args.
3080set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003083if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085else
3086 if test -n "$ac_ct_CXX"; then
3087 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3088else
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003095 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 +00003096 ac_cv_prog_ac_ct_CXX="$ac_prog"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003102IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003103
3104fi
3105fi
3106ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3107if test -n "$ac_ct_CXX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003108 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3109echo "${ECHO_T}$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003110else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003111 { echo "$as_me:$LINENO: result: no" >&5
3112echo "${ECHO_T}no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003113fi
3114
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003115
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003116 test -n "$ac_ct_CXX" && break
3117done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003118
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003119 if test "x$ac_ct_CXX" = x; then
3120 CXX="g++"
3121 else
3122 case $cross_compiling:$ac_tool_warned in
3123yes:)
3124{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3125whose name does not start with the host triplet. If you think this
3126configuration is useful to you, please write to autoconf@gnu.org." >&5
3127echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3128whose name does not start with the host triplet. If you think this
3129configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3130ac_tool_warned=yes ;;
3131esac
3132 CXX=$ac_ct_CXX
3133 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003134fi
3135
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003136 fi
3137fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003138# Provide some information about the compiler.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003139echo "$as_me:$LINENO: checking for C++ compiler version" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003140ac_compiler=`set X $ac_compile; echo $2`
Jeremy White0ebeb532006-06-20 13:18:41 +02003141{ (ac_try="$ac_compiler --version >&5"
3142case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145esac
3146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_compiler --version >&5") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }
Jeremy White0ebeb532006-06-20 13:18:41 +02003151{ (ac_try="$ac_compiler -v >&5"
3152case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_compiler -v >&5") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }
Jeremy White0ebeb532006-06-20 13:18:41 +02003161{ (ac_try="$ac_compiler -V >&5"
3162case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165esac
3166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compiler -V >&5") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }
3171
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003172{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3173echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003174if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177 cat >conftest.$ac_ext <<_ACEOF
3178/* confdefs.h. */
3179_ACEOF
3180cat confdefs.h >>conftest.$ac_ext
3181cat >>conftest.$ac_ext <<_ACEOF
3182/* end confdefs.h. */
3183
3184int
3185main ()
3186{
3187#ifndef __GNUC__
3188 choke me
3189#endif
3190
3191 ;
3192 return 0;
3193}
3194_ACEOF
3195rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003196if { (ac_try="$ac_compile"
3197case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200esac
3201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3210 { (case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
3214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; } &&
3219 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003220 { (case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223esac
3224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 ac_compiler_gnu=yes
3230else
3231 echo "$as_me: failed program was:" >&5
3232sed 's/^/| /' conftest.$ac_ext >&5
3233
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003234 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003235fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003236
Jeremy White0ebeb532006-06-20 13:18:41 +02003237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003238ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3239
3240fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003241{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3242echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003243GXX=`test $ac_compiler_gnu = yes && echo yes`
3244ac_test_CXXFLAGS=${CXXFLAGS+set}
3245ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003246{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3247echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003248if test "${ac_cv_prog_cxx_g+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003251 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3252 ac_cxx_werror_flag=yes
3253 ac_cv_prog_cxx_g=no
3254 CXXFLAGS="-g"
3255 cat >conftest.$ac_ext <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003256/* confdefs.h. */
3257_ACEOF
3258cat confdefs.h >>conftest.$ac_ext
3259cat >>conftest.$ac_ext <<_ACEOF
3260/* end confdefs.h. */
3261
3262int
3263main ()
3264{
3265
3266 ;
3267 return 0;
3268}
3269_ACEOF
3270rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003271if { (ac_try="$ac_compile"
3272case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275esac
3276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003278 ac_status=$?
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3285 { (case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288esac
3289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; } &&
3294 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003295 { (case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
3299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_cv_prog_cxx_g=yes
3305else
3306 echo "$as_me: failed program was:" >&5
3307sed 's/^/| /' conftest.$ac_ext >&5
3308
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003309 CXXFLAGS=""
3310 cat >conftest.$ac_ext <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003311/* confdefs.h. */
3312_ACEOF
3313cat confdefs.h >>conftest.$ac_ext
3314cat >>conftest.$ac_ext <<_ACEOF
3315/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003316
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003317int
3318main ()
3319{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003320
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003321 ;
3322 return 0;
3323}
3324_ACEOF
3325rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003326if { (ac_try="$ac_compile"
3327case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330esac
3331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3340 { (case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343esac
3344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003350 { (case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353esac
3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3359 :
3360else
3361 echo "$as_me: failed program was:" >&5
3362sed 's/^/| /' conftest.$ac_ext >&5
3363
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003364 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3365 CXXFLAGS="-g"
3366 cat >conftest.$ac_ext <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003367/* confdefs.h. */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003372
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003373int
3374main ()
3375{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003376
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003377 ;
3378 return 0;
3379}
3380_ACEOF
3381rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003382if { (ac_try="$ac_compile"
3383case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003389 ac_status=$?
3390 grep -v '^ *+' conftest.er1 >conftest.err
3391 rm -f conftest.er1
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003395 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3396 { (case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399esac
3400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; } &&
3405 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003406 { (case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409esac
3410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003415 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003416else
3417 echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003420
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003421fi
3422
Jeremy White0ebeb532006-06-20 13:18:41 +02003423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003424fi
3425
Jeremy White0ebeb532006-06-20 13:18:41 +02003426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003427fi
3428
Jeremy White0ebeb532006-06-20 13:18:41 +02003429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003430 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3431fi
3432{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3433echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3434if test "$ac_test_CXXFLAGS" = set; then
3435 CXXFLAGS=$ac_save_CXXFLAGS
3436elif test $ac_cv_prog_cxx_g = yes; then
3437 if test "$GXX" = yes; then
3438 CXXFLAGS="-g -O2"
3439 else
3440 CXXFLAGS="-g"
3441 fi
3442else
3443 if test "$GXX" = yes; then
3444 CXXFLAGS="-O2"
3445 else
3446 CXXFLAGS=
3447 fi
3448fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003449ac_ext=c
3450ac_cpp='$CPP $CPPFLAGS'
3451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003455if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3457set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003460if test "${ac_cv_prog_CPPBIN+set}" = set; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003463 if test -n "$CPPBIN"; then
3464 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003465else
3466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467for as_dir in $PATH
3468do
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003472 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 +00003473 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3476 fi
3477done
3478done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003479IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003480
3481fi
3482fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003483CPPBIN=$ac_cv_prog_CPPBIN
3484if test -n "$CPPBIN"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003485 { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3486echo "${ECHO_T}$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003487else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003488 { echo "$as_me:$LINENO: result: no" >&5
3489echo "${ECHO_T}no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003490fi
3491
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003492
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003493fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003494if test -z "$ac_cv_prog_CPPBIN"; then
3495 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003496 # Extract the first word of "cpp", so it can be a program name with args.
3497set dummy cpp; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003498{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003500if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003503 if test -n "$ac_ct_CPPBIN"; then
3504 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003505else
3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003512 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 +00003513 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517done
3518done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003519IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003520
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003521fi
3522fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003523ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3524if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003525 { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3526echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003527else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003528 { echo "$as_me:$LINENO: result: no" >&5
3529echo "${ECHO_T}no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003530fi
3531
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003532 if test "x$ac_ct_CPPBIN" = x; then
3533 CPPBIN="cpp"
3534 else
3535 case $cross_compiling:$ac_tool_warned in
3536yes:)
3537{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3538whose name does not start with the host triplet. If you think this
3539configuration is useful to you, please write to autoconf@gnu.org." >&5
3540echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3541whose name does not start with the host triplet. If you think this
3542configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3543ac_tool_warned=yes ;;
3544esac
3545 CPPBIN=$ac_ct_CPPBIN
3546 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003547else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003548 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003549fi
3550
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003551
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003552{ echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3553echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003554if test "${wine_cv_toolsdir+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557 if test -z "$with_wine_tools"; then
3558 if test "$cross_compiling" = "yes"; then
3559 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3560echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3561 { (exit 1); exit 1; }; }
3562 else
3563 wine_cv_toolsdir="\$(TOPOBJDIR)"
3564 fi
3565 elif test -d "$with_wine_tools/tools/winebuild"; then
3566 case $with_wine_tools in
3567 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3568 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3569 esac
3570 else
3571 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3572echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3573 { (exit 1); exit 1; }; }
3574 fi
3575fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003576{ echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3577echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003578TOOLSDIR=$wine_cv_toolsdir
3579
3580
3581
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003582ac_ext=c
3583ac_cpp='$CPP $CPPFLAGS'
3584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003587{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3588echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003589# On Suns, sometimes $CPP names a directory.
3590if test -n "$CPP" && test -d "$CPP"; then
3591 CPP=
3592fi
3593if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003594 if test "${ac_cv_prog_CPP+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003596else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003597 # Double quotes because CPP needs to be expanded
3598 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3599 do
3600 ac_preproc_ok=false
3601for ac_c_preproc_warn_flag in '' yes
3602do
3603 # Use a header file that comes with gcc, so configuring glibc
3604 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3606 # <limits.h> exists even on freestanding compilers.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003607 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003608 # not just through cpp. "Syntax error" is here to catch this case.
3609 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003610/* confdefs.h. */
3611_ACEOF
3612cat confdefs.h >>conftest.$ac_ext
3613cat >>conftest.$ac_ext <<_ACEOF
3614/* end confdefs.h. */
3615#ifdef __STDC__
3616# include <limits.h>
3617#else
3618# include <assert.h>
3619#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003620 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003621_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003622if { (ac_try="$ac_cpp conftest.$ac_ext"
3623case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626esac
3627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003629 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003630 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003631 rm -f conftest.er1
3632 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003634 (exit $ac_status); } >/dev/null; then
3635 if test -s conftest.err; then
3636 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003638 else
3639 ac_cpp_err=
3640 fi
3641else
3642 ac_cpp_err=yes
3643fi
3644if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003645 :
3646else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003647 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003648sed 's/^/| /' conftest.$ac_ext >&5
3649
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003650 # Broken: fails on valid input.
3651continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003652fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003653
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003654rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003655
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003656 # OK, works on sane cases. Now check whether nonexistent headers
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003657 # can be detected and how.
3658 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003659/* confdefs.h. */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003664#include <ac_nonexistent.h>
3665_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003666if { (ac_try="$ac_cpp conftest.$ac_ext"
3667case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670esac
3671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003673 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003674 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003675 rm -f conftest.er1
3676 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003678 (exit $ac_status); } >/dev/null; then
3679 if test -s conftest.err; then
3680 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003682 else
3683 ac_cpp_err=
3684 fi
3685else
3686 ac_cpp_err=yes
3687fi
3688if test -z "$ac_cpp_err"; then
3689 # Broken: success on invalid input.
3690continue
3691else
3692 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003693sed 's/^/| /' conftest.$ac_ext >&5
3694
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003695 # Passes both tests.
3696ac_preproc_ok=:
3697break
3698fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003699
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003700rm -f conftest.err conftest.$ac_ext
3701
3702done
3703# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3704rm -f conftest.err conftest.$ac_ext
3705if $ac_preproc_ok; then
3706 break
3707fi
3708
3709 done
3710 ac_cv_prog_CPP=$CPP
3711
3712fi
3713 CPP=$ac_cv_prog_CPP
3714else
3715 ac_cv_prog_CPP=$CPP
3716fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003717{ echo "$as_me:$LINENO: result: $CPP" >&5
3718echo "${ECHO_T}$CPP" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003719ac_preproc_ok=false
3720for ac_c_preproc_warn_flag in '' yes
3721do
3722 # Use a header file that comes with gcc, so configuring glibc
3723 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3725 # <limits.h> exists even on freestanding compilers.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003726 # On the NeXT, cc -E runs the code through the compiler's parser,
3727 # not just through cpp. "Syntax error" is here to catch this case.
3728 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003729/* confdefs.h. */
3730_ACEOF
3731cat confdefs.h >>conftest.$ac_ext
3732cat >>conftest.$ac_ext <<_ACEOF
3733/* end confdefs.h. */
3734#ifdef __STDC__
3735# include <limits.h>
3736#else
3737# include <assert.h>
3738#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003739 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003740_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003741if { (ac_try="$ac_cpp conftest.$ac_ext"
3742case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745esac
3746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003748 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003749 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003750 rm -f conftest.er1
3751 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003753 (exit $ac_status); } >/dev/null; then
3754 if test -s conftest.err; then
3755 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003757 else
3758 ac_cpp_err=
3759 fi
3760else
3761 ac_cpp_err=yes
3762fi
3763if test -z "$ac_cpp_err"; then
3764 :
3765else
3766 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003767sed 's/^/| /' conftest.$ac_ext >&5
3768
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003769 # Broken: fails on valid input.
3770continue
3771fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003772
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003773rm -f conftest.err conftest.$ac_ext
3774
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003775 # OK, works on sane cases. Now check whether nonexistent headers
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003776 # can be detected and how.
3777 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003778/* confdefs.h. */
3779_ACEOF
3780cat confdefs.h >>conftest.$ac_ext
3781cat >>conftest.$ac_ext <<_ACEOF
3782/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003783#include <ac_nonexistent.h>
3784_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003785if { (ac_try="$ac_cpp conftest.$ac_ext"
3786case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789esac
3790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003792 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003793 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003794 rm -f conftest.er1
3795 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003797 (exit $ac_status); } >/dev/null; then
3798 if test -s conftest.err; then
3799 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003801 else
3802 ac_cpp_err=
3803 fi
3804else
3805 ac_cpp_err=yes
3806fi
3807if test -z "$ac_cpp_err"; then
3808 # Broken: success on invalid input.
3809continue
3810else
3811 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003812sed 's/^/| /' conftest.$ac_ext >&5
3813
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003814 # Passes both tests.
3815ac_preproc_ok=:
3816break
3817fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003818
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003819rm -f conftest.err conftest.$ac_ext
3820
3821done
3822# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3823rm -f conftest.err conftest.$ac_ext
3824if $ac_preproc_ok; then
3825 :
3826else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003827 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3828See \`config.log' for more details." >&5
3829echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3830See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003831 { (exit 1); exit 1; }; }
3832fi
3833
3834ac_ext=c
3835ac_cpp='$CPP $CPPFLAGS'
3836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003840
Jeremy White0ebeb532006-06-20 13:18:41 +02003841{ echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003842echo $ECHO_N "checking for X... $ECHO_C" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003843
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003844
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003845# Check whether --with-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003846if test "${with_x+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003847 withval=$with_x;
3848fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003849
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003850# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003851if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003852 # The user explicitly disabled X.
3853 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003854else
Jeremy White0ebeb532006-06-20 13:18:41 +02003855 case $x_includes,$x_libraries in #(
3856 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3857echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3858 { (exit 1); exit 1; }; };; #(
3859 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003860 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003861else
3862 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003863ac_x_includes=no ac_x_libraries=no
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003864rm -f -r conftest.dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003865if mkdir conftest.dir; then
3866 cd conftest.dir
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003867 cat >Imakefile <<'_ACEOF'
Jeremy White0ebeb532006-06-20 13:18:41 +02003868incroot:
3869 @echo incroot='${INCROOT}'
3870usrlibdir:
3871 @echo usrlibdir='${USRLIBDIR}'
3872libdir:
3873 @echo libdir='${LIBDIR}'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003874_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003875 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02003877 for ac_var in incroot usrlibdir libdir; do
3878 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3879 done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003880 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3881 for ac_extension in a so sl; do
Jeremy White0ebeb532006-06-20 13:18:41 +02003882 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3883 test -f "$ac_im_libdir/libX11.$ac_extension"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00003884 ac_im_usrlibdir=$ac_im_libdir; break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003885 fi
3886 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003887 # Screen out bogus values from the imake configuration. They are
3888 # bogus both because they are the default anyway, and because
3889 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003890 case $ac_im_incroot in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003891 /usr/include) ac_x_includes= ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003892 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003893 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003894 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003895 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003896 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003897 esac
3898 fi
3899 cd ..
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003900 rm -f -r conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003901fi
3902
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003903# Standard set of common directories for X headers.
3904# Check X11 before X11Rn because it is often a symlink to the current release.
3905ac_x_header_dirs='
3906/usr/X11/include
3907/usr/X11R6/include
3908/usr/X11R5/include
3909/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003910
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003911/usr/include/X11
3912/usr/include/X11R6
3913/usr/include/X11R5
3914/usr/include/X11R4
3915
3916/usr/local/X11/include
3917/usr/local/X11R6/include
3918/usr/local/X11R5/include
3919/usr/local/X11R4/include
3920
3921/usr/local/include/X11
3922/usr/local/include/X11R6
3923/usr/local/include/X11R5
3924/usr/local/include/X11R4
3925
3926/usr/X386/include
3927/usr/x386/include
3928/usr/XFree86/include/X11
3929
3930/usr/include
3931/usr/local/include
3932/usr/unsupported/include
3933/usr/athena/include
3934/usr/local/x11r5/include
3935/usr/lpp/Xamples/include
3936
3937/usr/openwin/include
3938/usr/openwin/share/include'
3939
3940if test "$ac_x_includes" = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003941 # Guess where to find include files, by looking for Xlib.h.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003942 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003943 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003944/* confdefs.h. */
3945_ACEOF
3946cat confdefs.h >>conftest.$ac_ext
3947cat >>conftest.$ac_ext <<_ACEOF
3948/* end confdefs.h. */
Jeremy White0ebeb532006-06-20 13:18:41 +02003949#include <X11/Xlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003950_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003951if { (ac_try="$ac_cpp conftest.$ac_ext"
3952case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955esac
3956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003958 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003959 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003960 rm -f conftest.er1
3961 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003963 (exit $ac_status); } >/dev/null; then
3964 if test -s conftest.err; then
3965 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003967 else
3968 ac_cpp_err=
3969 fi
3970else
3971 ac_cpp_err=yes
3972fi
3973if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003974 # We can compile using X headers with no special include directory.
3975ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003976else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003977 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003978sed 's/^/| /' conftest.$ac_ext >&5
3979
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003980 for ac_dir in $ac_x_header_dirs; do
Alexandre Julliardd7d31692005-10-25 12:04:17 +00003981 if test -r "$ac_dir/X11/Xlib.h"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003982 ac_x_includes=$ac_dir
3983 break
3984 fi
3985done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003986fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003987
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003988rm -f conftest.err conftest.$ac_ext
3989fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003990
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003991if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003992 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003993 # See if we find them without any special options.
3994 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003995 ac_save_LIBS=$LIBS
Alexandre Julliardd01063e2006-06-22 12:07:57 +02003996 LIBS="-lX11 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003997 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003998/* confdefs.h. */
3999_ACEOF
4000cat confdefs.h >>conftest.$ac_ext
4001cat >>conftest.$ac_ext <<_ACEOF
4002/* end confdefs.h. */
Alexandre Julliardd7d31692005-10-25 12:04:17 +00004003#include <X11/Xlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004004int
4005main ()
4006{
Alexandre Julliardd7d31692005-10-25 12:04:17 +00004007XrmInitialize ()
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004008 ;
4009 return 0;
4010}
4011_ACEOF
4012rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004013if { (ac_try="$ac_link"
4014case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017esac
4018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004020 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004025 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027 { (case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030esac
4031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004037 { (case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040esac
4041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004043 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004045 (exit $ac_status); }; }; then
4046 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004047# We can link X programs with no special library path.
4048ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004049else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004050 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004051sed 's/^/| /' conftest.$ac_ext >&5
4052
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004053 LIBS=$ac_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004054for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004055do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004056 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004057 for ac_extension in a so sl; do
Alexandre Julliardd01063e2006-06-22 12:07:57 +02004058 if test -r "$ac_dir/libX11.$ac_extension"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004059 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004060 break 2
4061 fi
4062 done
4063done
4064fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004065
Jeremy White0ebeb532006-06-20 13:18:41 +02004066rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004067 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004068fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004069
Jeremy White0ebeb532006-06-20 13:18:41 +02004070case $ac_x_includes,$ac_x_libraries in #(
4071 no,* | *,no | *\'*)
4072 # Didn't find X, or a directory has "'" in its name.
4073 ac_cv_have_x="have_x=no";; #(
4074 *)
4075 # Record where we found X for the cache.
4076 ac_cv_have_x="have_x=yes\
4077 ac_x_includes='$ac_x_includes'\
4078 ac_x_libraries='$ac_x_libraries'"
4079esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004080fi
Jeremy White0ebeb532006-06-20 13:18:41 +02004081;; #(
4082 *) have_x=yes;;
4083 esac
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004084 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004085fi # $with_x != no
4086
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004087if test "$have_x" != yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004088 { echo "$as_me:$LINENO: result: $have_x" >&5
4089echo "${ECHO_T}$have_x" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004090 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004091else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004092 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004093 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4094 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004095 # Update the cache value to reflect the command line values.
Jeremy White0ebeb532006-06-20 13:18:41 +02004096 ac_cv_have_x="have_x=yes\
4097 ac_x_includes='$x_includes'\
4098 ac_x_libraries='$x_libraries'"
4099 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4100echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004101fi
4102
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004103if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004104 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004105
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004106cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004107#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004108_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004109
4110 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004111else
4112 if test -n "$x_includes"; then
4113 X_CFLAGS="$X_CFLAGS -I$x_includes"
4114 fi
4115
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004116 # It would also be nice to do this for all -L options, not just this one.
4117 if test -n "$x_libraries"; then
4118 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004119 # For Solaris; some versions of Sun CC require a space after -R and
4120 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004121 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004122 "SunOS 5"*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004123 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4124echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004125 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4126 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004127/* confdefs.h. */
4128_ACEOF
4129cat confdefs.h >>conftest.$ac_ext
4130cat >>conftest.$ac_ext <<_ACEOF
4131/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004132
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004133int
4134main ()
4135{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004136
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004137 ;
4138 return 0;
4139}
4140_ACEOF
4141rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004142if { (ac_try="$ac_link"
4143case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146esac
4147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004149 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004154 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156 { (case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159esac
4160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004166 { (case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4169esac
4170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004172 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004174 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004175 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004176else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004177 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004178sed 's/^/| /' conftest.$ac_ext >&5
4179
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004180 ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004181fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004182
Jeremy White0ebeb532006-06-20 13:18:41 +02004183rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004184 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004185 if test $ac_R_nospace = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004186 { echo "$as_me:$LINENO: result: no" >&5
4187echo "${ECHO_T}no" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004188 X_LIBS="$X_LIBS -R$x_libraries"
4189 else
4190 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004191 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004192/* confdefs.h. */
4193_ACEOF
4194cat confdefs.h >>conftest.$ac_ext
4195cat >>conftest.$ac_ext <<_ACEOF
4196/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004197
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004198int
4199main ()
4200{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004201
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004202 ;
4203 return 0;
4204}
4205_ACEOF
4206rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004207if { (ac_try="$ac_link"
4208case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211esac
4212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004214 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004219 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221 { (case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224esac
4225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; } &&
4230 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234esac
4235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004237 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004239 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004240 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004241else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004242 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004243sed 's/^/| /' conftest.$ac_ext >&5
4244
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004245 ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004246fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004247
Jeremy White0ebeb532006-06-20 13:18:41 +02004248rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004249 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004250 if test $ac_R_space = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004251 { echo "$as_me:$LINENO: result: yes" >&5
4252echo "${ECHO_T}yes" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004253 X_LIBS="$X_LIBS -R $x_libraries"
4254 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004255 { echo "$as_me:$LINENO: result: neither works" >&5
4256echo "${ECHO_T}neither works" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004257 fi
4258 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004259 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004260 esac
4261 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004262
4263 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004264 # Do this before checking for the system-independent R6 libraries
4265 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004266
4267 if test "$ISC" = yes; then
4268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4269 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004270 # Martyn Johnson says this is needed for Ultrix, if the X
4271 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004272 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004273 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4274 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004275/* confdefs.h. */
4276_ACEOF
4277cat confdefs.h >>conftest.$ac_ext
4278cat >>conftest.$ac_ext <<_ACEOF
4279/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004280
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004281/* Override any GCC internal prototype to avoid an error.
4282 Use char because int might match the return type of a GCC
4283 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004284#ifdef __cplusplus
4285extern "C"
4286#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004287char XOpenDisplay ();
4288int
4289main ()
4290{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004291return XOpenDisplay ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004292 ;
4293 return 0;
4294}
4295_ACEOF
4296rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004297if { (ac_try="$ac_link"
4298case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301esac
4302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004304 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004305 grep -v '^ *+' conftest.er1 >conftest.err
4306 rm -f conftest.er1
4307 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004309 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4311 { (case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314esac
4315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004321 { (case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324esac
4325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004327 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004329 (exit $ac_status); }; }; then
4330 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004331else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004332 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004333sed 's/^/| /' conftest.$ac_ext >&5
4334
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004335 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4336echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004337if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340 ac_check_lib_save_LIBS=$LIBS
4341LIBS="-ldnet $LIBS"
4342cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004343/* confdefs.h. */
4344_ACEOF
4345cat confdefs.h >>conftest.$ac_ext
4346cat >>conftest.$ac_ext <<_ACEOF
4347/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004348
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004349/* Override any GCC internal prototype to avoid an error.
4350 Use char because int might match the return type of a GCC
4351 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004352#ifdef __cplusplus
4353extern "C"
4354#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004355char dnet_ntoa ();
4356int
4357main ()
4358{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004359return dnet_ntoa ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004360 ;
4361 return 0;
4362}
4363_ACEOF
4364rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004365if { (ac_try="$ac_link"
4366case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369esac
4370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004372 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004377 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4379 { (case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; } &&
4388 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004389 { (case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392esac
4393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004395 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004397 (exit $ac_status); }; }; then
4398 ac_cv_lib_dnet_dnet_ntoa=yes
4399else
4400 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004401sed 's/^/| /' conftest.$ac_ext >&5
4402
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004403 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004404fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004405
Jeremy White0ebeb532006-06-20 13:18:41 +02004406rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004407 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004408LIBS=$ac_check_lib_save_LIBS
4409fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004410{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4411echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004412if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004413 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004414fi
4415
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004416 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004417 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4418echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004419if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004421else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004422 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004423LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004424cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004425/* confdefs.h. */
4426_ACEOF
4427cat confdefs.h >>conftest.$ac_ext
4428cat >>conftest.$ac_ext <<_ACEOF
4429/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004430
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004431/* Override any GCC internal prototype to avoid an error.
4432 Use char because int might match the return type of a GCC
4433 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004434#ifdef __cplusplus
4435extern "C"
4436#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004437char dnet_ntoa ();
4438int
4439main ()
4440{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004441return dnet_ntoa ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004442 ;
4443 return 0;
4444}
4445_ACEOF
4446rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004447if { (ac_try="$ac_link"
4448case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451esac
4452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004454 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004459 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4461 { (case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464esac
4465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; } &&
4470 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004471 { (case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474esac
4475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004477 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004479 (exit $ac_status); }; }; then
4480 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004481else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004482 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004483sed 's/^/| /' conftest.$ac_ext >&5
4484
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004485 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004486fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004487
Jeremy White0ebeb532006-06-20 13:18:41 +02004488rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004489 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004490LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004491fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004492{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4493echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004494if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004495 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004496fi
4497
4498 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004499fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004500
Jeremy White0ebeb532006-06-20 13:18:41 +02004501rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004502 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004503 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004504
4505 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4506 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004507 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004508 # needs -lnsl.
4509 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004510 # on Irix 5.2, according to T.E. Dickey.
4511 # The functions gethostbyname, getservbyname, and inet_addr are
4512 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004513 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4514echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004515if test "${ac_cv_func_gethostbyname+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004517else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004518 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004519/* confdefs.h. */
4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4523/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004524/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4526#define gethostbyname innocuous_gethostbyname
4527
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004528/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004529 which can conflict with char gethostbyname (); below.
4530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004532
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004533#ifdef __STDC__
4534# include <limits.h>
4535#else
4536# include <assert.h>
4537#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004538
4539#undef gethostbyname
4540
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004541/* Override any GCC internal prototype to avoid an error.
4542 Use char because int might match the return type of a GCC
4543 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004544#ifdef __cplusplus
4545extern "C"
4546#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004547char gethostbyname ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004548/* The GNU C library defines this for functions which it implements
4549 to always fail with ENOSYS. Some functions are actually named
4550 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004551#if defined __stub_gethostbyname || defined __stub___gethostbyname
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004552choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004553#endif
4554
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004555int
4556main ()
4557{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004558return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004559 ;
4560 return 0;
4561}
4562_ACEOF
4563rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004564if { (ac_try="$ac_link"
4565case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568esac
4569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004571 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004572 grep -v '^ *+' conftest.er1 >conftest.err
4573 rm -f conftest.er1
4574 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004576 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4578 { (case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581esac
4582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; } &&
4587 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591esac
4592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004594 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004596 (exit $ac_status); }; }; then
4597 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004598else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004599 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004600sed 's/^/| /' conftest.$ac_ext >&5
4601
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004602 ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004603fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004604
Jeremy White0ebeb532006-06-20 13:18:41 +02004605rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004606 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004607fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004608{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4609echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004610
4611 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004612 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4613echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004614if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004616else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004617 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004618LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004619cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004620/* confdefs.h. */
4621_ACEOF
4622cat confdefs.h >>conftest.$ac_ext
4623cat >>conftest.$ac_ext <<_ACEOF
4624/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004625
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004626/* Override any GCC internal prototype to avoid an error.
4627 Use char because int might match the return type of a GCC
4628 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004629#ifdef __cplusplus
4630extern "C"
4631#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004632char gethostbyname ();
4633int
4634main ()
4635{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004636return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004637 ;
4638 return 0;
4639}
4640_ACEOF
4641rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004642if { (ac_try="$ac_link"
4643case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4646esac
4647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004649 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004654 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4656 { (case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659esac
4660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004666 { (case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669esac
4670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004672 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_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +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_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004681fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004682
Jeremy White0ebeb532006-06-20 13:18:41 +02004683rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004684 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004685LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004686fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004687{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4688echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004689if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004690 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004691fi
4692
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004693 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004694 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4695echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004696if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698else
4699 ac_check_lib_save_LIBS=$LIBS
4700LIBS="-lbsd $LIBS"
4701cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004702/* confdefs.h. */
4703_ACEOF
4704cat confdefs.h >>conftest.$ac_ext
4705cat >>conftest.$ac_ext <<_ACEOF
4706/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004707
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004708/* Override any GCC internal prototype to avoid an error.
4709 Use char because int might match the return type of a GCC
4710 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004711#ifdef __cplusplus
4712extern "C"
4713#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004714char gethostbyname ();
4715int
4716main ()
4717{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004718return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004719 ;
4720 return 0;
4721}
4722_ACEOF
4723rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004724if { (ac_try="$ac_link"
4725case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728esac
4729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004731 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004736 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4738 { (case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741esac
4742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004748 { (case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4751esac
4752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004754 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004756 (exit $ac_status); }; }; then
4757 ac_cv_lib_bsd_gethostbyname=yes
4758else
4759 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004760sed 's/^/| /' conftest.$ac_ext >&5
4761
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004762 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004763fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004764
Jeremy White0ebeb532006-06-20 13:18:41 +02004765rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004766 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004767LIBS=$ac_check_lib_save_LIBS
4768fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004769{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4770echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004771if test $ac_cv_lib_bsd_gethostbyname = yes; then
4772 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4773fi
4774
4775 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004776 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004777
4778 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004779 # socket/setsockopt and other routines are undefined under SCO ODT
4780 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004781 # on later versions), says Simon Leinen: it contains gethostby*
Alexandre Julliard11af04e2002-10-10 03:48:04 +00004782 # variants that don't use the name server (or something). -lsocket
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004783 # must be given before -lnsl if both are needed. We assume that
4784 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004785 { echo "$as_me:$LINENO: checking for connect" >&5
4786echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004787if test "${ac_cv_func_connect+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004789else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004790 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004791/* confdefs.h. */
4792_ACEOF
4793cat confdefs.h >>conftest.$ac_ext
4794cat >>conftest.$ac_ext <<_ACEOF
4795/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004796/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4798#define connect innocuous_connect
4799
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004800/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004801 which can conflict with char connect (); below.
4802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4803 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004804
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004805#ifdef __STDC__
4806# include <limits.h>
4807#else
4808# include <assert.h>
4809#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004810
4811#undef connect
4812
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004813/* Override any GCC internal prototype to avoid an error.
4814 Use char because int might match the return type of a GCC
4815 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004816#ifdef __cplusplus
4817extern "C"
4818#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004819char connect ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004820/* The GNU C library defines this for functions which it implements
4821 to always fail with ENOSYS. Some functions are actually named
4822 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004823#if defined __stub_connect || defined __stub___connect
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004824choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004825#endif
4826
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004827int
4828main ()
4829{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004830return connect ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004831 ;
4832 return 0;
4833}
4834_ACEOF
4835rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004836if { (ac_try="$ac_link"
4837case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840esac
4841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004843 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004848 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4850 { (case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853esac
4854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; } &&
4859 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004860 { (case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863esac
4864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004866 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004868 (exit $ac_status); }; }; then
4869 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004870else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004871 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004872sed 's/^/| /' conftest.$ac_ext >&5
4873
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004874 ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004875fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004876
Jeremy White0ebeb532006-06-20 13:18:41 +02004877rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004878 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004879fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004880{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4881echo "${ECHO_T}$ac_cv_func_connect" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004882
4883 if test $ac_cv_func_connect = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004884 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4885echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004886if test "${ac_cv_lib_socket_connect+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004888else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004889 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004890LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004891cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004892/* confdefs.h. */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004897
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004898/* Override any GCC internal prototype to avoid an error.
4899 Use char because int might match the return type of a GCC
4900 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004901#ifdef __cplusplus
4902extern "C"
4903#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004904char connect ();
4905int
4906main ()
4907{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004908return connect ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004909 ;
4910 return 0;
4911}
4912_ACEOF
4913rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004914if { (ac_try="$ac_link"
4915case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918esac
4919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004921 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004926 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4928 { (case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931esac
4932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; } &&
4937 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004938 { (case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941esac
4942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004944 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004946 (exit $ac_status); }; }; then
4947 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004948else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004949 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004950sed 's/^/| /' conftest.$ac_ext >&5
4951
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004952 ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004953fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004954
Jeremy White0ebeb532006-06-20 13:18:41 +02004955rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004956 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004957LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004958fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004959{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4960echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004961if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004962 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004963fi
4964
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004965 fi
4966
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004967 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004968 { echo "$as_me:$LINENO: checking for remove" >&5
4969echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004970if test "${ac_cv_func_remove+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004972else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004973 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004974/* confdefs.h. */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004979/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4981#define remove innocuous_remove
4982
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004983/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004984 which can conflict with char remove (); below.
4985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004987
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004988#ifdef __STDC__
4989# include <limits.h>
4990#else
4991# include <assert.h>
4992#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004993
4994#undef remove
4995
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004996/* Override any GCC internal prototype to avoid an error.
4997 Use char because int might match the return type of a GCC
4998 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004999#ifdef __cplusplus
5000extern "C"
5001#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005002char remove ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005003/* The GNU C library defines this for functions which it implements
5004 to always fail with ENOSYS. Some functions are actually named
5005 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005006#if defined __stub_remove || defined __stub___remove
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005007choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005008#endif
5009
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005010int
5011main ()
5012{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005013return remove ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005014 ;
5015 return 0;
5016}
5017_ACEOF
5018rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005019if { (ac_try="$ac_link"
5020case "(($ac_try" in
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5023esac
5024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005026 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005031 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5033 { (case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5036esac
5037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; } &&
5042 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005043 { (case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046esac
5047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005049 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005051 (exit $ac_status); }; }; then
5052 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005053else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005054 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005055sed 's/^/| /' conftest.$ac_ext >&5
5056
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005057 ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005058fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005059
Jeremy White0ebeb532006-06-20 13:18:41 +02005060rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005061 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005062fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005063{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5064echo "${ECHO_T}$ac_cv_func_remove" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005065
5066 if test $ac_cv_func_remove = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005067 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5068echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005069if test "${ac_cv_lib_posix_remove+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005071else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005072 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005073LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005074cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005075/* confdefs.h. */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005080
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005081/* Override any GCC internal prototype to avoid an error.
5082 Use char because int might match the return type of a GCC
5083 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005084#ifdef __cplusplus
5085extern "C"
5086#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005087char remove ();
5088int
5089main ()
5090{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005091return remove ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005092 ;
5093 return 0;
5094}
5095_ACEOF
5096rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005097if { (ac_try="$ac_link"
5098case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5101esac
5102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005104 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005109 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5111 { (case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114esac
5115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; } &&
5120 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005121 { (case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124esac
5125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005127 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005129 (exit $ac_status); }; }; then
5130 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005131else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005132 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005133sed 's/^/| /' conftest.$ac_ext >&5
5134
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005135 ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005136fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005137
Jeremy White0ebeb532006-06-20 13:18:41 +02005138rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005139 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005140LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005141fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005142{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5143echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005144if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005145 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005146fi
5147
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005148 fi
5149
5150 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005151 { echo "$as_me:$LINENO: checking for shmat" >&5
5152echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005153if test "${ac_cv_func_shmat+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005155else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005156 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005157/* confdefs.h. */
5158_ACEOF
5159cat confdefs.h >>conftest.$ac_ext
5160cat >>conftest.$ac_ext <<_ACEOF
5161/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005162/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5164#define shmat innocuous_shmat
5165
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005166/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005167 which can conflict with char shmat (); below.
5168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005170
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005171#ifdef __STDC__
5172# include <limits.h>
5173#else
5174# include <assert.h>
5175#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00005176
5177#undef shmat
5178
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005179/* Override any GCC internal prototype to avoid an error.
5180 Use char because int might match the return type of a GCC
5181 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005182#ifdef __cplusplus
5183extern "C"
5184#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005185char shmat ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005186/* The GNU C library defines this for functions which it implements
5187 to always fail with ENOSYS. Some functions are actually named
5188 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005189#if defined __stub_shmat || defined __stub___shmat
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005190choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005191#endif
5192
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005193int
5194main ()
5195{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005196return shmat ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005197 ;
5198 return 0;
5199}
5200_ACEOF
5201rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005202if { (ac_try="$ac_link"
5203case "(($ac_try" in
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5206esac
5207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005209 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005210 grep -v '^ *+' conftest.er1 >conftest.err
5211 rm -f conftest.er1
5212 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005214 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5216 { (case "(($ac_try" in
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5219esac
5220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; } &&
5225 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005226 { (case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229esac
5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005232 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005234 (exit $ac_status); }; }; then
5235 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005236else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005237 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005238sed 's/^/| /' conftest.$ac_ext >&5
5239
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005240 ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005241fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005242
Jeremy White0ebeb532006-06-20 13:18:41 +02005243rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005244 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005245fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005246{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5247echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005248
5249 if test $ac_cv_func_shmat = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005250 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5251echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005252if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005254else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005255 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005256LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005257cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005258/* confdefs.h. */
5259_ACEOF
5260cat confdefs.h >>conftest.$ac_ext
5261cat >>conftest.$ac_ext <<_ACEOF
5262/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005263
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005264/* Override any GCC internal prototype to avoid an error.
5265 Use char because int might match the return type of a GCC
5266 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005267#ifdef __cplusplus
5268extern "C"
5269#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005270char shmat ();
5271int
5272main ()
5273{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005274return shmat ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005275 ;
5276 return 0;
5277}
5278_ACEOF
5279rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005280if { (ac_try="$ac_link"
5281case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284esac
5285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005287 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005292 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294 { (case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297esac
5298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; } &&
5303 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005304 { (case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307esac
5308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005310 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005312 (exit $ac_status); }; }; then
5313 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005314else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005315 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005316sed 's/^/| /' conftest.$ac_ext >&5
5317
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005318 ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005319fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005320
Jeremy White0ebeb532006-06-20 13:18:41 +02005321rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005322 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005323LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005324fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005325{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5326echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005327if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005328 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005329fi
5330
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005331 fi
5332 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005333
5334 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005335 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005336 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5337 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5338 # check for ICE first), but we must link in the order -lSM -lICE or
5339 # we get undefined symbols. So assume we have SM if we have ICE.
5340 # These have to be linked with before -lX11, unlike the other
5341 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005342 # John Interrante, Karl Berry
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005343 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5344echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005345if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005347else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005348 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00005349LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005350cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005351/* confdefs.h. */
5352_ACEOF
5353cat confdefs.h >>conftest.$ac_ext
5354cat >>conftest.$ac_ext <<_ACEOF
5355/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005356
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005357/* Override any GCC internal prototype to avoid an error.
5358 Use char because int might match the return type of a GCC
5359 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005360#ifdef __cplusplus
5361extern "C"
5362#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005363char IceConnectionNumber ();
5364int
5365main ()
5366{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005367return IceConnectionNumber ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005368 ;
5369 return 0;
5370}
5371_ACEOF
5372rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005373if { (ac_try="$ac_link"
5374case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377esac
5378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005380 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005385 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5387 { (case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5390esac
5391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; } &&
5396 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005397 { (case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400esac
5401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005403 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005405 (exit $ac_status); }; }; then
5406 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005407else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005408 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005409sed 's/^/| /' conftest.$ac_ext >&5
5410
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005411 ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005412fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005413
Jeremy White0ebeb532006-06-20 13:18:41 +02005414rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005415 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005416LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005417fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005418{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5419echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005420if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005421 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005422fi
5423
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005424 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005425
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005426fi
5427
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005428for ac_prog in flex lex
5429do
5430 # Extract the first word of "$ac_prog", so it can be a program name with args.
5431set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005434if test "${ac_cv_prog_LEX+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005436else
5437 if test -n "$LEX"; then
5438 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5439else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441for as_dir in $PATH
5442do
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005446 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 +00005447 ac_cv_prog_LEX="$ac_prog"
5448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 break 2
5450 fi
5451done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005452done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005453IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005454
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005455fi
5456fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005457LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005458if test -n "$LEX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005459 { echo "$as_me:$LINENO: result: $LEX" >&5
5460echo "${ECHO_T}$LEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005461else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005462 { echo "$as_me:$LINENO: result: no" >&5
5463echo "${ECHO_T}no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005464fi
5465
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005466
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005467 test -n "$LEX" && break
5468done
5469test -n "$LEX" || LEX=":"
5470
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005471if test -z "$LEXLIB"
5472then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005473 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5474echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005475if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005477else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005478 ac_check_lib_save_LIBS=$LIBS
5479LIBS="-lfl $LIBS"
5480cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005481/* confdefs.h. */
5482_ACEOF
5483cat confdefs.h >>conftest.$ac_ext
5484cat >>conftest.$ac_ext <<_ACEOF
5485/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005486
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005487/* Override any GCC internal prototype to avoid an error.
5488 Use char because int might match the return type of a GCC
5489 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005490#ifdef __cplusplus
5491extern "C"
5492#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005493char yywrap ();
5494int
5495main ()
5496{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005497return yywrap ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005498 ;
5499 return 0;
5500}
5501_ACEOF
5502rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005503if { (ac_try="$ac_link"
5504case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507esac
5508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005510 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005515 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5517 { (case "(($ac_try" in
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5520esac
5521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; } &&
5526 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005527 { (case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530esac
5531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005533 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005535 (exit $ac_status); }; }; then
5536 ac_cv_lib_fl_yywrap=yes
5537else
5538 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005539sed 's/^/| /' conftest.$ac_ext >&5
5540
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005541 ac_cv_lib_fl_yywrap=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005542fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005543
Jeremy White0ebeb532006-06-20 13:18:41 +02005544rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005545 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005546LIBS=$ac_check_lib_save_LIBS
5547fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005548{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5549echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005550if test $ac_cv_lib_fl_yywrap = yes; then
5551 LEXLIB="-lfl"
5552else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005553 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5554echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005555if test "${ac_cv_lib_l_yywrap+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557else
5558 ac_check_lib_save_LIBS=$LIBS
5559LIBS="-ll $LIBS"
5560cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005561/* confdefs.h. */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
5565/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005566
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005567/* Override any GCC internal prototype to avoid an error.
5568 Use char because int might match the return type of a GCC
5569 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005570#ifdef __cplusplus
5571extern "C"
5572#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005573char yywrap ();
5574int
5575main ()
5576{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005577return yywrap ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005578 ;
5579 return 0;
5580}
5581_ACEOF
5582rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005583if { (ac_try="$ac_link"
5584case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587esac
5588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005590 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005591 grep -v '^ *+' conftest.er1 >conftest.err
5592 rm -f conftest.er1
5593 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005595 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5597 { (case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600esac
5601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005607 { (case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610esac
5611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005613 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005615 (exit $ac_status); }; }; then
5616 ac_cv_lib_l_yywrap=yes
5617else
5618 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005619sed 's/^/| /' conftest.$ac_ext >&5
5620
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005621 ac_cv_lib_l_yywrap=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005622fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005623
Jeremy White0ebeb532006-06-20 13:18:41 +02005624rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005625 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005626LIBS=$ac_check_lib_save_LIBS
5627fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005628{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5629echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005630if test $ac_cv_lib_l_yywrap = yes; then
5631 LEXLIB="-ll"
5632fi
5633
5634fi
5635
5636fi
5637
5638if test "x$LEX" != "x:"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005639 { echo "$as_me:$LINENO: checking lex output file root" >&5
5640echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005641if test "${ac_cv_prog_lex_root+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643else
5644 # The minimal lex program is just a single line: %%. But some broken lexes
5645# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005646cat >conftest.l <<_ACEOF
5647%%
5648%%
5649_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02005650{ (ac_try="$LEX conftest.l"
5651case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654esac
5655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$LEX conftest.l") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005660if test -f lex.yy.c; then
5661 ac_cv_prog_lex_root=lex.yy
5662elif test -f lexyy.c; then
5663 ac_cv_prog_lex_root=lexyy
5664else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005665 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005666echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5667 { (exit 1); exit 1; }; }
5668fi
5669fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005670{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5671echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005672rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005673LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5674
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005675{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5676echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005677if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680 # POSIX says lex can declare yytext either as a pointer or an array; the
5681# default is implementation-dependent. Figure out which it is, since
5682# not all implementations provide the %pointer and %array declarations.
5683ac_cv_prog_lex_yytext_pointer=no
5684echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5685ac_save_LIBS=$LIBS
5686LIBS="$LIBS $LEXLIB"
5687cat >conftest.$ac_ext <<_ACEOF
5688`cat $LEX_OUTPUT_ROOT.c`
5689_ACEOF
5690rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005691if { (ac_try="$ac_link"
5692case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695esac
5696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005698 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005703 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5705 { (case "(($ac_try" in
5706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707 *) ac_try_echo=$ac_try;;
5708esac
5709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005715 { (case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718esac
5719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005721 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005723 (exit $ac_status); }; }; then
5724 ac_cv_prog_lex_yytext_pointer=yes
5725else
5726 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005727sed 's/^/| /' conftest.$ac_ext >&5
5728
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005729
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005730fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005731
Jeremy White0ebeb532006-06-20 13:18:41 +02005732rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005733 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005734LIBS=$ac_save_LIBS
5735rm -f "${LEX_OUTPUT_ROOT}.c"
5736
5737fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005738{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5739echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005740if test $ac_cv_prog_lex_yytext_pointer = yes; then
5741
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005742cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005743#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005744_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005745
5746fi
5747
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005748fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00005749
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005750for ac_prog in $LEX flex lex
5751do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005752 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005753set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005756if test "${ac_cv_prog_XLEX+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005758else
5759 if test -n "$XLEX"; then
5760 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5761else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005768 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 +00005769 ac_cv_prog_XLEX="$ac_prog"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005774done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005775IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005776
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005777fi
5778fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005779XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005780if test -n "$XLEX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005781 { echo "$as_me:$LINENO: result: $XLEX" >&5
5782echo "${ECHO_T}$XLEX" >&6; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005783else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005784 { echo "$as_me:$LINENO: result: no" >&5
5785echo "${ECHO_T}no" >&6; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005786fi
5787
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005788
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005789 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005790done
5791test -n "$XLEX" || XLEX="none"
5792
5793if test "$XLEX" = "none"
5794then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005795 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005796echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5797 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005798fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005799
Mike McCormackc068f672004-03-16 03:11:39 +00005800for ac_prog in bison
5801do
5802 # Extract the first word of "$ac_prog", so it can be a program name with args.
5803set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00005806if test "${ac_cv_prog_BISON+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808else
5809 if test -n "$BISON"; then
5810 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5811else
5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005818 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 +00005819 ac_cv_prog_BISON="$ac_prog"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823done
5824done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005825IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00005826
5827fi
5828fi
5829BISON=$ac_cv_prog_BISON
5830if test -n "$BISON"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005831 { echo "$as_me:$LINENO: result: $BISON" >&5
5832echo "${ECHO_T}$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00005833else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005834 { echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00005836fi
5837
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005838
Mike McCormackc068f672004-03-16 03:11:39 +00005839 test -n "$BISON" && break
5840done
5841test -n "$BISON" || BISON="none"
5842
5843if test "$BISON" = "none"
5844then
5845 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5846echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5847 { (exit 1); exit 1; }; }
5848fi
5849
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005850if test -n "$ac_tool_prefix"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005851 for ac_prog in gas as
5852 do
5853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5854set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005857if test "${ac_cv_prog_AS+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859else
5860 if test -n "$AS"; then
5861 ac_cv_prog_AS="$AS" # Let the user override the test.
5862else
5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864for as_dir in $PATH
5865do
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005869 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 +00005870 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00005871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5873 fi
5874done
5875done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005876IFS=$as_save_IFS
Marcus Meissner1d4db782003-01-09 00:46:54 +00005877
5878fi
5879fi
5880AS=$ac_cv_prog_AS
5881if test -n "$AS"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005882 { echo "$as_me:$LINENO: result: $AS" >&5
5883echo "${ECHO_T}$AS" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005884else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005885 { echo "$as_me:$LINENO: result: no" >&5
5886echo "${ECHO_T}no" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005887fi
5888
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005889
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005890 test -n "$AS" && break
5891 done
Marcus Meissner1d4db782003-01-09 00:46:54 +00005892fi
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005893if test -z "$AS"; then
Marcus Meissner1d4db782003-01-09 00:46:54 +00005894 ac_ct_AS=$AS
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005895 for ac_prog in gas as
5896do
5897 # Extract the first word of "$ac_prog", so it can be a program name with args.
5898set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005901if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903else
5904 if test -n "$ac_ct_AS"; then
5905 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5906else
5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908for as_dir in $PATH
5909do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005913 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 +00005914 ac_cv_prog_ac_ct_AS="$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00005915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918done
5919done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005920IFS=$as_save_IFS
Marcus Meissner1d4db782003-01-09 00:46:54 +00005921
Marcus Meissner1d4db782003-01-09 00:46:54 +00005922fi
5923fi
5924ac_ct_AS=$ac_cv_prog_ac_ct_AS
5925if test -n "$ac_ct_AS"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005926 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5927echo "${ECHO_T}$ac_ct_AS" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005928else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005929 { echo "$as_me:$LINENO: result: no" >&5
5930echo "${ECHO_T}no" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005931fi
5932
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005933
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005934 test -n "$ac_ct_AS" && break
5935done
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005936
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005937 if test "x$ac_ct_AS" = x; then
5938 AS="as"
5939 else
5940 case $cross_compiling:$ac_tool_warned in
5941yes:)
5942{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5943whose name does not start with the host triplet. If you think this
5944configuration is useful to you, please write to autoconf@gnu.org." >&5
5945echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5946whose name does not start with the host triplet. If you think this
5947configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5948ac_tool_warned=yes ;;
5949esac
5950 AS=$ac_ct_AS
5951 fi
Marcus Meissner1d4db782003-01-09 00:46:54 +00005952fi
5953
5954if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005955 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5956set dummy ${ac_tool_prefix}ld; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005959if test "${ac_cv_prog_LD+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961else
5962 if test -n "$LD"; then
5963 ac_cv_prog_LD="$LD" # Let the user override the test.
5964else
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005971 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 +00005972 ac_cv_prog_LD="${ac_tool_prefix}ld"
5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976done
5977done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005978IFS=$as_save_IFS
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005979
5980fi
5981fi
5982LD=$ac_cv_prog_LD
5983if test -n "$LD"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005984 { echo "$as_me:$LINENO: result: $LD" >&5
5985echo "${ECHO_T}$LD" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005986else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005987 { echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005989fi
5990
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005991
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005992fi
5993if test -z "$ac_cv_prog_LD"; then
5994 ac_ct_LD=$LD
5995 # Extract the first word of "ld", so it can be a program name with args.
5996set dummy ld; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005999if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002 if test -n "$ac_ct_LD"; then
6003 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6004else
6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006for as_dir in $PATH
6007do
6008 IFS=$as_save_IFS
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006011 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 +00006012 ac_cv_prog_ac_ct_LD="ld"
6013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 break 2
6015 fi
6016done
6017done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006018IFS=$as_save_IFS
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006019
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006020fi
6021fi
6022ac_ct_LD=$ac_cv_prog_ac_ct_LD
6023if test -n "$ac_ct_LD"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006024 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
6025echo "${ECHO_T}$ac_ct_LD" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006026else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006027 { echo "$as_me:$LINENO: result: no" >&5
6028echo "${ECHO_T}no" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006029fi
6030
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006031 if test "x$ac_ct_LD" = x; then
6032 LD="ld"
6033 else
6034 case $cross_compiling:$ac_tool_warned in
6035yes:)
6036{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6037whose name does not start with the host triplet. If you think this
6038configuration is useful to you, please write to autoconf@gnu.org." >&5
6039echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6040whose name does not start with the host triplet. If you think this
6041configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6042ac_tool_warned=yes ;;
6043esac
6044 LD=$ac_ct_LD
6045 fi
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006046else
6047 LD="$ac_cv_prog_LD"
6048fi
6049
6050if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006051 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6052set dummy ${ac_tool_prefix}ar; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006055if test "${ac_cv_prog_AR+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058 if test -n "$AR"; then
6059 ac_cv_prog_AR="$AR" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006067 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 +00006068 ac_cv_prog_AR="${ac_tool_prefix}ar"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072done
6073done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006074IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006075
6076fi
6077fi
6078AR=$ac_cv_prog_AR
6079if test -n "$AR"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006080 { echo "$as_me:$LINENO: result: $AR" >&5
6081echo "${ECHO_T}$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006082else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006083 { echo "$as_me:$LINENO: result: no" >&5
6084echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006085fi
6086
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006087
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006088fi
6089if test -z "$ac_cv_prog_AR"; then
6090 ac_ct_AR=$AR
6091 # Extract the first word of "ar", so it can be a program name with args.
6092set dummy ar; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006095if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097else
6098 if test -n "$ac_ct_AR"; then
6099 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6100else
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006107 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 +00006108 ac_cv_prog_ac_ct_AR="ar"
6109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6111 fi
6112done
6113done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006114IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006115
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006116fi
6117fi
6118ac_ct_AR=$ac_cv_prog_ac_ct_AR
6119if test -n "$ac_ct_AR"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006120 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6121echo "${ECHO_T}$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006122else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006123 { echo "$as_me:$LINENO: result: no" >&5
6124echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006125fi
6126
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006127 if test "x$ac_ct_AR" = x; then
6128 AR="ar"
6129 else
6130 case $cross_compiling:$ac_tool_warned in
6131yes:)
6132{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6133whose name does not start with the host triplet. If you think this
6134configuration is useful to you, please write to autoconf@gnu.org." >&5
6135echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6136whose name does not start with the host triplet. If you think this
6137configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6138ac_tool_warned=yes ;;
6139esac
6140 AR=$ac_ct_AR
6141 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006142else
6143 AR="$ac_cv_prog_AR"
6144fi
6145
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006146if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6148set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006151if test "${ac_cv_prog_RANLIB+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006153else
6154 if test -n "$RANLIB"; then
6155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6156else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006163 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 +00006164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6167 fi
6168done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006169done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006170IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006171
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006172fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006173fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006174RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006175if test -n "$RANLIB"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006176 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6177echo "${ECHO_T}$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006178else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006179 { echo "$as_me:$LINENO: result: no" >&5
6180echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006181fi
6182
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006183
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006184fi
6185if test -z "$ac_cv_prog_RANLIB"; then
6186 ac_ct_RANLIB=$RANLIB
6187 # Extract the first word of "ranlib", so it can be a program name with args.
6188set dummy ranlib; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006191if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193else
6194 if test -n "$ac_ct_RANLIB"; then
6195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6196else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006203 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 +00006204 ac_cv_prog_ac_ct_RANLIB="ranlib"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6207 fi
6208done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006209done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006210IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006211
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006212fi
6213fi
6214ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6215if test -n "$ac_ct_RANLIB"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006216 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6217echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006218else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006219 { echo "$as_me:$LINENO: result: no" >&5
6220echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006221fi
6222
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006223 if test "x$ac_ct_RANLIB" = x; then
6224 RANLIB=":"
6225 else
6226 case $cross_compiling:$ac_tool_warned in
6227yes:)
6228{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229whose name does not start with the host triplet. If you think this
6230configuration is useful to you, please write to autoconf@gnu.org." >&5
6231echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232whose name does not start with the host triplet. If you think this
6233configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6234ac_tool_warned=yes ;;
6235esac
6236 RANLIB=$ac_ct_RANLIB
6237 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006238else
6239 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006240fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006241
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006242if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6244set dummy ${ac_tool_prefix}strip; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006247if test "${ac_cv_prog_STRIP+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249else
6250 if test -n "$STRIP"; then
6251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6252else
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006259 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 +00006260 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6263 fi
6264done
6265done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006266IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006267
6268fi
6269fi
6270STRIP=$ac_cv_prog_STRIP
6271if test -n "$STRIP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006272 { echo "$as_me:$LINENO: result: $STRIP" >&5
6273echo "${ECHO_T}$STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006274else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006275 { echo "$as_me:$LINENO: result: no" >&5
6276echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006277fi
6278
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006279
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006280fi
6281if test -z "$ac_cv_prog_STRIP"; then
6282 ac_ct_STRIP=$STRIP
6283 # Extract the first word of "strip", so it can be a program name with args.
6284set dummy strip; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006287if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289else
6290 if test -n "$ac_ct_STRIP"; then
6291 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006299 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 +00006300 ac_cv_prog_ac_ct_STRIP="strip"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6303 fi
6304done
6305done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006306IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006307
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006308fi
6309fi
6310ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6311if test -n "$ac_ct_STRIP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006312 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6313echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006314else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006315 { echo "$as_me:$LINENO: result: no" >&5
6316echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006317fi
6318
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006319 if test "x$ac_ct_STRIP" = x; then
6320 STRIP="strip"
6321 else
6322 case $cross_compiling:$ac_tool_warned in
6323yes:)
6324{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6325whose name does not start with the host triplet. If you think this
6326configuration is useful to you, please write to autoconf@gnu.org." >&5
6327echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6328whose name does not start with the host triplet. If you think this
6329configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6330ac_tool_warned=yes ;;
6331esac
6332 STRIP=$ac_ct_STRIP
6333 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006334else
6335 STRIP="$ac_cv_prog_STRIP"
6336fi
6337
6338if test -n "$ac_tool_prefix"; then
6339 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6340set dummy ${ac_tool_prefix}windres; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006343if test "${ac_cv_prog_WINDRES+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
6346 if test -n "$WINDRES"; then
6347 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6348else
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006355 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 +00006356 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360done
6361done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006362IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006363
6364fi
6365fi
6366WINDRES=$ac_cv_prog_WINDRES
6367if test -n "$WINDRES"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006368 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6369echo "${ECHO_T}$WINDRES" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006370else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006371 { echo "$as_me:$LINENO: result: no" >&5
6372echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006373fi
6374
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006375
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006376fi
6377if test -z "$ac_cv_prog_WINDRES"; then
6378 ac_ct_WINDRES=$WINDRES
6379 # Extract the first word of "windres", so it can be a program name with args.
6380set dummy windres; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006383if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385else
6386 if test -n "$ac_ct_WINDRES"; then
6387 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006395 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 +00006396 ac_cv_prog_ac_ct_WINDRES="windres"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6399 fi
6400done
6401done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006402IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006403
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006404fi
6405fi
6406ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6407if test -n "$ac_ct_WINDRES"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006408 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6409echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006410else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006411 { echo "$as_me:$LINENO: result: no" >&5
6412echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006413fi
6414
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006415 if test "x$ac_ct_WINDRES" = x; then
6416 WINDRES="false"
6417 else
6418 case $cross_compiling:$ac_tool_warned in
6419yes:)
6420{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6421whose name does not start with the host triplet. If you think this
6422configuration is useful to you, please write to autoconf@gnu.org." >&5
6423echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6424whose name does not start with the host triplet. If you think this
6425configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6426ac_tool_warned=yes ;;
6427esac
6428 WINDRES=$ac_ct_WINDRES
6429 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006430else
6431 WINDRES="$ac_cv_prog_WINDRES"
6432fi
6433
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006434{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6435echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006436LN_S=$as_ln_s
6437if test "$LN_S" = "ln -s"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006438 { echo "$as_me:$LINENO: result: yes" >&5
6439echo "${ECHO_T}yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00006440else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006441 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6442echo "${ECHO_T}no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00006443fi
6444
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006445{ echo "$as_me:$LINENO: checking whether ln works" >&5
6446echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
Alexandre Julliarddf234a92002-05-22 02:10:39 +00006447rm -f conf$$ conf$$.file
6448echo >conf$$.file
6449if ln conf$$.file conf$$ 2>/dev/null; then
6450 LN=ln
6451
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006452 { echo "$as_me:$LINENO: result: yes" >&5
6453echo "${ECHO_T}yes" >&6; }
Alexandre Julliarddf234a92002-05-22 02:10:39 +00006454else
6455 LN="cp -p"
6456
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006457 { echo "$as_me:$LINENO: result: no, using $LN" >&5
6458echo "${ECHO_T}no, using $LN" >&6; }
Alexandre Julliarddf234a92002-05-22 02:10:39 +00006459fi
6460rm -f conf$$ conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006461{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6462echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6463if test "${ac_cv_path_GREP+set}" = set; then
Alexandre Julliardc6264912004-08-16 20:09:37 +00006464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006466 # Extract the first word of "grep ggrep" to use in msg output
6467if test -z "$GREP"; then
6468set dummy grep ggrep; ac_prog_name=$2
6469if test "${ac_cv_path_GREP+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472 ac_path_GREP_found=false
6473# Loop through the user's path and test for each of PROGNAME-LIST
6474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6476do
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_prog in grep ggrep; do
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6482 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6483 # Check for GNU ac_path_GREP and select it if it is found.
6484 # Check for GNU $ac_path_GREP
6485case `"$ac_path_GREP" --version 2>&1` in
6486*GNU*)
6487 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6488*)
6489 ac_count=0
6490 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6491 while :
6492 do
6493 cat "conftest.in" "conftest.in" >"conftest.tmp"
6494 mv "conftest.tmp" "conftest.in"
6495 cp "conftest.in" "conftest.nl"
6496 echo 'GREP' >> "conftest.nl"
6497 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6499 ac_count=`expr $ac_count + 1`
6500 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6501 # Best one so far, save it but keep looking for a better one
6502 ac_cv_path_GREP="$ac_path_GREP"
6503 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00006504 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006505 # 10*(2^10) chars as input seems more than enough
6506 test $ac_count -gt 10 && break
6507 done
Jeremy White0ebeb532006-06-20 13:18:41 +02006508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006509esac
6510
6511
6512 $ac_path_GREP_found && break 3
6513 done
6514done
6515
6516done
6517IFS=$as_save_IFS
6518
6519
Alexandre Julliardc6264912004-08-16 20:09:37 +00006520fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006521
6522GREP="$ac_cv_path_GREP"
6523if test -z "$GREP"; then
6524 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6525echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6526 { (exit 1); exit 1; }; }
6527fi
6528
6529else
6530 ac_cv_path_GREP=$GREP
6531fi
6532
6533
6534fi
6535{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6536echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6537 GREP="$ac_cv_path_GREP"
6538
6539
6540{ echo "$as_me:$LINENO: checking for egrep" >&5
6541echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6542if test "${ac_cv_path_EGREP+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6546 then ac_cv_path_EGREP="$GREP -E"
6547 else
6548 # Extract the first word of "egrep" to use in msg output
6549if test -z "$EGREP"; then
6550set dummy egrep; ac_prog_name=$2
6551if test "${ac_cv_path_EGREP+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553else
6554 ac_path_EGREP_found=false
6555# Loop through the user's path and test for each of PROGNAME-LIST
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6558do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_prog in egrep; do
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6564 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6565 # Check for GNU ac_path_EGREP and select it if it is found.
6566 # Check for GNU $ac_path_EGREP
6567case `"$ac_path_EGREP" --version 2>&1` in
6568*GNU*)
6569 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6570*)
6571 ac_count=0
6572 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6573 while :
6574 do
6575 cat "conftest.in" "conftest.in" >"conftest.tmp"
6576 mv "conftest.tmp" "conftest.in"
6577 cp "conftest.in" "conftest.nl"
6578 echo 'EGREP' >> "conftest.nl"
6579 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6581 ac_count=`expr $ac_count + 1`
6582 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6583 # Best one so far, save it but keep looking for a better one
6584 ac_cv_path_EGREP="$ac_path_EGREP"
6585 ac_path_EGREP_max=$ac_count
6586 fi
6587 # 10*(2^10) chars as input seems more than enough
6588 test $ac_count -gt 10 && break
6589 done
Jeremy White0ebeb532006-06-20 13:18:41 +02006590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006591esac
6592
6593
6594 $ac_path_EGREP_found && break 3
6595 done
6596done
6597
6598done
6599IFS=$as_save_IFS
6600
6601
6602fi
6603
6604EGREP="$ac_cv_path_EGREP"
6605if test -z "$EGREP"; then
6606 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6607echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6608 { (exit 1); exit 1; }; }
6609fi
6610
6611else
6612 ac_cv_path_EGREP=$EGREP
6613fi
6614
6615
6616 fi
6617fi
6618{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6619echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6620 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00006621
6622
James Juranffe6b761999-06-12 08:21:57 +00006623# Extract the first word of "ldconfig", so it can be a program name with args.
6624set dummy ldconfig; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006627if test "${ac_cv_path_LDCONFIG+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00006629else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006630 case $LDCONFIG in
6631 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00006632 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6633 ;;
6634 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00006636for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006637do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006641 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 +00006642 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006647done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006648IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006649
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00006650 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00006651 ;;
6652esac
6653fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006654LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00006655if test -n "$LDCONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006656 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6657echo "${ECHO_T}$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00006658else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006659 { echo "$as_me:$LINENO: result: no" >&5
6660echo "${ECHO_T}no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00006661fi
6662
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006663
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006664# Find a good install program. We prefer a C program (faster),
6665# so one script is as good as another. But avoid the broken or
6666# incompatible versions:
6667# SysV /etc/install, /usr/sbin/install
6668# SunOS /usr/etc/install
6669# IRIX /sbin/install
6670# AIX /bin/install
6671# AmigaOS /C/install, which installs bootblocks on floppy discs
6672# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6673# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6674# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00006675# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006676# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006677{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6678echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006679if test -z "$INSTALL"; then
6680if test "${ac_cv_path_install+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 # Account for people who put trailing slashes in PATH elements.
6689case $as_dir/ in
6690 ./ | .// | /cC/* | \
6691 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard875927f2004-01-02 01:55:29 +00006692 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006693 /usr/ucb/* ) ;;
6694 *)
6695 # OSF1 and SCO ODT 3.0 have their own names for install.
6696 # Don't use installbsd from OSF since it installs stuff as root
6697 # by default.
6698 for ac_prog in ginstall scoinst install; do
6699 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006700 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 +00006701 if test $ac_prog = install &&
6702 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6703 # AIX install. It has an incompatible calling convention.
6704 :
6705 elif test $ac_prog = install &&
6706 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6707 # program-specific install script used by HP pwplus--don't use.
6708 :
6709 else
6710 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6711 break 3
6712 fi
6713 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006714 done
6715 done
6716 ;;
6717esac
6718done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006719IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006720
6721
6722fi
6723 if test "${ac_cv_path_install+set}" = set; then
6724 INSTALL=$ac_cv_path_install
6725 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006726 # As a last resort, use the slow shell script. Don't cache a
6727 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006728 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006729 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006730 INSTALL=$ac_install_sh
6731 fi
6732fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006733{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6734echo "${ECHO_T}$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006735
6736# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6737# It thinks the first close brace ends the variable substitution.
6738test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6739
6740test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6741
6742test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6743
6744case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00006745 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006746 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6747esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006748
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006749for ac_prog in lclint lint
6750do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006751 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006752set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006755if test "${ac_cv_prog_LINT+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006757else
6758 if test -n "$LINT"; then
6759 ac_cv_prog_LINT="$LINT" # Let the user override the test.
6760else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006767 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 +00006768 ac_cv_prog_LINT="$ac_prog"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006773done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006774IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006775
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006776fi
6777fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006778LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006779if test -n "$LINT"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006780 { echo "$as_me:$LINENO: result: $LINT" >&5
6781echo "${ECHO_T}$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006782else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006783 { echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006785fi
6786
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006787
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006788 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006789done
6790
6791if test "$LINT" = "lint"
6792then
6793 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6794 fi
6795
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006796
6797
Huw Davies00acb5f2004-08-17 22:33:14 +00006798for ac_prog in fontforge
6799do
6800 # Extract the first word of "$ac_prog", so it can be a program name with args.
6801set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00006804if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806else
6807 if test -n "$FONTFORGE"; then
6808 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6809else
6810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811for as_dir in $PATH
6812do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006816 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 +00006817 ac_cv_prog_FONTFORGE="$ac_prog"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821done
6822done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006823IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00006824
6825fi
6826fi
6827FONTFORGE=$ac_cv_prog_FONTFORGE
6828if test -n "$FONTFORGE"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006829 { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6830echo "${ECHO_T}$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00006831else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006832 { echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00006834fi
6835
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006836
Huw Davies00acb5f2004-08-17 22:33:14 +00006837 test -n "$FONTFORGE" && break
6838done
6839test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00006840
Mike McCormack90c75bd2005-08-08 18:36:53 +00006841for ac_prog in pkg-config
6842do
6843 # Extract the first word of "$ac_prog", so it can be a program name with args.
6844set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006845{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00006847if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849else
6850 if test -n "$PKG_CONFIG"; then
6851 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6852else
6853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006859 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 +00006860 ac_cv_prog_PKG_CONFIG="$ac_prog"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864done
6865done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006866IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00006867
6868fi
6869fi
6870PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6871if test -n "$PKG_CONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006872 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6873echo "${ECHO_T}$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00006874else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006875 { echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00006877fi
6878
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006879
Mike McCormack90c75bd2005-08-08 18:36:53 +00006880 test -n "$PKG_CONFIG" && break
6881done
6882test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6883
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00006884
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006885case $host_cpu in
6886 *i[3456789]86*)
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006887 # Extract the first word of "prelink", so it can be a program name with args.
6888set dummy prelink; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006891if test "${ac_cv_path_PRELINK+set}" = set; then
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893else
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006894 case $PRELINK in
6895 [\\/]* | ?:[\\/]*)
6896 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6897 ;;
6898 *)
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006900for as_dir in /sbin /usr/sbin $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006906 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910done
6911done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006912IFS=$as_save_IFS
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006913
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006914 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6915 ;;
6916esac
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006917fi
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006918PRELINK=$ac_cv_path_PRELINK
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006919if test -n "$PRELINK"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006920 { echo "$as_me:$LINENO: result: $PRELINK" >&5
6921echo "${ECHO_T}$PRELINK" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006922else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006923 { echo "$as_me:$LINENO: result: no" >&5
6924echo "${ECHO_T}no" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006925fi
6926
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006927
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006928 ;;
6929esac
6930
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006931
6932
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006933{ echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6934echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006935if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00006937else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006938 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00006939LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006940cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006941/* confdefs.h. */
6942_ACEOF
6943cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006946
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006947/* Override any GCC internal prototype to avoid an error.
6948 Use char because int might match the return type of a GCC
6949 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006950#ifdef __cplusplus
6951extern "C"
6952#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006953char i386_set_ldt ();
6954int
6955main ()
6956{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006957return i386_set_ldt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006958 ;
6959 return 0;
6960}
6961_ACEOF
6962rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02006963if { (ac_try="$ac_link"
6964case "(($ac_try" in
6965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6966 *) ac_try_echo=$ac_try;;
6967esac
6968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6969 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006970 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006975 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02006976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6977 { (case "(($ac_try" in
6978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979 *) ac_try_echo=$ac_try;;
6980esac
6981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6982 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006983 ac_status=$?
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; } &&
6986 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02006987 { (case "(($ac_try" in
6988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6989 *) ac_try_echo=$ac_try;;
6990esac
6991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6992 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006993 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006995 (exit $ac_status); }; }; then
6996 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00006997else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006998 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006999sed 's/^/| /' conftest.$ac_ext >&5
7000
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007001 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00007002fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007003
Jeremy White0ebeb532006-06-20 13:18:41 +02007004rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007005 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007006LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00007007fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007008{ echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
7009echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007010if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007011 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007012#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007013_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00007014
7015 LIBS="-li386 $LIBS"
7016
Alexandre Julliard02e90081998-01-04 17:49:09 +00007017fi
7018
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007019
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007020{ echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
7021echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007022if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00007024else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007025 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00007026LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007027cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007028/* confdefs.h. */
7029_ACEOF
7030cat confdefs.h >>conftest.$ac_ext
7031cat >>conftest.$ac_ext <<_ACEOF
7032/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007033
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007034/* Override any GCC internal prototype to avoid an error.
7035 Use char because int might match the return type of a GCC
7036 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007037#ifdef __cplusplus
7038extern "C"
7039#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007040char _oss_ioctl ();
7041int
7042main ()
7043{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007044return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007045 ;
7046 return 0;
7047}
7048_ACEOF
7049rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007050if { (ac_try="$ac_link"
7051case "(($ac_try" in
7052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7053 *) ac_try_echo=$ac_try;;
7054esac
7055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007057 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007058 grep -v '^ *+' conftest.er1 >conftest.err
7059 rm -f conftest.er1
7060 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007062 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7064 { (case "(($ac_try" in
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7067esac
7068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007074 { (case "(($ac_try" in
7075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076 *) ac_try_echo=$ac_try;;
7077esac
7078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007080 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007082 (exit $ac_status); }; }; then
7083 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00007084else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007085 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007086sed 's/^/| /' conftest.$ac_ext >&5
7087
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007088 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00007089fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007090
Jeremy White0ebeb532006-06-20 13:18:41 +02007091rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007092 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007093LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00007094fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007095{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7096echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007097if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007098 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007099#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007100_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00007101
7102 LIBS="-lossaudio $LIBS"
7103
Todd Vierlingecc76691998-12-15 17:49:02 +00007104fi
7105
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007106
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007107for ac_func in gethostbyname
7108do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007109as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007110{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7111echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7112if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007113 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007114else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007115 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007116/* confdefs.h. */
7117_ACEOF
7118cat confdefs.h >>conftest.$ac_ext
7119cat >>conftest.$ac_ext <<_ACEOF
7120/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007121/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7123#define $ac_func innocuous_$ac_func
7124
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007125/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007126 which can conflict with char $ac_func (); below.
7127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7128 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007129
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007130#ifdef __STDC__
7131# include <limits.h>
7132#else
7133# include <assert.h>
7134#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00007135
7136#undef $ac_func
7137
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007138/* Override any GCC internal prototype to avoid an error.
7139 Use char because int might match the return type of a GCC
7140 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007141#ifdef __cplusplus
7142extern "C"
7143#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007144char $ac_func ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007145/* The GNU C library defines this for functions which it implements
7146 to always fail with ENOSYS. Some functions are actually named
7147 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007148#if defined __stub_$ac_func || defined __stub___$ac_func
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007149choke me
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007150#endif
7151
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007152int
7153main ()
7154{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007155return $ac_func ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007156 ;
7157 return 0;
7158}
7159_ACEOF
7160rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007161if { (ac_try="$ac_link"
7162case "(($ac_try" in
7163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7164 *) ac_try_echo=$ac_try;;
7165esac
7166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7167 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007168 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007169 grep -v '^ *+' conftest.er1 >conftest.err
7170 rm -f conftest.er1
7171 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007173 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7175 { (case "(($ac_try" in
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7178esac
7179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007181 ac_status=$?
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; } &&
7184 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007185 { (case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7188esac
7189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007191 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007193 (exit $ac_status); }; }; then
7194 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00007195else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007196 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007197sed 's/^/| /' conftest.$ac_ext >&5
7198
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007199 eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00007200fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007201
Jeremy White0ebeb532006-06-20 13:18:41 +02007202rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007203 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00007204fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007205ac_res=`eval echo '${'$as_ac_var'}'`
7206 { echo "$as_me:$LINENO: result: $ac_res" >&5
7207echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007208if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007209 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007210#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007211_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00007212
Patrik Stridvallea584721998-11-01 16:22:07 +00007213else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007214
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007215{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7216echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007217if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00007219else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007220 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007221LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007222cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007223/* confdefs.h. */
7224_ACEOF
7225cat confdefs.h >>conftest.$ac_ext
7226cat >>conftest.$ac_ext <<_ACEOF
7227/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007228
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007229/* Override any GCC internal prototype to avoid an error.
7230 Use char because int might match the return type of a GCC
7231 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007232#ifdef __cplusplus
7233extern "C"
7234#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007235char gethostbyname ();
7236int
7237main ()
7238{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007239return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007240 ;
7241 return 0;
7242}
7243_ACEOF
7244rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007245if { (ac_try="$ac_link"
7246case "(($ac_try" in
7247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7249esac
7250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007252 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007253 grep -v '^ *+' conftest.er1 >conftest.err
7254 rm -f conftest.er1
7255 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007257 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7259 { (case "(($ac_try" in
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7262esac
7263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; } &&
7268 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007269 { (case "(($ac_try" in
7270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271 *) ac_try_echo=$ac_try;;
7272esac
7273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007275 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007277 (exit $ac_status); }; }; then
7278 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00007279else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007280 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007281sed 's/^/| /' conftest.$ac_ext >&5
7282
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007283 ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00007284fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007285
Jeremy White0ebeb532006-06-20 13:18:41 +02007286rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007287 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007288LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00007289fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007290{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7291echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007292if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007293 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007294#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007295_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00007296
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007297 LIBS="-lnsl $LIBS"
7298
Ron Recorde977d6c1999-09-05 12:32:05 +00007299fi
7300
Patrik Stridvallea584721998-11-01 16:22:07 +00007301fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00007302done
7303
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007304
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007305for ac_func in connect
7306do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007308{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7310if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007311 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007312else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007313 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007314/* confdefs.h. */
7315_ACEOF
7316cat confdefs.h >>conftest.$ac_ext
7317cat >>conftest.$ac_ext <<_ACEOF
7318/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007319/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7321#define $ac_func innocuous_$ac_func
7322
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007323/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007324 which can conflict with char $ac_func (); below.
7325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7326 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007327
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007328#ifdef __STDC__
7329# include <limits.h>
7330#else
7331# include <assert.h>
7332#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00007333
7334#undef $ac_func
7335
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007336/* Override any GCC internal prototype to avoid an error.
7337 Use char because int might match the return type of a GCC
7338 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007339#ifdef __cplusplus
7340extern "C"
7341#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007342char $ac_func ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007343/* The GNU C library defines this for functions which it implements
7344 to always fail with ENOSYS. Some functions are actually named
7345 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007346#if defined __stub_$ac_func || defined __stub___$ac_func
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007347choke me
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007348#endif
7349
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007350int
7351main ()
7352{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007353return $ac_func ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007354 ;
7355 return 0;
7356}
7357_ACEOF
7358rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007359if { (ac_try="$ac_link"
7360case "(($ac_try" in
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7363esac
7364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007366 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007367 grep -v '^ *+' conftest.er1 >conftest.err
7368 rm -f conftest.er1
7369 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007371 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7373 { (case "(($ac_try" in
7374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375 *) ac_try_echo=$ac_try;;
7376esac
7377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7378 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007379 ac_status=$?
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; } &&
7382 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007383 { (case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386esac
7387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007389 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007391 (exit $ac_status); }; }; then
7392 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007393else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007394 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007395sed 's/^/| /' conftest.$ac_ext >&5
7396
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007397 eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007398fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007399
Jeremy White0ebeb532006-06-20 13:18:41 +02007400rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007401 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007402fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007403ac_res=`eval echo '${'$as_ac_var'}'`
7404 { echo "$as_me:$LINENO: result: $ac_res" >&5
7405echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007406if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007407 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007408#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007409_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007410
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007411else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007412
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007413{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7414echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007415if test "${ac_cv_lib_socket_connect+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007417else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007418 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007419LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007420cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007421/* confdefs.h. */
7422_ACEOF
7423cat confdefs.h >>conftest.$ac_ext
7424cat >>conftest.$ac_ext <<_ACEOF
7425/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007426
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007427/* Override any GCC internal prototype to avoid an error.
7428 Use char because int might match the return type of a GCC
7429 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007430#ifdef __cplusplus
7431extern "C"
7432#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007433char connect ();
7434int
7435main ()
7436{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007437return connect ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007438 ;
7439 return 0;
7440}
7441_ACEOF
7442rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007443if { (ac_try="$ac_link"
7444case "(($ac_try" in
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7447esac
7448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7449 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007450 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007455 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7457 { (case "(($ac_try" in
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7460esac
7461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007463 ac_status=$?
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); }; } &&
7466 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007467 { (case "(($ac_try" in
7468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469 *) ac_try_echo=$ac_try;;
7470esac
7471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7472 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007473 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007475 (exit $ac_status); }; }; then
7476 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007477else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007478 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007479sed 's/^/| /' conftest.$ac_ext >&5
7480
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007481 ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007482fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007483
Jeremy White0ebeb532006-06-20 13:18:41 +02007484rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007485 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007486LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007487fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007488{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7489echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007490if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007491 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007492#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007493_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007494
7495 LIBS="-lsocket $LIBS"
7496
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007497fi
7498
7499fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00007500done
7501
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007502
Alexandre Julliardc5552742002-04-03 20:24:44 +00007503for ac_func in inet_aton
7504do
7505as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007506{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7507echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7508if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardc5552742002-04-03 20:24:44 +00007509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007512/* confdefs.h. */
7513_ACEOF
7514cat confdefs.h >>conftest.$ac_ext
7515cat >>conftest.$ac_ext <<_ACEOF
7516/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007517/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7519#define $ac_func innocuous_$ac_func
7520
Alexandre Julliardc5552742002-04-03 20:24:44 +00007521/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007522 which can conflict with char $ac_func (); below.
7523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7524 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007525
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007526#ifdef __STDC__
7527# include <limits.h>
7528#else
7529# include <assert.h>
7530#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00007531
7532#undef $ac_func
7533
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007534/* Override any GCC internal prototype to avoid an error.
7535 Use char because int might match the return type of a GCC
7536 builtin and then its argument prototype would still apply. */
Alexandre Julliardc5552742002-04-03 20:24:44 +00007537#ifdef __cplusplus
7538extern "C"
7539#endif
Alexandre Julliardc5552742002-04-03 20:24:44 +00007540char $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00007541/* The GNU C library defines this for functions which it implements
7542 to always fail with ENOSYS. Some functions are actually named
7543 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007544#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliardc5552742002-04-03 20:24:44 +00007545choke me
Alexandre Julliardc5552742002-04-03 20:24:44 +00007546#endif
7547
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007548int
7549main ()
7550{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007551return $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00007552 ;
7553 return 0;
7554}
7555_ACEOF
7556rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007557if { (ac_try="$ac_link"
7558case "(($ac_try" in
7559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7560 *) ac_try_echo=$ac_try;;
7561esac
7562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7563 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardc5552742002-04-03 20:24:44 +00007564 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007565 grep -v '^ *+' conftest.er1 >conftest.err
7566 rm -f conftest.er1
7567 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00007569 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7571 { (case "(($ac_try" in
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7574esac
7575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007577 ac_status=$?
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; } &&
7580 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007581 { (case "(($ac_try" in
7582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7583 *) ac_try_echo=$ac_try;;
7584esac
7585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7586 (eval "$ac_try") 2>&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00007587 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00007589 (exit $ac_status); }; }; then
7590 eval "$as_ac_var=yes"
7591else
7592 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007593sed 's/^/| /' conftest.$ac_ext >&5
7594
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007595 eval "$as_ac_var=no"
Alexandre Julliardc5552742002-04-03 20:24:44 +00007596fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007597
Jeremy White0ebeb532006-06-20 13:18:41 +02007598rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007599 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc5552742002-04-03 20:24:44 +00007600fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007601ac_res=`eval echo '${'$as_ac_var'}'`
7602 { echo "$as_me:$LINENO: result: $ac_res" >&5
7603echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardc5552742002-04-03 20:24:44 +00007604if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007605 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00007606#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007607_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00007608
7609else
7610
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007611{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
7612echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
Francois Gouget3b943bc2002-04-01 21:05:15 +00007613if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615else
7616 ac_check_lib_save_LIBS=$LIBS
7617LIBS="-lresolv $LIBS"
7618cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007619/* confdefs.h. */
7620_ACEOF
7621cat confdefs.h >>conftest.$ac_ext
7622cat >>conftest.$ac_ext <<_ACEOF
7623/* end confdefs.h. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00007624
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007625/* Override any GCC internal prototype to avoid an error.
7626 Use char because int might match the return type of a GCC
7627 builtin and then its argument prototype would still apply. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00007628#ifdef __cplusplus
7629extern "C"
7630#endif
Francois Gouget3b943bc2002-04-01 21:05:15 +00007631char inet_aton ();
7632int
7633main ()
7634{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007635return inet_aton ();
Francois Gouget3b943bc2002-04-01 21:05:15 +00007636 ;
7637 return 0;
7638}
7639_ACEOF
7640rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007641if { (ac_try="$ac_link"
7642case "(($ac_try" in
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7645esac
7646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647 (eval "$ac_link") 2>conftest.er1
Francois Gouget3b943bc2002-04-01 21:05:15 +00007648 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00007653 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7655 { (case "(($ac_try" in
7656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7657 *) ac_try_echo=$ac_try;;
7658esac
7659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7660 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007661 ac_status=$?
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); }; } &&
7664 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007665 { (case "(($ac_try" in
7666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7667 *) ac_try_echo=$ac_try;;
7668esac
7669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7670 (eval "$ac_try") 2>&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00007671 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00007673 (exit $ac_status); }; }; then
7674 ac_cv_lib_resolv_inet_aton=yes
7675else
7676 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007677sed 's/^/| /' conftest.$ac_ext >&5
7678
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007679 ac_cv_lib_resolv_inet_aton=no
Francois Gouget3b943bc2002-04-01 21:05:15 +00007680fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007681
Jeremy White0ebeb532006-06-20 13:18:41 +02007682rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007683 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3b943bc2002-04-01 21:05:15 +00007684LIBS=$ac_check_lib_save_LIBS
7685fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007686{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
7687echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
Francois Gouget3b943bc2002-04-01 21:05:15 +00007688if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007689 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00007690#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007691_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00007692
7693 LIBS="-lresolv $LIBS"
7694
7695fi
7696
Alexandre Julliardc5552742002-04-03 20:24:44 +00007697fi
7698done
7699
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007700
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007701{ echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7702echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007703if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007705else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007706 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007707LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007708cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007709/* confdefs.h. */
7710_ACEOF
7711cat confdefs.h >>conftest.$ac_ext
7712cat >>conftest.$ac_ext <<_ACEOF
7713/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007714
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007715/* Override any GCC internal prototype to avoid an error.
7716 Use char because int might match the return type of a GCC
7717 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007718#ifdef __cplusplus
7719extern "C"
7720#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007721char _xpg4_setrunelocale ();
7722int
7723main ()
7724{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007725return _xpg4_setrunelocale ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007726 ;
7727 return 0;
7728}
7729_ACEOF
7730rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007731if { (ac_try="$ac_link"
7732case "(($ac_try" in
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7735esac
7736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007738 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007743 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7745 { (case "(($ac_try" in
7746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7747 *) ac_try_echo=$ac_try;;
7748esac
7749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7750 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007751 ac_status=$?
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); }; } &&
7754 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007755 { (case "(($ac_try" in
7756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7757 *) ac_try_echo=$ac_try;;
7758esac
7759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007761 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007763 (exit $ac_status); }; }; then
7764 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007765else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007766 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007767sed 's/^/| /' conftest.$ac_ext >&5
7768
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007769 ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007770fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007771
Jeremy White0ebeb532006-06-20 13:18:41 +02007772rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007773 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007774LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007775fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007776{ echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7777echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007778if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007779 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007780#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007781_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007782
7783 LIBS="-lxpg4 $LIBS"
7784
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007785fi
7786
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007787
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007788{ echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
7789echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007790if test "${ac_cv_lib_poll_poll+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792else
7793 ac_check_lib_save_LIBS=$LIBS
7794LIBS="-lpoll $LIBS"
7795cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007796/* confdefs.h. */
7797_ACEOF
7798cat confdefs.h >>conftest.$ac_ext
7799cat >>conftest.$ac_ext <<_ACEOF
7800/* end confdefs.h. */
7801
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007802/* Override any GCC internal prototype to avoid an error.
7803 Use char because int might match the return type of a GCC
7804 builtin and then its argument prototype would still apply. */
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007805#ifdef __cplusplus
7806extern "C"
7807#endif
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007808char poll ();
7809int
7810main ()
7811{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007812return poll ();
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007813 ;
7814 return 0;
7815}
7816_ACEOF
7817rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007818if { (ac_try="$ac_link"
7819case "(($ac_try" in
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7822esac
7823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824 (eval "$ac_link") 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007825 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007826 grep -v '^ *+' conftest.er1 >conftest.err
7827 rm -f conftest.er1
7828 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7832 { (case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835esac
7836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; } &&
7841 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007842 { (case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845esac
7846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_try") 2>&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007848 ac_status=$?
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; }; then
7851 ac_cv_lib_poll_poll=yes
7852else
7853 echo "$as_me: failed program was:" >&5
7854sed 's/^/| /' conftest.$ac_ext >&5
7855
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007856 ac_cv_lib_poll_poll=no
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007857fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007858
Jeremy White0ebeb532006-06-20 13:18:41 +02007859rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007860 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007861LIBS=$ac_check_lib_save_LIBS
7862fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007863{ echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
7864echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007865if test $ac_cv_lib_poll_poll = yes; then
7866 cat >>confdefs.h <<_ACEOF
7867#define HAVE_LIBPOLL 1
7868_ACEOF
7869
7870 LIBS="-lpoll $LIBS"
7871
7872fi
7873
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007874
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007875{ echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
7876echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6; }
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007877if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879else
7880 ac_check_lib_save_LIBS=$LIBS
7881LIBS="-lresolv $LIBS"
7882cat >conftest.$ac_ext <<_ACEOF
7883/* confdefs.h. */
7884_ACEOF
7885cat confdefs.h >>conftest.$ac_ext
7886cat >>conftest.$ac_ext <<_ACEOF
7887/* end confdefs.h. */
7888
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007889/* Override any GCC internal prototype to avoid an error.
7890 Use char because int might match the return type of a GCC
7891 builtin and then its argument prototype would still apply. */
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007892#ifdef __cplusplus
7893extern "C"
7894#endif
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007895char res_9_init ();
7896int
7897main ()
7898{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007899return res_9_init ();
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007900 ;
7901 return 0;
7902}
7903_ACEOF
7904rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007905if { (ac_try="$ac_link"
7906case "(($ac_try" in
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7909esac
7910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911 (eval "$ac_link") 2>conftest.er1
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007912 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); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7919 { (case "(($ac_try" in
7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7922esac
7923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924 (eval "$ac_try") 2>&5
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007925 ac_status=$?
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; } &&
7928 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007929 { (case "(($ac_try" in
7930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931 *) ac_try_echo=$ac_try;;
7932esac
7933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934 (eval "$ac_try") 2>&5
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007935 ac_status=$?
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7938 ac_cv_lib_resolv_res_9_init=yes
7939else
7940 echo "$as_me: failed program was:" >&5
7941sed 's/^/| /' conftest.$ac_ext >&5
7942
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007943 ac_cv_lib_resolv_res_9_init=no
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007944fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007945
Jeremy White0ebeb532006-06-20 13:18:41 +02007946rm -f core conftest.err conftest.$ac_objext \
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007947 conftest$ac_exeext conftest.$ac_ext
7948LIBS=$ac_check_lib_save_LIBS
7949fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007950{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
7951echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6; }
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007952if test $ac_cv_lib_resolv_res_9_init = yes; then
7953 cat >>confdefs.h <<_ACEOF
7954#define HAVE_LIBRESOLV 1
7955_ACEOF
7956
7957 LIBS="-lresolv $LIBS"
7958
7959fi
7960
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007961{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7962echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007963if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007964 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007965else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007966 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007967LIBS="-lpthread $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007968cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007969/* confdefs.h. */
7970_ACEOF
7971cat confdefs.h >>conftest.$ac_ext
7972cat >>conftest.$ac_ext <<_ACEOF
7973/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007974
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007975/* Override any GCC internal prototype to avoid an error.
7976 Use char because int might match the return type of a GCC
7977 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007978#ifdef __cplusplus
7979extern "C"
7980#endif
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007981char pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007982int
7983main ()
7984{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007985return pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007986 ;
7987 return 0;
7988}
7989_ACEOF
7990rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007991if { (ac_try="$ac_link"
7992case "(($ac_try" in
7993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994 *) ac_try_echo=$ac_try;;
7995esac
7996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7997 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007998 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007999 grep -v '^ *+' conftest.er1 >conftest.err
8000 rm -f conftest.er1
8001 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008003 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8005 { (case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008esac
8009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008015 { (case "(($ac_try" in
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8018esac
8019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008021 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008023 (exit $ac_status); }; }; then
Alexandre Julliardf45325e2003-11-06 23:05:41 +00008024 ac_cv_lib_pthread_pthread_create=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00008025else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008026 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008027sed 's/^/| /' conftest.$ac_ext >&5
8028
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008029 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00008030fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008031
Jeremy White0ebeb532006-06-20 13:18:41 +02008032rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00008033 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008034LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00008035fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008036{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
8037echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliardf45325e2003-11-06 23:05:41 +00008038if test $ac_cv_lib_pthread_pthread_create = yes; then
8039 LIBPTHREAD="-lpthread"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00008040
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00008041fi
8042
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008043
Alexandre Julliard82776022005-08-08 11:17:25 +00008044XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00008045
8046XFILES=""
8047
8048OPENGLFILES=""
8049
8050GLU32FILES=""
8051
8052OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00008053
Rein Klazes7ff12562004-11-09 20:16:35 +00008054
Alexandre Julliard82776022005-08-08 11:17:25 +00008055
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008056{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8057echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008058if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008059 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00008060else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008061 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008062/* confdefs.h. */
8063_ACEOF
8064cat confdefs.h >>conftest.$ac_ext
8065cat >>conftest.$ac_ext <<_ACEOF
8066/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008067#include <stdlib.h>
8068#include <stdarg.h>
8069#include <string.h>
8070#include <float.h>
8071
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008072int
8073main ()
8074{
8075
8076 ;
8077 return 0;
8078}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008079_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008080rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008081if { (ac_try="$ac_compile"
8082case "(($ac_try" in
8083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084 *) ac_try_echo=$ac_try;;
8085esac
8086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008088 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008089 grep -v '^ *+' conftest.er1 >conftest.err
8090 rm -f conftest.er1
8091 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008093 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8095 { (case "(($ac_try" in
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8098esac
8099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; } &&
8104 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008105 { (case "(($ac_try" in
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8108esac
8109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_try") 2>&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008111 ac_status=$?
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); }; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008114 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008115else
8116 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008117sed 's/^/| /' conftest.$ac_ext >&5
8118
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008119 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00008120fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008121
Jeremy White0ebeb532006-06-20 13:18:41 +02008122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008123
8124if test $ac_cv_header_stdc = yes; then
8125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8126 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008127/* confdefs.h. */
8128_ACEOF
8129cat confdefs.h >>conftest.$ac_ext
8130cat >>conftest.$ac_ext <<_ACEOF
8131/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008132#include <string.h>
8133
8134_ACEOF
8135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008136 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008137 :
8138else
8139 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00008140fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008141rm -f conftest*
8142
8143fi
8144
8145if test $ac_cv_header_stdc = yes; then
8146 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8147 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008148/* confdefs.h. */
8149_ACEOF
8150cat confdefs.h >>conftest.$ac_ext
8151cat >>conftest.$ac_ext <<_ACEOF
8152/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008153#include <stdlib.h>
8154
8155_ACEOF
8156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008157 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008158 :
8159else
8160 ac_cv_header_stdc=no
8161fi
8162rm -f conftest*
8163
8164fi
8165
8166if test $ac_cv_header_stdc = yes; then
8167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8168 if test "$cross_compiling" = yes; then
8169 :
8170else
8171 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008172/* confdefs.h. */
8173_ACEOF
8174cat confdefs.h >>conftest.$ac_ext
8175cat >>conftest.$ac_ext <<_ACEOF
8176/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008177#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008178#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008179#if ((' ' & 0x0FF) == 0x020)
8180# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8181# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8182#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008183# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00008184 (('a' <= (c) && (c) <= 'i') \
8185 || ('j' <= (c) && (c) <= 'r') \
8186 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008187# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8188#endif
8189
8190#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8191int
8192main ()
8193{
8194 int i;
8195 for (i = 0; i < 256; i++)
8196 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00008197 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008198 return 2;
8199 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008200}
8201_ACEOF
8202rm -f conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02008203if { (ac_try="$ac_link"
8204case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8207esac
8208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_link") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008210 ac_status=$?
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008213 { (case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216esac
8217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; }; then
8222 :
8223else
8224 echo "$as_me: program exited with status $ac_status" >&5
8225echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008226sed 's/^/| /' conftest.$ac_ext >&5
8227
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008228( exit $ac_status )
8229ac_cv_header_stdc=no
8230fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8232fi
8233
8234
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008235fi
8236fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008237{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8238echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008239if test $ac_cv_header_stdc = yes; then
8240
8241cat >>confdefs.h <<\_ACEOF
8242#define STDC_HEADERS 1
8243_ACEOF
8244
8245fi
8246
8247# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00008258 inttypes.h stdint.h unistd.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008259do
8260as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008261{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8262echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008264 echo $ECHO_N "(cached) $ECHO_C" >&6
8265else
8266 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008267/* confdefs.h. */
8268_ACEOF
8269cat confdefs.h >>conftest.$ac_ext
8270cat >>conftest.$ac_ext <<_ACEOF
8271/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008272$ac_includes_default
8273
8274#include <$ac_header>
8275_ACEOF
8276rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008277if { (ac_try="$ac_compile"
8278case "(($ac_try" in
8279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8280 *) ac_try_echo=$ac_try;;
8281esac
8282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008284 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008285 grep -v '^ *+' conftest.er1 >conftest.err
8286 rm -f conftest.er1
8287 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8291 { (case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294esac
8295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; } &&
8300 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008301 { (case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8304esac
8305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008307 ac_status=$?
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8310 eval "$as_ac_Header=yes"
8311else
8312 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008313sed 's/^/| /' conftest.$ac_ext >&5
8314
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008315 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008316fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008317
Jeremy White0ebeb532006-06-20 13:18:41 +02008318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008319fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008320ac_res=`eval echo '${'$as_ac_Header'}'`
8321 { echo "$as_me:$LINENO: result: $ac_res" >&5
8322echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008323if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008324 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008325#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008326_ACEOF
8327
8328fi
8329
8330done
8331
8332
8333
Rein Klazes7ff12562004-11-09 20:16:35 +00008334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
Steven Edwards57279182005-03-04 12:38:36 +00008416
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00008417
Emmanuel Maillard64c07782005-05-18 18:20:23 +00008418
8419
Phil Krylov0f6c0392005-07-01 19:15:26 +00008420
Hans Leidekkerea524de2005-07-15 16:39:42 +00008421
8422
Alexandre Julliard73482142005-08-03 19:21:04 +00008423
8424
8425
8426
8427
8428
8429
8430
8431
8432
Gerald Pfeiferebe04842005-08-22 09:33:37 +00008433
Robert Shearman1e5153c2005-12-01 11:18:43 +01008434
Mike McCormack0cd06262006-03-01 01:07:04 +09008435
Alexandre Julliard9603ee02006-04-06 11:57:37 +02008436
Emmanuel Maillard144a5352006-05-28 22:46:23 +02008437
8438
Rein Klazes7ff12562004-11-09 20:16:35 +00008439for ac_header in \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02008440 AudioUnit/AudioUnit.h \
8441 CoreAudio/CoreAudio.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00008442 IOKit/IOKitLib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008443 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008444 arpa/inet.h \
8445 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00008446 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008447 capi20.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008448 cups/cups.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008449 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008450 direct.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008451 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008452 elf.h \
8453 float.h \
8454 fontconfig/fontconfig.h \
8455 getopt.h \
8456 gif_lib.h \
8457 ieeefp.h \
8458 io.h \
8459 jack/jack.h \
8460 jpeglib.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00008461 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008462 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008463 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00008464 ldap.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008465 libaudioio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008466 link.h \
8467 linux/cdrom.h \
8468 linux/compiler.h \
8469 linux/hdreg.h \
8470 linux/input.h \
8471 linux/ioctl.h \
8472 linux/joystick.h \
8473 linux/major.h \
8474 linux/param.h \
8475 linux/serial.h \
8476 linux/ucdrom.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00008477 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008478 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00008479 machine/limits.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008480 machine/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008481 mntent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008482 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008483 netdb.h \
8484 netinet/in.h \
8485 netinet/in_systm.h \
8486 netinet/tcp.h \
8487 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01008488 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008489 openssl/ssl.h \
Steven Edwards57279182005-03-04 12:38:36 +00008490 poll.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008491 process.h \
8492 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008493 pwd.h \
8494 regex.h \
8495 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008496 scsi/scsi.h \
8497 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008498 scsi/sg.h \
8499 soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008500 stdint.h \
8501 strings.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008502 sys/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008503 sys/cdio.h \
8504 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008505 sys/epoll.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008506 sys/errno.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008507 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008508 sys/filio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008509 sys/ioctl.h \
8510 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00008511 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008512 sys/link.h \
8513 sys/lwp.h \
8514 sys/mman.h \
8515 sys/modem.h \
8516 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01008517 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008518 sys/param.h \
8519 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02008520 sys/prctl.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008521 sys/ptrace.h \
8522 sys/reg.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09008523 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008524 sys/scsiio.h \
8525 sys/shm.h \
8526 sys/signal.h \
8527 sys/socket.h \
8528 sys/sockio.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008529 sys/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008530 sys/statvfs.h \
8531 sys/strtio.h \
8532 sys/syscall.h \
8533 sys/sysctl.h \
8534 sys/time.h \
8535 sys/times.h \
8536 sys/uio.h \
8537 sys/un.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008538 sys/vm86.h \
8539 sys/wait.h \
8540 syscall.h \
8541 termios.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008542 unicode/ubidi.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008543 unistd.h \
8544 utime.h \
8545 valgrind/memcheck.h
8546
8547do
8548as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Rein Klazes7ff12562004-11-09 20:16:35 +00008553 echo $ECHO_N "(cached) $ECHO_C" >&6
8554fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008555ac_res=`eval echo '${'$as_ac_Header'}'`
8556 { echo "$as_me:$LINENO: result: $ac_res" >&5
8557echo "${ECHO_T}$ac_res" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008558else
8559 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008560{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008562cat >conftest.$ac_ext <<_ACEOF
8563/* confdefs.h. */
8564_ACEOF
8565cat confdefs.h >>conftest.$ac_ext
8566cat >>conftest.$ac_ext <<_ACEOF
8567/* end confdefs.h. */
8568$ac_includes_default
8569#include <$ac_header>
8570_ACEOF
8571rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008572if { (ac_try="$ac_compile"
8573case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576esac
8577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_compile") 2>conftest.er1
Rein Klazes7ff12562004-11-09 20:16:35 +00008579 ac_status=$?
8580 grep -v '^ *+' conftest.er1 >conftest.err
8581 rm -f conftest.er1
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8586 { (case "(($ac_try" in
8587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588 *) ac_try_echo=$ac_try;;
8589esac
8590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591 (eval "$ac_try") 2>&5
Rein Klazes7ff12562004-11-09 20:16:35 +00008592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008596 { (case "(($ac_try" in
8597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8599esac
8600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_try") 2>&5
Rein Klazes7ff12562004-11-09 20:16:35 +00008602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); }; }; then
8605 ac_header_compiler=yes
8606else
8607 echo "$as_me: failed program was:" >&5
8608sed 's/^/| /' conftest.$ac_ext >&5
8609
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008610 ac_header_compiler=no
Rein Klazes7ff12562004-11-09 20:16:35 +00008611fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008612
Jeremy White0ebeb532006-06-20 13:18:41 +02008613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008614{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8615echo "${ECHO_T}$ac_header_compiler" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008616
8617# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008618{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008620cat >conftest.$ac_ext <<_ACEOF
8621/* confdefs.h. */
8622_ACEOF
8623cat confdefs.h >>conftest.$ac_ext
8624cat >>conftest.$ac_ext <<_ACEOF
8625/* end confdefs.h. */
8626#include <$ac_header>
8627_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02008628if { (ac_try="$ac_cpp conftest.$ac_ext"
8629case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632esac
8633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Rein Klazes7ff12562004-11-09 20:16:35 +00008635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } >/dev/null; then
8641 if test -s conftest.err; then
8642 ac_cpp_err=$ac_c_preproc_warn_flag
8643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8644 else
8645 ac_cpp_err=
8646 fi
8647else
8648 ac_cpp_err=yes
8649fi
8650if test -z "$ac_cpp_err"; then
8651 ac_header_preproc=yes
8652else
8653 echo "$as_me: failed program was:" >&5
8654sed 's/^/| /' conftest.$ac_ext >&5
8655
8656 ac_header_preproc=no
8657fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008658
Rein Klazes7ff12562004-11-09 20:16:35 +00008659rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008660{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8661echo "${ECHO_T}$ac_header_preproc" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008662
8663# So? What about this header?
8664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8665 yes:no: )
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8667echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8669echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8670 ac_header_preproc=yes
8671 ;;
8672 no:yes:* )
8673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8674echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8676echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8678echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8680echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8682echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8684echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008685 ( cat <<\_ASBOX
Rein Klazes7ff12562004-11-09 20:16:35 +00008686## ------------------------------------ ##
8687## Report this to wine-devel@winehq.org ##
8688## ------------------------------------ ##
8689_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008690 ) | sed "s/^/$as_me: WARNING: /" >&2
Rein Klazes7ff12562004-11-09 20:16:35 +00008691 ;;
8692esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008693{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Rein Klazes7ff12562004-11-09 20:16:35 +00008696 echo $ECHO_N "(cached) $ECHO_C" >&6
8697else
8698 eval "$as_ac_Header=\$ac_header_preproc"
8699fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008700ac_res=`eval echo '${'$as_ac_Header'}'`
8701 { echo "$as_me:$LINENO: result: $ac_res" >&5
8702echo "${ECHO_T}$ac_res" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008703
8704fi
8705if test `eval echo '${'$as_ac_Header'}'` = yes; then
8706 cat >>confdefs.h <<_ACEOF
8707#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8708_ACEOF
8709
8710fi
8711
8712done
8713
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008714{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8715echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008716if test "${ac_cv_header_stat_broken+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8718else
8719 cat >conftest.$ac_ext <<_ACEOF
8720/* confdefs.h. */
8721_ACEOF
8722cat confdefs.h >>conftest.$ac_ext
8723cat >>conftest.$ac_ext <<_ACEOF
8724/* end confdefs.h. */
8725#include <sys/types.h>
8726#include <sys/stat.h>
8727
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008728#if defined S_ISBLK && defined S_IFDIR
Rein Klazes7ff12562004-11-09 20:16:35 +00008729# if S_ISBLK (S_IFDIR)
8730You lose.
8731# endif
8732#endif
8733
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008734#if defined S_ISBLK && defined S_IFCHR
Rein Klazes7ff12562004-11-09 20:16:35 +00008735# if S_ISBLK (S_IFCHR)
8736You lose.
8737# endif
8738#endif
8739
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008740#if defined S_ISLNK && defined S_IFREG
Rein Klazes7ff12562004-11-09 20:16:35 +00008741# if S_ISLNK (S_IFREG)
8742You lose.
8743# endif
8744#endif
8745
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008746#if defined S_ISSOCK && defined S_IFREG
Rein Klazes7ff12562004-11-09 20:16:35 +00008747# if S_ISSOCK (S_IFREG)
8748You lose.
8749# endif
8750#endif
8751
8752_ACEOF
8753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8754 $EGREP "You lose" >/dev/null 2>&1; then
8755 ac_cv_header_stat_broken=yes
8756else
8757 ac_cv_header_stat_broken=no
8758fi
8759rm -f conftest*
8760
8761fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008762{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8763echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008764if test $ac_cv_header_stat_broken = yes; then
8765
8766cat >>confdefs.h <<\_ACEOF
8767#define STAT_MACROS_BROKEN 1
8768_ACEOF
8769
8770fi
8771
8772
8773
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008774
8775
8776
8777
8778for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
8779do
8780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008781{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785else
8786 cat >conftest.$ac_ext <<_ACEOF
8787/* confdefs.h. */
8788_ACEOF
8789cat confdefs.h >>conftest.$ac_ext
8790cat >>conftest.$ac_ext <<_ACEOF
8791/* end confdefs.h. */
8792#include <sys/types.h>
8793 #if HAVE_SYS_PARAM_H
8794 # include <sys/param.h>
8795 #endif
8796
8797#include <$ac_header>
8798_ACEOF
8799rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008800if { (ac_try="$ac_compile"
8801case "(($ac_try" in
8802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8803 *) ac_try_echo=$ac_try;;
8804esac
8805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8806 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008807 ac_status=$?
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8814 { (case "(($ac_try" in
8815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816 *) ac_try_echo=$ac_try;;
8817esac
8818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8819 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; } &&
8823 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008824 { (case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827esac
8828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; }; then
8833 eval "$as_ac_Header=yes"
8834else
8835 echo "$as_me: failed program was:" >&5
8836sed 's/^/| /' conftest.$ac_ext >&5
8837
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008838 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008839fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008840
Jeremy White0ebeb532006-06-20 13:18:41 +02008841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008842fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008843ac_res=`eval echo '${'$as_ac_Header'}'`
8844 { echo "$as_me:$LINENO: result: $ac_res" >&5
8845echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008846if test `eval echo '${'$as_ac_Header'}'` = yes; then
8847 cat >>confdefs.h <<_ACEOF
8848#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8849_ACEOF
8850
8851fi
8852
8853done
8854
8855
8856
8857
8858
8859
8860
8861
8862for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
8863do
8864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008865{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8867if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008868 echo $ECHO_N "(cached) $ECHO_C" >&6
8869else
8870 cat >conftest.$ac_ext <<_ACEOF
8871/* confdefs.h. */
8872_ACEOF
8873cat confdefs.h >>conftest.$ac_ext
8874cat >>conftest.$ac_ext <<_ACEOF
8875/* end confdefs.h. */
8876#include <sys/types.h>
8877 #if HAVE_SYS_SOCKET_H
8878 # include <sys/socket.h>
8879 #endif
8880
8881#include <$ac_header>
8882_ACEOF
8883rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008884if { (ac_try="$ac_compile"
8885case "(($ac_try" in
8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8888esac
8889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8890 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008891 ac_status=$?
8892 grep -v '^ *+' conftest.er1 >conftest.err
8893 rm -f conftest.er1
8894 cat conftest.err >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8898 { (case "(($ac_try" in
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8901esac
8902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008904 ac_status=$?
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); }; } &&
8907 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008908 { (case "(($ac_try" in
8909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910 *) ac_try_echo=$ac_try;;
8911esac
8912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008914 ac_status=$?
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 eval "$as_ac_Header=yes"
8918else
8919 echo "$as_me: failed program was:" >&5
8920sed 's/^/| /' conftest.$ac_ext >&5
8921
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008922 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008923fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008924
Jeremy White0ebeb532006-06-20 13:18:41 +02008925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008926fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008927ac_res=`eval echo '${'$as_ac_Header'}'`
8928 { echo "$as_me:$LINENO: result: $ac_res" >&5
8929echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008930if test `eval echo '${'$as_ac_Header'}'` = yes; then
8931 cat >>confdefs.h <<_ACEOF
8932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8933_ACEOF
8934
8935fi
8936
8937done
8938
8939
8940
8941for ac_header in resolv.h
8942do
8943as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008944{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948else
8949 cat >conftest.$ac_ext <<_ACEOF
8950/* confdefs.h. */
8951_ACEOF
8952cat confdefs.h >>conftest.$ac_ext
8953cat >>conftest.$ac_ext <<_ACEOF
8954/* end confdefs.h. */
8955#include <sys/types.h>
8956 #if HAVE_SYS_SOCKET_H
8957 # include <sys/socket.h>
8958 #endif
8959 #if HAVE_NETINET_IN_H
8960 # include <netinet/in.h>
8961 #endif
8962 #if HAVE_ARPA_NAMESER_H
8963 # include <arpa/nameser.h>
8964 #endif
8965
8966#include <$ac_header>
8967_ACEOF
8968rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008969if { (ac_try="$ac_compile"
8970case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973esac
8974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8983 { (case "(($ac_try" in
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8986esac
8987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; } &&
8992 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008993 { (case "(($ac_try" in
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8996esac
8997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8998 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; }; then
9002 eval "$as_ac_Header=yes"
9003else
9004 echo "$as_me: failed program was:" >&5
9005sed 's/^/| /' conftest.$ac_ext >&5
9006
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009007 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009008fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009009
Jeremy White0ebeb532006-06-20 13:18:41 +02009010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009011fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009012ac_res=`eval echo '${'$as_ac_Header'}'`
9013 { echo "$as_me:$LINENO: result: $ac_res" >&5
9014echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009015if test `eval echo '${'$as_ac_Header'}'` = yes; then
9016 cat >>confdefs.h <<_ACEOF
9017#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9018_ACEOF
9019
9020fi
9021
9022done
9023
9024
9025
9026for ac_header in ucontext.h
9027do
9028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009029{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009032 echo $ECHO_N "(cached) $ECHO_C" >&6
9033else
9034 cat >conftest.$ac_ext <<_ACEOF
9035/* confdefs.h. */
9036_ACEOF
9037cat confdefs.h >>conftest.$ac_ext
9038cat >>conftest.$ac_ext <<_ACEOF
9039/* end confdefs.h. */
9040#include <signal.h>
9041
9042#include <$ac_header>
9043_ACEOF
9044rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009045if { (ac_try="$ac_compile"
9046case "(($ac_try" in
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9049esac
9050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009052 ac_status=$?
9053 grep -v '^ *+' conftest.er1 >conftest.err
9054 rm -f conftest.er1
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9059 { (case "(($ac_try" in
9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9062esac
9063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; } &&
9068 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009069 { (case "(($ac_try" in
9070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071 *) ac_try_echo=$ac_try;;
9072esac
9073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 eval "$as_ac_Header=yes"
9079else
9080 echo "$as_me: failed program was:" >&5
9081sed 's/^/| /' conftest.$ac_ext >&5
9082
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009083 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009084fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009085
Jeremy White0ebeb532006-06-20 13:18:41 +02009086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009087fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009088ac_res=`eval echo '${'$as_ac_Header'}'`
9089 { echo "$as_me:$LINENO: result: $ac_res" >&5
9090echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009091if test `eval echo '${'$as_ac_Header'}'` = yes; then
9092 cat >>confdefs.h <<_ACEOF
9093#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9094_ACEOF
9095
9096fi
9097
9098done
9099
9100
9101
9102
9103for ac_header in linux/ipx.h linux/videodev.h
9104do
9105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009106{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009109 echo $ECHO_N "(cached) $ECHO_C" >&6
9110else
9111 cat >conftest.$ac_ext <<_ACEOF
9112/* confdefs.h. */
9113_ACEOF
9114cat confdefs.h >>conftest.$ac_ext
9115cat >>conftest.$ac_ext <<_ACEOF
9116/* end confdefs.h. */
9117#ifdef HAVE_SYS_TIME_H
9118#include <sys/time.h>
9119#endif
9120#include <sys/types.h>
9121#ifdef HAVE_ASM_TYPES_H
9122#include <asm/types.h>
9123#endif
9124
9125#include <$ac_header>
9126_ACEOF
9127rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009128if { (ac_try="$ac_compile"
9129case "(($ac_try" in
9130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9131 *) ac_try_echo=$ac_try;;
9132esac
9133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9134 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009135 ac_status=$?
9136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9142 { (case "(($ac_try" in
9143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144 *) ac_try_echo=$ac_try;;
9145esac
9146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009152 { (case "(($ac_try" in
9153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154 *) ac_try_echo=$ac_try;;
9155esac
9156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
9161 eval "$as_ac_Header=yes"
9162else
9163 echo "$as_me: failed program was:" >&5
9164sed 's/^/| /' conftest.$ac_ext >&5
9165
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009166 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009167fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009168
Jeremy White0ebeb532006-06-20 13:18:41 +02009169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009170fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009171ac_res=`eval echo '${'$as_ac_Header'}'`
9172 { echo "$as_me:$LINENO: result: $ac_res" >&5
9173echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009174if test `eval echo '${'$as_ac_Header'}'` = yes; then
9175 cat >>confdefs.h <<_ACEOF
9176#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9177_ACEOF
9178
9179fi
9180
9181done
9182
9183
9184
Alexandre Julliardb079add2006-02-24 11:46:17 +01009185for ac_header in linux/capi.h
9186do
9187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009188{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardb079add2006-02-24 11:46:17 +01009191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192else
9193 cat >conftest.$ac_ext <<_ACEOF
9194/* confdefs.h. */
9195_ACEOF
9196cat confdefs.h >>conftest.$ac_ext
9197cat >>conftest.$ac_ext <<_ACEOF
9198/* end confdefs.h. */
9199#define __user
9200
9201#include <$ac_header>
9202_ACEOF
9203rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009204if { (ac_try="$ac_compile"
9205case "(($ac_try" in
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9208esac
9209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardb079add2006-02-24 11:46:17 +01009211 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9218 { (case "(($ac_try" in
9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9221esac
9222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 (eval "$ac_try") 2>&5
Alexandre Julliardb079add2006-02-24 11:46:17 +01009224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009228 { (case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231esac
9232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_try") 2>&5
Alexandre Julliardb079add2006-02-24 11:46:17 +01009234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
9237 eval "$as_ac_Header=yes"
9238else
9239 echo "$as_me: failed program was:" >&5
9240sed 's/^/| /' conftest.$ac_ext >&5
9241
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009242 eval "$as_ac_Header=no"
Alexandre Julliardb079add2006-02-24 11:46:17 +01009243fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009244
Jeremy White0ebeb532006-06-20 13:18:41 +02009245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb079add2006-02-24 11:46:17 +01009246fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009247ac_res=`eval echo '${'$as_ac_Header'}'`
9248 { echo "$as_me:$LINENO: result: $ac_res" >&5
9249echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardb079add2006-02-24 11:46:17 +01009250if test `eval echo '${'$as_ac_Header'}'` = yes; then
9251 cat >>confdefs.h <<_ACEOF
9252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9253_ACEOF
9254
9255fi
9256
9257done
9258
9259
9260
Rein Klazes7ff12562004-11-09 20:16:35 +00009261if test "$have_x" = "yes"
9262then
9263 XLIB="-lXext -lX11"
9264 ac_save_CPPFLAGS="$CPPFLAGS"
9265 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9266
9267
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009268
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009269
Alexandre Julliard255b4862003-10-15 04:09:55 +00009270
9271
9272
9273
9274
9275
Alexandre Julliard73482142005-08-03 19:21:04 +00009276for ac_header in X11/Xlib.h \
9277 X11/XKBlib.h \
9278 X11/Xutil.h \
9279 X11/extensions/shape.h \
9280 X11/extensions/XInput.h \
9281 X11/extensions/XShm.h \
9282 X11/extensions/Xrandr.h \
9283 X11/extensions/Xrender.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00009284 X11/extensions/xf86vmode.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00009285do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009287{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009290 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009291else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00009292 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009293/* confdefs.h. */
9294_ACEOF
9295cat confdefs.h >>conftest.$ac_ext
9296cat >>conftest.$ac_ext <<_ACEOF
9297/* end confdefs.h. */
Alexandre Julliard73482142005-08-03 19:21:04 +00009298#ifdef HAVE_X11_XLIB_H
9299# include <X11/Xlib.h>
9300#endif
9301#ifdef HAVE_X11_XUTIL_H
9302# include <X11/Xutil.h>
9303#endif
Gregg Mattinson044b5c42002-07-19 03:16:51 +00009304
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009305#include <$ac_header>
9306_ACEOF
9307rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009308if { (ac_try="$ac_compile"
9309case "(($ac_try" in
9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311 *) ac_try_echo=$ac_try;;
9312esac
9313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009315 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009316 grep -v '^ *+' conftest.er1 >conftest.err
9317 rm -f conftest.er1
9318 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9322 { (case "(($ac_try" in
9323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324 *) ac_try_echo=$ac_try;;
9325esac
9326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9327 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; } &&
9331 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009332 { (case "(($ac_try" in
9333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334 *) ac_try_echo=$ac_try;;
9335esac
9336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009338 ac_status=$?
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00009341 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009342else
9343 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009344sed 's/^/| /' conftest.$ac_ext >&5
9345
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009346 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009347fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009348
Jeremy White0ebeb532006-06-20 13:18:41 +02009349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00009350fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009351ac_res=`eval echo '${'$as_ac_Header'}'`
9352 { echo "$as_me:$LINENO: result: $ac_res" >&5
9353echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009354if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009355 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009357_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00009358
9359fi
9360
9361done
9362
9363
9364 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9365 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009366 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
9367echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009368if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009370else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009371 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00009372LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009373cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009374/* confdefs.h. */
9375_ACEOF
9376cat confdefs.h >>conftest.$ac_ext
9377cat >>conftest.$ac_ext <<_ACEOF
9378/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009379
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009380/* Override any GCC internal prototype to avoid an error.
9381 Use char because int might match the return type of a GCC
9382 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009383#ifdef __cplusplus
9384extern "C"
9385#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009386char XkbQueryExtension ();
9387int
9388main ()
9389{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009390return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009391 ;
9392 return 0;
9393}
9394_ACEOF
9395rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009396if { (ac_try="$ac_link"
9397case "(($ac_try" in
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9400esac
9401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009403 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009404 grep -v '^ *+' conftest.er1 >conftest.err
9405 rm -f conftest.er1
9406 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009408 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9410 { (case "(($ac_try" in
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9413esac
9414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009416 ac_status=$?
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); }; } &&
9419 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009420 { (case "(($ac_try" in
9421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9422 *) ac_try_echo=$ac_try;;
9423esac
9424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009426 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009428 (exit $ac_status); }; }; then
9429 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00009430else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009431 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009432sed 's/^/| /' conftest.$ac_ext >&5
9433
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009434 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009435fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009436
Jeremy White0ebeb532006-06-20 13:18:41 +02009437rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009438 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009439LIBS=$ac_check_lib_save_LIBS
9440fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009441{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9442echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009443if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00009444
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009445cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00009446#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009447_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00009448
Patrik Stridvall24110281999-02-04 10:09:54 +00009449fi
9450
Alexandre Julliard255b4862003-10-15 04:09:55 +00009451 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009452
Alexandre Julliard255b4862003-10-15 04:09:55 +00009453 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9454 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009455 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
9456echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009457if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00009459else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009460 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00009461LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009462cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009463/* confdefs.h. */
9464_ACEOF
9465cat confdefs.h >>conftest.$ac_ext
9466cat >>conftest.$ac_ext <<_ACEOF
9467/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009468
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009469/* Override any GCC internal prototype to avoid an error.
9470 Use char because int might match the return type of a GCC
9471 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009472#ifdef __cplusplus
9473extern "C"
9474#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009475char XShmQueryExtension ();
9476int
9477main ()
9478{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009479return XShmQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009480 ;
9481 return 0;
9482}
9483_ACEOF
9484rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009485if { (ac_try="$ac_link"
9486case "(($ac_try" in
9487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488 *) ac_try_echo=$ac_try;;
9489esac
9490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009492 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009493 grep -v '^ *+' conftest.er1 >conftest.err
9494 rm -f conftest.er1
9495 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009497 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9499 { (case "(($ac_try" in
9500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501 *) ac_try_echo=$ac_try;;
9502esac
9503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9504 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009509 { (case "(($ac_try" in
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9512esac
9513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009515 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009517 (exit $ac_status); }; }; then
9518 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00009519else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009520 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009521sed 's/^/| /' conftest.$ac_ext >&5
9522
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009523 ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00009524fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009525
Jeremy White0ebeb532006-06-20 13:18:41 +02009526rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009527 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009528LIBS=$ac_check_lib_save_LIBS
9529fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009530{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9531echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009532if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00009533
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009534cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00009535#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009536_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00009537
Francois Jacques5b6879c2000-07-28 23:04:54 +00009538fi
9539
Alexandre Julliard255b4862003-10-15 04:09:55 +00009540 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009541
Alexandre Julliard255b4862003-10-15 04:09:55 +00009542 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9543 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009544 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9545echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009546if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00009548else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009549 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00009550LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009551cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009552/* confdefs.h. */
9553_ACEOF
9554cat confdefs.h >>conftest.$ac_ext
9555cat >>conftest.$ac_ext <<_ACEOF
9556/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009557
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009558/* Override any GCC internal prototype to avoid an error.
9559 Use char because int might match the return type of a GCC
9560 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009561#ifdef __cplusplus
9562extern "C"
9563#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009564char XShapeQueryExtension ();
9565int
9566main ()
9567{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009568return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009569 ;
9570 return 0;
9571}
9572_ACEOF
9573rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009574if { (ac_try="$ac_link"
9575case "(($ac_try" in
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9578esac
9579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009581 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009582 grep -v '^ *+' conftest.er1 >conftest.err
9583 rm -f conftest.er1
9584 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009586 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9588 { (case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9591esac
9592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009598 { (case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9601esac
9602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009604 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009606 (exit $ac_status); }; }; then
9607 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00009608else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009609 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009610sed 's/^/| /' conftest.$ac_ext >&5
9611
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009612 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00009613fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009614
Jeremy White0ebeb532006-06-20 13:18:41 +02009615rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009616 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009617LIBS=$ac_check_lib_save_LIBS
9618fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009619{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9620echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009621if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00009622
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009623cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00009624#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009625_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00009626
Ove Kaavenc90fb252001-01-02 22:39:14 +00009627fi
9628
Alexandre Julliard255b4862003-10-15 04:09:55 +00009629 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009630
Alexandre Julliard255b4862003-10-15 04:09:55 +00009631 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9632 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009633 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9634echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009635if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009637else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009638 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00009639LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009640cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009641/* confdefs.h. */
9642_ACEOF
9643cat confdefs.h >>conftest.$ac_ext
9644cat >>conftest.$ac_ext <<_ACEOF
9645/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009646
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009647/* Override any GCC internal prototype to avoid an error.
9648 Use char because int might match the return type of a GCC
9649 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009650#ifdef __cplusplus
9651extern "C"
9652#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009653char XF86VidModeQueryExtension ();
9654int
9655main ()
9656{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009657return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009658 ;
9659 return 0;
9660}
9661_ACEOF
9662rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009663if { (ac_try="$ac_link"
9664case "(($ac_try" in
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9667esac
9668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009670 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009671 grep -v '^ *+' conftest.er1 >conftest.err
9672 rm -f conftest.er1
9673 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009675 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9677 { (case "(($ac_try" in
9678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679 *) ac_try_echo=$ac_try;;
9680esac
9681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009687 { (case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9690esac
9691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009693 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009695 (exit $ac_status); }; }; then
9696 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00009697else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009698 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009699sed 's/^/| /' conftest.$ac_ext >&5
9700
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009701 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009702fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009703
Jeremy White0ebeb532006-06-20 13:18:41 +02009704rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009705 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009706LIBS=$ac_check_lib_save_LIBS
9707fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009708{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9709echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009710if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00009711
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009712cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00009713#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009714_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00009715
9716 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009717
Patrik Stridvall24110281999-02-04 10:09:54 +00009718fi
9719
Alexandre Julliard255b4862003-10-15 04:09:55 +00009720 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009721
Alexandre Julliard255b4862003-10-15 04:09:55 +00009722 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9723 then
Mike McCormackc7c9f932004-04-07 03:57:35 +00009724 cat >conftest.$ac_ext <<_ACEOF
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009725/* confdefs.h. */
9726_ACEOF
9727cat confdefs.h >>conftest.$ac_ext
9728cat >>conftest.$ac_ext <<_ACEOF
9729/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00009730#include <X11/Xlib.h>
9731#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009732int
9733main ()
9734{
Mike McCormackc7c9f932004-04-07 03:57:35 +00009735static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009736 ;
9737 return 0;
9738}
9739_ACEOF
Mike McCormackc7c9f932004-04-07 03:57:35 +00009740rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009741if { (ac_try="$ac_compile"
9742case "(($ac_try" in
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9745esac
9746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747 (eval "$ac_compile") 2>conftest.er1
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009748 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009749 grep -v '^ *+' conftest.er1 >conftest.err
9750 rm -f conftest.er1
9751 cat conftest.err >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755 { (case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9758esac
9759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; } &&
Mike McCormackc7c9f932004-04-07 03:57:35 +00009764 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009765 { (case "(($ac_try" in
9766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767 *) ac_try_echo=$ac_try;;
9768esac
9769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770 (eval "$ac_try") 2>&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009771 ac_status=$?
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; }; then
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009774
9775cat >>confdefs.h <<\_ACEOF
9776#define HAVE_LIBXRANDR 1
9777_ACEOF
9778
Mike McCormackc7c9f932004-04-07 03:57:35 +00009779else
9780 echo "$as_me: failed program was:" >&5
9781sed 's/^/| /' conftest.$ac_ext >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009782
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009783
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009784fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009785
Jeremy White0ebeb532006-06-20 13:18:41 +02009786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00009787 fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009788
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009789 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9790 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009791 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9792echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009793if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9795else
9796 ac_check_lib_save_LIBS=$LIBS
9797LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9798cat >conftest.$ac_ext <<_ACEOF
9799/* confdefs.h. */
9800_ACEOF
9801cat confdefs.h >>conftest.$ac_ext
9802cat >>conftest.$ac_ext <<_ACEOF
9803/* end confdefs.h. */
9804
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009805/* Override any GCC internal prototype to avoid an error.
9806 Use char because int might match the return type of a GCC
9807 builtin and then its argument prototype would still apply. */
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009808#ifdef __cplusplus
9809extern "C"
9810#endif
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009811char XRenderSetPictureTransform ();
9812int
9813main ()
9814{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009815return XRenderSetPictureTransform ();
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009816 ;
9817 return 0;
9818}
9819_ACEOF
9820rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009821if { (ac_try="$ac_link"
9822case "(($ac_try" in
9823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9824 *) ac_try_echo=$ac_try;;
9825esac
9826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9827 (eval "$ac_link") 2>conftest.er1
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009828 ac_status=$?
9829 grep -v '^ *+' conftest.er1 >conftest.err
9830 rm -f conftest.er1
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9835 { (case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838esac
9839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_try") 2>&5
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; } &&
9844 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
9854 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9855else
9856 echo "$as_me: failed program was:" >&5
9857sed 's/^/| /' conftest.$ac_ext >&5
9858
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009859 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009860fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009861
Jeremy White0ebeb532006-06-20 13:18:41 +02009862rm -f core conftest.err conftest.$ac_objext \
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009863 conftest$ac_exeext conftest.$ac_ext
9864LIBS=$ac_check_lib_save_LIBS
9865fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009866{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9867echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009868if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9869
9870cat >>confdefs.h <<\_ACEOF
9871#define HAVE_XRENDERSETPICTURETRANSFORM 1
9872_ACEOF
9873
9874fi
9875
9876 fi
9877
Alexandre Julliardb8074992002-11-21 21:51:24 +00009878 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009879 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009880
9881
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009882
Huw Davies4eb45462006-03-07 13:55:35 +00009883
9884for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009885do
9886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009887{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009890 echo $ECHO_N "(cached) $ECHO_C" >&6
9891else
9892 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009893/* confdefs.h. */
9894_ACEOF
9895cat confdefs.h >>conftest.$ac_ext
9896cat >>conftest.$ac_ext <<_ACEOF
9897/* end confdefs.h. */
Alexandre Julliard73482142005-08-03 19:21:04 +00009898#ifdef HAVE_GL_GLX_H
9899# include <GL/glx.h>
9900#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009901
9902#include <$ac_header>
9903_ACEOF
9904rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009905if { (ac_try="$ac_compile"
9906case "(($ac_try" in
9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908 *) ac_try_echo=$ac_try;;
9909esac
9910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009912 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009913 grep -v '^ *+' conftest.er1 >conftest.err
9914 rm -f conftest.er1
9915 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9919 { (case "(($ac_try" in
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9922esac
9923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009929 { (case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932esac
9933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 eval "$as_ac_Header=yes"
9939else
9940 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009941sed 's/^/| /' conftest.$ac_ext >&5
9942
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009943 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009944fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009945
Jeremy White0ebeb532006-06-20 13:18:41 +02009946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009947fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009948ac_res=`eval echo '${'$as_ac_Header'}'`
9949 { echo "$as_me:$LINENO: result: $ac_res" >&5
9950echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009951if test `eval echo '${'$as_ac_Header'}'` = yes; then
9952 cat >>confdefs.h <<_ACEOF
9953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9954_ACEOF
9955
9956fi
9957
9958done
9959
Alexandre Julliard73482142005-08-03 19:21:04 +00009960 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
9961 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009962 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
9963echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009964if test "${wine_cv_opengl_version_OK+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00009966else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009967 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009968/* confdefs.h. */
9969_ACEOF
9970cat confdefs.h >>conftest.$ac_ext
9971cat >>conftest.$ac_ext <<_ACEOF
9972/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00009973#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009974int
9975main ()
9976{
Lionel Ulmer5c085701999-02-28 19:48:53 +00009977GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009978 ;
9979 return 0;
9980}
9981_ACEOF
9982rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009983if { (ac_try="$ac_compile"
9984case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9987esac
9988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009990 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009995 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9997 { (case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10000esac
10001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; } &&
10006 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010007 { (case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10010esac
10011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010013 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010015 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000010016 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +000010017else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010018 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010019sed 's/^/| /' conftest.$ac_ext >&5
10020
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010021 wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000010022
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010023fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010024
Jeremy White0ebeb532006-06-20 13:18:41 +020010025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +000010026
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010027fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010028{ echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
10029echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010030
Alexandre Julliardb8074992002-11-21 21:51:24 +000010031 if test "$wine_cv_opengl_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000010032 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010033 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
10034echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010035if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +000010037else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010038 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +000010039LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010040cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010041/* confdefs.h. */
10042_ACEOF
10043cat confdefs.h >>conftest.$ac_ext
10044cat >>conftest.$ac_ext <<_ACEOF
10045/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010046
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010047/* Override any GCC internal prototype to avoid an error.
10048 Use char because int might match the return type of a GCC
10049 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010050#ifdef __cplusplus
10051extern "C"
10052#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010053char glXCreateContext ();
10054int
10055main ()
10056{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010057return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010058 ;
10059 return 0;
10060}
10061_ACEOF
10062rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010063if { (ac_try="$ac_link"
10064case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067esac
10068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010070 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010071 grep -v '^ *+' conftest.er1 >conftest.err
10072 rm -f conftest.er1
10073 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010075 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10077 { (case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10080esac
10081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; } &&
10086 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010087 { (case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10090esac
10091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010093 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010095 (exit $ac_status); }; }; then
10096 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +000010097else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010098 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010099sed 's/^/| /' conftest.$ac_ext >&5
10100
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010101 ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +000010102fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010103
Jeremy White0ebeb532006-06-20 13:18:41 +020010104rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000010105 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010106LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +000010107fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010108{ echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
10109echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010110if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000010111 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +000010112
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010113fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000010114
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010115
Alexandre Julliardb508a1d2002-01-21 18:06:10 +000010116 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +000010117 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +000010118 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010119
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010120cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +000010121#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010122_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +000010123
Anderson Lizardo5a2da4e2005-07-25 11:12:11 +000010124 else
10125 if test -f /usr/X11R6/lib/libGL.a
10126 then
10127 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
10128This prevents linking to OpenGL. Delete the file and restart configure." >&5
10129echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
10130This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
10131 { (exit 1); exit 1; }; }
10132 fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000010133 fi
Anderson Lizardo5a2da4e2005-07-25 11:12:11 +000010134
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010135 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
10136echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010137if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010139else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010140 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000010141LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010142 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010143cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010144/* confdefs.h. */
10145_ACEOF
10146cat confdefs.h >>conftest.$ac_ext
10147cat >>conftest.$ac_ext <<_ACEOF
10148/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010149
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010150/* Override any GCC internal prototype to avoid an error.
10151 Use char because int might match the return type of a GCC
10152 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010153#ifdef __cplusplus
10154extern "C"
10155#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010156char gluLookAt ();
10157int
10158main ()
10159{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010160return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010161 ;
10162 return 0;
10163}
10164_ACEOF
10165rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010166if { (ac_try="$ac_link"
10167case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170esac
10171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010173 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010178 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10180 { (case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10183esac
10184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; } &&
10189 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010190 { (case "(($ac_try" in
10191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10193esac
10194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010196 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010198 (exit $ac_status); }; }; then
10199 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010200else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010201 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010202sed 's/^/| /' conftest.$ac_ext >&5
10203
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010204 ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010205fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010206
Jeremy White0ebeb532006-06-20 13:18:41 +020010207rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000010208 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010209LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010210fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010211{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
10212echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010213if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000010214 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010215 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010216
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010217fi
10218
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000010219 fi
Jacek Cabanef799c42003-12-02 04:11:09 +000010220
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010221 { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
10222echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
Jacek Cabanef799c42003-12-02 04:11:09 +000010223if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10225else
10226 ac_check_lib_save_LIBS=$LIBS
Jacek Caban5e69f112003-12-03 20:26:43 +000010227LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
Jacek Cabanef799c42003-12-02 04:11:09 +000010228cat >conftest.$ac_ext <<_ACEOF
Jacek Cabanef799c42003-12-02 04:11:09 +000010229/* confdefs.h. */
10230_ACEOF
10231cat confdefs.h >>conftest.$ac_ext
10232cat >>conftest.$ac_ext <<_ACEOF
10233/* end confdefs.h. */
10234
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010235/* Override any GCC internal prototype to avoid an error.
10236 Use char because int might match the return type of a GCC
10237 builtin and then its argument prototype would still apply. */
Jacek Cabanef799c42003-12-02 04:11:09 +000010238#ifdef __cplusplus
10239extern "C"
10240#endif
Jacek Cabanef799c42003-12-02 04:11:09 +000010241char glutMainLoop ();
10242int
10243main ()
10244{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010245return glutMainLoop ();
Jacek Cabanef799c42003-12-02 04:11:09 +000010246 ;
10247 return 0;
10248}
10249_ACEOF
10250rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010251if { (ac_try="$ac_link"
10252case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10255esac
10256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_link") 2>conftest.er1
Jacek Cabanef799c42003-12-02 04:11:09 +000010258 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010259 grep -v '^ *+' conftest.er1 >conftest.err
10260 rm -f conftest.er1
10261 cat conftest.err >&5
Jacek Cabanef799c42003-12-02 04:11:09 +000010262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10265 { (case "(($ac_try" in
10266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267 *) ac_try_echo=$ac_try;;
10268esac
10269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010271 ac_status=$?
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; } &&
10274 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010275 { (case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10278esac
10279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280 (eval "$ac_try") 2>&5
Jacek Cabanef799c42003-12-02 04:11:09 +000010281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 ac_cv_lib_glut_glutMainLoop=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_cv_lib_glut_glutMainLoop=no
Jacek Cabanef799c42003-12-02 04:11:09 +000010290fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010291
Jeremy White0ebeb532006-06-20 13:18:41 +020010292rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000010293 conftest$ac_exeext conftest.$ac_ext
Jacek Cabanef799c42003-12-02 04:11:09 +000010294LIBS=$ac_check_lib_save_LIBS
10295fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010296{ echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
10297echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
Jacek Cabanef799c42003-12-02 04:11:09 +000010298if test $ac_cv_lib_glut_glutMainLoop = yes; then
Jacek Caban5e69f112003-12-03 20:26:43 +000010299 GLUT_LIBS="-lglut -lXmu -lXi"
Jacek Cabanef799c42003-12-02 04:11:09 +000010300
10301 GLUT32FILES='$(GLUT32FILES)'
10302
10303fi
10304
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000010305 fi
Patrik Stridvall24110281999-02-04 10:09:54 +000010306 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +000010307
Francois Gouget6f670b12002-10-10 17:54:27 +000010308 NASLIBS=""
10309
10310
10311for ac_header in audio/audiolib.h
10312do
10313as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10316echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10317if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Francois Gouget6f670b12002-10-10 17:54:27 +000010318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010320ac_res=`eval echo '${'$as_ac_Header'}'`
10321 { echo "$as_me:$LINENO: result: $ac_res" >&5
10322echo "${ECHO_T}$ac_res" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010323else
10324 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010325{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10326echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010327cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010328/* confdefs.h. */
10329_ACEOF
10330cat confdefs.h >>conftest.$ac_ext
10331cat >>conftest.$ac_ext <<_ACEOF
10332/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +000010333$ac_includes_default
10334#include <$ac_header>
10335_ACEOF
10336rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020010337if { (ac_try="$ac_compile"
10338case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10341esac
10342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_compile") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +000010344 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010345 grep -v '^ *+' conftest.er1 >conftest.err
10346 rm -f conftest.er1
10347 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10351 { (case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10354esac
10355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; } &&
10360 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010361 { (case "(($ac_try" in
10362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10363 *) ac_try_echo=$ac_try;;
10364esac
10365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10366 (eval "$ac_try") 2>&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010367 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); }; }; then
10370 ac_header_compiler=yes
10371else
10372 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010373sed 's/^/| /' conftest.$ac_ext >&5
10374
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010375 ac_header_compiler=no
Francois Gouget6f670b12002-10-10 17:54:27 +000010376fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010377
Jeremy White0ebeb532006-06-20 13:18:41 +020010378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010379{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10380echo "${ECHO_T}$ac_header_compiler" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010381
10382# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010383{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010385cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010386/* confdefs.h. */
10387_ACEOF
10388cat confdefs.h >>conftest.$ac_ext
10389cat >>conftest.$ac_ext <<_ACEOF
10390/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +000010391#include <$ac_header>
10392_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020010393if { (ac_try="$ac_cpp conftest.$ac_ext"
10394case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10397esac
10398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +000010400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } >/dev/null; then
10406 if test -s conftest.err; then
10407 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Francois Gouget6f670b12002-10-10 17:54:27 +000010409 else
10410 ac_cpp_err=
10411 fi
10412else
10413 ac_cpp_err=yes
10414fi
10415if test -z "$ac_cpp_err"; then
10416 ac_header_preproc=yes
10417else
10418 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010419sed 's/^/| /' conftest.$ac_ext >&5
10420
Francois Gouget6f670b12002-10-10 17:54:27 +000010421 ac_header_preproc=no
10422fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010423
Francois Gouget6f670b12002-10-10 17:54:27 +000010424rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010425{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10426echo "${ECHO_T}$ac_header_preproc" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010427
10428# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10430 yes:no: )
Francois Gouget6f670b12002-10-10 17:54:27 +000010431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10432echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10434echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10435 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010436 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000010437 no:yes:* )
Francois Gouget6f670b12002-10-10 17:54:27 +000010438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10439echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10441echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10443echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10445echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Francois Gouget6f670b12002-10-10 17:54:27 +000010446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010447echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10449echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010450 ( cat <<\_ASBOX
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010451## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000010452## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010453## ------------------------------------ ##
10454_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010455 ) | sed "s/^/$as_me: WARNING: /" >&2
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010456 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +000010457esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010458{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Francois Gouget6f670b12002-10-10 17:54:27 +000010461 echo $ECHO_N "(cached) $ECHO_C" >&6
10462else
Alexandre Julliard875927f2004-01-02 01:55:29 +000010463 eval "$as_ac_Header=\$ac_header_preproc"
Francois Gouget6f670b12002-10-10 17:54:27 +000010464fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010465ac_res=`eval echo '${'$as_ac_Header'}'`
10466 { echo "$as_me:$LINENO: result: $ac_res" >&5
10467echo "${ECHO_T}$ac_res" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010468
10469fi
10470if test `eval echo '${'$as_ac_Header'}'` = yes; then
10471 cat >>confdefs.h <<_ACEOF
10472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10473_ACEOF
10474
10475for ac_header in audio/soundlib.h
10476do
10477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010478{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Francois Gouget6f670b12002-10-10 17:54:27 +000010481 echo $ECHO_N "(cached) $ECHO_C" >&6
10482else
10483 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010484/* confdefs.h. */
10485_ACEOF
10486cat confdefs.h >>conftest.$ac_ext
10487cat >>conftest.$ac_ext <<_ACEOF
10488/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +000010489#include <audio/audiolib.h>
10490
10491#include <$ac_header>
10492_ACEOF
10493rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020010494if { (ac_try="$ac_compile"
10495case "(($ac_try" in
10496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10497 *) ac_try_echo=$ac_try;;
10498esac
10499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500 (eval "$ac_compile") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +000010501 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010502 grep -v '^ *+' conftest.er1 >conftest.err
10503 rm -f conftest.er1
10504 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10508 { (case "(($ac_try" in
10509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510 *) ac_try_echo=$ac_try;;
10511esac
10512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010514 ac_status=$?
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; } &&
10517 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010518 { (case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10521esac
10522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523 (eval "$ac_try") 2>&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010524 ac_status=$?
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10527 eval "$as_ac_Header=yes"
10528else
10529 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010530sed 's/^/| /' conftest.$ac_ext >&5
10531
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010532 eval "$as_ac_Header=no"
Francois Gouget6f670b12002-10-10 17:54:27 +000010533fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010534
Jeremy White0ebeb532006-06-20 13:18:41 +020010535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +000010536fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010537ac_res=`eval echo '${'$as_ac_Header'}'`
10538 { echo "$as_me:$LINENO: result: $ac_res" >&5
10539echo "${ECHO_T}$ac_res" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010540if test `eval echo '${'$as_ac_Header'}'` = yes; then
10541 cat >>confdefs.h <<_ACEOF
10542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10543_ACEOF
10544
10545fi
10546
10547done
10548
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010549 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
10550echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010551if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553else
10554 ac_check_lib_save_LIBS=$LIBS
10555LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10556cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010557/* confdefs.h. */
10558_ACEOF
10559cat confdefs.h >>conftest.$ac_ext
10560cat >>conftest.$ac_ext <<_ACEOF
10561/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +000010562
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010563/* Override any GCC internal prototype to avoid an error.
10564 Use char because int might match the return type of a GCC
10565 builtin and then its argument prototype would still apply. */
Francois Gouget6f670b12002-10-10 17:54:27 +000010566#ifdef __cplusplus
10567extern "C"
10568#endif
Francois Gouget6f670b12002-10-10 17:54:27 +000010569char AuCreateFlow ();
10570int
10571main ()
10572{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010573return AuCreateFlow ();
Francois Gouget6f670b12002-10-10 17:54:27 +000010574 ;
10575 return 0;
10576}
10577_ACEOF
10578rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010579if { (ac_try="$ac_link"
10580case "(($ac_try" in
10581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582 *) ac_try_echo=$ac_try;;
10583esac
10584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585 (eval "$ac_link") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +000010586 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010587 grep -v '^ *+' conftest.er1 >conftest.err
10588 rm -f conftest.er1
10589 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10593 { (case "(($ac_try" in
10594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10595 *) ac_try_echo=$ac_try;;
10596esac
10597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; } &&
10602 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010603 { (case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606esac
10607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_try") 2>&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; }; then
10612 ac_cv_lib_audio_AuCreateFlow=yes
10613else
10614 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010615sed 's/^/| /' conftest.$ac_ext >&5
10616
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010617 ac_cv_lib_audio_AuCreateFlow=no
Francois Gouget6f670b12002-10-10 17:54:27 +000010618fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010619
Jeremy White0ebeb532006-06-20 13:18:41 +020010620rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000010621 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +000010622LIBS=$ac_check_lib_save_LIBS
10623fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010624{ echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10625echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010626if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10627
10628cat >>confdefs.h <<\_ACEOF
10629#define HAVE_NAS 1
10630_ACEOF
10631
10632 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10633fi
10634
10635fi
10636
10637done
10638
10639
Ove Kaaven1eb593c1999-02-14 09:34:46 +000010640 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +000010641 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +000010642else
10643 XLIB=""
10644 X_CFLAGS=""
10645 X_LIBS=""
10646fi
Alexandre Julliard902da691995-11-05 14:39:02 +000010647
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010648
10649XML2LIBS=""
10650
10651XML2INCL=""
10652
Mike McCormackf3719a82005-09-03 09:39:38 +000010653XSLTLIBS=""
10654
10655XSLTINCL=""
10656
Mike McCormack90c75bd2005-08-08 18:36:53 +000010657if test "$PKG_CONFIG" != "false"
10658then
10659 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliardd01063e2006-06-22 12:07:57 +020010660 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10661 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
Mike McCormack90c75bd2005-08-08 18:36:53 +000010662 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010663
10664for ac_header in libxml/parser.h
10665do
10666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010671 echo $ECHO_N "(cached) $ECHO_C" >&6
10672fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010673ac_res=`eval echo '${'$as_ac_Header'}'`
10674 { echo "$as_me:$LINENO: result: $ac_res" >&5
10675echo "${ECHO_T}$ac_res" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010676else
10677 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010678{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010680cat >conftest.$ac_ext <<_ACEOF
10681/* confdefs.h. */
10682_ACEOF
10683cat confdefs.h >>conftest.$ac_ext
10684cat >>conftest.$ac_ext <<_ACEOF
10685/* end confdefs.h. */
10686$ac_includes_default
10687#include <$ac_header>
10688_ACEOF
10689rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020010690if { (ac_try="$ac_compile"
10691case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694esac
10695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_compile") 2>conftest.er1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010697 ac_status=$?
10698 grep -v '^ *+' conftest.er1 >conftest.err
10699 rm -f conftest.er1
10700 cat conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10704 { (case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707esac
10708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; } &&
10713 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010714 { (case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10717esac
10718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010720 ac_status=$?
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; }; then
10723 ac_header_compiler=yes
10724else
10725 echo "$as_me: failed program was:" >&5
10726sed 's/^/| /' conftest.$ac_ext >&5
10727
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010728 ac_header_compiler=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010729fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010730
Jeremy White0ebeb532006-06-20 13:18:41 +020010731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010732{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10733echo "${ECHO_T}$ac_header_compiler" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010734
10735# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010736{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10737echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010738cat >conftest.$ac_ext <<_ACEOF
10739/* confdefs.h. */
10740_ACEOF
10741cat confdefs.h >>conftest.$ac_ext
10742cat >>conftest.$ac_ext <<_ACEOF
10743/* end confdefs.h. */
10744#include <$ac_header>
10745_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020010746if { (ac_try="$ac_cpp conftest.$ac_ext"
10747case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10750esac
10751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } >/dev/null; then
10759 if test -s conftest.err; then
10760 ac_cpp_err=$ac_c_preproc_warn_flag
10761 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10762 else
10763 ac_cpp_err=
10764 fi
10765else
10766 ac_cpp_err=yes
10767fi
10768if test -z "$ac_cpp_err"; then
10769 ac_header_preproc=yes
10770else
10771 echo "$as_me: failed program was:" >&5
10772sed 's/^/| /' conftest.$ac_ext >&5
10773
10774 ac_header_preproc=no
10775fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010776
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010777rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010778{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10779echo "${ECHO_T}$ac_header_preproc" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010780
10781# So? What about this header?
10782case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10783 yes:no: )
10784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10785echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10787echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10788 ac_header_preproc=yes
10789 ;;
10790 no:yes:* )
10791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10792echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10794echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10796echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10798echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10800echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10802echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010803 ( cat <<\_ASBOX
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010804## ------------------------------------ ##
10805## Report this to wine-devel@winehq.org ##
10806## ------------------------------------ ##
10807_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010808 ) | sed "s/^/$as_me: WARNING: /" >&2
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010809 ;;
10810esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010811{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10813if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815else
10816 eval "$as_ac_Header=\$ac_header_preproc"
10817fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010818ac_res=`eval echo '${'$as_ac_Header'}'`
10819 { echo "$as_me:$LINENO: result: $ac_res" >&5
10820echo "${ECHO_T}$ac_res" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010821
10822fi
10823if test `eval echo '${'$as_ac_Header'}'` = yes; then
10824 cat >>confdefs.h <<_ACEOF
10825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10826_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010827 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10828echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +000010829if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010830 echo $ECHO_N "(cached) $ECHO_C" >&6
10831else
10832 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +000010833LIBS="-lxml2 $ac_xml_libs $LIBS"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010834cat >conftest.$ac_ext <<_ACEOF
10835/* confdefs.h. */
10836_ACEOF
10837cat confdefs.h >>conftest.$ac_ext
10838cat >>conftest.$ac_ext <<_ACEOF
10839/* end confdefs.h. */
10840
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010841/* Override any GCC internal prototype to avoid an error.
10842 Use char because int might match the return type of a GCC
10843 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010844#ifdef __cplusplus
10845extern "C"
10846#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +000010847char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010848int
10849main ()
10850{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010851return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010852 ;
10853 return 0;
10854}
10855_ACEOF
10856rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010857if { (ac_try="$ac_link"
10858case "(($ac_try" in
10859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10860 *) ac_try_echo=$ac_try;;
10861esac
10862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10863 (eval "$ac_link") 2>conftest.er1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010864 ac_status=$?
10865 grep -v '^ *+' conftest.er1 >conftest.err
10866 rm -f conftest.er1
10867 cat conftest.err >&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10871 { (case "(($ac_try" in
10872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873 *) ac_try_echo=$ac_try;;
10874esac
10875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010877 ac_status=$?
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); }; } &&
10880 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010881 { (case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10884esac
10885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; }; then
Mike McCormack90c75bd2005-08-08 18:36:53 +000010890 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010891else
10892 echo "$as_me: failed program was:" >&5
10893sed 's/^/| /' conftest.$ac_ext >&5
10894
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010895 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010896fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010897
Jeremy White0ebeb532006-06-20 13:18:41 +020010898rm -f core conftest.err conftest.$ac_objext \
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010899 conftest$ac_exeext conftest.$ac_ext
10900LIBS=$ac_check_lib_save_LIBS
10901fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010902{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10903echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +000010904if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010905
10906cat >>confdefs.h <<\_ACEOF
10907#define HAVE_LIBXML2 1
10908_ACEOF
10909
Mike McCormack90c75bd2005-08-08 18:36:53 +000010910 XML2LIBS="$ac_xml_libs"
10911 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010912fi
10913
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010914 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
10915echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
Mike McCormack70adb8f2005-08-12 10:35:17 +000010916if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
10917 echo $ECHO_N "(cached) $ECHO_C" >&6
10918else
10919 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +000010920LIBS="-lxml2 $ac_xml_libs $LIBS"
Mike McCormack70adb8f2005-08-12 10:35:17 +000010921cat >conftest.$ac_ext <<_ACEOF
10922/* confdefs.h. */
10923_ACEOF
10924cat confdefs.h >>conftest.$ac_ext
10925cat >>conftest.$ac_ext <<_ACEOF
10926/* end confdefs.h. */
10927
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010928/* Override any GCC internal prototype to avoid an error.
10929 Use char because int might match the return type of a GCC
10930 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +000010931#ifdef __cplusplus
10932extern "C"
10933#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +000010934char xmlReadMemory ();
10935int
10936main ()
10937{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010938return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +000010939 ;
10940 return 0;
10941}
10942_ACEOF
10943rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010944if { (ac_try="$ac_link"
10945case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10948esac
10949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_link") 2>conftest.er1
Mike McCormack70adb8f2005-08-12 10:35:17 +000010951 ac_status=$?
10952 grep -v '^ *+' conftest.er1 >conftest.err
10953 rm -f conftest.er1
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10961esac
10962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
Mike McCormack70adb8f2005-08-12 10:35:17 +000010964 ac_status=$?
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; } &&
10967 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010968 { (case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971esac
10972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_try") 2>&5
Mike McCormack70adb8f2005-08-12 10:35:17 +000010974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; }; then
10977 ac_cv_lib_xml2_xmlReadMemory=yes
10978else
10979 echo "$as_me: failed program was:" >&5
10980sed 's/^/| /' conftest.$ac_ext >&5
10981
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010982 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +000010983fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010984
Jeremy White0ebeb532006-06-20 13:18:41 +020010985rm -f core conftest.err conftest.$ac_objext \
Mike McCormack70adb8f2005-08-12 10:35:17 +000010986 conftest$ac_exeext conftest.$ac_ext
10987LIBS=$ac_check_lib_save_LIBS
10988fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010989{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10990echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Mike McCormack70adb8f2005-08-12 10:35:17 +000010991if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
10992
10993cat >>confdefs.h <<\_ACEOF
10994#define HAVE_XMLREADMEMORY 1
10995_ACEOF
10996
10997fi
10998
10999
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000011000fi
11001
11002done
11003
Mike McCormack90c75bd2005-08-08 18:36:53 +000011004 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliardd01063e2006-06-22 12:07:57 +020011005 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
11006 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
Mike McCormackf3719a82005-09-03 09:39:38 +000011007 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
11008
11009
Vincent Bérond7f64242005-09-15 09:39:09 +000011010for ac_header in libxslt/pattern.h libxslt/transform.h
Mike McCormackf3719a82005-09-03 09:39:38 +000011011do
11012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011013{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Mike McCormackf3719a82005-09-03 09:39:38 +000011016 echo $ECHO_N "(cached) $ECHO_C" >&6
Mike McCormackf3719a82005-09-03 09:39:38 +000011017else
Vincent Bérond7f64242005-09-15 09:39:09 +000011018 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +000011019/* confdefs.h. */
11020_ACEOF
11021cat confdefs.h >>conftest.$ac_ext
11022cat >>conftest.$ac_ext <<_ACEOF
11023/* end confdefs.h. */
Vincent Bérond7f64242005-09-15 09:39:09 +000011024#ifdef HAVE_LIBXSLT_PATTERN_H
11025# include <libxslt/pattern.h>
11026#endif
11027
Mike McCormackf3719a82005-09-03 09:39:38 +000011028#include <$ac_header>
11029_ACEOF
11030rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020011031if { (ac_try="$ac_compile"
11032case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11035esac
11036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_compile") 2>conftest.er1
Mike McCormackf3719a82005-09-03 09:39:38 +000011038 ac_status=$?
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11045 { (case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11048esac
11049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000011051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; } &&
11054 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011055 { (case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11058esac
11059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060 (eval "$ac_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000011061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
Vincent Bérond7f64242005-09-15 09:39:09 +000011064 eval "$as_ac_Header=yes"
Mike McCormackf3719a82005-09-03 09:39:38 +000011065else
11066 echo "$as_me: failed program was:" >&5
11067sed 's/^/| /' conftest.$ac_ext >&5
11068
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011069 eval "$as_ac_Header=no"
Mike McCormackf3719a82005-09-03 09:39:38 +000011070fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011071
Jeremy White0ebeb532006-06-20 13:18:41 +020011072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +000011073fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011074ac_res=`eval echo '${'$as_ac_Header'}'`
11075 { echo "$as_me:$LINENO: result: $ac_res" >&5
11076echo "${ECHO_T}$ac_res" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +000011077if test `eval echo '${'$as_ac_Header'}'` = yes; then
11078 cat >>confdefs.h <<_ACEOF
11079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11080_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011081 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
11082echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +000011083if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11085else
11086 ac_check_lib_save_LIBS=$LIBS
11087LIBS="-lxslt $ac_xslt_libs $LIBS"
11088cat >conftest.$ac_ext <<_ACEOF
11089/* confdefs.h. */
11090_ACEOF
11091cat confdefs.h >>conftest.$ac_ext
11092cat >>conftest.$ac_ext <<_ACEOF
11093/* end confdefs.h. */
11094
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011095/* Override any GCC internal prototype to avoid an error.
11096 Use char because int might match the return type of a GCC
11097 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +000011098#ifdef __cplusplus
11099extern "C"
11100#endif
Mike McCormackf3719a82005-09-03 09:39:38 +000011101char xsltCompilePattern ();
11102int
11103main ()
11104{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011105return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +000011106 ;
11107 return 0;
11108}
11109_ACEOF
11110rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011111if { (ac_try="$ac_link"
11112case "(($ac_try" in
11113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11115esac
11116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_link") 2>conftest.er1
Mike McCormackf3719a82005-09-03 09:39:38 +000011118 ac_status=$?
11119 grep -v '^ *+' conftest.er1 >conftest.err
11120 rm -f conftest.er1
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11125 { (case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11128esac
11129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000011131 ac_status=$?
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; } &&
11134 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011135 { (case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138esac
11139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000011141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_lib_xslt_xsltCompilePattern=yes
11145else
11146 echo "$as_me: failed program was:" >&5
11147sed 's/^/| /' conftest.$ac_ext >&5
11148
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011149 ac_cv_lib_xslt_xsltCompilePattern=no
Mike McCormackf3719a82005-09-03 09:39:38 +000011150fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011151
Jeremy White0ebeb532006-06-20 13:18:41 +020011152rm -f core conftest.err conftest.$ac_objext \
Mike McCormackf3719a82005-09-03 09:39:38 +000011153 conftest$ac_exeext conftest.$ac_ext
11154LIBS=$ac_check_lib_save_LIBS
11155fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011156{ echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
11157echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +000011158if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
11159
11160cat >>confdefs.h <<\_ACEOF
11161#define HAVE_LIBXSLT 1
11162_ACEOF
11163
11164 XSLTLIBS="$ac_xslt_libs"
11165 XSLTINCL="$ac_xslt_cflags"
11166fi
11167
11168
11169fi
11170
11171done
11172
11173 CPPFLAGS="$ac_save_CPPFLAGS"
Mike McCormack90c75bd2005-08-08 18:36:53 +000011174fi
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000011175
Alexandre Julliard00068982006-04-18 16:47:53 +020011176HALINCL=""
11177
11178if test "$PKG_CONFIG" != "false"
11179then
11180 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliardd01063e2006-06-22 12:07:57 +020011181 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
11182 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
Alexandre Julliard00068982006-04-18 16:47:53 +020011183 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
11184
11185
11186for ac_header in dbus/dbus.h hal/libhal.h
11187do
11188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011189if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard00068982006-04-18 16:47:53 +020011193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011195ac_res=`eval echo '${'$as_ac_Header'}'`
11196 { echo "$as_me:$LINENO: result: $ac_res" >&5
11197echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011198else
11199 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011200{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11201echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011202cat >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$ac_includes_default
11209#include <$ac_header>
11210_ACEOF
11211rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020011212if { (ac_try="$ac_compile"
11213case "(($ac_try" in
11214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11215 *) ac_try_echo=$ac_try;;
11216esac
11217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11218 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020011219 ac_status=$?
11220 grep -v '^ *+' conftest.er1 >conftest.err
11221 rm -f conftest.er1
11222 cat conftest.err >&5
11223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11226 { (case "(($ac_try" in
11227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228 *) ac_try_echo=$ac_try;;
11229esac
11230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020011232 ac_status=$?
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; } &&
11235 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011236 { (case "(($ac_try" in
11237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11238 *) ac_try_echo=$ac_try;;
11239esac
11240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11241 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020011242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; }; then
11245 ac_header_compiler=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_header_compiler=no
Alexandre Julliard00068982006-04-18 16:47:53 +020011251fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011252
Jeremy White0ebeb532006-06-20 13:18:41 +020011253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011254{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11255echo "${ECHO_T}$ac_header_compiler" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011256
11257# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011258{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11259echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011260cat >conftest.$ac_ext <<_ACEOF
11261/* confdefs.h. */
11262_ACEOF
11263cat confdefs.h >>conftest.$ac_ext
11264cat >>conftest.$ac_ext <<_ACEOF
11265/* end confdefs.h. */
11266#include <$ac_header>
11267_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020011268if { (ac_try="$ac_cpp conftest.$ac_ext"
11269case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272esac
11273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020011275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } >/dev/null; then
11281 if test -s conftest.err; then
11282 ac_cpp_err=$ac_c_preproc_warn_flag
11283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11284 else
11285 ac_cpp_err=
11286 fi
11287else
11288 ac_cpp_err=yes
11289fi
11290if test -z "$ac_cpp_err"; then
11291 ac_header_preproc=yes
11292else
11293 echo "$as_me: failed program was:" >&5
11294sed 's/^/| /' conftest.$ac_ext >&5
11295
11296 ac_header_preproc=no
11297fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011298
Alexandre Julliard00068982006-04-18 16:47:53 +020011299rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011300{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11301echo "${ECHO_T}$ac_header_preproc" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011302
11303# So? What about this header?
11304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11305 yes:no: )
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11307echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11309echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11310 ac_header_preproc=yes
11311 ;;
11312 no:yes:* )
11313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11316echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11318echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11320echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11324echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011325 ( cat <<\_ASBOX
Alexandre Julliard00068982006-04-18 16:47:53 +020011326## ------------------------------------ ##
11327## Report this to wine-devel@winehq.org ##
11328## ------------------------------------ ##
11329_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011330 ) | sed "s/^/$as_me: WARNING: /" >&2
Alexandre Julliard00068982006-04-18 16:47:53 +020011331 ;;
11332esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011333{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard00068982006-04-18 16:47:53 +020011336 echo $ECHO_N "(cached) $ECHO_C" >&6
11337else
11338 eval "$as_ac_Header=\$ac_header_preproc"
11339fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011340ac_res=`eval echo '${'$as_ac_Header'}'`
11341 { echo "$as_me:$LINENO: result: $ac_res" >&5
11342echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011343
11344fi
11345if test `eval echo '${'$as_ac_Header'}'` = yes; then
11346 cat >>confdefs.h <<_ACEOF
11347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11348_ACEOF
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011349
11350fi
11351
11352done
11353
11354 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
11355 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011356 { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
11357echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011358if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11360else
11361 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011362LIBS="-lhal $LIBS"
Alexandre Julliard00068982006-04-18 16:47:53 +020011363cat >conftest.$ac_ext <<_ACEOF
11364/* confdefs.h. */
11365_ACEOF
11366cat confdefs.h >>conftest.$ac_ext
11367cat >>conftest.$ac_ext <<_ACEOF
11368/* end confdefs.h. */
11369
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011370/* Override any GCC internal prototype to avoid an error.
11371 Use char because int might match the return type of a GCC
11372 builtin and then its argument prototype would still apply. */
Alexandre Julliard00068982006-04-18 16:47:53 +020011373#ifdef __cplusplus
11374extern "C"
11375#endif
Alexandre Julliard00068982006-04-18 16:47:53 +020011376char libhal_ctx_new ();
11377int
11378main ()
11379{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011380return libhal_ctx_new ();
Alexandre Julliard00068982006-04-18 16:47:53 +020011381 ;
11382 return 0;
11383}
11384_ACEOF
11385rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011386if { (ac_try="$ac_link"
11387case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390esac
11391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020011393 ac_status=$?
11394 grep -v '^ *+' conftest.er1 >conftest.err
11395 rm -f conftest.er1
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11400 { (case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11403esac
11404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020011406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; } &&
11409 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011410 { (case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11413esac
11414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11415 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020011416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }; then
11419 ac_cv_lib_hal_libhal_ctx_new=yes
11420else
11421 echo "$as_me: failed program was:" >&5
11422sed 's/^/| /' conftest.$ac_ext >&5
11423
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011424 ac_cv_lib_hal_libhal_ctx_new=no
Alexandre Julliard00068982006-04-18 16:47:53 +020011425fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011426
Jeremy White0ebeb532006-06-20 13:18:41 +020011427rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard00068982006-04-18 16:47:53 +020011428 conftest$ac_exeext conftest.$ac_ext
11429LIBS=$ac_check_lib_save_LIBS
11430fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011431{ echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
11432echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011433if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011434 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
11435echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011436if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11438else
11439 ac_check_lib_save_LIBS=$LIBS
11440LIBS="-ldbus-1 $ac_hal_libs $LIBS"
11441cat >conftest.$ac_ext <<_ACEOF
11442/* confdefs.h. */
11443_ACEOF
11444cat confdefs.h >>conftest.$ac_ext
11445cat >>conftest.$ac_ext <<_ACEOF
11446/* end confdefs.h. */
11447
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011448/* Override any GCC internal prototype to avoid an error.
11449 Use char because int might match the return type of a GCC
11450 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011451#ifdef __cplusplus
11452extern "C"
11453#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011454char dbus_connection_close ();
11455int
11456main ()
11457{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011458return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011459 ;
11460 return 0;
11461}
11462_ACEOF
11463rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011464if { (ac_try="$ac_link"
11465case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468esac
11469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11478 { (case "(($ac_try" in
11479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480 *) ac_try_echo=$ac_try;;
11481esac
11482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_try") 2>&5
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011484 ac_status=$?
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; } &&
11487 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011488 { (case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491esac
11492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_try") 2>&5
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_cv_lib_dbus_1_dbus_connection_close=yes
11498else
11499 echo "$as_me: failed program was:" >&5
11500sed 's/^/| /' conftest.$ac_ext >&5
11501
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011502 ac_cv_lib_dbus_1_dbus_connection_close=no
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011503fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011504
Jeremy White0ebeb532006-06-20 13:18:41 +020011505rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011506 conftest$ac_exeext conftest.$ac_ext
11507LIBS=$ac_check_lib_save_LIBS
11508fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011509{ echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
11510echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011511if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
Alexandre Julliard00068982006-04-18 16:47:53 +020011512
11513cat >>confdefs.h <<\_ACEOF
11514#define HAVE_LIBHAL 1
11515_ACEOF
11516
11517 HALINCL="$ac_hal_cflags"
11518fi
11519
11520fi
11521
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011522 fi
Alexandre Julliard00068982006-04-18 16:47:53 +020011523 CPPFLAGS="$ac_save_CPPFLAGS"
11524fi
11525
Alexandre Julliard48957682001-12-26 23:08:31 +000011526CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011527if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +000011528then
Alexandre Julliard73482142005-08-03 19:21:04 +000011529 if test "$ac_cv_header_ncurses_h" = "yes"
11530 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011531 { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
11532echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011533if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011535else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011536 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011537LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011538cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011539/* confdefs.h. */
11540_ACEOF
11541cat confdefs.h >>conftest.$ac_ext
11542cat >>conftest.$ac_ext <<_ACEOF
11543/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011544
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011545/* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011548#ifdef __cplusplus
11549extern "C"
11550#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011551char waddch ();
11552int
11553main ()
11554{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011555return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011556 ;
11557 return 0;
11558}
11559_ACEOF
11560rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011561if { (ac_try="$ac_link"
11562case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565esac
11566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011568 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011573 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11575 { (case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11578esac
11579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011581 ac_status=$?
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; } &&
11584 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011585 { (case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11588esac
11589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011591 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011593 (exit $ac_status); }; }; then
11594 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011595else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011596 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011597sed 's/^/| /' conftest.$ac_ext >&5
11598
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011599 ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011600fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011601
Jeremy White0ebeb532006-06-20 13:18:41 +020011602rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000011603 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011604LIBS=$ac_check_lib_save_LIBS
11605fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011606{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
11607echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011608if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011609
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011610cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +000011611#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011612_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011613
Alexandre Julliard48957682001-12-26 23:08:31 +000011614 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011615fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011616
Alexandre Julliard73482142005-08-03 19:21:04 +000011617 elif test "$ac_cv_header_curses_h" = "yes"
11618 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011619 { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
11620echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011621if test "${ac_cv_lib_curses_waddch+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011623else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011624 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011625LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011626cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011627/* confdefs.h. */
11628_ACEOF
11629cat confdefs.h >>conftest.$ac_ext
11630cat >>conftest.$ac_ext <<_ACEOF
11631/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011632
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011633/* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011636#ifdef __cplusplus
11637extern "C"
11638#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011639char waddch ();
11640int
11641main ()
11642{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011643return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011644 ;
11645 return 0;
11646}
11647_ACEOF
11648rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011649if { (ac_try="$ac_link"
11650case "(($ac_try" in
11651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11652 *) ac_try_echo=$ac_try;;
11653esac
11654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011656 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011657 grep -v '^ *+' conftest.er1 >conftest.err
11658 rm -f conftest.er1
11659 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011661 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11663 { (case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11666esac
11667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; } &&
11672 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011673 { (case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11676esac
11677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011679 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011681 (exit $ac_status); }; }; then
11682 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011683else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011684 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011685sed 's/^/| /' conftest.$ac_ext >&5
11686
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011687 ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011688fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011689
Jeremy White0ebeb532006-06-20 13:18:41 +020011690rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000011691 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011692LIBS=$ac_check_lib_save_LIBS
11693fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011694{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
11695echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011696if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011697
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011698cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +000011699#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011700_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011701
Alexandre Julliard73482142005-08-03 19:21:04 +000011702 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011703fi
11704
Alexandre Julliard73482142005-08-03 19:21:04 +000011705 fi
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020011706 ac_save_LIBS="$LIBS"
11707 LIBS="$LIBS $CURSESLIBS"
11708
11709for ac_func in mousemask
11710do
11711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11712{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11714if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
11716else
11717 cat >conftest.$ac_ext <<_ACEOF
11718/* confdefs.h. */
11719_ACEOF
11720cat confdefs.h >>conftest.$ac_ext
11721cat >>conftest.$ac_ext <<_ACEOF
11722/* end confdefs.h. */
11723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11725#define $ac_func innocuous_$ac_func
11726
11727/* System header to define __stub macros and hopefully few prototypes,
11728 which can conflict with char $ac_func (); below.
11729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11730 <limits.h> exists even on freestanding compilers. */
11731
11732#ifdef __STDC__
11733# include <limits.h>
11734#else
11735# include <assert.h>
11736#endif
11737
11738#undef $ac_func
11739
11740/* Override any GCC internal prototype to avoid an error.
11741 Use char because int might match the return type of a GCC
11742 builtin and then its argument prototype would still apply. */
11743#ifdef __cplusplus
11744extern "C"
11745#endif
11746char $ac_func ();
11747/* The GNU C library defines this for functions which it implements
11748 to always fail with ENOSYS. Some functions are actually named
11749 something starting with __ and the normal name is an alias. */
11750#if defined __stub_$ac_func || defined __stub___$ac_func
11751choke me
11752#endif
11753
11754int
11755main ()
11756{
11757return $ac_func ();
11758 ;
11759 return 0;
11760}
11761_ACEOF
11762rm -f conftest.$ac_objext conftest$ac_exeext
11763if { (ac_try="$ac_link"
11764case "(($ac_try" in
11765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11766 *) ac_try_echo=$ac_try;;
11767esac
11768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_link") 2>conftest.er1
11770 ac_status=$?
11771 grep -v '^ *+' conftest.er1 >conftest.err
11772 rm -f conftest.er1
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
11776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11777 { (case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11780esac
11781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_try") 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest$ac_exeext'
11787 { (case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11790esac
11791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_try") 2>&5
11793 ac_status=$?
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; }; then
11796 eval "$as_ac_var=yes"
11797else
11798 echo "$as_me: failed program was:" >&5
11799sed 's/^/| /' conftest.$ac_ext >&5
11800
11801 eval "$as_ac_var=no"
11802fi
11803
11804rm -f core conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
11806fi
11807ac_res=`eval echo '${'$as_ac_var'}'`
11808 { echo "$as_me:$LINENO: result: $ac_res" >&5
11809echo "${ECHO_T}$ac_res" >&6; }
11810if test `eval echo '${'$as_ac_var'}'` = yes; then
11811 cat >>confdefs.h <<_ACEOF
11812#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11813_ACEOF
11814
11815fi
11816done
11817
11818 LIBS="$ac_save_LIBS"
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011819fi
11820
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011821
Shi Quan He6b0720f2002-03-21 02:58:39 +000011822# Extract the first word of "sane-config", so it can be a program name with args.
11823set dummy sane-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011824{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011826if test "${ac_cv_prog_sane_devel+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11828else
11829 if test -n "$sane_devel"; then
11830 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11831else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11833for as_dir in $PATH
11834do
11835 IFS=$as_save_IFS
11836 test -z "$as_dir" && as_dir=.
11837 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011838 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 +000011839 ac_cv_prog_sane_devel="sane-config"
11840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11841 break 2
11842 fi
11843done
Shi Quan He6b0720f2002-03-21 02:58:39 +000011844done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011845IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +000011846
11847 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11848fi
11849fi
11850sane_devel=$ac_cv_prog_sane_devel
11851if test -n "$sane_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011852 { echo "$as_me:$LINENO: result: $sane_devel" >&5
11853echo "${ECHO_T}$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011854else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011855 { echo "$as_me:$LINENO: result: no" >&5
11856echo "${ECHO_T}no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011857fi
11858
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011859
Alexandre Julliard82776022005-08-08 11:17:25 +000011860SANELIBS=""
11861
11862SANEINCL=""
11863
11864if test "$sane_devel" != "no"
Shi Quan He6b0720f2002-03-21 02:58:39 +000011865then
Shi Quan He6b0720f2002-03-21 02:58:39 +000011866 SANELIBS="`$sane_devel --libs`"
11867 SANEINCL="`$sane_devel --cflags`"
11868 ac_save_CPPFLAGS="$CPPFLAGS"
11869 ac_save_LIBS="$LIBS"
11870 CPPFLAGS="$CPPFLAGS $SANEINCL"
11871 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011872 if test "${ac_cv_header_sane_sane_h+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011873 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11874echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011875if test "${ac_cv_header_sane_sane_h+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011877fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011878{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11879echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011880else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011881 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011882{ echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11883echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011884cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011885/* confdefs.h. */
11886_ACEOF
11887cat confdefs.h >>conftest.$ac_ext
11888cat >>conftest.$ac_ext <<_ACEOF
11889/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011890$ac_includes_default
11891#include <sane/sane.h>
11892_ACEOF
11893rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020011894if { (ac_try="$ac_compile"
11895case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11898esac
11899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011901 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011902 grep -v '^ *+' conftest.er1 >conftest.err
11903 rm -f conftest.er1
11904 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11908 { (case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11911esac
11912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; } &&
11917 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011918 { (case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921esac
11922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; }; then
11927 ac_header_compiler=yes
11928else
11929 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011930sed 's/^/| /' conftest.$ac_ext >&5
11931
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011932 ac_header_compiler=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011933fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011934
Jeremy White0ebeb532006-06-20 13:18:41 +020011935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011936{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11937echo "${ECHO_T}$ac_header_compiler" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011938
11939# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011940{ echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
11941echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011942cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011943/* confdefs.h. */
11944_ACEOF
11945cat confdefs.h >>conftest.$ac_ext
11946cat >>conftest.$ac_ext <<_ACEOF
11947/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000011948#include <sane/sane.h>
11949_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020011950if { (ac_try="$ac_cpp conftest.$ac_ext"
11951case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954esac
11955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Shi Quan He6b0720f2002-03-21 02:58:39 +000011957 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011958 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +000011959 rm -f conftest.er1
11960 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000011962 (exit $ac_status); } >/dev/null; then
11963 if test -s conftest.err; then
11964 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Shi Quan He6b0720f2002-03-21 02:58:39 +000011966 else
11967 ac_cpp_err=
11968 fi
11969else
11970 ac_cpp_err=yes
11971fi
11972if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011973 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +000011974else
11975 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011976sed 's/^/| /' conftest.$ac_ext >&5
11977
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011978 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +000011979fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011980
Shi Quan He6b0720f2002-03-21 02:58:39 +000011981rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011982{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11983echo "${ECHO_T}$ac_header_preproc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011984
11985# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11987 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011988 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
11989echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011990 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
11991echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
11992 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011993 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011994 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011995 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
11996echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011997 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
11998echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
11999 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
12000echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
12001 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
12002echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012003 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012004echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012005 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
12006echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012007 ( cat <<\_ASBOX
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012008## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000012009## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012010## ------------------------------------ ##
12011_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012012 ) | sed "s/^/$as_me: WARNING: /" >&2
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012013 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012014esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012015{ echo "$as_me:$LINENO: checking for sane/sane.h" >&5
12016echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012017if test "${ac_cv_header_sane_sane_h+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019else
12020 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +000012021fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012022{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
12023echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012024
12025fi
Shi Quan He6b0720f2002-03-21 02:58:39 +000012026if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012027 { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
12028echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000012029if test "${ac_cv_lib_sane_sane_open+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031else
12032 ac_check_lib_save_LIBS=$LIBS
12033LIBS="-lsane $LIBS"
12034cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012035/* confdefs.h. */
12036_ACEOF
12037cat confdefs.h >>conftest.$ac_ext
12038cat >>conftest.$ac_ext <<_ACEOF
12039/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000012040
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012041/* Override any GCC internal prototype to avoid an error.
12042 Use char because int might match the return type of a GCC
12043 builtin and then its argument prototype would still apply. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000012044#ifdef __cplusplus
12045extern "C"
12046#endif
Shi Quan He6b0720f2002-03-21 02:58:39 +000012047char sane_open ();
12048int
12049main ()
12050{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012051return sane_open ();
Shi Quan He6b0720f2002-03-21 02:58:39 +000012052 ;
12053 return 0;
12054}
12055_ACEOF
12056rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012057if { (ac_try="$ac_link"
12058case "(($ac_try" in
12059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12061esac
12062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063 (eval "$ac_link") 2>conftest.er1
Shi Quan He6b0720f2002-03-21 02:58:39 +000012064 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012065 grep -v '^ *+' conftest.er1 >conftest.err
12066 rm -f conftest.er1
12067 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000012069 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12071 { (case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12074esac
12075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012077 ac_status=$?
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012081 { (case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12084esac
12085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086 (eval "$ac_try") 2>&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000012087 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000012089 (exit $ac_status); }; }; then
12090 ac_cv_lib_sane_sane_open=yes
12091else
12092 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012093sed 's/^/| /' conftest.$ac_ext >&5
12094
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012095 ac_cv_lib_sane_sane_open=no
Shi Quan He6b0720f2002-03-21 02:58:39 +000012096fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012097
Jeremy White0ebeb532006-06-20 13:18:41 +020012098rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000012099 conftest$ac_exeext conftest.$ac_ext
Shi Quan He6b0720f2002-03-21 02:58:39 +000012100LIBS=$ac_check_lib_save_LIBS
12101fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012102{ echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
12103echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000012104if test $ac_cv_lib_sane_sane_open = yes; then
12105
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012106cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000012107#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012108_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000012109
12110else
12111 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +000012112 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +000012113fi
12114
Alexandre Julliard96328b32002-03-31 19:23:41 +000012115else
12116 SANELIBS=""
12117 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +000012118fi
12119
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012120
Shi Quan He6b0720f2002-03-21 02:58:39 +000012121 LIBS="$ac_save_LIBS"
12122 CPPFLAGS="$ac_save_CPPFLAGS"
12123fi
12124
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012125# Extract the first word of "gphoto2-config", so it can be a program name with args.
12126set dummy gphoto2-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012129if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12131else
12132 if test -n "$gphoto2_devel"; then
12133 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
12134else
12135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136for as_dir in $PATH
12137do
12138 IFS=$as_save_IFS
12139 test -z "$as_dir" && as_dir=.
12140 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012141 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 +020012142 ac_cv_prog_gphoto2_devel="gphoto2-config"
12143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12144 break 2
12145 fi
12146done
12147done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012148IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012149
12150 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
12151fi
12152fi
12153gphoto2_devel=$ac_cv_prog_gphoto2_devel
12154if test -n "$gphoto2_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012155 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
12156echo "${ECHO_T}$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012157else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012158 { echo "$as_me:$LINENO: result: no" >&5
12159echo "${ECHO_T}no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012160fi
12161
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012162
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012163# Extract the first word of "gphoto2-port-config", so it can be a program name with args.
12164set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012165{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012167if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12169else
12170 if test -n "$gphoto2port_devel"; then
12171 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
12172else
12173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12174for as_dir in $PATH
12175do
12176 IFS=$as_save_IFS
12177 test -z "$as_dir" && as_dir=.
12178 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012179 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 +020012180 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
12181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12182 break 2
12183 fi
12184done
12185done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012186IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012187
12188 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
12189fi
12190fi
12191gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
12192if test -n "$gphoto2port_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012193 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
12194echo "${ECHO_T}$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012195else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012196 { echo "$as_me:$LINENO: result: no" >&5
12197echo "${ECHO_T}no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012198fi
12199
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012200
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012201GPHOTO2LIBS=""
12202
12203GPHOTO2INCL=""
12204
12205if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
12206then
12207 GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
12208 GPHOTO2LIBS=""
12209 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
12210 do
12211 case "$i" in
12212 -L/usr/lib|-L/usr/lib64) ;;
12213 -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
12214 esac
12215 done
12216 ac_save_CPPFLAGS="$CPPFLAGS"
12217 ac_save_LIBS="$LIBS"
12218 CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
12219 LIBS="$LIBS $GPHOTO2LIBS"
12220 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012221 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12222echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012223if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012226{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12227echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012228else
12229 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012230{ echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
12231echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012232cat >conftest.$ac_ext <<_ACEOF
12233/* confdefs.h. */
12234_ACEOF
12235cat confdefs.h >>conftest.$ac_ext
12236cat >>conftest.$ac_ext <<_ACEOF
12237/* end confdefs.h. */
12238$ac_includes_default
12239#include <gphoto2-camera.h>
12240_ACEOF
12241rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020012242if { (ac_try="$ac_compile"
12243case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12246esac
12247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_compile") 2>conftest.er1
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012249 ac_status=$?
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12256 { (case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259esac
12260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; } &&
12265 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012266 { (case "(($ac_try" in
12267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268 *) ac_try_echo=$ac_try;;
12269esac
12270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 ac_header_compiler=yes
12276else
12277 echo "$as_me: failed program was:" >&5
12278sed 's/^/| /' conftest.$ac_ext >&5
12279
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012280 ac_header_compiler=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012281fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012282
Jeremy White0ebeb532006-06-20 13:18:41 +020012283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012284{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12285echo "${ECHO_T}$ac_header_compiler" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012286
12287# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012288{ echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
12289echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012290cat >conftest.$ac_ext <<_ACEOF
12291/* confdefs.h. */
12292_ACEOF
12293cat confdefs.h >>conftest.$ac_ext
12294cat >>conftest.$ac_ext <<_ACEOF
12295/* end confdefs.h. */
12296#include <gphoto2-camera.h>
12297_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020012298if { (ac_try="$ac_cpp conftest.$ac_ext"
12299case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12302esac
12303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012305 ac_status=$?
12306 grep -v '^ *+' conftest.er1 >conftest.err
12307 rm -f conftest.er1
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } >/dev/null; then
12311 if test -s conftest.err; then
12312 ac_cpp_err=$ac_c_preproc_warn_flag
12313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12314 else
12315 ac_cpp_err=
12316 fi
12317else
12318 ac_cpp_err=yes
12319fi
12320if test -z "$ac_cpp_err"; then
12321 ac_header_preproc=yes
12322else
12323 echo "$as_me: failed program was:" >&5
12324sed 's/^/| /' conftest.$ac_ext >&5
12325
12326 ac_header_preproc=no
12327fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012328
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012329rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012330{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12331echo "${ECHO_T}$ac_header_preproc" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012332
12333# So? What about this header?
12334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12335 yes:no: )
12336 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
12337echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12338 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
12339echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
12340 ac_header_preproc=yes
12341 ;;
12342 no:yes:* )
12343 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
12344echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
12346echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
12347 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
12348echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
12349 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
12350echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
12351 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
12352echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
12353 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
12354echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012355 ( cat <<\_ASBOX
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012356## ------------------------------------ ##
12357## Report this to wine-devel@winehq.org ##
12358## ------------------------------------ ##
12359_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012360 ) | sed "s/^/$as_me: WARNING: /" >&2
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012361 ;;
12362esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012363{ echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12364echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012365if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12367else
12368 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
12369fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012370{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12371echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012372
12373fi
12374if test $ac_cv_header_gphoto2_camera_h = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012375 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
12376echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012377if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379else
12380 ac_check_lib_save_LIBS=$LIBS
12381LIBS="-lgphoto2 $LIBS"
12382cat >conftest.$ac_ext <<_ACEOF
12383/* confdefs.h. */
12384_ACEOF
12385cat confdefs.h >>conftest.$ac_ext
12386cat >>conftest.$ac_ext <<_ACEOF
12387/* end confdefs.h. */
12388
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012389/* Override any GCC internal prototype to avoid an error.
12390 Use char because int might match the return type of a GCC
12391 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012392#ifdef __cplusplus
12393extern "C"
12394#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012395char gp_camera_new ();
12396int
12397main ()
12398{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012399return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012400 ;
12401 return 0;
12402}
12403_ACEOF
12404rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012405if { (ac_try="$ac_link"
12406case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409esac
12410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_link") 2>conftest.er1
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012412 ac_status=$?
12413 grep -v '^ *+' conftest.er1 >conftest.err
12414 rm -f conftest.er1
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12419 { (case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12422esac
12423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012429 { (case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12432esac
12433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_cv_lib_gphoto2_gp_camera_new=yes
12439else
12440 echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012443 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012444fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012445
Jeremy White0ebeb532006-06-20 13:18:41 +020012446rm -f core conftest.err conftest.$ac_objext \
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012447 conftest$ac_exeext conftest.$ac_ext
12448LIBS=$ac_check_lib_save_LIBS
12449fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012450{ echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
12451echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012452if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
12453
12454cat >>confdefs.h <<\_ACEOF
12455#define HAVE_GPHOTO2 1
12456_ACEOF
12457
12458else
12459 GPHOTO2LIBS=""
12460 GPHOTO2INCL=""
12461fi
12462
12463else
12464 GPHOTO2LIBS=""
12465 GPHOTO2INCL=""
12466fi
12467
12468
12469 LIBS="$ac_save_LIBS"
12470 CPPFLAGS="$ac_save_CPPFLAGS"
12471fi
12472
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012473if test "$ac_cv_header_unicode_ubidi_h" = "yes"
12474then
Marcus Meissnerbc624582004-01-18 22:15:46 +000012475 saved_libs="$LIBS"
Scott Bambroughee112fc2006-06-16 10:42:20 -040012476 for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
12477 do
12478 TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
12479 TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
12480 { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
12481echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
12482 LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12483 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012484/* confdefs.h. */
12485_ACEOF
12486cat confdefs.h >>conftest.$ac_ext
12487cat >>conftest.$ac_ext <<_ACEOF
12488/* end confdefs.h. */
12489#include <unicode/ubidi.h>
12490int
12491main ()
12492{
12493ubidi_open()
12494 ;
12495 return 0;
12496}
12497_ACEOF
12498rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012499if { (ac_try="$ac_link"
12500case "(($ac_try" in
12501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12502 *) ac_try_echo=$ac_try;;
12503esac
12504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12505 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012506 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012507 grep -v '^ *+' conftest.er1 >conftest.err
12508 rm -f conftest.er1
12509 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12513 { (case "(($ac_try" in
12514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12516esac
12517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; } &&
12522 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012523 { (case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12526esac
12527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12528 (eval "$ac_try") 2>&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; }; then
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012532
12533cat >>confdefs.h <<\_ACEOF
12534#define HAVE_ICU 1
12535_ACEOF
12536
Scott Bambroughee112fc2006-06-16 10:42:20 -040012537 ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012538
Scott Bambroughee112fc2006-06-16 10:42:20 -040012539 { echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012540echo "${ECHO_T}yes" >&6; }
Marcus Meissnerbc624582004-01-18 22:15:46 +000012541else
12542 echo "$as_me: failed program was:" >&5
12543sed 's/^/| /' conftest.$ac_ext >&5
12544
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012545 { echo "$as_me:$LINENO: result: no" >&5
12546echo "${ECHO_T}no" >&6; }
Marcus Meissnerbc624582004-01-18 22:15:46 +000012547fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012548
Jeremy White0ebeb532006-06-20 13:18:41 +020012549rm -f core conftest.err conftest.$ac_objext \
Marcus Meissnerbc624582004-01-18 22:15:46 +000012550 conftest$ac_exeext conftest.$ac_ext
Scott Bambroughee112fc2006-06-16 10:42:20 -040012551 done
Marcus Meissnerbc624582004-01-18 22:15:46 +000012552 LIBS="$saved_libs"
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012553fi
12554
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012555RESOLVLIBS=""
12556
12557if test "$ac_cv_header_resolv_h" = "yes"
12558then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012559 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
12560echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012561if test "${ac_cv_lib_resolv_res_query+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12563else
12564 ac_check_lib_save_LIBS=$LIBS
12565LIBS="-lresolv $LIBS"
12566cat >conftest.$ac_ext <<_ACEOF
12567/* confdefs.h. */
12568_ACEOF
12569cat confdefs.h >>conftest.$ac_ext
12570cat >>conftest.$ac_ext <<_ACEOF
12571/* end confdefs.h. */
12572
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012573/* Override any GCC internal prototype to avoid an error.
12574 Use char because int might match the return type of a GCC
12575 builtin and then its argument prototype would still apply. */
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012576#ifdef __cplusplus
12577extern "C"
12578#endif
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012579char res_query ();
12580int
12581main ()
12582{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012583return res_query ();
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012584 ;
12585 return 0;
12586}
12587_ACEOF
12588rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012589if { (ac_try="$ac_link"
12590case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593esac
12594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_link") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012596 ac_status=$?
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12603 { (case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12606esac
12607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012609 ac_status=$?
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); }; } &&
12612 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012613 { (case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616esac
12617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 ac_cv_lib_resolv_res_query=yes
12623else
12624 echo "$as_me: failed program was:" >&5
12625sed 's/^/| /' conftest.$ac_ext >&5
12626
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012627 ac_cv_lib_resolv_res_query=no
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012628fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012629
Jeremy White0ebeb532006-06-20 13:18:41 +020012630rm -f core conftest.err conftest.$ac_objext \
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012631 conftest$ac_exeext conftest.$ac_ext
12632LIBS=$ac_check_lib_save_LIBS
12633fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012634{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12635echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012636if test $ac_cv_lib_resolv_res_query = yes; then
12637
12638cat >>confdefs.h <<\_ACEOF
12639#define HAVE_RESOLV 1
12640_ACEOF
12641
12642 RESOLVLIBS="-lresolv"
12643fi
12644
12645fi
12646
Hans Leidekkerd3447022005-07-15 10:09:43 +000012647LCMSLIBS=""
12648
12649if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
12650then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012651 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12652echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
Hans Leidekkerd3447022005-07-15 10:09:43 +000012653if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12655else
12656 ac_check_lib_save_LIBS=$LIBS
12657LIBS="-llcms $LIBS"
12658cat >conftest.$ac_ext <<_ACEOF
12659/* confdefs.h. */
12660_ACEOF
12661cat confdefs.h >>conftest.$ac_ext
12662cat >>conftest.$ac_ext <<_ACEOF
12663/* end confdefs.h. */
12664
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012665/* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +000012668#ifdef __cplusplus
12669extern "C"
12670#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +000012671char cmsOpenProfileFromFile ();
12672int
12673main ()
12674{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012675return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000012676 ;
12677 return 0;
12678}
12679_ACEOF
12680rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012681if { (ac_try="$ac_link"
12682case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685esac
12686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerd3447022005-07-15 10:09:43 +000012688 ac_status=$?
12689 grep -v '^ *+' conftest.er1 >conftest.err
12690 rm -f conftest.er1
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12695 { (case "(($ac_try" in
12696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12697 *) ac_try_echo=$ac_try;;
12698esac
12699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12700 (eval "$ac_try") 2>&5
Hans Leidekkerd3447022005-07-15 10:09:43 +000012701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; } &&
12704 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012705 { (case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12708esac
12709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_try") 2>&5
Hans Leidekkerd3447022005-07-15 10:09:43 +000012711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
12714 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12715else
12716 echo "$as_me: failed program was:" >&5
12717sed 's/^/| /' conftest.$ac_ext >&5
12718
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012719 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000012720fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012721
Jeremy White0ebeb532006-06-20 13:18:41 +020012722rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerd3447022005-07-15 10:09:43 +000012723 conftest$ac_exeext conftest.$ac_ext
12724LIBS=$ac_check_lib_save_LIBS
12725fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012726{ echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12727echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Hans Leidekkerd3447022005-07-15 10:09:43 +000012728if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12729
12730cat >>confdefs.h <<\_ACEOF
12731#define HAVE_LCMS 1
12732_ACEOF
12733
12734 LCMSLIBS="-llcms"
12735fi
12736
12737fi
12738
Hans Leidekkerea524de2005-07-15 16:39:42 +000012739LDAPLIBS=""
12740
12741if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12742then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012743 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12744echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012745if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
Hans Leidekkerea524de2005-07-15 16:39:42 +000012746 echo $ECHO_N "(cached) $ECHO_C" >&6
12747else
12748 ac_check_lib_save_LIBS=$LIBS
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012749LIBS="-lldap_r $LIBPTHREAD $LIBS"
Hans Leidekkerea524de2005-07-15 16:39:42 +000012750cat >conftest.$ac_ext <<_ACEOF
12751/* confdefs.h. */
12752_ACEOF
12753cat confdefs.h >>conftest.$ac_ext
12754cat >>conftest.$ac_ext <<_ACEOF
12755/* end confdefs.h. */
12756
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012757/* Override any GCC internal prototype to avoid an error.
12758 Use char because int might match the return type of a GCC
12759 builtin and then its argument prototype would still apply. */
Hans Leidekkerea524de2005-07-15 16:39:42 +000012760#ifdef __cplusplus
12761extern "C"
12762#endif
Hans Leidekker20d0e802005-11-18 16:56:44 +000012763char ldap_initialize ();
Hans Leidekkerea524de2005-07-15 16:39:42 +000012764int
12765main ()
12766{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012767return ldap_initialize ();
Hans Leidekkerea524de2005-07-15 16:39:42 +000012768 ;
12769 return 0;
12770}
12771_ACEOF
12772rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012773if { (ac_try="$ac_link"
12774case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12777esac
12778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerea524de2005-07-15 16:39:42 +000012780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12787 { (case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12790esac
12791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12792 (eval "$ac_try") 2>&5
Hans Leidekkerea524de2005-07-15 16:39:42 +000012793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; } &&
12796 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012797 { (case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12800esac
12801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802 (eval "$ac_try") 2>&5
Hans Leidekkerea524de2005-07-15 16:39:42 +000012803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012806 ac_cv_lib_ldap_r_ldap_initialize=yes
Hans Leidekkerea524de2005-07-15 16:39:42 +000012807else
12808 echo "$as_me: failed program was:" >&5
12809sed 's/^/| /' conftest.$ac_ext >&5
12810
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012811 ac_cv_lib_ldap_r_ldap_initialize=no
Hans Leidekkerea524de2005-07-15 16:39:42 +000012812fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012813
Jeremy White0ebeb532006-06-20 13:18:41 +020012814rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerea524de2005-07-15 16:39:42 +000012815 conftest$ac_exeext conftest.$ac_ext
12816LIBS=$ac_check_lib_save_LIBS
12817fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012818{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12819echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012820if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012821 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12822echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
Hans Leidekkerea524de2005-07-15 16:39:42 +000012823if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12825else
12826 ac_check_lib_save_LIBS=$LIBS
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012827LIBS="-llber $LIBPTHREAD $LIBS"
Hans Leidekkerea524de2005-07-15 16:39:42 +000012828cat >conftest.$ac_ext <<_ACEOF
12829/* confdefs.h. */
12830_ACEOF
12831cat confdefs.h >>conftest.$ac_ext
12832cat >>conftest.$ac_ext <<_ACEOF
12833/* end confdefs.h. */
12834
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012835/* Override any GCC internal prototype to avoid an error.
12836 Use char because int might match the return type of a GCC
12837 builtin and then its argument prototype would still apply. */
Hans Leidekkerea524de2005-07-15 16:39:42 +000012838#ifdef __cplusplus
12839extern "C"
12840#endif
Hans Leidekkerea524de2005-07-15 16:39:42 +000012841char ber_init ();
12842int
12843main ()
12844{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012845return ber_init ();
Hans Leidekkerea524de2005-07-15 16:39:42 +000012846 ;
12847 return 0;
12848}
12849_ACEOF
12850rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012851if { (ac_try="$ac_link"
12852case "(($ac_try" in
12853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854 *) ac_try_echo=$ac_try;;
12855esac
12856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerea524de2005-07-15 16:39:42 +000012858 ac_status=$?
12859 grep -v '^ *+' conftest.er1 >conftest.err
12860 rm -f conftest.er1
12861 cat conftest.err >&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12865 { (case "(($ac_try" in
12866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12867 *) ac_try_echo=$ac_try;;
12868esac
12869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12870 (eval "$ac_try") 2>&5
Hans Leidekkerea524de2005-07-15 16:39:42 +000012871 ac_status=$?
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); }; } &&
12874 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012875 { (case "(($ac_try" in
12876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12877 *) ac_try_echo=$ac_try;;
12878esac
12879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12880 (eval "$ac_try") 2>&5
Hans Leidekkerea524de2005-07-15 16:39:42 +000012881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; }; then
12884 ac_cv_lib_lber_ber_init=yes
12885else
12886 echo "$as_me: failed program was:" >&5
12887sed 's/^/| /' conftest.$ac_ext >&5
12888
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012889 ac_cv_lib_lber_ber_init=no
Hans Leidekkerea524de2005-07-15 16:39:42 +000012890fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012891
Jeremy White0ebeb532006-06-20 13:18:41 +020012892rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerea524de2005-07-15 16:39:42 +000012893 conftest$ac_exeext conftest.$ac_ext
12894LIBS=$ac_check_lib_save_LIBS
12895fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012896{ echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12897echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
Hans Leidekkerea524de2005-07-15 16:39:42 +000012898if test $ac_cv_lib_lber_ber_init = yes; then
12899
12900cat >>confdefs.h <<\_ACEOF
12901#define HAVE_LDAP 1
12902_ACEOF
12903
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012904 LDAPLIBS="-lldap_r -llber"
Hans Leidekkerea524de2005-07-15 16:39:42 +000012905fi
12906
12907fi
12908
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010012909 ac_wine_check_funcs_save_LIBS="$LIBS"
12910LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012911
12912
12913
12914
12915for ac_func in \
12916 ldap_count_references \
12917 ldap_first_reference \
12918 ldap_next_reference \
12919 ldap_parse_reference
12920do
12921as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012922{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12924if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012925 echo $ECHO_N "(cached) $ECHO_C" >&6
12926else
12927 cat >conftest.$ac_ext <<_ACEOF
12928/* confdefs.h. */
12929_ACEOF
12930cat confdefs.h >>conftest.$ac_ext
12931cat >>conftest.$ac_ext <<_ACEOF
12932/* end confdefs.h. */
12933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12935#define $ac_func innocuous_$ac_func
12936
12937/* System header to define __stub macros and hopefully few prototypes,
12938 which can conflict with char $ac_func (); below.
12939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12940 <limits.h> exists even on freestanding compilers. */
12941
12942#ifdef __STDC__
12943# include <limits.h>
12944#else
12945# include <assert.h>
12946#endif
12947
12948#undef $ac_func
12949
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012950/* Override any GCC internal prototype to avoid an error.
12951 Use char because int might match the return type of a GCC
12952 builtin and then its argument prototype would still apply. */
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012953#ifdef __cplusplus
12954extern "C"
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012955#endif
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012956char $ac_func ();
12957/* The GNU C library defines this for functions which it implements
12958 to always fail with ENOSYS. Some functions are actually named
12959 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012960#if defined __stub_$ac_func || defined __stub___$ac_func
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012961choke me
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012962#endif
12963
12964int
12965main ()
12966{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012967return $ac_func ();
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012968 ;
12969 return 0;
12970}
12971_ACEOF
12972rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012973if { (ac_try="$ac_link"
12974case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977esac
12978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12987 { (case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990esac
12991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_try") 2>&5
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; } &&
12996 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012997 { (case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13000esac
13001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_try") 2>&5
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013003 ac_status=$?
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); }; }; then
13006 eval "$as_ac_var=yes"
13007else
13008 echo "$as_me: failed program was:" >&5
13009sed 's/^/| /' conftest.$ac_ext >&5
13010
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013011 eval "$as_ac_var=no"
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013012fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013013
Jeremy White0ebeb532006-06-20 13:18:41 +020013014rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013015 conftest$ac_exeext conftest.$ac_ext
13016fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013017ac_res=`eval echo '${'$as_ac_var'}'`
13018 { echo "$as_me:$LINENO: result: $ac_res" >&5
13019echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013020if test `eval echo '${'$as_ac_var'}'` = yes; then
13021 cat >>confdefs.h <<_ACEOF
13022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13023_ACEOF
13024
13025fi
13026done
13027
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010013028LIBS="$ac_wine_check_funcs_save_LIBS"
Hans Leidekkerea524de2005-07-15 16:39:42 +000013029fi
13030
Alexandre Julliard82776022005-08-08 11:17:25 +000013031FREETYPELIBS=""
13032
13033FREETYPEINCL=""
13034
Mike McCormackd9ef88c2006-07-24 15:24:44 +090013035# Extract the first word of "freetype-config", so it can be a program name with args.
13036set dummy freetype-config; ac_word=$2
13037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13039if test "${ac_cv_prog_ft_devel+set}" = set; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13041else
13042 if test -n "$ft_devel"; then
13043 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
13044else
13045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046for as_dir in $PATH
13047do
13048 IFS=$as_save_IFS
13049 test -z "$as_dir" && as_dir=.
13050 for ac_exec_ext in '' $ac_executable_extensions; do
13051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13052 ac_cv_prog_ft_devel="freetype-config"
13053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13054 break 2
13055 fi
13056done
13057done
13058IFS=$as_save_IFS
13059
13060 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
13061fi
13062fi
13063ft_devel=$ac_cv_prog_ft_devel
13064if test -n "$ft_devel"; then
13065 { echo "$as_me:$LINENO: result: $ft_devel" >&5
13066echo "${ECHO_T}$ft_devel" >&6; }
13067else
13068 { echo "$as_me:$LINENO: result: no" >&5
13069echo "${ECHO_T}no" >&6; }
13070fi
13071
13072
13073if test "$ft_devel" = "no"
13074then
13075 # Extract the first word of "freetype2-config", so it can be a program name with args.
13076set dummy freetype2-config; ac_word=$2
13077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13079if test "${ac_cv_prog_ft_devel2+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13081else
13082 if test -n "$ft_devel2"; then
13083 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
13084else
13085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086for as_dir in $PATH
13087do
13088 IFS=$as_save_IFS
13089 test -z "$as_dir" && as_dir=.
13090 for ac_exec_ext in '' $ac_executable_extensions; do
13091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13092 ac_cv_prog_ft_devel2="freetype2-config"
13093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13094 break 2
13095 fi
13096done
13097done
13098IFS=$as_save_IFS
13099
13100 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
13101fi
13102fi
13103ft_devel2=$ac_cv_prog_ft_devel2
13104if test -n "$ft_devel2"; then
13105 { echo "$as_me:$LINENO: result: $ft_devel2" >&5
13106echo "${ECHO_T}$ft_devel2" >&6; }
13107else
13108 { echo "$as_me:$LINENO: result: no" >&5
13109echo "${ECHO_T}no" >&6; }
13110fi
13111
13112
13113 if test "$ft_devel2" = "freetype2-config"
13114 then
13115 ft_devel=$ft_devel2
13116 fi
13117fi
13118
13119if test "$ft_devel" = "no"
13120then
13121 wine_cv_msg_freetype=yes
13122else
13123 FREETYPELIBS=`$ft_devel --libs`
13124 FREETYPEINCL=`$ft_devel --cflags`
13125 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013126echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013127if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000013129else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013130 ac_check_lib_save_LIBS=$LIBS
Mike McCormackd9ef88c2006-07-24 15:24:44 +090013131LIBS="-lfreetype $FREETYPELIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013132cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013133/* confdefs.h. */
13134_ACEOF
13135cat confdefs.h >>conftest.$ac_ext
13136cat >>conftest.$ac_ext <<_ACEOF
13137/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013138
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013139/* Override any GCC internal prototype to avoid an error.
13140 Use char because int might match the return type of a GCC
13141 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013142#ifdef __cplusplus
13143extern "C"
13144#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013145char FT_Init_FreeType ();
13146int
13147main ()
13148{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013149return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013150 ;
13151 return 0;
13152}
13153_ACEOF
13154rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013155if { (ac_try="$ac_link"
13156case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13159esac
13160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013162 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013163 grep -v '^ *+' conftest.er1 >conftest.err
13164 rm -f conftest.er1
13165 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013167 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13169 { (case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172esac
13173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013175 ac_status=$?
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013179 { (case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13182esac
13183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013185 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013187 (exit $ac_status); }; }; then
13188 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000013189else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013190 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013191sed 's/^/| /' conftest.$ac_ext >&5
13192
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013193 ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +000013194fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013195
Jeremy White0ebeb532006-06-20 13:18:41 +020013196rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013197 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013198LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000013199fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013200{ echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
13201echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013202if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +000013203 ft_lib=yes
13204else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013205 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000013206fi
13207
Mike McCormackd9ef88c2006-07-24 15:24:44 +090013208 if test "$ft_lib" = "no"
Marcus Meissnerd28955d2001-05-31 21:35:15 +000013209 then
Ian Pilcher563598d2001-05-16 20:56:05 +000013210 wine_cv_msg_freetype=yes
Mike McCormackd9ef88c2006-07-24 15:24:44 +090013211 FREETYPELIBS=""
13212 FREETYPEINCL=""
Ian Pilcher563598d2001-05-16 20:56:05 +000013213 else
Ian Pilcher40432fe2001-06-06 21:05:23 +000013214 ac_save_CPPFLAGS="$CPPFLAGS"
13215 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013216
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013217
13218
13219
13220
13221
13222
13223
Rein Klazese617a9c2003-11-19 02:18:13 +000013224
Huw Daviesc2217182004-06-16 20:06:26 +000013225
Huw Davies603d21c2006-01-24 10:57:35 +010013226
Rein Klazese617a9c2003-11-19 02:18:13 +000013227for ac_header in ft2build.h \
13228 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000013229 freetype/ftglyph.h \
13230 freetype/tttables.h \
13231 freetype/ftnames.h \
13232 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000013233 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000013234 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000013235 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010013236 freetype/ftmodapi.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000013237 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +000013238do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013239as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013240{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013243 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013244else
Rein Klazes9c269172003-11-20 04:17:33 +000013245 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013246/* confdefs.h. */
13247_ACEOF
13248cat confdefs.h >>conftest.$ac_ext
13249cat >>conftest.$ac_ext <<_ACEOF
13250/* end confdefs.h. */
Rein Klazes9c269172003-11-20 04:17:33 +000013251#if HAVE_FT2BUILD_H
13252 #include <ft2build.h>
13253 #endif
13254
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013255#include <$ac_header>
13256_ACEOF
13257rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013258if { (ac_try="$ac_compile"
13259case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13262esac
13263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013265 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013266 grep -v '^ *+' conftest.er1 >conftest.err
13267 rm -f conftest.er1
13268 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13272 { (case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13275esac
13276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; } &&
13281 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013282 { (case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13285esac
13286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013288 ac_status=$?
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; }; then
Rein Klazes9c269172003-11-20 04:17:33 +000013291 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013292else
13293 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013294sed 's/^/| /' conftest.$ac_ext >&5
13295
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013296 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013297fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013298
Jeremy White0ebeb532006-06-20 13:18:41 +020013299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013300fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013301ac_res=`eval echo '${'$as_ac_Header'}'`
13302 { echo "$as_me:$LINENO: result: $ac_res" >&5
13303echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013304if test `eval echo '${'$as_ac_Header'}'` = yes; then
13305 cat >>confdefs.h <<_ACEOF
13306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13307_ACEOF
13308
13309fi
13310
Ian Pilcher40432fe2001-06-06 21:05:23 +000013311done
13312
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013313 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013314/* confdefs.h. */
13315_ACEOF
13316cat confdefs.h >>conftest.$ac_ext
13317cat >>conftest.$ac_ext <<_ACEOF
13318/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000013319#include <ft2build.h>
13320 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013321_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020013322if { (ac_try="$ac_cpp conftest.$ac_ext"
13323case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13326esac
13327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013329 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013330 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013331 rm -f conftest.er1
13332 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013334 (exit $ac_status); } >/dev/null; then
13335 if test -s conftest.err; then
13336 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000013337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013338 else
13339 ac_cpp_err=
13340 fi
13341else
13342 ac_cpp_err=yes
13343fi
13344if test -z "$ac_cpp_err"; then
13345
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013346cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000013347#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013348_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000013349
Huw D M Daviesc1d38132002-02-08 17:09:50 +000013350 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000013351else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013352 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013353sed 's/^/| /' conftest.$ac_ext >&5
13354
Huw D M Daviesc1d38132002-02-08 17:09:50 +000013355 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000013356fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013357
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013358rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013359 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
13360echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
Huw Daviesd8a6c272006-02-22 12:24:25 +000013361if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
13363else
13364 cat >conftest.$ac_ext <<_ACEOF
13365/* confdefs.h. */
13366_ACEOF
13367cat confdefs.h >>conftest.$ac_ext
13368cat >>conftest.$ac_ext <<_ACEOF
13369/* end confdefs.h. */
13370#include <freetype/ftmodapi.h>
13371
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013372typedef FT_TrueTypeEngineType ac__type_new_;
Huw Daviesd8a6c272006-02-22 12:24:25 +000013373int
13374main ()
13375{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013376if ((ac__type_new_ *) 0)
Huw Daviesd8a6c272006-02-22 12:24:25 +000013377 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013378if (sizeof (ac__type_new_))
Huw Daviesd8a6c272006-02-22 12:24:25 +000013379 return 0;
13380 ;
13381 return 0;
13382}
13383_ACEOF
13384rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013385if { (ac_try="$ac_compile"
13386case "(($ac_try" in
13387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13388 *) ac_try_echo=$ac_try;;
13389esac
13390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13391 (eval "$ac_compile") 2>conftest.er1
Huw Daviesd8a6c272006-02-22 12:24:25 +000013392 ac_status=$?
13393 grep -v '^ *+' conftest.er1 >conftest.err
13394 rm -f conftest.er1
13395 cat conftest.err >&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13399 { (case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13402esac
13403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_try") 2>&5
Huw Daviesd8a6c272006-02-22 12:24:25 +000013405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; } &&
13408 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013409 { (case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13412esac
13413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_try") 2>&5
Huw Daviesd8a6c272006-02-22 12:24:25 +000013415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ac_cv_type_FT_TrueTypeEngineType=yes
13419else
13420 echo "$as_me: failed program was:" >&5
13421sed 's/^/| /' conftest.$ac_ext >&5
13422
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013423 ac_cv_type_FT_TrueTypeEngineType=no
Huw Daviesd8a6c272006-02-22 12:24:25 +000013424fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013425
Jeremy White0ebeb532006-06-20 13:18:41 +020013426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Huw Daviesd8a6c272006-02-22 12:24:25 +000013427fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013428{ echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
13429echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
Huw Daviesd8a6c272006-02-22 12:24:25 +000013430if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
13431
13432cat >>confdefs.h <<_ACEOF
13433#define HAVE_FT_TRUETYPEENGINETYPE 1
13434_ACEOF
13435
13436
13437fi
13438
Huw Davies35bca772006-04-12 12:14:27 +010013439 ac_save_CFLAGS="$CFLAGS"
13440 CFLAGS="$CFLAGS $FREETYPELIBS"
13441
13442for ac_func in FT_Load_Sfnt_Table
13443do
13444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013445{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13447if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Huw Davies35bca772006-04-12 12:14:27 +010013448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449else
13450 cat >conftest.$ac_ext <<_ACEOF
13451/* confdefs.h. */
13452_ACEOF
13453cat confdefs.h >>conftest.$ac_ext
13454cat >>conftest.$ac_ext <<_ACEOF
13455/* end confdefs.h. */
13456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13458#define $ac_func innocuous_$ac_func
13459
13460/* System header to define __stub macros and hopefully few prototypes,
13461 which can conflict with char $ac_func (); below.
13462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13463 <limits.h> exists even on freestanding compilers. */
13464
13465#ifdef __STDC__
13466# include <limits.h>
13467#else
13468# include <assert.h>
13469#endif
13470
13471#undef $ac_func
13472
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013473/* Override any GCC internal prototype to avoid an error.
13474 Use char because int might match the return type of a GCC
13475 builtin and then its argument prototype would still apply. */
Huw Davies35bca772006-04-12 12:14:27 +010013476#ifdef __cplusplus
13477extern "C"
Huw Davies35bca772006-04-12 12:14:27 +010013478#endif
Huw Davies35bca772006-04-12 12:14:27 +010013479char $ac_func ();
13480/* The GNU C library defines this for functions which it implements
13481 to always fail with ENOSYS. Some functions are actually named
13482 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013483#if defined __stub_$ac_func || defined __stub___$ac_func
Huw Davies35bca772006-04-12 12:14:27 +010013484choke me
Huw Davies35bca772006-04-12 12:14:27 +010013485#endif
13486
13487int
13488main ()
13489{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013490return $ac_func ();
Huw Davies35bca772006-04-12 12:14:27 +010013491 ;
13492 return 0;
13493}
13494_ACEOF
13495rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013496if { (ac_try="$ac_link"
13497case "(($ac_try" in
13498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13499 *) ac_try_echo=$ac_try;;
13500esac
13501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13502 (eval "$ac_link") 2>conftest.er1
Huw Davies35bca772006-04-12 12:14:27 +010013503 ac_status=$?
13504 grep -v '^ *+' conftest.er1 >conftest.err
13505 rm -f conftest.er1
13506 cat conftest.err >&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13510 { (case "(($ac_try" in
13511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13512 *) ac_try_echo=$ac_try;;
13513esac
13514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13515 (eval "$ac_try") 2>&5
Huw Davies35bca772006-04-12 12:14:27 +010013516 ac_status=$?
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; } &&
13519 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013520 { (case "(($ac_try" in
13521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13522 *) ac_try_echo=$ac_try;;
13523esac
13524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13525 (eval "$ac_try") 2>&5
Huw Davies35bca772006-04-12 12:14:27 +010013526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; }; then
13529 eval "$as_ac_var=yes"
13530else
13531 echo "$as_me: failed program was:" >&5
13532sed 's/^/| /' conftest.$ac_ext >&5
13533
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013534 eval "$as_ac_var=no"
Huw Davies35bca772006-04-12 12:14:27 +010013535fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013536
Jeremy White0ebeb532006-06-20 13:18:41 +020013537rm -f core conftest.err conftest.$ac_objext \
Huw Davies35bca772006-04-12 12:14:27 +010013538 conftest$ac_exeext conftest.$ac_ext
13539fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013540ac_res=`eval echo '${'$as_ac_var'}'`
13541 { echo "$as_me:$LINENO: result: $ac_res" >&5
13542echo "${ECHO_T}$ac_res" >&6; }
Huw Davies35bca772006-04-12 12:14:27 +010013543if test `eval echo '${'$as_ac_var'}'` = yes; then
13544 cat >>confdefs.h <<_ACEOF
13545#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13546_ACEOF
13547
13548fi
13549done
13550
13551 CFLAGS="$ac_save_CFLAGS"
Ian Pilcher40432fe2001-06-06 21:05:23 +000013552 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000013553 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000013554 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013555
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013556cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000013557#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013558_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000013559
13560 wine_cv_msg_freetype=no
13561 else
Huw Davies00acb5f2004-08-17 22:33:14 +000013562 FREETYPELIBS=""
Huw D M Davies9b1d3722002-01-29 17:09:28 +000013563 FREETYPEINCL=""
13564 wine_cv_msg_freetype=yes
13565 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000013566 fi
13567fi
13568
Huw Davies00acb5f2004-08-17 22:33:14 +000013569if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
13570then
13571 FONTSSUBDIRS="fonts"
13572
13573fi
13574
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013575{ echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
13576echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013577if test "${ac_cv_c_ppdev+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000013579else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013580 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013581/* confdefs.h. */
13582_ACEOF
13583cat confdefs.h >>conftest.$ac_ext
13584cat >>conftest.$ac_ext <<_ACEOF
13585/* end confdefs.h. */
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013586#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013587int
13588main ()
13589{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013590ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013591 ;
13592 return 0;
13593}
13594_ACEOF
13595rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013596if { (ac_try="$ac_compile"
13597case "(($ac_try" in
13598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599 *) ac_try_echo=$ac_try;;
13600esac
13601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13602 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013603 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013604 grep -v '^ *+' conftest.er1 >conftest.err
13605 rm -f conftest.er1
13606 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013608 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13610 { (case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13613esac
13614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013620 { (case "(($ac_try" in
13621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13622 *) ac_try_echo=$ac_try;;
13623esac
13624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013626 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013628 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013629 ac_cv_c_ppdev="yes"
13630else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013631 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013632sed 's/^/| /' conftest.$ac_ext >&5
13633
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013634 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013635fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013636
Jeremy White0ebeb532006-06-20 13:18:41 +020013637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013638
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013639fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013640{ echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13641echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013642if test "$ac_cv_c_ppdev" = "yes"
13643then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013644
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013645cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013646#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013647_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013648
13649fi
13650
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013651{ echo "$as_me:$LINENO: checking for va_copy" >&5
13652echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013653if test "${ac_cv_c_va_copy+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655else
13656 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013657/* confdefs.h. */
13658_ACEOF
13659cat confdefs.h >>conftest.$ac_ext
13660cat >>conftest.$ac_ext <<_ACEOF
13661/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013662#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013663int
13664main ()
13665{
13666va_list ap1, ap2;
13667 va_copy(ap1,ap2);
13668
13669 ;
13670 return 0;
13671}
13672_ACEOF
13673rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013674if { (ac_try="$ac_link"
13675case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678esac
13679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_link") 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013681 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013682 grep -v '^ *+' conftest.er1 >conftest.err
13683 rm -f conftest.er1
13684 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13688 { (case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13691esac
13692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013694 ac_status=$?
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013698 { (case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13701esac
13702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_try") 2>&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 ac_cv_c_va_copy="yes"
13708else
13709 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013710sed 's/^/| /' conftest.$ac_ext >&5
13711
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013712 ac_cv_c_va_copy="no"
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013713fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013714
Jeremy White0ebeb532006-06-20 13:18:41 +020013715rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013716 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013717
13718fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013719{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13720echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013721if test "$ac_cv_c_va_copy" = "yes"
13722then
13723
13724cat >>confdefs.h <<\_ACEOF
13725#define HAVE_VA_COPY 1
13726_ACEOF
13727
13728fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013729{ echo "$as_me:$LINENO: checking for __va_copy" >&5
13730echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013731if test "${ac_cv_c___va_copy+set}" = set; then
13732 echo $ECHO_N "(cached) $ECHO_C" >&6
13733else
13734 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013735/* confdefs.h. */
13736_ACEOF
13737cat confdefs.h >>conftest.$ac_ext
13738cat >>conftest.$ac_ext <<_ACEOF
13739/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013740#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013741int
13742main ()
13743{
13744va_list ap1, ap2;
13745 __va_copy(ap1,ap2);
13746
13747 ;
13748 return 0;
13749}
13750_ACEOF
13751rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013752if { (ac_try="$ac_link"
13753case "(($ac_try" in
13754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755 *) ac_try_echo=$ac_try;;
13756esac
13757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758 (eval "$ac_link") 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013759 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013760 grep -v '^ *+' conftest.er1 >conftest.err
13761 rm -f conftest.er1
13762 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13766 { (case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13769esac
13770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013772 ac_status=$?
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; } &&
13775 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013776 { (case "(($ac_try" in
13777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13779esac
13780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781 (eval "$ac_try") 2>&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013782 ac_status=$?
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); }; }; then
13785 ac_cv_c___va_copy="yes"
13786else
13787 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013788sed 's/^/| /' conftest.$ac_ext >&5
13789
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013790 ac_cv_c___va_copy="no"
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013791fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013792
Jeremy White0ebeb532006-06-20 13:18:41 +020013793rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013794 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013795
13796fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013797{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13798echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013799if test "$ac_cv_c___va_copy" = "yes"
13800then
13801
13802cat >>confdefs.h <<\_ACEOF
13803#define HAVE___VA_COPY 1
13804_ACEOF
13805
13806fi
13807
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013808{ echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13809echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013810if test "${ac_cv_c_sigsetjmp+set}" = set; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13812else
13813 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013814/* confdefs.h. */
13815_ACEOF
13816cat confdefs.h >>conftest.$ac_ext
13817cat >>conftest.$ac_ext <<_ACEOF
13818/* end confdefs.h. */
13819#include <setjmp.h>
13820int
13821main ()
13822{
13823sigjmp_buf buf;
13824 sigsetjmp( buf, 1 );
13825 siglongjmp( buf, 1 );
13826 ;
13827 return 0;
13828}
13829_ACEOF
13830rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013831if { (ac_try="$ac_link"
13832case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13835esac
13836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13837 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013838 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013839 grep -v '^ *+' conftest.er1 >conftest.err
13840 rm -f conftest.er1
13841 cat conftest.err >&5
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13845 { (case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13848esac
13849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013851 ac_status=$?
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; } &&
13854 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013855 { (case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13858esac
13859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_try") 2>&5
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013861 ac_status=$?
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13864 ac_cv_c_sigsetjmp="yes"
13865else
13866 echo "$as_me: failed program was:" >&5
13867sed 's/^/| /' conftest.$ac_ext >&5
13868
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013869 ac_cv_c_sigsetjmp="no"
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013870fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013871
Jeremy White0ebeb532006-06-20 13:18:41 +020013872rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013873 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013874
13875fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013876{ echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13877echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013878if test "$ac_cv_c_sigsetjmp" = "yes"
13879then
13880
13881cat >>confdefs.h <<\_ACEOF
13882#define HAVE_SIGSETJMP 1
13883_ACEOF
13884
13885fi
13886
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013887{ echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13888echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013889if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13890 echo $ECHO_N "(cached) $ECHO_C" >&6
13891else
13892 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013893/* confdefs.h. */
13894_ACEOF
13895cat confdefs.h >>conftest.$ac_ext
13896cat >>conftest.$ac_ext <<_ACEOF
13897/* end confdefs.h. */
13898#define _GNU_SOURCE
13899#include <pthread.h>
13900
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013901typedef pthread_rwlock_t ac__type_new_;
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013902int
13903main ()
13904{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013905if ((ac__type_new_ *) 0)
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013906 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013907if (sizeof (ac__type_new_))
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013908 return 0;
13909 ;
13910 return 0;
13911}
13912_ACEOF
13913rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013914if { (ac_try="$ac_compile"
13915case "(($ac_try" in
13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917 *) ac_try_echo=$ac_try;;
13918esac
13919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013921 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013922 grep -v '^ *+' conftest.er1 >conftest.err
13923 rm -f conftest.er1
13924 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13928 { (case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13931esac
13932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013938 { (case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13941esac
13942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_try") 2>&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13947 ac_cv_type_pthread_rwlock_t=yes
13948else
13949 echo "$as_me: failed program was:" >&5
13950sed 's/^/| /' conftest.$ac_ext >&5
13951
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013952 ac_cv_type_pthread_rwlock_t=no
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013953fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013954
Jeremy White0ebeb532006-06-20 13:18:41 +020013955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013956fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013957{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
13958echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013959if test $ac_cv_type_pthread_rwlock_t = yes; then
13960
13961cat >>confdefs.h <<_ACEOF
13962#define HAVE_PTHREAD_RWLOCK_T 1
13963_ACEOF
13964
13965
13966fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013967{ echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
13968echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013969if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
13970 echo $ECHO_N "(cached) $ECHO_C" >&6
13971else
13972 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013973/* confdefs.h. */
13974_ACEOF
13975cat confdefs.h >>conftest.$ac_ext
13976cat >>conftest.$ac_ext <<_ACEOF
13977/* end confdefs.h. */
13978#define _GNU_SOURCE
13979#include <pthread.h>
13980
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013981typedef pthread_rwlockattr_t ac__type_new_;
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013982int
13983main ()
13984{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013985if ((ac__type_new_ *) 0)
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013986 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013987if (sizeof (ac__type_new_))
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013988 return 0;
13989 ;
13990 return 0;
13991}
13992_ACEOF
13993rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013994if { (ac_try="$ac_compile"
13995case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13998esac
13999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014001 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014002 grep -v '^ *+' conftest.er1 >conftest.err
14003 rm -f conftest.er1
14004 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14008 { (case "(($ac_try" in
14009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14010 *) ac_try_echo=$ac_try;;
14011esac
14012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14013 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; } &&
14017 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014018 { (case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14021esac
14022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023 (eval "$ac_try") 2>&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
14027 ac_cv_type_pthread_rwlockattr_t=yes
14028else
14029 echo "$as_me: failed program was:" >&5
14030sed 's/^/| /' conftest.$ac_ext >&5
14031
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014032 ac_cv_type_pthread_rwlockattr_t=no
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014033fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014034
Jeremy White0ebeb532006-06-20 13:18:41 +020014035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014036fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014037{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
14038echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014039if test $ac_cv_type_pthread_rwlockattr_t = yes; then
14040
14041cat >>confdefs.h <<_ACEOF
14042#define HAVE_PTHREAD_RWLOCKATTR_T 1
14043_ACEOF
14044
14045
14046fi
14047
14048
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010014049ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000014050LIBS="$LIBS $LIBPTHREAD"
14051
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000014052
14053
14054for ac_func in \
14055 pthread_getattr_np \
14056 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010014057 pthread_get_stacksize_np
Alexandre Julliard821ab862003-11-12 22:44:56 +000014058do
14059as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014060{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14061echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14062if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard821ab862003-11-12 22:44:56 +000014063 echo $ECHO_N "(cached) $ECHO_C" >&6
14064else
14065 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard821ab862003-11-12 22:44:56 +000014066/* confdefs.h. */
14067_ACEOF
14068cat confdefs.h >>conftest.$ac_ext
14069cat >>conftest.$ac_ext <<_ACEOF
14070/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000014071/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14073#define $ac_func innocuous_$ac_func
14074
Alexandre Julliard821ab862003-11-12 22:44:56 +000014075/* System header to define __stub macros and hopefully few prototypes,
14076 which can conflict with char $ac_func (); below.
14077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14078 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000014079
Alexandre Julliard821ab862003-11-12 22:44:56 +000014080#ifdef __STDC__
14081# include <limits.h>
14082#else
14083# include <assert.h>
14084#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000014085
14086#undef $ac_func
14087
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014088/* Override any GCC internal prototype to avoid an error.
14089 Use char because int might match the return type of a GCC
14090 builtin and then its argument prototype would still apply. */
Alexandre Julliard821ab862003-11-12 22:44:56 +000014091#ifdef __cplusplus
14092extern "C"
Alexandre Julliard821ab862003-11-12 22:44:56 +000014093#endif
Alexandre Julliard821ab862003-11-12 22:44:56 +000014094char $ac_func ();
14095/* The GNU C library defines this for functions which it implements
14096 to always fail with ENOSYS. Some functions are actually named
14097 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014098#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliard821ab862003-11-12 22:44:56 +000014099choke me
Alexandre Julliard821ab862003-11-12 22:44:56 +000014100#endif
14101
14102int
14103main ()
14104{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014105return $ac_func ();
Alexandre Julliard821ab862003-11-12 22:44:56 +000014106 ;
14107 return 0;
14108}
14109_ACEOF
14110rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014111if { (ac_try="$ac_link"
14112case "(($ac_try" in
14113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114 *) ac_try_echo=$ac_try;;
14115esac
14116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard821ab862003-11-12 22:44:56 +000014118 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014119 grep -v '^ *+' conftest.er1 >conftest.err
14120 rm -f conftest.er1
14121 cat conftest.err >&5
Alexandre Julliard821ab862003-11-12 22:44:56 +000014122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14125 { (case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14128esac
14129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014131 ac_status=$?
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; } &&
14134 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014135 { (case "(($ac_try" in
14136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14138esac
14139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140 (eval "$ac_try") 2>&5
Alexandre Julliard821ab862003-11-12 22:44:56 +000014141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14144 eval "$as_ac_var=yes"
14145else
14146 echo "$as_me: failed program was:" >&5
14147sed 's/^/| /' conftest.$ac_ext >&5
14148
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014149 eval "$as_ac_var=no"
Alexandre Julliard821ab862003-11-12 22:44:56 +000014150fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014151
Jeremy White0ebeb532006-06-20 13:18:41 +020014152rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014153 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard821ab862003-11-12 22:44:56 +000014154fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014155ac_res=`eval echo '${'$as_ac_var'}'`
14156 { echo "$as_me:$LINENO: result: $ac_res" >&5
14157echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard821ab862003-11-12 22:44:56 +000014158if test `eval echo '${'$as_ac_var'}'` = yes; then
14159 cat >>confdefs.h <<_ACEOF
14160#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14161_ACEOF
14162
14163fi
14164done
14165
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010014166LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000014167
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014168# Extract the first word of "artsc-config", so it can be a program name with args.
14169set dummy artsc-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014172if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14174else
14175 case $ARTSCCONFIG in
14176 [\\/]* | ?:[\\/]*)
14177 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
14178 ;;
14179 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181for as_dir in $PATH
14182do
14183 IFS=$as_save_IFS
14184 test -z "$as_dir" && as_dir=.
14185 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014186 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 +000014187 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
14188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14189 break 2
14190 fi
14191done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014192done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014193IFS=$as_save_IFS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014194
14195 ;;
14196esac
14197fi
14198ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014199if test -n "$ARTSCCONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014200 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
14201echo "${ECHO_T}$ARTSCCONFIG" >&6; }
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014202else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014203 { echo "$as_me:$LINENO: result: no" >&5
14204echo "${ECHO_T}no" >&6; }
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014205fi
14206
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014207
Marcus Meissnerbc624582004-01-18 22:15:46 +000014208if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
14209then
Alexandre Julliardb3b12cf2004-02-24 01:24:20 +000014210 ARTSC_CFLAGS=""
14211 for i in `$ARTSCCONFIG --cflags`
14212 do
14213 case "$i" in
14214 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
14215 esac
14216 done
Alexandre Julliard197a7d02006-04-04 12:08:30 +020014217 ARTSC_LIBS=""
14218 for i in `$ARTSCCONFIG --libs`
14219 do
14220 case "$i" in
14221 -L/usr/lib|-L/usr/lib64) ;;
14222 -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
14223 esac
14224 done
Marcus Meissnerbc624582004-01-18 22:15:46 +000014225 save_CFLAGS="$CFLAGS"
14226 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014227 { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
14228echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
Jacek Caban6f8f4752005-03-28 09:58:45 +000014229if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14231else
14232 ac_check_lib_save_LIBS=$LIBS
Vitaliy Margolen80816e92005-06-30 20:46:59 +000014233LIBS="-lartsc $ARTSC_LIBS $LIBS"
Jacek Caban6f8f4752005-03-28 09:58:45 +000014234cat >conftest.$ac_ext <<_ACEOF
14235/* confdefs.h. */
14236_ACEOF
14237cat confdefs.h >>conftest.$ac_ext
14238cat >>conftest.$ac_ext <<_ACEOF
14239/* end confdefs.h. */
14240
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014241/* Override any GCC internal prototype to avoid an error.
14242 Use char because int might match the return type of a GCC
14243 builtin and then its argument prototype would still apply. */
Jacek Caban6f8f4752005-03-28 09:58:45 +000014244#ifdef __cplusplus
14245extern "C"
14246#endif
Jacek Caban6f8f4752005-03-28 09:58:45 +000014247char arts_init ();
14248int
14249main ()
14250{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014251return arts_init ();
Jacek Caban6f8f4752005-03-28 09:58:45 +000014252 ;
14253 return 0;
14254}
14255_ACEOF
14256rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014257if { (ac_try="$ac_link"
14258case "(($ac_try" in
14259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14260 *) ac_try_echo=$ac_try;;
14261esac
14262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14263 (eval "$ac_link") 2>conftest.er1
Jacek Caban6f8f4752005-03-28 09:58:45 +000014264 ac_status=$?
14265 grep -v '^ *+' conftest.er1 >conftest.err
14266 rm -f conftest.er1
14267 cat conftest.err >&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14271 { (case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14274esac
14275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14276 (eval "$ac_try") 2>&5
Jacek Caban6f8f4752005-03-28 09:58:45 +000014277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014281 { (case "(($ac_try" in
14282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283 *) ac_try_echo=$ac_try;;
14284esac
14285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_try") 2>&5
Jacek Caban6f8f4752005-03-28 09:58:45 +000014287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14290 ac_cv_lib_artsc_arts_init=yes
14291else
14292 echo "$as_me: failed program was:" >&5
14293sed 's/^/| /' conftest.$ac_ext >&5
14294
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014295 ac_cv_lib_artsc_arts_init=no
Jacek Caban6f8f4752005-03-28 09:58:45 +000014296fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014297
Jeremy White0ebeb532006-06-20 13:18:41 +020014298rm -f core conftest.err conftest.$ac_objext \
Jacek Caban6f8f4752005-03-28 09:58:45 +000014299 conftest$ac_exeext conftest.$ac_ext
14300LIBS=$ac_check_lib_save_LIBS
14301fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014302{ echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
14303echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
Jacek Caban6f8f4752005-03-28 09:58:45 +000014304if test $ac_cv_lib_artsc_arts_init = yes; then
14305 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014306/* confdefs.h. */
14307_ACEOF
14308cat confdefs.h >>conftest.$ac_ext
14309cat >>conftest.$ac_ext <<_ACEOF
14310/* end confdefs.h. */
Marcus Meissnerbc624582004-01-18 22:15:46 +000014311#include <artsc.h>
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014312int
14313main ()
14314{
Marcus Meissnerbc624582004-01-18 22:15:46 +000014315arts_stream_t stream;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014316 ;
14317 return 0;
14318}
14319_ACEOF
14320rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020014321if { (ac_try="$ac_compile"
14322case "(($ac_try" in
14323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324 *) ac_try_echo=$ac_try;;
14325esac
14326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_compile") 2>conftest.er1
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014328 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014329 grep -v '^ *+' conftest.er1 >conftest.err
14330 rm -f conftest.er1
14331 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014333 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14335 { (case "(($ac_try" in
14336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14337 *) ac_try_echo=$ac_try;;
14338esac
14339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14340 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014341 ac_status=$?
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; } &&
14344 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014345 { (case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14348esac
14349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_try") 2>&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014351 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014353 (exit $ac_status); }; }; then
Marcus Meissnerbc624582004-01-18 22:15:46 +000014354 ARTSLIBS=$ARTSC_LIBS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014355
Jacek Caban6f8f4752005-03-28 09:58:45 +000014356 ARTSINCL=$ARTSC_CFLAGS
Marcus Meissnerbc624582004-01-18 22:15:46 +000014357
14358
14359cat >>confdefs.h <<\_ACEOF
14360#define HAVE_ARTS 1
14361_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014362
14363else
14364 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014365sed 's/^/| /' conftest.$ac_ext >&5
14366
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014367
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014368fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014369
Jeremy White0ebeb532006-06-20 13:18:41 +020014370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jacek Caban6f8f4752005-03-28 09:58:45 +000014371fi
14372
Marcus Meissnerbc624582004-01-18 22:15:46 +000014373 CFLAGS="$save_CFLAGS"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014374fi
14375
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014376# Extract the first word of "esd-config", so it can be a program name with args.
14377set dummy esd-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014380if test "${ac_cv_path_ESDCONFIG+set}" = set; then
14381 echo $ECHO_N "(cached) $ECHO_C" >&6
14382else
14383 case $ESDCONFIG in
14384 [\\/]* | ?:[\\/]*)
14385 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
14386 ;;
14387 *)
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389for as_dir in $PATH
14390do
14391 IFS=$as_save_IFS
14392 test -z "$as_dir" && as_dir=.
14393 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014394 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 +000014395 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
14396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14397 break 2
14398 fi
14399done
14400done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014401IFS=$as_save_IFS
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014402
14403 ;;
14404esac
14405fi
14406ESDCONFIG=$ac_cv_path_ESDCONFIG
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014407if test -n "$ESDCONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014408 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
14409echo "${ECHO_T}$ESDCONFIG" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014410else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014411 { echo "$as_me:$LINENO: result: no" >&5
14412echo "${ECHO_T}no" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014413fi
14414
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014415
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014416if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
14417then
14418 ESD_CFLAGS=""
14419 for i in `$ESDCONFIG --cflags`
14420 do
14421 case "$i" in
14422 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
14423 esac
14424 done
14425 ESD_LIBS=`$ESDCONFIG --libs`
14426 save_CFLAGS="$CFLAGS"
14427 CFLAGS="$CFLAGS $ESD_CFLAGS"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014428 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
14429echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014430if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
14431 echo $ECHO_N "(cached) $ECHO_C" >&6
14432else
14433 ac_check_lib_save_LIBS=$LIBS
14434LIBS="-lesd $LIBS"
14435cat >conftest.$ac_ext <<_ACEOF
14436/* confdefs.h. */
14437_ACEOF
14438cat confdefs.h >>conftest.$ac_ext
14439cat >>conftest.$ac_ext <<_ACEOF
14440/* end confdefs.h. */
14441
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014442/* Override any GCC internal prototype to avoid an error.
14443 Use char because int might match the return type of a GCC
14444 builtin and then its argument prototype would still apply. */
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014445#ifdef __cplusplus
14446extern "C"
14447#endif
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014448char esd_open_sound ();
14449int
14450main ()
14451{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014452return esd_open_sound ();
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014453 ;
14454 return 0;
14455}
14456_ACEOF
14457rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014458if { (ac_try="$ac_link"
14459case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14462esac
14463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14464 (eval "$ac_link") 2>conftest.er1
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014465 ac_status=$?
14466 grep -v '^ *+' conftest.er1 >conftest.err
14467 rm -f conftest.er1
14468 cat conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14472 { (case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14475esac
14476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_try") 2>&5
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; } &&
14481 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014482 { (case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14485esac
14486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_try") 2>&5
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014488 ac_status=$?
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; }; then
14491 ac_cv_lib_esd_esd_open_sound=yes
14492else
14493 echo "$as_me: failed program was:" >&5
14494sed 's/^/| /' conftest.$ac_ext >&5
14495
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014496 ac_cv_lib_esd_esd_open_sound=no
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014497fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014498
Jeremy White0ebeb532006-06-20 13:18:41 +020014499rm -f core conftest.err conftest.$ac_objext \
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014500 conftest$ac_exeext conftest.$ac_ext
14501LIBS=$ac_check_lib_save_LIBS
14502fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014503{ echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
14504echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014505if test $ac_cv_lib_esd_esd_open_sound = yes; then
14506 ESDLIBS=$ESD_LIBS
14507
14508 ESDINCL=$ESD_CFLAGS
14509
14510
14511cat >>confdefs.h <<\_ACEOF
14512#define HAVE_ESD 1
14513_ACEOF
14514
14515fi
14516
14517 CFLAGS="$save_CFLAGS"
14518fi
14519
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014520ALSALIBS=""
14521
Marco Pietrobono0e79a412002-08-29 01:51:31 +000014522if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014523then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014524 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
14525echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
Vincent Béron151015f2005-01-10 13:26:33 +000014526if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014527 echo $ECHO_N "(cached) $ECHO_C" >&6
14528else
14529 ac_check_lib_save_LIBS=$LIBS
14530LIBS="-lasound $LIBS"
14531cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014532/* confdefs.h. */
14533_ACEOF
14534cat confdefs.h >>conftest.$ac_ext
14535cat >>conftest.$ac_ext <<_ACEOF
14536/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014537
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014538/* Override any GCC internal prototype to avoid an error.
14539 Use char because int might match the return type of a GCC
14540 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014541#ifdef __cplusplus
14542extern "C"
14543#endif
Vincent Béron151015f2005-01-10 13:26:33 +000014544char snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014545int
14546main ()
14547{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014548return snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014549 ;
14550 return 0;
14551}
14552_ACEOF
14553rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014554if { (ac_try="$ac_link"
14555case "(($ac_try" in
14556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14558esac
14559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014561 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014562 grep -v '^ *+' conftest.er1 >conftest.err
14563 rm -f conftest.er1
14564 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14568 { (case "(($ac_try" in
14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570 *) ac_try_echo=$ac_try;;
14571esac
14572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; } &&
14577 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014578 { (case "(($ac_try" in
14579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580 *) ac_try_echo=$ac_try;;
14581esac
14582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583 (eval "$ac_try") 2>&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014584 ac_status=$?
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
Vincent Béron151015f2005-01-10 13:26:33 +000014587 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014588else
14589 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014590sed 's/^/| /' conftest.$ac_ext >&5
14591
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014592 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014593fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014594
Jeremy White0ebeb532006-06-20 13:18:41 +020014595rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014596 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014597LIBS=$ac_check_lib_save_LIBS
14598fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014599{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
14600echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
Vincent Béron151015f2005-01-10 13:26:33 +000014601if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
14602 cat >conftest.$ac_ext <<_ACEOF
14603/* confdefs.h. */
14604_ACEOF
14605cat confdefs.h >>conftest.$ac_ext
14606cat >>conftest.$ac_ext <<_ACEOF
14607/* end confdefs.h. */
14608#ifdef HAVE_ALSA_ASOUNDLIB_H
14609#include <alsa/asoundlib.h>
14610#elif defined(HAVE_SYS_ASOUNDLIB_H)
14611#include <sys/asoundlib.h>
14612#endif
14613int
14614main ()
14615{
14616int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14617 ;
14618 return 0;
14619}
14620_ACEOF
14621rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020014622if { (ac_try="$ac_compile"
14623case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626esac
14627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_compile") 2>conftest.er1
Vincent Béron151015f2005-01-10 13:26:33 +000014629 ac_status=$?
14630 grep -v '^ *+' conftest.er1 >conftest.err
14631 rm -f conftest.er1
14632 cat conftest.err >&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14636 { (case "(($ac_try" in
14637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14639esac
14640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_try") 2>&5
Vincent Béron151015f2005-01-10 13:26:33 +000014642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014646 { (case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14649esac
14650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_try") 2>&5
Vincent Béron151015f2005-01-10 13:26:33 +000014652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014655
14656cat >>confdefs.h <<\_ACEOF
14657#define HAVE_ALSA 1
14658_ACEOF
14659
Vincent Béron151015f2005-01-10 13:26:33 +000014660 ALSALIBS="-lasound"
14661else
14662 echo "$as_me: failed program was:" >&5
14663sed 's/^/| /' conftest.$ac_ext >&5
14664
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014665
Vincent Béron151015f2005-01-10 13:26:33 +000014666fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014667
Jeremy White0ebeb532006-06-20 13:18:41 +020014668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014669fi
14670
14671fi
14672
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014673
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014674AUDIOIOLIBS=""
14675
Alexandre Julliard73482142005-08-03 19:21:04 +000014676if test "$ac_cv_header_libaudioio_h" = "yes"
14677then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014678 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14679echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014680if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14682else
14683 ac_check_lib_save_LIBS=$LIBS
14684LIBS="-laudioio $LIBS"
14685cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014686/* confdefs.h. */
14687_ACEOF
14688cat confdefs.h >>conftest.$ac_ext
14689cat >>conftest.$ac_ext <<_ACEOF
14690/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014691
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014692/* Override any GCC internal prototype to avoid an error.
14693 Use char because int might match the return type of a GCC
14694 builtin and then its argument prototype would still apply. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014695#ifdef __cplusplus
14696extern "C"
14697#endif
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014698char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014699int
14700main ()
14701{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014702return AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014703 ;
14704 return 0;
14705}
14706_ACEOF
14707rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014708if { (ac_try="$ac_link"
14709case "(($ac_try" in
14710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14711 *) ac_try_echo=$ac_try;;
14712esac
14713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14714 (eval "$ac_link") 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014715 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014716 grep -v '^ *+' conftest.er1 >conftest.err
14717 rm -f conftest.er1
14718 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14722 { (case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14725esac
14726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014728 ac_status=$?
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; } &&
14731 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014732 { (case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14735esac
14736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737 (eval "$ac_try") 2>&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014738 ac_status=$?
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14741 ac_cv_lib_audioio_AudioIOGetVersion=yes
14742else
14743 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014744sed 's/^/| /' conftest.$ac_ext >&5
14745
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014746 ac_cv_lib_audioio_AudioIOGetVersion=no
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014747fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014748
Jeremy White0ebeb532006-06-20 13:18:41 +020014749rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014750 conftest$ac_exeext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014751LIBS=$ac_check_lib_save_LIBS
14752fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014753{ echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14754echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014755if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14756 AUDIOIOLIBS="-laudioio"
14757
14758cat >>confdefs.h <<\_ACEOF
14759#define HAVE_LIBAUDIOIO 1
14760_ACEOF
14761
14762fi
14763
14764fi
14765
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014766
Alexandre Julliard73482142005-08-03 19:21:04 +000014767if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14768then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014769 { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
14770echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014771if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773else
14774 ac_check_lib_save_LIBS=$LIBS
14775LIBS="-lcapi20 $LIBS"
14776cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014777/* confdefs.h. */
14778_ACEOF
14779cat confdefs.h >>conftest.$ac_ext
14780cat >>conftest.$ac_ext <<_ACEOF
14781/* end confdefs.h. */
14782
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014783/* Override any GCC internal prototype to avoid an error.
14784 Use char because int might match the return type of a GCC
14785 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014786#ifdef __cplusplus
14787extern "C"
14788#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014789char capi20_register ();
14790int
14791main ()
14792{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014793return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014794 ;
14795 return 0;
14796}
14797_ACEOF
14798rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014799if { (ac_try="$ac_link"
14800case "(($ac_try" in
14801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14802 *) ac_try_echo=$ac_try;;
14803esac
14804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14805 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014806 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014807 grep -v '^ *+' conftest.er1 >conftest.err
14808 rm -f conftest.er1
14809 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14813 { (case "(($ac_try" in
14814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815 *) ac_try_echo=$ac_try;;
14816esac
14817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014819 ac_status=$?
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; } &&
14822 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014823 { (case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14826esac
14827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_try") 2>&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 ac_cv_lib_capi20_capi20_register=yes
14833else
14834 echo "$as_me: failed program was:" >&5
14835sed 's/^/| /' conftest.$ac_ext >&5
14836
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014837 ac_cv_lib_capi20_capi20_register=no
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014838fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014839
Jeremy White0ebeb532006-06-20 13:18:41 +020014840rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014841 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014842LIBS=$ac_check_lib_save_LIBS
14843fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014844{ echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
14845echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014846if test $ac_cv_lib_capi20_capi20_register = yes; then
14847
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014848cat >>confdefs.h <<\_ACEOF
14849#define HAVE_CAPI4LINUX 1
14850_ACEOF
14851
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014852fi
14853
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014854fi
14855
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014856
Robert Shearman68249c12006-07-25 10:36:06 +010014857if test "$ac_cv_header_gif_lib_h" = "yes"
14858then
14859 cat >conftest.$ac_ext <<_ACEOF
14860/* confdefs.h. */
14861_ACEOF
14862cat confdefs.h >>conftest.$ac_ext
14863cat >>conftest.$ac_ext <<_ACEOF
14864/* end confdefs.h. */
14865#include <gif_lib.h>
14866int
14867main ()
14868{
14869static typeof(DGifOpen) * func;
14870 ;
14871 return 0;
14872}
14873_ACEOF
14874rm -f conftest.$ac_objext
14875if { (ac_try="$ac_compile"
14876case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14879esac
14880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14881 (eval "$ac_compile") 2>conftest.er1
14882 ac_status=$?
14883 grep -v '^ *+' conftest.er1 >conftest.err
14884 rm -f conftest.er1
14885 cat conftest.err >&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
14888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14889 { (case "(($ac_try" in
14890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891 *) ac_try_echo=$ac_try;;
14892esac
14893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14894 (eval "$ac_try") 2>&5
14895 ac_status=$?
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; } &&
14898 { ac_try='test -s conftest.$ac_objext'
14899 { (case "(($ac_try" in
14900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901 *) ac_try_echo=$ac_try;;
14902esac
14903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904 (eval "$ac_try") 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; }; then
14908
14909cat >>confdefs.h <<\_ACEOF
14910#define HAVE_GIF 1
14911_ACEOF
14912
14913else
14914 echo "$as_me: failed program was:" >&5
14915sed 's/^/| /' conftest.$ac_ext >&5
14916
14917
14918fi
14919
14920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14921fi
14922
14923
Alexandre Julliardfc094232003-04-14 21:46:41 +000014924EXTRACFLAGS=""
14925
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014926if test "x${GCC}" = "xyes"
14927then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000014928 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000014929
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014930 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14931echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014932if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014934else
14935 if test "$cross_compiling" = yes; then
14936 ac_cv_c_gcc_strength_bug="yes"
14937else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014938 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014939/* confdefs.h. */
14940_ACEOF
14941cat confdefs.h >>conftest.$ac_ext
14942cat >>conftest.$ac_ext <<_ACEOF
14943/* end confdefs.h. */
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014944
Eric Pouech5aee80f2000-11-11 00:31:39 +000014945int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014946int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000014947 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014948 unsigned int B = 3;
14949 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000014950 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000014951 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14952 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014953
Eric Pouech5aee80f2000-11-11 00:31:39 +000014954 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014955}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014956_ACEOF
14957rm -f conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014958if { (ac_try="$ac_link"
14959case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14962esac
14963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014965 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014968 { (case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14971esac
14972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014974 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014976 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014977 ac_cv_c_gcc_strength_bug="no"
14978else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014979 echo "$as_me: program exited with status $ac_status" >&5
14980echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014981sed 's/^/| /' conftest.$ac_ext >&5
14982
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014983( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014984ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014985fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014986rm -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 +000014987fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014988
14989
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014990fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014991{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
14992echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014993 if test "$ac_cv_c_gcc_strength_bug" = "yes"
14994 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000014995 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014996 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000014997
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014998 { echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
14999echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015000if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
15001 echo $ECHO_N "(cached) $ECHO_C" >&6
15002else
15003 ac_wine_try_cflags_saved=$CFLAGS
15004CFLAGS="$CFLAGS -fshort-wchar"
15005cat >conftest.$ac_ext <<_ACEOF
15006/* confdefs.h. */
15007_ACEOF
15008cat confdefs.h >>conftest.$ac_ext
15009cat >>conftest.$ac_ext <<_ACEOF
15010/* end confdefs.h. */
15011
15012int
15013main ()
15014{
15015
15016 ;
15017 return 0;
15018}
15019_ACEOF
15020rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015021if { (ac_try="$ac_link"
15022case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15025esac
15026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027 (eval "$ac_link") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015028 ac_status=$?
15029 grep -v '^ *+' conftest.er1 >conftest.err
15030 rm -f conftest.er1
15031 cat conftest.err >&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15035 { (case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15038esac
15039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015041 ac_status=$?
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; } &&
15044 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015045 { (case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15048esac
15049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015051 ac_status=$?
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; }; then
15054 ac_cv_c_gcc_fshort_wchar="yes"
15055else
15056 echo "$as_me: failed program was:" >&5
15057sed 's/^/| /' conftest.$ac_ext >&5
15058
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015059 ac_cv_c_gcc_fshort_wchar="no"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015060fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015061
Jeremy White0ebeb532006-06-20 13:18:41 +020015062rm -f core conftest.err conftest.$ac_objext \
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015063 conftest$ac_exeext conftest.$ac_ext
15064CFLAGS=$ac_wine_try_cflags_saved
15065fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015066{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
15067echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015068 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
15069 then
15070
15071cat >>confdefs.h <<\_ACEOF
15072#define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
15073_ACEOF
15074
15075 fi
15076
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015077 { echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
15078echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015079if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
15081else
15082 ac_wine_try_cflags_saved=$CFLAGS
15083CFLAGS="$CFLAGS -fno-strict-aliasing"
15084cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015085/* confdefs.h. */
15086_ACEOF
15087cat confdefs.h >>conftest.$ac_ext
15088cat >>conftest.$ac_ext <<_ACEOF
15089/* end confdefs.h. */
15090
15091int
15092main ()
15093{
15094
15095 ;
15096 return 0;
15097}
15098_ACEOF
15099rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015100if { (ac_try="$ac_link"
15101case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104esac
15105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015107 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015108 grep -v '^ *+' conftest.er1 >conftest.err
15109 rm -f conftest.er1
15110 cat conftest.err >&5
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15114 { (case "(($ac_try" in
15115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15116 *) ac_try_echo=$ac_try;;
15117esac
15118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; } &&
15123 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015124 { (case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15127esac
15128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_try") 2>&5
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015130 ac_status=$?
15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 (exit $ac_status); }; }; then
15133 ac_cv_c_gcc_no_strict_aliasing="yes"
15134else
15135 echo "$as_me: failed program was:" >&5
15136sed 's/^/| /' conftest.$ac_ext >&5
15137
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015138 ac_cv_c_gcc_no_strict_aliasing="no"
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015139fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015140
Jeremy White0ebeb532006-06-20 13:18:41 +020015141rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015142 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015143CFLAGS=$ac_wine_try_cflags_saved
15144fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015145{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
15146echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015147 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
15148 then
15149 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
15150 fi
15151
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015152 { echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
15153echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6; }
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015154if test "${ac_cv_c_gcc_gstabs+set}" = set; then
15155 echo $ECHO_N "(cached) $ECHO_C" >&6
15156else
15157 ac_wine_try_cflags_saved=$CFLAGS
15158CFLAGS="$CFLAGS -gstabs+"
15159cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015160/* confdefs.h. */
15161_ACEOF
15162cat confdefs.h >>conftest.$ac_ext
15163cat >>conftest.$ac_ext <<_ACEOF
15164/* end confdefs.h. */
15165
15166int
15167main ()
15168{
15169
15170 ;
15171 return 0;
15172}
15173_ACEOF
15174rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015175if { (ac_try="$ac_link"
15176case "(($ac_try" in
15177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15178 *) ac_try_echo=$ac_try;;
15179esac
15180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15181 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015182 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015183 grep -v '^ *+' conftest.er1 >conftest.err
15184 rm -f conftest.er1
15185 cat conftest.err >&5
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15189 { (case "(($ac_try" in
15190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191 *) ac_try_echo=$ac_try;;
15192esac
15193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15194 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015195 ac_status=$?
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); }; } &&
15198 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015199 { (case "(($ac_try" in
15200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15201 *) ac_try_echo=$ac_try;;
15202esac
15203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15204 (eval "$ac_try") 2>&5
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015205 ac_status=$?
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; }; then
15208 ac_cv_c_gcc_gstabs="yes"
15209else
15210 echo "$as_me: failed program was:" >&5
15211sed 's/^/| /' conftest.$ac_ext >&5
15212
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015213 ac_cv_c_gcc_gstabs="no"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015214fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015215
Jeremy White0ebeb532006-06-20 13:18:41 +020015216rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015217 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015218CFLAGS=$ac_wine_try_cflags_saved
15219fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015220{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
15221echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6; }
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015222 if test "$ac_cv_c_gcc_gstabs" = "yes"
15223 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000015224 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015225 fi
Mike McCormackc509bc42003-02-25 04:01:58 +000015226
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015227 { echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5
15228echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015229if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then
15230 echo $ECHO_N "(cached) $ECHO_C" >&6
15231else
15232 ac_wine_try_cflags_saved=$CFLAGS
15233CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15234cat >conftest.$ac_ext <<_ACEOF
15235/* confdefs.h. */
15236_ACEOF
15237cat confdefs.h >>conftest.$ac_ext
15238cat >>conftest.$ac_ext <<_ACEOF
15239/* end confdefs.h. */
15240
15241int
15242main ()
15243{
15244
15245 ;
15246 return 0;
15247}
15248_ACEOF
15249rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015250if { (ac_try="$ac_link"
15251case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15254esac
15255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015257 ac_status=$?
15258 grep -v '^ *+' conftest.er1 >conftest.err
15259 rm -f conftest.er1
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15264 { (case "(($ac_try" in
15265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266 *) ac_try_echo=$ac_try;;
15267esac
15268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15269 (eval "$ac_try") 2>&5
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; } &&
15273 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015274 { (case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15277esac
15278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_try") 2>&5
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015280 ac_status=$?
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }; }; then
15283 ac_cv_c_gcc_decl_after_statement="yes"
15284else
15285 echo "$as_me: failed program was:" >&5
15286sed 's/^/| /' conftest.$ac_ext >&5
15287
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015288 ac_cv_c_gcc_decl_after_statement="no"
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015289fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015290
Jeremy White0ebeb532006-06-20 13:18:41 +020015291rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015292 conftest$ac_exeext conftest.$ac_ext
15293CFLAGS=$ac_wine_try_cflags_saved
15294fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015295{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5
15296echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015297 if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
15298 then
15299 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
15300 fi
15301
Alexandre Julliard4d52d372003-03-24 19:33:20 +000015302 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000015303 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015304 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
15305echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
Mike McCormackc509bc42003-02-25 04:01:58 +000015306if test "${ac_cv_c_string_h_warnings+set}" = set; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15308else
15309 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackc509bc42003-02-25 04:01:58 +000015310/* confdefs.h. */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h. */
15315#include <string.h>
15316int
15317main ()
15318{
15319
15320 ;
15321 return 0;
15322}
15323_ACEOF
15324rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020015325if { (ac_try="$ac_compile"
15326case "(($ac_try" in
15327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15328 *) ac_try_echo=$ac_try;;
15329esac
15330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15331 (eval "$ac_compile") 2>conftest.er1
Mike McCormackc509bc42003-02-25 04:01:58 +000015332 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015333 grep -v '^ *+' conftest.er1 >conftest.err
15334 rm -f conftest.er1
15335 cat conftest.err >&5
Mike McCormackc509bc42003-02-25 04:01:58 +000015336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15339 { (case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342esac
15343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; } &&
15348 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015349 { (case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15352esac
15353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354 (eval "$ac_try") 2>&5
Mike McCormackc509bc42003-02-25 04:01:58 +000015355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 ac_cv_c_string_h_warnings=no
15359else
15360 echo "$as_me: failed program was:" >&5
15361sed 's/^/| /' conftest.$ac_ext >&5
15362
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015363 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000015364fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015365
Jeremy White0ebeb532006-06-20 13:18:41 +020015366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000015367fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015368{ echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
15369echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000015370 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000015371 if test "$ac_cv_c_string_h_warnings" = "no"
15372 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000015373 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000015374 fi
Mike McCormackb7443722005-08-11 17:12:18 +000015375
15376 BUILTINFLAG=""
15377
15378 saved_CFLAGS="$CFLAGS"
15379 CFLAGS="$CFLAGS -Werror"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015380 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
15381echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
Mike McCormackb7443722005-08-11 17:12:18 +000015382if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15384else
15385 cat >conftest.$ac_ext <<_ACEOF
15386/* confdefs.h. */
15387_ACEOF
15388cat confdefs.h >>conftest.$ac_ext
15389cat >>conftest.$ac_ext <<_ACEOF
15390/* end confdefs.h. */
15391
15392int
15393main ()
15394{
15395int iswlower(unsigned short);
15396 ;
15397 return 0;
15398}
15399_ACEOF
15400rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020015401if { (ac_try="$ac_compile"
15402case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15405esac
15406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407 (eval "$ac_compile") 2>conftest.er1
Mike McCormackb7443722005-08-11 17:12:18 +000015408 ac_status=$?
15409 grep -v '^ *+' conftest.er1 >conftest.err
15410 rm -f conftest.er1
15411 cat conftest.err >&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15415 { (case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15418esac
15419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_try") 2>&5
Mike McCormackb7443722005-08-11 17:12:18 +000015421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015425 { (case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15428esac
15429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430 (eval "$ac_try") 2>&5
Mike McCormackb7443722005-08-11 17:12:18 +000015431 ac_status=$?
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); }; }; then
15434 ac_cv_c_builtin_wchar_ctype=no
15435else
15436 echo "$as_me: failed program was:" >&5
15437sed 's/^/| /' conftest.$ac_ext >&5
15438
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015439 ac_cv_c_builtin_wchar_ctype=yes
Mike McCormackb7443722005-08-11 17:12:18 +000015440fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015441
Jeremy White0ebeb532006-06-20 13:18:41 +020015442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackb7443722005-08-11 17:12:18 +000015443fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015444{ echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
15445echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
Mike McCormackb7443722005-08-11 17:12:18 +000015446 CFLAGS="$saved_CFLAGS"
15447 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
15448 then
Mike McCormacka26dabe2006-07-19 19:16:59 +090015449 BUILTINFLAG="-fno-builtin"
Mike McCormackb7443722005-08-11 17:12:18 +000015450 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000015451fi
15452
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015453
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015454{ echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
15455echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015456if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015457 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000015458else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015459 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015460/* confdefs.h. */
15461_ACEOF
15462cat confdefs.h >>conftest.$ac_ext
15463cat >>conftest.$ac_ext <<_ACEOF
15464/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000015465void 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 +000015466
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015467int
15468main ()
15469{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000015470
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015471 ;
15472 return 0;
15473}
15474_ACEOF
15475rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015476if { (ac_try="$ac_link"
15477case "(($ac_try" in
15478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479 *) ac_try_echo=$ac_try;;
15480esac
15481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015483 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015484 grep -v '^ *+' conftest.er1 >conftest.err
15485 rm -f conftest.er1
15486 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015488 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15490 { (case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15493esac
15494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015496 ac_status=$?
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; } &&
15499 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015500 { (case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15503esac
15504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015506 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015508 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015509 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000015510else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015511 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015512sed 's/^/| /' conftest.$ac_ext >&5
15513
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015514 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015515/* confdefs.h. */
15516_ACEOF
15517cat confdefs.h >>conftest.$ac_ext
15518cat >>conftest.$ac_ext <<_ACEOF
15519/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000015520void 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 +000015521
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015522int
15523main ()
15524{
15525
15526 ;
15527 return 0;
15528}
15529_ACEOF
15530rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015531if { (ac_try="$ac_link"
15532case "(($ac_try" in
15533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15534 *) ac_try_echo=$ac_try;;
15535esac
15536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15537 (eval "$ac_link") 2>conftest.er1
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015538 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015539 grep -v '^ *+' conftest.er1 >conftest.err
15540 rm -f conftest.er1
15541 cat conftest.err >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15545 { (case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15548esac
15549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15550 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; } &&
15554 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015555 { (case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15558esac
15559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_try") 2>&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015561 ac_status=$?
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015564 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015565else
15566 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015567sed 's/^/| /' conftest.$ac_ext >&5
15568
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015569 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015570/* confdefs.h. */
15571_ACEOF
15572cat confdefs.h >>conftest.$ac_ext
15573cat >>conftest.$ac_ext <<_ACEOF
15574/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000015575void 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 +000015576
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015577int
15578main ()
15579{
15580
15581 ;
15582 return 0;
15583}
15584_ACEOF
15585rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015586if { (ac_try="$ac_link"
15587case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15590esac
15591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015593 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015594 grep -v '^ *+' conftest.er1 >conftest.err
15595 rm -f conftest.er1
15596 cat conftest.err >&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15600 { (case "(($ac_try" in
15601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15602 *) ac_try_echo=$ac_try;;
15603esac
15604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15605 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015606 ac_status=$?
15607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15608 (exit $ac_status); }; } &&
15609 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015610 { (case "(($ac_try" in
15611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15612 *) ac_try_echo=$ac_try;;
15613esac
15614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15615 (eval "$ac_try") 2>&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015616 ac_status=$?
15617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618 (exit $ac_status); }; }; then
15619 ac_cv_asm_func_def=".type 2"
15620else
15621 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015622sed 's/^/| /' conftest.$ac_ext >&5
15623
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015624 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015625fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015626
Jeremy White0ebeb532006-06-20 13:18:41 +020015627rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015628 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015629fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015630
Jeremy White0ebeb532006-06-20 13:18:41 +020015631rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015632 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015633fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015634
Jeremy White0ebeb532006-06-20 13:18:41 +020015635rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015636 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015637fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015638{ echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15639echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015640
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015641
15642
15643case "$ac_cv_asm_func_def" in
15644 ".def")
15645 cat >>confdefs.h <<\_ACEOF
15646#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015647_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015648 ;;
15649 ".type @function")
15650 cat >>confdefs.h <<\_ACEOF
15651#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15652_ACEOF
15653 ;;
15654 ".type 2")
15655 cat >>confdefs.h <<\_ACEOF
15656#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15657_ACEOF
15658 ;;
15659 *)
15660 cat >>confdefs.h <<\_ACEOF
15661#define __ASM_FUNC(name) ""
15662_ACEOF
15663 ;;
15664esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015665
15666
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015667{ echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15668echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015669if test "${ac_cv_c_extern_prefix+set}" = set; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015671else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015672 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015673/* confdefs.h. */
15674_ACEOF
15675cat confdefs.h >>conftest.$ac_ext
15676cat >>conftest.$ac_ext <<_ACEOF
15677/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000015678void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015679extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015680int
15681main ()
15682{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015683if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015684 ;
15685 return 0;
15686}
15687_ACEOF
15688rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015689if { (ac_try="$ac_link"
15690case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15693esac
15694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15695 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015696 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015697 grep -v '^ *+' conftest.er1 >conftest.err
15698 rm -f conftest.er1
15699 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015701 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15703 { (case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15706esac
15707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015709 ac_status=$?
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015713 { (case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716esac
15717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015719 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015721 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015722 ac_cv_c_extern_prefix="yes"
15723else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015724 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015725sed 's/^/| /' conftest.$ac_ext >&5
15726
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015727 ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015728fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015729
Jeremy White0ebeb532006-06-20 13:18:41 +020015730rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015731 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015732fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015733{ echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15734echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015735
15736
15737
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015738if test "$ac_cv_c_extern_prefix" = "yes"
15739then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015740 cat >>confdefs.h <<\_ACEOF
15741#define __ASM_NAME(name) "_" name
15742_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015743
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015744else
15745 cat >>confdefs.h <<\_ACEOF
15746#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015747_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015748
15749fi
15750
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015751
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015752DLLEXT=""
15753
Alexandre Julliardfc094232003-04-14 21:46:41 +000015754DLLFLAGS="-D_REENTRANT"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015755
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015756DLLIBS=""
15757
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015758LDSHARED=""
15759
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015760LDDLLFLAGS=""
Alexandre Julliard6ac34ac2003-10-11 01:05:18 +000015761
Alexandre Julliardada5e652002-12-12 22:03:14 +000015762LIBEXT="so"
15763
15764IMPLIBEXT="def"
15765
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015766
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015767case $host_os in
15768 cygwin*|mingw32*)
15769 if test -n "$ac_tool_prefix"; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000015770 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15771set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015774if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15776else
15777 if test -n "$DLLTOOL"; then
15778 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15779else
15780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15781for as_dir in $PATH
15782do
15783 IFS=$as_save_IFS
15784 test -z "$as_dir" && as_dir=.
15785 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015786 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 +000015787 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15789 break 2
15790 fi
15791done
15792done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015793IFS=$as_save_IFS
Alexandre Julliardada5e652002-12-12 22:03:14 +000015794
15795fi
15796fi
15797DLLTOOL=$ac_cv_prog_DLLTOOL
15798if test -n "$DLLTOOL"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015799 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15800echo "${ECHO_T}$DLLTOOL" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015801else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015802 { echo "$as_me:$LINENO: result: no" >&5
15803echo "${ECHO_T}no" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015804fi
15805
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015806
Alexandre Julliardada5e652002-12-12 22:03:14 +000015807fi
15808if test -z "$ac_cv_prog_DLLTOOL"; then
15809 ac_ct_DLLTOOL=$DLLTOOL
15810 # Extract the first word of "dlltool", so it can be a program name with args.
15811set dummy dlltool; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015814if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15815 echo $ECHO_N "(cached) $ECHO_C" >&6
15816else
15817 if test -n "$ac_ct_DLLTOOL"; then
15818 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15819else
15820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15821for as_dir in $PATH
15822do
15823 IFS=$as_save_IFS
15824 test -z "$as_dir" && as_dir=.
15825 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015826 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 +000015827 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15829 break 2
15830 fi
15831done
15832done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015833IFS=$as_save_IFS
Alexandre Julliardada5e652002-12-12 22:03:14 +000015834
Alexandre Julliardada5e652002-12-12 22:03:14 +000015835fi
15836fi
15837ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15838if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015839 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15840echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015841else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015842 { echo "$as_me:$LINENO: result: no" >&5
15843echo "${ECHO_T}no" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015844fi
15845
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015846 if test "x$ac_ct_DLLTOOL" = x; then
15847 DLLTOOL="false"
15848 else
15849 case $cross_compiling:$ac_tool_warned in
15850yes:)
15851{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15852whose name does not start with the host triplet. If you think this
15853configuration is useful to you, please write to autoconf@gnu.org." >&5
15854echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15855whose name does not start with the host triplet. If you think this
15856configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15857ac_tool_warned=yes ;;
15858esac
15859 DLLTOOL=$ac_ct_DLLTOOL
15860 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000015861else
15862 DLLTOOL="$ac_cv_prog_DLLTOOL"
15863fi
15864
15865 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015866 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
15867set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015868{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000015870if test "${ac_cv_prog_DLLWRAP+set}" = set; then
15871 echo $ECHO_N "(cached) $ECHO_C" >&6
15872else
15873 if test -n "$DLLWRAP"; then
15874 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15875else
15876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15877for as_dir in $PATH
15878do
15879 IFS=$as_save_IFS
15880 test -z "$as_dir" && as_dir=.
15881 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015882 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 +000015883 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000015884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15885 break 2
15886 fi
15887done
15888done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015889IFS=$as_save_IFS
Alexandre Julliard466ae142002-05-07 18:33:47 +000015890
Alexandre Julliard466ae142002-05-07 18:33:47 +000015891fi
15892fi
15893DLLWRAP=$ac_cv_prog_DLLWRAP
15894if test -n "$DLLWRAP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015895 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
15896echo "${ECHO_T}$DLLWRAP" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000015897else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015898 { echo "$as_me:$LINENO: result: no" >&5
15899echo "${ECHO_T}no" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000015900fi
15901
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015902
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015903fi
15904if test -z "$ac_cv_prog_DLLWRAP"; then
15905 ac_ct_DLLWRAP=$DLLWRAP
15906 # Extract the first word of "dllwrap", so it can be a program name with args.
15907set dummy dllwrap; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015908{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15909echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015910if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
15911 echo $ECHO_N "(cached) $ECHO_C" >&6
15912else
15913 if test -n "$ac_ct_DLLWRAP"; then
15914 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
15915else
15916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15917for as_dir in $PATH
15918do
15919 IFS=$as_save_IFS
15920 test -z "$as_dir" && as_dir=.
15921 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015922 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 +000015923 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
15924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15925 break 2
15926 fi
15927done
15928done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015929IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015930
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015931fi
15932fi
15933ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
15934if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015935 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
15936echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015937else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015938 { echo "$as_me:$LINENO: result: no" >&5
15939echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015940fi
15941
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015942 if test "x$ac_ct_DLLWRAP" = x; then
15943 DLLWRAP="false"
15944 else
15945 case $cross_compiling:$ac_tool_warned in
15946yes:)
15947{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15948whose name does not start with the host triplet. If you think this
15949configuration is useful to you, please write to autoconf@gnu.org." >&5
15950echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15951whose name does not start with the host triplet. If you think this
15952configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15953ac_tool_warned=yes ;;
15954esac
15955 DLLWRAP=$ac_ct_DLLWRAP
15956 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015957else
15958 DLLWRAP="$ac_cv_prog_DLLWRAP"
15959fi
15960
15961 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015962 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015963 else
15964 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015965 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000015966 IMPLIBEXT="a"
Alexandre Julliard56a4a762004-08-12 03:27:50 +000015967 WIN16_FILES=""
15968 WIN16_INSTALL=""
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015969 ;;
15970 *)
Alexandre Julliard73482142005-08-03 19:21:04 +000015971 if test "$ac_cv_header_dlfcn_h" = "yes"
15972 then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015973
15974for ac_func in dlopen
15975do
15976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015977{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15979if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015980 echo $ECHO_N "(cached) $ECHO_C" >&6
15981else
15982 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015983/* confdefs.h. */
15984_ACEOF
15985cat confdefs.h >>conftest.$ac_ext
15986cat >>conftest.$ac_ext <<_ACEOF
15987/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000015988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15990#define $ac_func innocuous_$ac_func
15991
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015992/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015993 which can conflict with char $ac_func (); below.
15994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15995 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000015996
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015997#ifdef __STDC__
15998# include <limits.h>
15999#else
16000# include <assert.h>
16001#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000016002
16003#undef $ac_func
16004
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016005/* Override any GCC internal prototype to avoid an error.
16006 Use char because int might match the return type of a GCC
16007 builtin and then its argument prototype would still apply. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016008#ifdef __cplusplus
16009extern "C"
16010#endif
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016011char $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016012/* The GNU C library defines this for functions which it implements
16013 to always fail with ENOSYS. Some functions are actually named
16014 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016015#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016016choke me
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016017#endif
16018
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016019int
16020main ()
16021{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016022return $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016023 ;
16024 return 0;
16025}
16026_ACEOF
16027rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016028if { (ac_try="$ac_link"
16029case "(($ac_try" in
16030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031 *) ac_try_echo=$ac_try;;
16032esac
16033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016035 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016036 grep -v '^ *+' conftest.er1 >conftest.err
16037 rm -f conftest.er1
16038 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16042 { (case "(($ac_try" in
16043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044 *) ac_try_echo=$ac_try;;
16045esac
16046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016048 ac_status=$?
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; } &&
16051 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016052 { (case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16055esac
16056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_try") 2>&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 eval "$as_ac_var=yes"
16062else
16063 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016064sed 's/^/| /' conftest.$ac_ext >&5
16065
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016066 eval "$as_ac_var=no"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016067fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016068
Jeremy White0ebeb532006-06-20 13:18:41 +020016069rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016070 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016071fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016072ac_res=`eval echo '${'$as_ac_var'}'`
16073 { echo "$as_me:$LINENO: result: $ac_res" >&5
16074echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016075if test `eval echo '${'$as_ac_var'}'` = yes; then
16076 cat >>confdefs.h <<_ACEOF
16077#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16078_ACEOF
16079
16080else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016081 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16082echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016083if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16084 echo $ECHO_N "(cached) $ECHO_C" >&6
16085else
16086 ac_check_lib_save_LIBS=$LIBS
16087LIBS="-ldl $LIBS"
16088cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016089/* confdefs.h. */
16090_ACEOF
16091cat confdefs.h >>conftest.$ac_ext
16092cat >>conftest.$ac_ext <<_ACEOF
16093/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016094
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016095/* Override any GCC internal prototype to avoid an error.
16096 Use char because int might match the return type of a GCC
16097 builtin and then its argument prototype would still apply. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016098#ifdef __cplusplus
16099extern "C"
16100#endif
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016101char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016102int
16103main ()
16104{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016105return dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016106 ;
16107 return 0;
16108}
16109_ACEOF
16110rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016111if { (ac_try="$ac_link"
16112case "(($ac_try" in
16113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16114 *) ac_try_echo=$ac_try;;
16115esac
16116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16117 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016118 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016119 grep -v '^ *+' conftest.er1 >conftest.err
16120 rm -f conftest.er1
16121 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16125 { (case "(($ac_try" in
16126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16127 *) ac_try_echo=$ac_try;;
16128esac
16129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16130 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016131 ac_status=$?
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; } &&
16134 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016135 { (case "(($ac_try" in
16136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137 *) ac_try_echo=$ac_try;;
16138esac
16139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140 (eval "$ac_try") 2>&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016141 ac_status=$?
16142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143 (exit $ac_status); }; }; then
16144 ac_cv_lib_dl_dlopen=yes
16145else
16146 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016147sed 's/^/| /' conftest.$ac_ext >&5
16148
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016149 ac_cv_lib_dl_dlopen=no
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016150fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016151
Jeremy White0ebeb532006-06-20 13:18:41 +020016152rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016153 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016154LIBS=$ac_check_lib_save_LIBS
16155fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016156{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16157echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016158if test $ac_cv_lib_dl_dlopen = yes; then
16159
16160cat >>confdefs.h <<\_ACEOF
16161#define HAVE_DLOPEN 1
16162_ACEOF
16163
16164 DLLIBS="-ldl"
16165else
16166 LIBEXT="a"
16167fi
16168
16169fi
16170done
16171
Alexandre Julliard266c6092006-02-11 20:55:50 +010016172 ac_wine_check_funcs_save_LIBS="$LIBS"
16173LIBS="$LIBS $DLLIBS"
16174
16175for ac_func in dladdr
16176do
16177as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016178{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16179echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16180if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard266c6092006-02-11 20:55:50 +010016181 echo $ECHO_N "(cached) $ECHO_C" >&6
16182else
16183 cat >conftest.$ac_ext <<_ACEOF
16184/* confdefs.h. */
16185_ACEOF
16186cat confdefs.h >>conftest.$ac_ext
16187cat >>conftest.$ac_ext <<_ACEOF
16188/* end confdefs.h. */
16189/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16191#define $ac_func innocuous_$ac_func
16192
16193/* System header to define __stub macros and hopefully few prototypes,
16194 which can conflict with char $ac_func (); below.
16195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16196 <limits.h> exists even on freestanding compilers. */
16197
16198#ifdef __STDC__
16199# include <limits.h>
16200#else
16201# include <assert.h>
16202#endif
16203
16204#undef $ac_func
16205
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016206/* Override any GCC internal prototype to avoid an error.
16207 Use char because int might match the return type of a GCC
16208 builtin and then its argument prototype would still apply. */
Alexandre Julliard266c6092006-02-11 20:55:50 +010016209#ifdef __cplusplus
16210extern "C"
Alexandre Julliard266c6092006-02-11 20:55:50 +010016211#endif
Alexandre Julliard266c6092006-02-11 20:55:50 +010016212char $ac_func ();
16213/* The GNU C library defines this for functions which it implements
16214 to always fail with ENOSYS. Some functions are actually named
16215 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016216#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliard266c6092006-02-11 20:55:50 +010016217choke me
Alexandre Julliard266c6092006-02-11 20:55:50 +010016218#endif
16219
16220int
16221main ()
16222{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016223return $ac_func ();
Alexandre Julliard266c6092006-02-11 20:55:50 +010016224 ;
16225 return 0;
16226}
16227_ACEOF
16228rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016229if { (ac_try="$ac_link"
16230case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16233esac
16234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard266c6092006-02-11 20:55:50 +010016236 ac_status=$?
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16243 { (case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16246esac
16247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_try") 2>&5
Alexandre Julliard266c6092006-02-11 20:55:50 +010016249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; } &&
16252 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016253 { (case "(($ac_try" in
16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255 *) ac_try_echo=$ac_try;;
16256esac
16257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16258 (eval "$ac_try") 2>&5
Alexandre Julliard266c6092006-02-11 20:55:50 +010016259 ac_status=$?
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 eval "$as_ac_var=yes"
16263else
16264 echo "$as_me: failed program was:" >&5
16265sed 's/^/| /' conftest.$ac_ext >&5
16266
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016267 eval "$as_ac_var=no"
Alexandre Julliard266c6092006-02-11 20:55:50 +010016268fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016269
Jeremy White0ebeb532006-06-20 13:18:41 +020016270rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard266c6092006-02-11 20:55:50 +010016271 conftest$ac_exeext conftest.$ac_ext
16272fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016273ac_res=`eval echo '${'$as_ac_var'}'`
16274 { echo "$as_me:$LINENO: result: $ac_res" >&5
16275echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard266c6092006-02-11 20:55:50 +010016276if test `eval echo '${'$as_ac_var'}'` = yes; then
16277 cat >>confdefs.h <<_ACEOF
16278#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16279_ACEOF
16280
16281fi
16282done
16283
16284LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard73482142005-08-03 19:21:04 +000016285 else
16286 LIBEXT="a"
16287 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016288
16289 if test "$LIBEXT" = "so"
16290 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000016291 DLLFLAGS="$DLLFLAGS -fPIC"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000016292 DLLEXT=".so"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016293 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
16294echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016295if test "${ac_cv_c_dll_gnuelf+set}" = set; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016297else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016298 ac_wine_try_cflags_saved=$CFLAGS
Jeremy White0ebeb532006-06-20 13:18:41 +020016299CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016300cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000016301void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016302_ACEOF
16303rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016304if { (ac_try="$ac_link"
16305case "(($ac_try" in
16306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16307 *) ac_try_echo=$ac_try;;
16308esac
16309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016311 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016312 grep -v '^ *+' conftest.er1 >conftest.err
16313 rm -f conftest.er1
16314 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016316 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16318 { (case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16321esac
16322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; } &&
16327 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016328 { (case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16331esac
16332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016334 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016336 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000016337 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016338else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016339 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016340sed 's/^/| /' conftest.$ac_ext >&5
16341
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016342 ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016343fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016344
Jeremy White0ebeb532006-06-20 13:18:41 +020016345rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016346 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016347CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016348fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016349{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
16350echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000016351 if test "$ac_cv_c_dll_gnuelf" = "yes"
16352 then
Jeremy White0ebeb532006-06-20 13:18:41 +020016353 LDSHARED="\$(CC) -shared"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000016354 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Jeremy White0ebeb532006-06-20 13:18:41 +020016355 { echo "$as_me:$LINENO: checking whether the linker accepts soname" >&5
16356echo $ECHO_N "checking whether the linker accepts soname... $ECHO_C" >&6; }
16357if test "${ac_cv_c_sonames+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16359else
16360 ac_wine_try_cflags_saved=$CFLAGS
16361CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
16362cat >conftest.$ac_ext <<_ACEOF
16363/* confdefs.h. */
16364_ACEOF
16365cat confdefs.h >>conftest.$ac_ext
16366cat >>conftest.$ac_ext <<_ACEOF
16367/* end confdefs.h. */
16368
16369int
16370main ()
16371{
16372
16373 ;
16374 return 0;
16375}
16376_ACEOF
16377rm -f conftest.$ac_objext conftest$ac_exeext
16378if { (ac_try="$ac_link"
16379case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16382esac
16383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16384 (eval "$ac_link") 2>conftest.er1
16385 ac_status=$?
16386 grep -v '^ *+' conftest.er1 >conftest.err
16387 rm -f conftest.er1
16388 cat conftest.err >&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); } &&
16391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16392 { (case "(($ac_try" in
16393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394 *) ac_try_echo=$ac_try;;
16395esac
16396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397 (eval "$ac_try") 2>&5
16398 ac_status=$?
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); }; } &&
16401 { ac_try='test -s conftest$ac_exeext'
16402 { (case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16405esac
16406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_try") 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16411 ac_cv_c_sonames="yes"
16412else
16413 echo "$as_me: failed program was:" >&5
16414sed 's/^/| /' conftest.$ac_ext >&5
16415
16416 ac_cv_c_sonames="no"
16417fi
16418
16419rm -f core conftest.err conftest.$ac_objext \
16420 conftest$ac_exeext conftest.$ac_ext
16421CFLAGS=$ac_wine_try_cflags_saved
16422fi
16423{ echo "$as_me:$LINENO: result: $ac_cv_c_sonames" >&5
16424echo "${ECHO_T}$ac_cv_c_sonames" >&6; }
16425 if test "$ac_cv_c_sonames" = "yes"
16426 then
16427 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
16428 else
16429 { echo "$as_me:$LINENO: checking check to see if -h soname is an alternate" >&5
16430echo $ECHO_N "checking check to see if -h soname is an alternate... $ECHO_C" >&6; }
16431if test "${ac_cv_c_h_sonames+set}" = set; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16433else
16434 ac_wine_try_cflags_saved=$CFLAGS
16435CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
16436cat >conftest.$ac_ext <<_ACEOF
16437/* confdefs.h. */
16438_ACEOF
16439cat confdefs.h >>conftest.$ac_ext
16440cat >>conftest.$ac_ext <<_ACEOF
16441/* end confdefs.h. */
16442
16443int
16444main ()
16445{
16446
16447 ;
16448 return 0;
16449}
16450_ACEOF
16451rm -f conftest.$ac_objext conftest$ac_exeext
16452if { (ac_try="$ac_link"
16453case "(($ac_try" in
16454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16455 *) ac_try_echo=$ac_try;;
16456esac
16457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16458 (eval "$ac_link") 2>conftest.er1
16459 ac_status=$?
16460 grep -v '^ *+' conftest.er1 >conftest.err
16461 rm -f conftest.er1
16462 cat conftest.err >&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); } &&
16465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16466 { (case "(($ac_try" in
16467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468 *) ac_try_echo=$ac_try;;
16469esac
16470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471 (eval "$ac_try") 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; } &&
16475 { ac_try='test -s conftest$ac_exeext'
16476 { (case "(($ac_try" in
16477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478 *) ac_try_echo=$ac_try;;
16479esac
16480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16481 (eval "$ac_try") 2>&5
16482 ac_status=$?
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; }; then
16485 ac_cv_c_h_sonames="yes"
16486else
16487 echo "$as_me: failed program was:" >&5
16488sed 's/^/| /' conftest.$ac_ext >&5
16489
16490 ac_cv_c_h_sonames="no"
16491fi
16492
16493rm -f core conftest.err conftest.$ac_objext \
16494 conftest$ac_exeext conftest.$ac_ext
16495CFLAGS=$ac_wine_try_cflags_saved
16496fi
16497{ echo "$as_me:$LINENO: result: $ac_cv_c_h_sonames" >&5
16498echo "${ECHO_T}$ac_cv_c_h_sonames" >&6; }
16499 if test "$ac_cv_c_h_sonames" = "yes"
16500 then
16501 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
16502 fi
16503 fi
16504
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016505 { echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
16506echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6; }
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016507if test "${ac_cv_c_dll_zdefs+set}" = set; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16509else
16510 ac_wine_try_cflags_saved=$CFLAGS
16511CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
16512cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016513/* confdefs.h. */
16514_ACEOF
16515cat confdefs.h >>conftest.$ac_ext
16516cat >>conftest.$ac_ext <<_ACEOF
16517/* end confdefs.h. */
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016518
16519int
16520main ()
16521{
16522
16523 ;
16524 return 0;
16525}
16526_ACEOF
16527rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016528if { (ac_try="$ac_link"
16529case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16532esac
16533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016535 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016536 grep -v '^ *+' conftest.er1 >conftest.err
16537 rm -f conftest.er1
16538 cat conftest.err >&5
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16542 { (case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16545esac
16546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; } &&
16551 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016552 { (case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16555esac
16556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_try") 2>&5
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016558 ac_status=$?
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; }; then
16561 ac_cv_c_dll_zdefs="yes"
16562else
16563 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016564sed 's/^/| /' conftest.$ac_ext >&5
16565
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016566 ac_cv_c_dll_zdefs="no"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016567fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016568
Jeremy White0ebeb532006-06-20 13:18:41 +020016569rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016570 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016571CFLAGS=$ac_wine_try_cflags_saved
16572fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016573{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
16574echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6; }
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016575 if test "$ac_cv_c_dll_zdefs" = "yes"
16576 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000016577 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016578 fi
Alexandre Julliard4d52d372003-03-24 19:33:20 +000016579
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016580 { echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
16581echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6; }
Alexandre Julliard36048242004-01-08 03:36:53 +000016582if test "${ac_cv_c_dll_init_fini+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16584else
16585 ac_wine_try_cflags_saved=$CFLAGS
16586CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
16587cat >conftest.$ac_ext <<_ACEOF
16588/* confdefs.h. */
16589_ACEOF
16590cat confdefs.h >>conftest.$ac_ext
16591cat >>conftest.$ac_ext <<_ACEOF
16592/* end confdefs.h. */
16593
16594int
16595main ()
16596{
16597
16598 ;
16599 return 0;
16600}
16601_ACEOF
16602rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016603if { (ac_try="$ac_link"
16604case "(($ac_try" in
16605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606 *) ac_try_echo=$ac_try;;
16607esac
16608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard36048242004-01-08 03:36:53 +000016610 ac_status=$?
16611 grep -v '^ *+' conftest.er1 >conftest.err
16612 rm -f conftest.er1
16613 cat conftest.err >&5
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16617 { (case "(($ac_try" in
16618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16619 *) ac_try_echo=$ac_try;;
16620esac
16621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16622 (eval "$ac_try") 2>&5
Alexandre Julliard36048242004-01-08 03:36:53 +000016623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; } &&
16626 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016627 { (case "(($ac_try" in
16628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16629 *) ac_try_echo=$ac_try;;
16630esac
16631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16632 (eval "$ac_try") 2>&5
Alexandre Julliard36048242004-01-08 03:36:53 +000016633 ac_status=$?
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; }; then
16636 ac_cv_c_dll_init_fini="yes"
16637else
16638 echo "$as_me: failed program was:" >&5
16639sed 's/^/| /' conftest.$ac_ext >&5
16640
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016641 ac_cv_c_dll_init_fini="no"
Alexandre Julliard36048242004-01-08 03:36:53 +000016642fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016643
Jeremy White0ebeb532006-06-20 13:18:41 +020016644rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard36048242004-01-08 03:36:53 +000016645 conftest$ac_exeext conftest.$ac_ext
16646CFLAGS=$ac_wine_try_cflags_saved
16647fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016648{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
16649echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6; }
Alexandre Julliard36048242004-01-08 03:36:53 +000016650 if test "$ac_cv_c_dll_init_fini" = "yes"
16651 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000016652 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard36048242004-01-08 03:36:53 +000016653 fi
16654
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016655 { echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
16656echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6; }
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016657if test "${ac_cv_c_ld_version_scripts+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16659else
16660 echo '{ global: *; };' >conftest.map
16661 ac_wine_try_cflags_saved=$CFLAGS
16662CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
16663cat >conftest.$ac_ext <<_ACEOF
16664/* confdefs.h. */
16665_ACEOF
16666cat confdefs.h >>conftest.$ac_ext
16667cat >>conftest.$ac_ext <<_ACEOF
16668/* end confdefs.h. */
16669
16670int
16671main ()
16672{
16673
16674 ;
16675 return 0;
16676}
16677_ACEOF
16678rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016679if { (ac_try="$ac_link"
16680case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16683esac
16684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016686 ac_status=$?
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16693 { (case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696esac
16697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_try") 2>&5
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016703 { (case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16706esac
16707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_try") 2>&5
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16712 ac_cv_c_ld_version_scripts="yes"
16713else
16714 echo "$as_me: failed program was:" >&5
16715sed 's/^/| /' conftest.$ac_ext >&5
16716
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016717 ac_cv_c_ld_version_scripts="no"
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016718fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016719
Jeremy White0ebeb532006-06-20 13:18:41 +020016720rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016721 conftest$ac_exeext conftest.$ac_ext
16722CFLAGS=$ac_wine_try_cflags_saved
16723 rm -f conftest.map
16724fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016725{ echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
16726echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6; }
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016727 if test "$ac_cv_c_ld_version_scripts" = "yes"
16728 then
16729 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
16730 fi
16731
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016732 { echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
16733echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6; }
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016734if test "${ac_cv_c_export_dynamic+set}" = set; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16736else
16737 ac_wine_try_cflags_saved=$CFLAGS
16738CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
16739cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016740/* confdefs.h. */
16741_ACEOF
16742cat confdefs.h >>conftest.$ac_ext
16743cat >>conftest.$ac_ext <<_ACEOF
16744/* end confdefs.h. */
16745
16746int
16747main ()
16748{
16749
16750 ;
16751 return 0;
16752}
16753_ACEOF
16754rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016755if { (ac_try="$ac_link"
16756case "(($ac_try" in
16757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16758 *) ac_try_echo=$ac_try;;
16759esac
16760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16761 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016762 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016763 grep -v '^ *+' conftest.er1 >conftest.err
16764 rm -f conftest.er1
16765 cat conftest.err >&5
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16769 { (case "(($ac_try" in
16770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771 *) ac_try_echo=$ac_try;;
16772esac
16773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016775 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; } &&
16778 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016779 { (case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16782esac
16783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_try") 2>&5
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016785 ac_status=$?
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); }; }; then
16788 ac_cv_c_export_dynamic="yes"
16789else
16790 echo "$as_me: failed program was:" >&5
16791sed 's/^/| /' conftest.$ac_ext >&5
16792
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016793 ac_cv_c_export_dynamic="no"
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016794fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016795
Jeremy White0ebeb532006-06-20 13:18:41 +020016796rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016797 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016798CFLAGS=$ac_wine_try_cflags_saved
16799fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016800{ echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
16801echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6; }
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016802 if test "$ac_cv_c_export_dynamic" = "yes"
16803 then
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016804 LDEXECFLAGS="-Wl,--export-dynamic"
16805
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016806 fi
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016807
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016808 { echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5
16809echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6; }
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016810if test "${ac_cv_ld_rpath+set}" = set; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16812else
16813 ac_wine_try_cflags_saved=$CFLAGS
16814CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
16815cat >conftest.$ac_ext <<_ACEOF
16816/* confdefs.h. */
16817_ACEOF
16818cat confdefs.h >>conftest.$ac_ext
16819cat >>conftest.$ac_ext <<_ACEOF
16820/* end confdefs.h. */
16821
16822int
16823main ()
16824{
16825
16826 ;
16827 return 0;
16828}
16829_ACEOF
16830rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016831if { (ac_try="$ac_link"
16832case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16835esac
16836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016838 ac_status=$?
16839 grep -v '^ *+' conftest.er1 >conftest.err
16840 rm -f conftest.er1
16841 cat conftest.err >&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16845 { (case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16848esac
16849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_try") 2>&5
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016851 ac_status=$?
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); }; } &&
16854 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016855 { (case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16858esac
16859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_try") 2>&5
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_cv_ld_rpath="yes"
16865else
16866 echo "$as_me: failed program was:" >&5
16867sed 's/^/| /' conftest.$ac_ext >&5
16868
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016869 ac_cv_ld_rpath="no"
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016870fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016871
Jeremy White0ebeb532006-06-20 13:18:41 +020016872rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016873 conftest$ac_exeext conftest.$ac_ext
16874CFLAGS=$ac_wine_try_cflags_saved
16875fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016876{ echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5
16877echo "${ECHO_T}$ac_cv_ld_rpath" >&6; }
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016878 if test "$ac_cv_ld_rpath" = "yes"
16879 then
16880 LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
16881
Alexandre Julliard1fd32cf2006-03-20 22:08:26 +010016882 LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"
16883
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016884 fi
16885
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016886 case $host_cpu in
Ge van Geldorp2adeefe2006-06-30 21:37:34 +020016887 *i[3456789]86* | x86_64)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016888 { echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
16889echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6; }
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016890if test "${ac_cv_ld_reloc_exec+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16892else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016893 ac_wine_try_cflags_saved=$CFLAGS
Alexandre Julliard5729f582005-06-17 10:22:46 +000016894CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016895cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016896/* confdefs.h. */
16897_ACEOF
16898cat confdefs.h >>conftest.$ac_ext
16899cat >>conftest.$ac_ext <<_ACEOF
16900/* end confdefs.h. */
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016901
16902int
16903main ()
16904{
16905
16906 ;
16907 return 0;
16908}
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016909_ACEOF
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016910rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016911if { (ac_try="$ac_link"
16912case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915esac
16916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016918 ac_status=$?
16919 grep -v '^ *+' conftest.er1 >conftest.err
16920 rm -f conftest.er1
16921 cat conftest.err >&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16925 { (case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16928esac
16929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_try") 2>&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016933 (exit $ac_status); }; } &&
16934 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016935 { (case "(($ac_try" in
16936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16937 *) ac_try_echo=$ac_try;;
16938esac
16939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16940 (eval "$ac_try") 2>&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016941 ac_status=$?
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; }; then
16944 ac_cv_ld_reloc_exec="yes"
16945else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016946 echo "$as_me: failed program was:" >&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016947sed 's/^/| /' conftest.$ac_ext >&5
16948
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016949 ac_cv_ld_reloc_exec="no"
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016950fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016951
Jeremy White0ebeb532006-06-20 13:18:41 +020016952rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016953 conftest$ac_exeext conftest.$ac_ext
16954CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016955fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016956{ echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
16957echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6; }
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016958 if test "$ac_cv_ld_reloc_exec" = "yes"
16959 then
Alexandre Julliard5729f582005-06-17 10:22:46 +000016960 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016961 fi
16962 ;;
16963 esac
16964
Alexandre Julliard466ae142002-05-07 18:33:47 +000016965 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016966 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
16967echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016968if test "${ac_cv_c_dll_unixware+set}" = set; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000016970else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016971 ac_wine_try_cflags_saved=$CFLAGS
16972CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
16973cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000016974void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016975_ACEOF
16976rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016977if { (ac_try="$ac_link"
16978case "(($ac_try" in
16979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16980 *) ac_try_echo=$ac_try;;
16981esac
16982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16983 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016984 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016985 grep -v '^ *+' conftest.er1 >conftest.err
16986 rm -f conftest.er1
16987 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016989 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16991 { (case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994esac
16995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; } &&
17000 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017001 { (case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17004esac
17005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017007 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017009 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000017010 ac_cv_c_dll_unixware="yes"
17011else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017012 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017013sed 's/^/| /' conftest.$ac_ext >&5
17014
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017015 ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000017016fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017017
Jeremy White0ebeb532006-06-20 13:18:41 +020017018rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017019 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017020CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017021fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017022{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
17023echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000017024 if test "$ac_cv_c_dll_unixware" = "yes"
17025 then
17026 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017027 LDDLLFLAGS="-Wl,-G,-B,symbolic"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017028
17029 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017030 { echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
17031echo $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 +000017032if test "${ac_cv_c_dll_macho+set}" = set; then
17033 echo $ECHO_N "(cached) $ECHO_C" >&6
17034else
17035 ac_wine_try_cflags_saved=$CFLAGS
17036CFLAGS="$CFLAGS -bundle"
17037cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000017038void myfunc() {}
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017039_ACEOF
17040rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017041if { (ac_try="$ac_link"
17042case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17045esac
17046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_link") 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017048 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17055 { (case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17058esac
17059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017065 { (case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068esac
17069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_try") 2>&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; }; then
17074 ac_cv_c_dll_macho="yes"
17075else
17076 echo "$as_me: failed program was:" >&5
17077sed 's/^/| /' conftest.$ac_ext >&5
17078
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017079 ac_cv_c_dll_macho="no"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017080fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017081
Jeremy White0ebeb532006-06-20 13:18:41 +020017082rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017083 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017084CFLAGS=$ac_wine_try_cflags_saved
17085fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017086{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
17087echo "${ECHO_T}$ac_cv_c_dll_macho" >&6; }
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017088 if test "$ac_cv_c_dll_macho" = "yes"
17089 then
17090 LIBEXT="dylib"
Alexandre Julliard495bf512005-09-15 09:48:18 +000017091 LDDLLFLAGS="-bundle"
Alexandre Julliard7ed7e8f2006-05-15 15:14:45 +020017092 LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME) \$(SOVERSION:%=-compatibility_version %)"
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017093 STRIP="$STRIP -u -r"
Alexandre Julliard495bf512005-09-15 09:48:18 +000017094 COREFOUNDATIONLIB="-framework CoreFoundation"
Emmanuel Maillard46718f82004-07-22 19:48:41 +000017095
Alexandre Julliard495bf512005-09-15 09:48:18 +000017096 IOKITLIB="-framework IOKit -framework CoreFoundation"
Emmanuel Maillard46718f82004-07-22 19:48:41 +000017097
Alexandre Julliarde325efb2006-07-24 15:25:39 +020017098 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
Emmanuel Maillard2300ce62004-08-19 01:20:45 +000017099
Emmanuel Maillard144a5352006-05-28 22:46:23 +020017100 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
17101 then
17102 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
17103
17104 fi
Emmanuel Maillardaaae6602006-02-15 13:52:02 +010017105 case $host_cpu in
Alexandre Julliard495bf512005-09-15 09:48:18 +000017106 *powerpc*)
17107 CFLAGS="$CFLAGS -ffixed-r13"
17108 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
Alexandre Julliard495bf512005-09-15 09:48:18 +000017109 ;;
17110 esac
17111
Warren Baird421e8b92004-09-22 19:17:55 +000017112 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017113 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
17114echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
Warren Baird421e8b92004-09-22 19:17:55 +000017115if test "${ac_cv_c_dll_hpux+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
17117else
17118 ac_wine_try_cflags_saved=$CFLAGS
17119CFLAGS="$CFLAGS -shared"
17120cat >conftest.$ac_ext <<_ACEOF
17121void myfunc() {}
17122_ACEOF
17123rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017124if { (ac_try="$ac_link"
17125case "(($ac_try" in
17126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127 *) ac_try_echo=$ac_try;;
17128esac
17129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130 (eval "$ac_link") 2>conftest.er1
Warren Baird421e8b92004-09-22 19:17:55 +000017131 ac_status=$?
17132 grep -v '^ *+' conftest.er1 >conftest.err
17133 rm -f conftest.er1
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141esac
17142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
Warren Baird421e8b92004-09-22 19:17:55 +000017144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017148 { (case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17151esac
17152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_try") 2>&5
Warren Baird421e8b92004-09-22 19:17:55 +000017154 ac_status=$?
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 ac_cv_c_dll_hpux="yes"
17158else
17159 echo "$as_me: failed program was:" >&5
17160sed 's/^/| /' conftest.$ac_ext >&5
17161
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017162 ac_cv_c_dll_hpux="no"
Warren Baird421e8b92004-09-22 19:17:55 +000017163fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017164
Jeremy White0ebeb532006-06-20 13:18:41 +020017165rm -f core conftest.err conftest.$ac_objext \
Warren Baird421e8b92004-09-22 19:17:55 +000017166 conftest$ac_exeext conftest.$ac_ext
17167CFLAGS=$ac_wine_try_cflags_saved
17168fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017169{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
17170echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
Warren Baird421e8b92004-09-22 19:17:55 +000017171 if test "$ac_cv_c_dll_hpux" = "yes"
17172 then
17173 LIBEXT="sl"
Warren Baird1023fe32004-10-19 21:37:09 +000017174 DLLEXT=".sl"
17175 LDDLLFLAGS="-shared -fPIC"
Warren Baird421e8b92004-09-22 19:17:55 +000017176 LDSHARED="\$(CC) -shared"
17177 fi
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017178 fi
Alexandre Julliard466ae142002-05-07 18:33:47 +000017179 fi
17180 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000017181 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017182
17183 CROSSTEST=""
17184
17185 if test "$cross_compiling" = "no"
17186 then
Kevin Koltzaud3444562004-04-15 00:01:05 +000017187 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017188do
17189 # Extract the first word of "$ac_prog", so it can be a program name with args.
17190set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017193if test "${ac_cv_prog_CROSSCC+set}" = set; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17195else
17196 if test -n "$CROSSCC"; then
17197 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
17198else
17199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17200for as_dir in $PATH
17201do
17202 IFS=$as_save_IFS
17203 test -z "$as_dir" && as_dir=.
17204 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017205 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 +000017206 ac_cv_prog_CROSSCC="$ac_prog"
17207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17208 break 2
17209 fi
17210done
17211done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017212IFS=$as_save_IFS
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017213
17214fi
17215fi
17216CROSSCC=$ac_cv_prog_CROSSCC
17217if test -n "$CROSSCC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017218 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
17219echo "${ECHO_T}$CROSSCC" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017220else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017221 { echo "$as_me:$LINENO: result: no" >&5
17222echo "${ECHO_T}no" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017223fi
17224
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017225
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017226 test -n "$CROSSCC" && break
17227done
17228test -n "$CROSSCC" || CROSSCC="false"
17229
Kevin Koltzaud3444562004-04-15 00:01:05 +000017230 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017231do
17232 # Extract the first word of "$ac_prog", so it can be a program name with args.
17233set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017236if test "${ac_cv_prog_DLLTOOL+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17238else
17239 if test -n "$DLLTOOL"; then
17240 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17241else
17242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17243for as_dir in $PATH
17244do
17245 IFS=$as_save_IFS
17246 test -z "$as_dir" && as_dir=.
17247 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017248 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 +000017249 ac_cv_prog_DLLTOOL="$ac_prog"
17250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17251 break 2
17252 fi
17253done
17254done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017255IFS=$as_save_IFS
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017256
17257fi
17258fi
17259DLLTOOL=$ac_cv_prog_DLLTOOL
17260if test -n "$DLLTOOL"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017261 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
17262echo "${ECHO_T}$DLLTOOL" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017263else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017264 { echo "$as_me:$LINENO: result: no" >&5
17265echo "${ECHO_T}no" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017266fi
17267
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017268
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017269 test -n "$DLLTOOL" && break
17270done
17271test -n "$DLLTOOL" || DLLTOOL="false"
17272
Kevin Koltzaud3444562004-04-15 00:01:05 +000017273 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017274do
17275 # Extract the first word of "$ac_prog", so it can be a program name with args.
17276set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017277{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017279if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
17280 echo $ECHO_N "(cached) $ECHO_C" >&6
17281else
17282 if test -n "$CROSSWINDRES"; then
17283 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
17284else
17285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17286for as_dir in $PATH
17287do
17288 IFS=$as_save_IFS
17289 test -z "$as_dir" && as_dir=.
17290 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017291 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 +000017292 ac_cv_prog_CROSSWINDRES="$ac_prog"
17293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17294 break 2
17295 fi
17296done
17297done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017298IFS=$as_save_IFS
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017299
17300fi
17301fi
17302CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
17303if test -n "$CROSSWINDRES"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017304 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
17305echo "${ECHO_T}$CROSSWINDRES" >&6; }
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017306else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017307 { echo "$as_me:$LINENO: result: no" >&5
17308echo "${ECHO_T}no" >&6; }
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017309fi
17310
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017311
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017312 test -n "$CROSSWINDRES" && break
17313done
17314test -n "$CROSSWINDRES" || CROSSWINDRES="false"
17315
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017316 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
17317 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000017318 ;;
17319esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000017320
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000017321if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017322 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017323It is currently not possible to build Wine without shared library
17324(.so) support to allow transparent switch between .so and .dll files.
17325If you are using Linux, you will need a newer binutils.
17326" >&5
17327echo "$as_me: error: could not find a way to build shared libraries.
17328It is currently not possible to build Wine without shared library
17329(.so) support to allow transparent switch between .so and .dll files.
17330If you are using Linux, you will need a newer binutils.
17331" >&2;}
17332 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000017333fi
17334
Alexandre Julliardfc01b722002-05-12 03:16:39 +000017335case $build_os in
17336 cygwin*|mingw32*)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020017337 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000017338 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017339 darwin*|macosx*)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020017340 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017341 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000017342 *)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020017343 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000017344 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000017345esac
17346
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000017347case $host_os in
17348 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000017349 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000017350
17351 SOCKETLIBS="-lws2_32"
17352
17353 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000017354esac
17355
Alexandre Julliard40bbcfb2006-06-20 13:44:19 +020017356MAIN_BINARY="wine-pthread"
17357 case $host_cpu in
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010017358 *i[3456789]86*)
17359 case $host_os in
17360 linux* | k*bsd*-gnu)
17361 MAIN_BINARY="wine-glibc"
Alexandre Julliard546839f2003-11-11 00:48:21 +000017362
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010017363 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
17364 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010017365 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000017366 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000017367esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017368
17369
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017370if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017371then
17372 # Extract the first word of "ldd", so it can be a program name with args.
17373set dummy ldd; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017376if test "${ac_cv_path_LDD+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17378else
17379 case $LDD in
17380 [\\/]* | ?:[\\/]*)
17381 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17382 ;;
17383 *)
17384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017385as_dummy="/sbin:/usr/sbin:$PATH"
17386for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017387do
17388 IFS=$as_save_IFS
17389 test -z "$as_dir" && as_dir=.
17390 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017391 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 +000017392 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17394 break 2
17395 fi
17396done
17397done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017398IFS=$as_save_IFS
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017399
17400 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
17401 ;;
17402esac
17403fi
17404LDD=$ac_cv_path_LDD
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017405if test -n "$LDD"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017406 { echo "$as_me:$LINENO: result: $LDD" >&5
17407echo "${ECHO_T}$LDD" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017408else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017409 { echo "$as_me:$LINENO: result: no" >&5
17410echo "${ECHO_T}no" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017411fi
17412
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017413
17414{ echo "$as_me:$LINENO: checking for -lX11 soname" >&5
17415echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017416if test "${ac_cv_lib_soname_X11+set}" = set; then
17417 echo $ECHO_N "(cached) $ECHO_C" >&6
17418else
17419 ac_get_soname_save_LIBS=$LIBS
17420LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
17421 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017422/* confdefs.h. */
17423_ACEOF
17424cat confdefs.h >>conftest.$ac_ext
17425cat >>conftest.$ac_ext <<_ACEOF
17426/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017427
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017428/* Override any GCC internal prototype to avoid an error.
17429 Use char because int might match the return type of a GCC
17430 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017431#ifdef __cplusplus
17432extern "C"
17433#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017434char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017435int
17436main ()
17437{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017438return XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017439 ;
17440 return 0;
17441}
17442_ACEOF
17443rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017444if { (ac_try="$ac_link"
17445case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17448esac
17449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017451 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017452 grep -v '^ *+' conftest.er1 >conftest.err
17453 rm -f conftest.er1
17454 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17458 { (case "(($ac_try" in
17459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17460 *) ac_try_echo=$ac_try;;
17461esac
17462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17463 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; } &&
17467 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017468 { (case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471esac
17472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_try") 2>&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017477 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 +000017478 if test "x$ac_cv_lib_soname_X11" = "x"
17479 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017480 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017481 fi
17482else
17483 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017484sed 's/^/| /' conftest.$ac_ext >&5
17485
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017486 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017487fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017488
Jeremy White0ebeb532006-06-20 13:18:41 +020017489rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017490 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017491 LIBS=$ac_get_soname_save_LIBS
17492fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017493{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
17494echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017495if test "${ac_cv_lib_soname_X11+set}" = set; then
17496
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017497cat >>confdefs.h <<_ACEOF
17498#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
17499_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017500
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017501fi
17502
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017503 { echo "$as_me:$LINENO: checking for -lXext soname" >&5
17504echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017505if test "${ac_cv_lib_soname_Xext+set}" = set; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17507else
17508 ac_get_soname_save_LIBS=$LIBS
17509LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
17510 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017511/* confdefs.h. */
17512_ACEOF
17513cat confdefs.h >>conftest.$ac_ext
17514cat >>conftest.$ac_ext <<_ACEOF
17515/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017516
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017517/* Override any GCC internal prototype to avoid an error.
17518 Use char because int might match the return type of a GCC
17519 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017520#ifdef __cplusplus
17521extern "C"
17522#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017523char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017524int
17525main ()
17526{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017527return XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017528 ;
17529 return 0;
17530}
17531_ACEOF
17532rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017533if { (ac_try="$ac_link"
17534case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17537esac
17538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017540 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017541 grep -v '^ *+' conftest.er1 >conftest.err
17542 rm -f conftest.er1
17543 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550esac
17551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017553 ac_status=$?
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; } &&
17556 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017557 { (case "(($ac_try" in
17558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17559 *) ac_try_echo=$ac_try;;
17560esac
17561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17562 (eval "$ac_try") 2>&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017566 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 +000017567 if test "x$ac_cv_lib_soname_Xext" = "x"
17568 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017569 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017570 fi
17571else
17572 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017573sed 's/^/| /' conftest.$ac_ext >&5
17574
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017575 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017576fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017577
Jeremy White0ebeb532006-06-20 13:18:41 +020017578rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017579 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017580 LIBS=$ac_get_soname_save_LIBS
17581fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017582{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
17583echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017584if test "${ac_cv_lib_soname_Xext+set}" = set; then
17585
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017586cat >>confdefs.h <<_ACEOF
17587#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
17588_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017589
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017590fi
17591
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017592 { echo "$as_me:$LINENO: checking for -lXi soname" >&5
17593echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017594if test "${ac_cv_lib_soname_Xi+set}" = set; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17596else
17597 ac_get_soname_save_LIBS=$LIBS
17598LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17599 cat >conftest.$ac_ext <<_ACEOF
17600/* confdefs.h. */
17601_ACEOF
17602cat confdefs.h >>conftest.$ac_ext
17603cat >>conftest.$ac_ext <<_ACEOF
17604/* end confdefs.h. */
17605
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017606/* Override any GCC internal prototype to avoid an error.
17607 Use char because int might match the return type of a GCC
17608 builtin and then its argument prototype would still apply. */
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017609#ifdef __cplusplus
17610extern "C"
17611#endif
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017612char XOpenDevice ();
17613int
17614main ()
17615{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017616return XOpenDevice ();
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017617 ;
17618 return 0;
17619}
17620_ACEOF
17621rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017622if { (ac_try="$ac_link"
17623case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17626esac
17627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_link") 2>conftest.er1
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017629 ac_status=$?
17630 grep -v '^ *+' conftest.er1 >conftest.err
17631 rm -f conftest.er1
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17636 { (case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17639esac
17640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_try") 2>&5
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649esac
17650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017655 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 +000017656 if test "x$ac_cv_lib_soname_Xi" = "x"
17657 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017658 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017659 fi
17660else
17661 echo "$as_me: failed program was:" >&5
17662sed 's/^/| /' conftest.$ac_ext >&5
17663
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017664 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017665fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017666
Jeremy White0ebeb532006-06-20 13:18:41 +020017667rm -f core conftest.err conftest.$ac_objext \
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017668 conftest$ac_exeext conftest.$ac_ext
17669 LIBS=$ac_get_soname_save_LIBS
17670fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017671{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
17672echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017673if test "${ac_cv_lib_soname_Xi+set}" = set; then
17674
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017675cat >>confdefs.h <<_ACEOF
17676#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
17677_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017678
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017679fi
17680
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017681 { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
17682echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017683if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17685else
17686 ac_get_soname_save_LIBS=$LIBS
17687LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17688 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017689/* confdefs.h. */
17690_ACEOF
17691cat confdefs.h >>conftest.$ac_ext
17692cat >>conftest.$ac_ext <<_ACEOF
17693/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017694
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017695/* Override any GCC internal prototype to avoid an error.
17696 Use char because int might match the return type of a GCC
17697 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017698#ifdef __cplusplus
17699extern "C"
17700#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017701char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017702int
17703main ()
17704{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017705return XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017706 ;
17707 return 0;
17708}
17709_ACEOF
17710rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017711if { (ac_try="$ac_link"
17712case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17715esac
17716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017718 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017719 grep -v '^ *+' conftest.er1 >conftest.err
17720 rm -f conftest.er1
17721 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17725 { (case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17728esac
17729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017735 { (case "(($ac_try" in
17736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737 *) ac_try_echo=$ac_try;;
17738esac
17739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17740 (eval "$ac_try") 2>&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017744 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 +000017745 if test "x$ac_cv_lib_soname_Xrender" = "x"
17746 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017747 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017748 fi
17749else
17750 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017751sed 's/^/| /' conftest.$ac_ext >&5
17752
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017753 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017754fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017755
Jeremy White0ebeb532006-06-20 13:18:41 +020017756rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017757 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017758 LIBS=$ac_get_soname_save_LIBS
17759fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017760{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
17761echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017762if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17763
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017764cat >>confdefs.h <<_ACEOF
17765#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
17766_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017767
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017768fi
17769
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017770 { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
17771echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
Mike McCormackc7c9f932004-04-07 03:57:35 +000017772if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17774else
17775 ac_get_soname_save_LIBS=$LIBS
17776LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17777 cat >conftest.$ac_ext <<_ACEOF
17778/* confdefs.h. */
17779_ACEOF
17780cat confdefs.h >>conftest.$ac_ext
17781cat >>conftest.$ac_ext <<_ACEOF
17782/* end confdefs.h. */
17783
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017784/* Override any GCC internal prototype to avoid an error.
17785 Use char because int might match the return type of a GCC
17786 builtin and then its argument prototype would still apply. */
Mike McCormackc7c9f932004-04-07 03:57:35 +000017787#ifdef __cplusplus
17788extern "C"
17789#endif
Mike McCormackc7c9f932004-04-07 03:57:35 +000017790char XRRQueryExtension ();
17791int
17792main ()
17793{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017794return XRRQueryExtension ();
Mike McCormackc7c9f932004-04-07 03:57:35 +000017795 ;
17796 return 0;
17797}
17798_ACEOF
17799rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017800if { (ac_try="$ac_link"
17801case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17804esac
17805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806 (eval "$ac_link") 2>conftest.er1
Mike McCormackc7c9f932004-04-07 03:57:35 +000017807 ac_status=$?
17808 grep -v '^ *+' conftest.er1 >conftest.err
17809 rm -f conftest.er1
17810 cat conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17814 { (case "(($ac_try" in
17815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17816 *) ac_try_echo=$ac_try;;
17817esac
17818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17819 (eval "$ac_try") 2>&5
Mike McCormackc7c9f932004-04-07 03:57:35 +000017820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; } &&
17823 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017824 { (case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17827esac
17828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_try") 2>&5
Mike McCormackc7c9f932004-04-07 03:57:35 +000017830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017833 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 +000017834 if test "x$ac_cv_lib_soname_Xrandr" = "x"
17835 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017836 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000017837 fi
17838else
17839 echo "$as_me: failed program was:" >&5
17840sed 's/^/| /' conftest.$ac_ext >&5
17841
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017842 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000017843fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017844
Jeremy White0ebeb532006-06-20 13:18:41 +020017845rm -f core conftest.err conftest.$ac_objext \
Mike McCormackc7c9f932004-04-07 03:57:35 +000017846 conftest$ac_exeext conftest.$ac_ext
17847 LIBS=$ac_get_soname_save_LIBS
17848fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017849{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
17850echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017851if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17852
Mike McCormackc7c9f932004-04-07 03:57:35 +000017853cat >>confdefs.h <<_ACEOF
17854#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
17855_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017856
Mike McCormackc7c9f932004-04-07 03:57:35 +000017857fi
17858
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017859 { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
17860echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017861if test "${ac_cv_lib_soname_freetype+set}" = set; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
17863else
17864 ac_get_soname_save_LIBS=$LIBS
17865LIBS="-lfreetype $X_LIBS $LIBS"
17866 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017867/* confdefs.h. */
17868_ACEOF
17869cat confdefs.h >>conftest.$ac_ext
17870cat >>conftest.$ac_ext <<_ACEOF
17871/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017872
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017873/* Override any GCC internal prototype to avoid an error.
17874 Use char because int might match the return type of a GCC
17875 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017876#ifdef __cplusplus
17877extern "C"
17878#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017879char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017880int
17881main ()
17882{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017883return FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017884 ;
17885 return 0;
17886}
17887_ACEOF
17888rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017889if { (ac_try="$ac_link"
17890case "(($ac_try" in
17891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17892 *) ac_try_echo=$ac_try;;
17893esac
17894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17895 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017896 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017897 grep -v '^ *+' conftest.er1 >conftest.err
17898 rm -f conftest.er1
17899 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17903 { (case "(($ac_try" in
17904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17906esac
17907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017913 { (case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17916esac
17917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_try") 2>&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017922 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 +000017923 if test "x$ac_cv_lib_soname_freetype" = "x"
17924 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017925 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017926 fi
17927else
17928 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017929sed 's/^/| /' conftest.$ac_ext >&5
17930
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017931 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017932fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017933
Jeremy White0ebeb532006-06-20 13:18:41 +020017934rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017935 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017936 LIBS=$ac_get_soname_save_LIBS
17937fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017938{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
17939echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017940if test "${ac_cv_lib_soname_freetype+set}" = set; then
17941
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017942cat >>confdefs.h <<_ACEOF
17943#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
17944_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017945
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017946fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000017947
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017948 { echo "$as_me:$LINENO: checking for -lGL soname" >&5
17949echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017950if test "${ac_cv_lib_soname_GL+set}" = set; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17952else
17953 ac_get_soname_save_LIBS=$LIBS
17954LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
17955 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017956/* confdefs.h. */
17957_ACEOF
17958cat confdefs.h >>conftest.$ac_ext
17959cat >>conftest.$ac_ext <<_ACEOF
17960/* end confdefs.h. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017961
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017962/* Override any GCC internal prototype to avoid an error.
17963 Use char because int might match the return type of a GCC
17964 builtin and then its argument prototype would still apply. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017965#ifdef __cplusplus
17966extern "C"
17967#endif
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017968char glXQueryExtension ();
17969int
17970main ()
17971{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017972return glXQueryExtension ();
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017973 ;
17974 return 0;
17975}
17976_ACEOF
17977rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017978if { (ac_try="$ac_link"
17979case "(($ac_try" in
17980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17981 *) ac_try_echo=$ac_try;;
17982esac
17983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17984 (eval "$ac_link") 2>conftest.er1
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017985 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017986 grep -v '^ *+' conftest.er1 >conftest.err
17987 rm -f conftest.er1
17988 cat conftest.err >&5
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17992 { (case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17995esac
17996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; } &&
18001 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18005esac
18006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018011 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 +000018012 if test "x$ac_cv_lib_soname_GL" = "x"
18013 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018014 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018015 fi
18016else
18017 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018018sed 's/^/| /' conftest.$ac_ext >&5
18019
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018020 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018021fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018022
Jeremy White0ebeb532006-06-20 13:18:41 +020018023rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018024 conftest$ac_exeext conftest.$ac_ext
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018025 LIBS=$ac_get_soname_save_LIBS
18026fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018027{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
18028echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018029if test "${ac_cv_lib_soname_GL+set}" = set; then
18030
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018031cat >>confdefs.h <<_ACEOF
18032#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
18033_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018034
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018035fi
18036
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018037 { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
18038echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020018039if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18040 echo $ECHO_N "(cached) $ECHO_C" >&6
18041else
18042 ac_get_soname_save_LIBS=$LIBS
18043LIBS="-ldbus-1 $LIBS"
18044 cat >conftest.$ac_ext <<_ACEOF
18045/* confdefs.h. */
18046_ACEOF
18047cat confdefs.h >>conftest.$ac_ext
18048cat >>conftest.$ac_ext <<_ACEOF
18049/* end confdefs.h. */
18050
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018051/* Override any GCC internal prototype to avoid an error.
18052 Use char because int might match the return type of a GCC
18053 builtin and then its argument prototype would still apply. */
Alexandre Julliard00068982006-04-18 16:47:53 +020018054#ifdef __cplusplus
18055extern "C"
18056#endif
Alexandre Julliard00068982006-04-18 16:47:53 +020018057char dbus_error_init ();
18058int
18059main ()
18060{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018061return dbus_error_init ();
Alexandre Julliard00068982006-04-18 16:47:53 +020018062 ;
18063 return 0;
18064}
18065_ACEOF
18066rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018067if { (ac_try="$ac_link"
18068case "(($ac_try" in
18069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070 *) ac_try_echo=$ac_try;;
18071esac
18072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18073 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020018074 ac_status=$?
18075 grep -v '^ *+' conftest.er1 >conftest.err
18076 rm -f conftest.er1
18077 cat conftest.err >&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18081 { (case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18084esac
18085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020018087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; } &&
18090 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018091 { (case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18094esac
18095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020018097 ac_status=$?
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 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'`
18101 if test "x$ac_cv_lib_soname_dbus_1" = "x"
18102 then
18103 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
18104 fi
18105else
18106 echo "$as_me: failed program was:" >&5
18107sed 's/^/| /' conftest.$ac_ext >&5
18108
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018109 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
Alexandre Julliard00068982006-04-18 16:47:53 +020018110fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018111
Jeremy White0ebeb532006-06-20 13:18:41 +020018112rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard00068982006-04-18 16:47:53 +020018113 conftest$ac_exeext conftest.$ac_ext
18114 LIBS=$ac_get_soname_save_LIBS
18115fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018116{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
18117echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020018118if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18119
18120cat >>confdefs.h <<_ACEOF
18121#define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
18122_ACEOF
18123
18124fi
18125
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018126 { echo "$as_me:$LINENO: checking for -lhal soname" >&5
18127echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020018128if test "${ac_cv_lib_soname_hal+set}" = set; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18130else
18131 ac_get_soname_save_LIBS=$LIBS
18132LIBS="-lhal $LIBS"
18133 cat >conftest.$ac_ext <<_ACEOF
18134/* confdefs.h. */
18135_ACEOF
18136cat confdefs.h >>conftest.$ac_ext
18137cat >>conftest.$ac_ext <<_ACEOF
18138/* end confdefs.h. */
18139
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018140/* Override any GCC internal prototype to avoid an error.
18141 Use char because int might match the return type of a GCC
18142 builtin and then its argument prototype would still apply. */
Alexandre Julliard00068982006-04-18 16:47:53 +020018143#ifdef __cplusplus
18144extern "C"
18145#endif
Alexandre Julliard00068982006-04-18 16:47:53 +020018146char libhal_ctx_new ();
18147int
18148main ()
18149{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018150return libhal_ctx_new ();
Alexandre Julliard00068982006-04-18 16:47:53 +020018151 ;
18152 return 0;
18153}
18154_ACEOF
18155rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018156if { (ac_try="$ac_link"
18157case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18160esac
18161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020018163 ac_status=$?
18164 grep -v '^ *+' conftest.er1 >conftest.err
18165 rm -f conftest.er1
18166 cat conftest.err >&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18170 { (case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18173esac
18174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020018176 ac_status=$?
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); }; } &&
18179 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018180 { (case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18183esac
18184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020018186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; }; then
18189 ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18190 if test "x$ac_cv_lib_soname_hal" = "x"
18191 then
18192 ac_cv_lib_soname_hal="libhal.$LIBEXT"
18193 fi
18194else
18195 echo "$as_me: failed program was:" >&5
18196sed 's/^/| /' conftest.$ac_ext >&5
18197
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018198 ac_cv_lib_soname_hal="libhal.$LIBEXT"
Alexandre Julliard00068982006-04-18 16:47:53 +020018199fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018200
Jeremy White0ebeb532006-06-20 13:18:41 +020018201rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard00068982006-04-18 16:47:53 +020018202 conftest$ac_exeext conftest.$ac_ext
18203 LIBS=$ac_get_soname_save_LIBS
18204fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018205{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
18206echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020018207if test "${ac_cv_lib_soname_hal+set}" = set; then
18208
18209cat >>confdefs.h <<_ACEOF
18210#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
18211_ACEOF
18212
18213fi
18214
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018215 { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
18216echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
Christian Costaeac96b52004-07-30 18:54:32 +000018217if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18218 echo $ECHO_N "(cached) $ECHO_C" >&6
18219else
18220 ac_get_soname_save_LIBS=$LIBS
18221LIBS="-ltxc_dxtn $LIBS"
18222 cat >conftest.$ac_ext <<_ACEOF
18223/* confdefs.h. */
18224_ACEOF
18225cat confdefs.h >>conftest.$ac_ext
18226cat >>conftest.$ac_ext <<_ACEOF
18227/* end confdefs.h. */
18228
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018229/* Override any GCC internal prototype to avoid an error.
18230 Use char because int might match the return type of a GCC
18231 builtin and then its argument prototype would still apply. */
Christian Costaeac96b52004-07-30 18:54:32 +000018232#ifdef __cplusplus
18233extern "C"
18234#endif
Christian Costaeac96b52004-07-30 18:54:32 +000018235char fetch_2d_texel_rgba_dxt1 ();
18236int
18237main ()
18238{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018239return fetch_2d_texel_rgba_dxt1 ();
Christian Costaeac96b52004-07-30 18:54:32 +000018240 ;
18241 return 0;
18242}
18243_ACEOF
18244rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018245if { (ac_try="$ac_link"
18246case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249esac
18250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18251 (eval "$ac_link") 2>conftest.er1
Christian Costaeac96b52004-07-30 18:54:32 +000018252 ac_status=$?
18253 grep -v '^ *+' conftest.er1 >conftest.err
18254 rm -f conftest.er1
18255 cat conftest.err >&5
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18259 { (case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18262esac
18263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_try") 2>&5
Christian Costaeac96b52004-07-30 18:54:32 +000018265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } &&
18268 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018269 { (case "(($ac_try" in
18270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18271 *) ac_try_echo=$ac_try;;
18272esac
18273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18274 (eval "$ac_try") 2>&5
Christian Costaeac96b52004-07-30 18:54:32 +000018275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018278 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 +000018279 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
18280 then
18281 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
18282 fi
18283else
18284 echo "$as_me: failed program was:" >&5
18285sed 's/^/| /' conftest.$ac_ext >&5
18286
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018287 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
Christian Costaeac96b52004-07-30 18:54:32 +000018288fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018289
Jeremy White0ebeb532006-06-20 13:18:41 +020018290rm -f core conftest.err conftest.$ac_objext \
Christian Costaeac96b52004-07-30 18:54:32 +000018291 conftest$ac_exeext conftest.$ac_ext
18292 LIBS=$ac_get_soname_save_LIBS
18293fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018294{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
18295echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018296if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18297
Christian Costaeac96b52004-07-30 18:54:32 +000018298cat >>confdefs.h <<_ACEOF
18299#define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
18300_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018301
Christian Costaeac96b52004-07-30 18:54:32 +000018302fi
18303
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018304 { echo "$as_me:$LINENO: checking for -lcups soname" >&5
18305echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
Marcus Meissnerf061f762002-11-12 02:22:24 +000018306if test "${ac_cv_lib_soname_cups+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18308else
18309 ac_get_soname_save_LIBS=$LIBS
18310LIBS="-lcups $LIBS"
18311 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018312/* confdefs.h. */
18313_ACEOF
18314cat confdefs.h >>conftest.$ac_ext
18315cat >>conftest.$ac_ext <<_ACEOF
18316/* end confdefs.h. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000018317
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018318/* Override any GCC internal prototype to avoid an error.
18319 Use char because int might match the return type of a GCC
18320 builtin and then its argument prototype would still apply. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000018321#ifdef __cplusplus
18322extern "C"
18323#endif
Marcus Meissnerf061f762002-11-12 02:22:24 +000018324char cupsGetDefault ();
18325int
18326main ()
18327{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018328return cupsGetDefault ();
Marcus Meissnerf061f762002-11-12 02:22:24 +000018329 ;
18330 return 0;
18331}
18332_ACEOF
18333rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018334if { (ac_try="$ac_link"
18335case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18338esac
18339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_link") 2>conftest.er1
Marcus Meissnerf061f762002-11-12 02:22:24 +000018341 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018342 grep -v '^ *+' conftest.er1 >conftest.err
18343 rm -f conftest.er1
18344 cat conftest.err >&5
Marcus Meissnerf061f762002-11-12 02:22:24 +000018345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18348 { (case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18351esac
18352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018358 { (case "(($ac_try" in
18359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360 *) ac_try_echo=$ac_try;;
18361esac
18362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18363 (eval "$ac_try") 2>&5
Marcus Meissnerf061f762002-11-12 02:22:24 +000018364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018367 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 +000018368 if test "x$ac_cv_lib_soname_cups" = "x"
18369 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018370 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000018371 fi
18372else
18373 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018374sed 's/^/| /' conftest.$ac_ext >&5
18375
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018376 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000018377fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018378
Jeremy White0ebeb532006-06-20 13:18:41 +020018379rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018380 conftest$ac_exeext conftest.$ac_ext
Marcus Meissnerf061f762002-11-12 02:22:24 +000018381 LIBS=$ac_get_soname_save_LIBS
18382fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018383{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
18384echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018385if test "${ac_cv_lib_soname_cups+set}" = set; then
18386
Marcus Meissnerf061f762002-11-12 02:22:24 +000018387cat >>confdefs.h <<_ACEOF
18388#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
18389_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018390
Marcus Meissnerf061f762002-11-12 02:22:24 +000018391fi
Chris Morgan4691b182002-12-13 02:26:18 +000018392
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018393 { echo "$as_me:$LINENO: checking for -ljack soname" >&5
18394echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
Chris Morgan4691b182002-12-13 02:26:18 +000018395if test "${ac_cv_lib_soname_jack+set}" = set; then
18396 echo $ECHO_N "(cached) $ECHO_C" >&6
18397else
18398 ac_get_soname_save_LIBS=$LIBS
18399LIBS="-ljack $LIBS"
18400 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018401/* confdefs.h. */
18402_ACEOF
18403cat confdefs.h >>conftest.$ac_ext
18404cat >>conftest.$ac_ext <<_ACEOF
18405/* end confdefs.h. */
Chris Morgan4691b182002-12-13 02:26:18 +000018406
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018407/* Override any GCC internal prototype to avoid an error.
18408 Use char because int might match the return type of a GCC
18409 builtin and then its argument prototype would still apply. */
Chris Morgan4691b182002-12-13 02:26:18 +000018410#ifdef __cplusplus
18411extern "C"
18412#endif
Chris Morgan4691b182002-12-13 02:26:18 +000018413char jack_client_new ();
18414int
18415main ()
18416{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018417return jack_client_new ();
Chris Morgan4691b182002-12-13 02:26:18 +000018418 ;
18419 return 0;
18420}
18421_ACEOF
18422rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018423if { (ac_try="$ac_link"
18424case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18427esac
18428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_link") 2>conftest.er1
Chris Morgan4691b182002-12-13 02:26:18 +000018430 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018431 grep -v '^ *+' conftest.er1 >conftest.err
18432 rm -f conftest.er1
18433 cat conftest.err >&5
Chris Morgan4691b182002-12-13 02:26:18 +000018434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18437 { (case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18440esac
18441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018443 ac_status=$?
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); }; } &&
18446 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018447 { (case "(($ac_try" in
18448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18450esac
18451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_try") 2>&5
Chris Morgan4691b182002-12-13 02:26:18 +000018453 ac_status=$?
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018456 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 +000018457 if test "x$ac_cv_lib_soname_jack" = "x"
18458 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018459 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000018460 fi
18461else
18462 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018463sed 's/^/| /' conftest.$ac_ext >&5
18464
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018465 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000018466fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018467
Jeremy White0ebeb532006-06-20 13:18:41 +020018468rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018469 conftest$ac_exeext conftest.$ac_ext
Chris Morgan4691b182002-12-13 02:26:18 +000018470 LIBS=$ac_get_soname_save_LIBS
18471fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018472{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
18473echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018474if test "${ac_cv_lib_soname_jack+set}" = set; then
18475
Chris Morgan4691b182002-12-13 02:26:18 +000018476cat >>confdefs.h <<_ACEOF
18477#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
18478_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018479
Chris Morgan4691b182002-12-13 02:26:18 +000018480fi
David Hammerton852c7ae2003-06-20 23:26:56 +000018481
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018482 { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
18483echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
Huw Davies6e128072003-11-09 00:30:13 +000018484if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18485 echo $ECHO_N "(cached) $ECHO_C" >&6
18486else
18487 ac_get_soname_save_LIBS=$LIBS
18488LIBS="-lfontconfig $LIBS"
18489 cat >conftest.$ac_ext <<_ACEOF
Huw Davies6e128072003-11-09 00:30:13 +000018490/* confdefs.h. */
18491_ACEOF
18492cat confdefs.h >>conftest.$ac_ext
18493cat >>conftest.$ac_ext <<_ACEOF
18494/* end confdefs.h. */
18495
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018496/* Override any GCC internal prototype to avoid an error.
18497 Use char because int might match the return type of a GCC
18498 builtin and then its argument prototype would still apply. */
Huw Davies6e128072003-11-09 00:30:13 +000018499#ifdef __cplusplus
18500extern "C"
18501#endif
Huw Davies6e128072003-11-09 00:30:13 +000018502char FcInit ();
18503int
18504main ()
18505{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018506return FcInit ();
Huw Davies6e128072003-11-09 00:30:13 +000018507 ;
18508 return 0;
18509}
18510_ACEOF
18511rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018512if { (ac_try="$ac_link"
18513case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18516esac
18517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_link") 2>conftest.er1
Huw Davies6e128072003-11-09 00:30:13 +000018519 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018520 grep -v '^ *+' conftest.er1 >conftest.err
18521 rm -f conftest.er1
18522 cat conftest.err >&5
Huw Davies6e128072003-11-09 00:30:13 +000018523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18526 { (case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18529esac
18530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; } &&
18535 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018536 { (case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18539esac
18540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_try") 2>&5
Huw Davies6e128072003-11-09 00:30:13 +000018542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018545 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 +000018546 if test "x$ac_cv_lib_soname_fontconfig" = "x"
18547 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018548 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000018549 fi
18550else
18551 echo "$as_me: failed program was:" >&5
18552sed 's/^/| /' conftest.$ac_ext >&5
18553
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018554 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000018555fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018556
Jeremy White0ebeb532006-06-20 13:18:41 +020018557rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018558 conftest$ac_exeext conftest.$ac_ext
Huw Davies6e128072003-11-09 00:30:13 +000018559 LIBS=$ac_get_soname_save_LIBS
18560fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018561{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
18562echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018563if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18564
Huw Davies6e128072003-11-09 00:30:13 +000018565cat >>confdefs.h <<_ACEOF
18566#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
18567_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018568
Alexandre Julliard79994692003-11-13 20:58:55 +000018569fi
Huw Davies6e128072003-11-09 00:30:13 +000018570
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018571 { echo "$as_me:$LINENO: checking for -lssl soname" >&5
18572echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
David Hammerton852c7ae2003-06-20 23:26:56 +000018573if test "${ac_cv_lib_soname_ssl+set}" = set; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18575else
18576 ac_get_soname_save_LIBS=$LIBS
18577LIBS="-lssl $LIBS"
18578 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000018579/* confdefs.h. */
18580_ACEOF
18581cat confdefs.h >>conftest.$ac_ext
18582cat >>conftest.$ac_ext <<_ACEOF
18583/* end confdefs.h. */
18584
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018585/* Override any GCC internal prototype to avoid an error.
18586 Use char because int might match the return type of a GCC
18587 builtin and then its argument prototype would still apply. */
David Hammerton852c7ae2003-06-20 23:26:56 +000018588#ifdef __cplusplus
18589extern "C"
18590#endif
David Hammerton852c7ae2003-06-20 23:26:56 +000018591char SSL_library_init ();
18592int
18593main ()
18594{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018595return SSL_library_init ();
David Hammerton852c7ae2003-06-20 23:26:56 +000018596 ;
18597 return 0;
18598}
18599_ACEOF
18600rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018601if { (ac_try="$ac_link"
18602case "(($ac_try" in
18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604 *) ac_try_echo=$ac_try;;
18605esac
18606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607 (eval "$ac_link") 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000018608 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018609 grep -v '^ *+' conftest.er1 >conftest.err
18610 rm -f conftest.er1
18611 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000018612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18615 { (case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18618esac
18619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; } &&
18624 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018625 { (case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628esac
18629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_try") 2>&5
David Hammerton852c7ae2003-06-20 23:26:56 +000018631 ac_status=$?
18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018634 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 +000018635 if test "x$ac_cv_lib_soname_ssl" = "x"
18636 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018637 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000018638 fi
18639else
18640 echo "$as_me: failed program was:" >&5
18641sed 's/^/| /' conftest.$ac_ext >&5
18642
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018643 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000018644fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018645
Jeremy White0ebeb532006-06-20 13:18:41 +020018646rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018647 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000018648 LIBS=$ac_get_soname_save_LIBS
18649fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018650{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
18651echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018652if test "${ac_cv_lib_soname_ssl+set}" = set; then
18653
David Hammerton852c7ae2003-06-20 23:26:56 +000018654cat >>confdefs.h <<_ACEOF
18655#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
18656_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018657
David Hammerton852c7ae2003-06-20 23:26:56 +000018658fi
18659
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018660 { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
18661echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
David Hammerton852c7ae2003-06-20 23:26:56 +000018662if test "${ac_cv_lib_soname_crypto+set}" = set; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18664else
18665 ac_get_soname_save_LIBS=$LIBS
18666LIBS="-lcrypto $LIBS"
18667 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000018668/* confdefs.h. */
18669_ACEOF
18670cat confdefs.h >>conftest.$ac_ext
18671cat >>conftest.$ac_ext <<_ACEOF
18672/* end confdefs.h. */
18673
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018674/* Override any GCC internal prototype to avoid an error.
18675 Use char because int might match the return type of a GCC
18676 builtin and then its argument prototype would still apply. */
David Hammerton852c7ae2003-06-20 23:26:56 +000018677#ifdef __cplusplus
18678extern "C"
18679#endif
David Hammerton852c7ae2003-06-20 23:26:56 +000018680char BIO_new_socket ();
18681int
18682main ()
18683{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018684return BIO_new_socket ();
David Hammerton852c7ae2003-06-20 23:26:56 +000018685 ;
18686 return 0;
18687}
18688_ACEOF
18689rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018690if { (ac_try="$ac_link"
18691case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18694esac
18695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_link") 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000018697 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018698 grep -v '^ *+' conftest.er1 >conftest.err
18699 rm -f conftest.er1
18700 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000018701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18704 { (case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18707esac
18708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018710 ac_status=$?
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; } &&
18713 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018714 { (case "(($ac_try" in
18715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716 *) ac_try_echo=$ac_try;;
18717esac
18718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18719 (eval "$ac_try") 2>&5
David Hammerton852c7ae2003-06-20 23:26:56 +000018720 ac_status=$?
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018723 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 +000018724 if test "x$ac_cv_lib_soname_crypto" = "x"
18725 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018726 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000018727 fi
18728else
18729 echo "$as_me: failed program was:" >&5
18730sed 's/^/| /' conftest.$ac_ext >&5
18731
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018732 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000018733fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018734
Jeremy White0ebeb532006-06-20 13:18:41 +020018735rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018736 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000018737 LIBS=$ac_get_soname_save_LIBS
18738fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018739{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
18740echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018741if test "${ac_cv_lib_soname_crypto+set}" = set; then
18742
David Hammerton852c7ae2003-06-20 23:26:56 +000018743cat >>confdefs.h <<_ACEOF
18744#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
18745_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018746
David Hammerton852c7ae2003-06-20 23:26:56 +000018747fi
Mike McCormack9557d1b2003-08-20 04:19:01 +000018748
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018749 { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
18750echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
Mike McCormack9557d1b2003-08-20 04:19:01 +000018751if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18753else
18754 ac_get_soname_save_LIBS=$LIBS
18755LIBS="-lncurses $LIBS"
18756 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000018757/* confdefs.h. */
18758_ACEOF
18759cat confdefs.h >>conftest.$ac_ext
18760cat >>conftest.$ac_ext <<_ACEOF
18761/* end confdefs.h. */
18762
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018763/* Override any GCC internal prototype to avoid an error.
18764 Use char because int might match the return type of a GCC
18765 builtin and then its argument prototype would still apply. */
Mike McCormack9557d1b2003-08-20 04:19:01 +000018766#ifdef __cplusplus
18767extern "C"
18768#endif
Mike McCormack9557d1b2003-08-20 04:19:01 +000018769char waddch ();
18770int
18771main ()
18772{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018773return waddch ();
Mike McCormack9557d1b2003-08-20 04:19:01 +000018774 ;
18775 return 0;
18776}
18777_ACEOF
18778rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018779if { (ac_try="$ac_link"
18780case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18783esac
18784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_link") 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000018786 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018787 grep -v '^ *+' conftest.er1 >conftest.err
18788 rm -f conftest.er1
18789 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000018790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18796esac
18797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018799 ac_status=$?
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; } &&
18802 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018803 { (case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18806esac
18807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_try") 2>&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000018809 ac_status=$?
18810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018812 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 +000018813 if test "x$ac_cv_lib_soname_ncurses" = "x"
18814 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018815 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000018816 fi
18817else
18818 echo "$as_me: failed program was:" >&5
18819sed 's/^/| /' conftest.$ac_ext >&5
18820
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018821 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000018822fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018823
Jeremy White0ebeb532006-06-20 13:18:41 +020018824rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018825 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000018826 LIBS=$ac_get_soname_save_LIBS
18827fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018828{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
18829echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018830if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18831
Mike McCormack9557d1b2003-08-20 04:19:01 +000018832cat >>confdefs.h <<_ACEOF
18833#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
18834_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018835
Mike McCormack9557d1b2003-08-20 04:19:01 +000018836fi
18837
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018838 { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
18839echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
Mike McCormack9557d1b2003-08-20 04:19:01 +000018840if test "${ac_cv_lib_soname_curses+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842else
18843 ac_get_soname_save_LIBS=$LIBS
18844LIBS="-lcurses $LIBS"
18845 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000018846/* confdefs.h. */
18847_ACEOF
18848cat confdefs.h >>conftest.$ac_ext
18849cat >>conftest.$ac_ext <<_ACEOF
18850/* end confdefs.h. */
18851
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018852/* Override any GCC internal prototype to avoid an error.
18853 Use char because int might match the return type of a GCC
18854 builtin and then its argument prototype would still apply. */
Mike McCormack9557d1b2003-08-20 04:19:01 +000018855#ifdef __cplusplus
18856extern "C"
18857#endif
Mike McCormack9557d1b2003-08-20 04:19:01 +000018858char waddch ();
18859int
18860main ()
18861{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018862return waddch ();
Mike McCormack9557d1b2003-08-20 04:19:01 +000018863 ;
18864 return 0;
18865}
18866_ACEOF
18867rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018868if { (ac_try="$ac_link"
18869case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18872esac
18873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_link") 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000018875 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018876 grep -v '^ *+' conftest.er1 >conftest.err
18877 rm -f conftest.er1
18878 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000018879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18882 { (case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18885esac
18886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; } &&
18891 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018892 { (case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18895esac
18896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18897 (eval "$ac_try") 2>&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000018898 ac_status=$?
18899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018901 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 +000018902 if test "x$ac_cv_lib_soname_curses" = "x"
18903 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018904 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000018905 fi
18906else
18907 echo "$as_me: failed program was:" >&5
18908sed 's/^/| /' conftest.$ac_ext >&5
18909
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018910 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000018911fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018912
Jeremy White0ebeb532006-06-20 13:18:41 +020018913rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018914 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000018915 LIBS=$ac_get_soname_save_LIBS
18916fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018917{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
18918echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018919if test "${ac_cv_lib_soname_curses+set}" = set; then
18920
Mike McCormack9557d1b2003-08-20 04:19:01 +000018921cat >>confdefs.h <<_ACEOF
18922#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
18923_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018924
Mike McCormack9557d1b2003-08-20 04:19:01 +000018925fi
Huw Daviese82dfab2004-08-04 19:10:26 +000018926
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018927 { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
18928echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
Huw Daviese82dfab2004-08-04 19:10:26 +000018929if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18931else
18932 ac_get_soname_save_LIBS=$LIBS
18933LIBS="-ljpeg $LIBS"
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
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018941/* Override any GCC internal prototype to avoid an error.
18942 Use char because int might match the return type of a GCC
18943 builtin and then its argument prototype would still apply. */
Huw Daviese82dfab2004-08-04 19:10:26 +000018944#ifdef __cplusplus
18945extern "C"
18946#endif
Huw Daviese82dfab2004-08-04 19:10:26 +000018947char jpeg_start_decompress ();
18948int
18949main ()
18950{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018951return jpeg_start_decompress ();
Huw Daviese82dfab2004-08-04 19:10:26 +000018952 ;
18953 return 0;
18954}
18955_ACEOF
18956rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018957if { (ac_try="$ac_link"
18958case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18961esac
18962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_link") 2>conftest.er1
Huw Daviese82dfab2004-08-04 19:10:26 +000018964 ac_status=$?
18965 grep -v '^ *+' conftest.er1 >conftest.err
18966 rm -f conftest.er1
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18971 { (case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18974esac
18975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000018977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018981 { (case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18984esac
18985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000018987 ac_status=$?
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018990 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 +000018991 if test "x$ac_cv_lib_soname_jpeg" = "x"
18992 then
18993 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
18994 fi
18995else
18996 echo "$as_me: failed program was:" >&5
18997sed 's/^/| /' conftest.$ac_ext >&5
18998
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018999 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
Huw Daviese82dfab2004-08-04 19:10:26 +000019000fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019001
Jeremy White0ebeb532006-06-20 13:18:41 +020019002rm -f core conftest.err conftest.$ac_objext \
Huw Daviese82dfab2004-08-04 19:10:26 +000019003 conftest$ac_exeext conftest.$ac_ext
19004 LIBS=$ac_get_soname_save_LIBS
19005fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019006{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
19007echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019008if test "${ac_cv_lib_soname_jpeg+set}" = set; then
19009
Huw Daviese82dfab2004-08-04 19:10:26 +000019010cat >>confdefs.h <<_ACEOF
19011#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
19012_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019013
Huw Daviese82dfab2004-08-04 19:10:26 +000019014fi
19015
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019016 { echo "$as_me:$LINENO: checking for -lungif soname" >&5
19017echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; }
Huw Daviese82dfab2004-08-04 19:10:26 +000019018if test "${ac_cv_lib_soname_ungif+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19020else
19021 ac_get_soname_save_LIBS=$LIBS
19022LIBS="-lungif $LIBS"
19023 cat >conftest.$ac_ext <<_ACEOF
19024/* confdefs.h. */
19025_ACEOF
19026cat confdefs.h >>conftest.$ac_ext
19027cat >>conftest.$ac_ext <<_ACEOF
19028/* end confdefs.h. */
19029
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019030/* Override any GCC internal prototype to avoid an error.
19031 Use char because int might match the return type of a GCC
19032 builtin and then its argument prototype would still apply. */
Huw Daviese82dfab2004-08-04 19:10:26 +000019033#ifdef __cplusplus
19034extern "C"
19035#endif
Huw Daviese82dfab2004-08-04 19:10:26 +000019036char DGifOpen ();
19037int
19038main ()
19039{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019040return DGifOpen ();
Huw Daviese82dfab2004-08-04 19:10:26 +000019041 ;
19042 return 0;
19043}
19044_ACEOF
19045rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020019046if { (ac_try="$ac_link"
19047case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19050esac
19051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_link") 2>conftest.er1
Huw Daviese82dfab2004-08-04 19:10:26 +000019053 ac_status=$?
19054 grep -v '^ *+' conftest.er1 >conftest.err
19055 rm -f conftest.er1
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19060 { (case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19063esac
19064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000019066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; } &&
19069 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019070 { (case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19073esac
19074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000019076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000019079 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 +000019080 if test "x$ac_cv_lib_soname_ungif" = "x"
19081 then
19082 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
19083 fi
19084else
19085 echo "$as_me: failed program was:" >&5
19086sed 's/^/| /' conftest.$ac_ext >&5
19087
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019088 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
Huw Daviese82dfab2004-08-04 19:10:26 +000019089fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019090
Jeremy White0ebeb532006-06-20 13:18:41 +020019091rm -f core conftest.err conftest.$ac_objext \
Huw Daviese82dfab2004-08-04 19:10:26 +000019092 conftest$ac_exeext conftest.$ac_ext
19093 LIBS=$ac_get_soname_save_LIBS
19094fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019095{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
19096echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019097if test "${ac_cv_lib_soname_ungif+set}" = set; then
19098
Huw Daviese82dfab2004-08-04 19:10:26 +000019099cat >>confdefs.h <<_ACEOF
19100#define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
19101_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019102
Huw Daviese82dfab2004-08-04 19:10:26 +000019103fi
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019104
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019105 { echo "$as_me:$LINENO: checking for -lgif soname" >&5
19106echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; }
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019107if test "${ac_cv_lib_soname_gif+set}" = set; then
19108 echo $ECHO_N "(cached) $ECHO_C" >&6
19109else
19110 ac_get_soname_save_LIBS=$LIBS
19111LIBS="-lgif $LIBS"
19112 cat >conftest.$ac_ext <<_ACEOF
19113/* confdefs.h. */
19114_ACEOF
19115cat confdefs.h >>conftest.$ac_ext
19116cat >>conftest.$ac_ext <<_ACEOF
19117/* end confdefs.h. */
19118
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019119/* Override any GCC internal prototype to avoid an error.
19120 Use char because int might match the return type of a GCC
19121 builtin and then its argument prototype would still apply. */
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019122#ifdef __cplusplus
19123extern "C"
19124#endif
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019125char DGifOpen ();
19126int
19127main ()
19128{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019129return DGifOpen ();
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019130 ;
19131 return 0;
19132}
19133_ACEOF
19134rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020019135if { (ac_try="$ac_link"
19136case "(($ac_try" in
19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138 *) ac_try_echo=$ac_try;;
19139esac
19140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141 (eval "$ac_link") 2>conftest.er1
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019142 ac_status=$?
19143 grep -v '^ *+' conftest.er1 >conftest.err
19144 rm -f conftest.er1
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19149 { (case "(($ac_try" in
19150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19151 *) ac_try_echo=$ac_try;;
19152esac
19153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19154 (eval "$ac_try") 2>&5
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019155 ac_status=$?
19156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); }; } &&
19158 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019159 { (case "(($ac_try" in
19160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19161 *) ac_try_echo=$ac_try;;
19162esac
19163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19164 (eval "$ac_try") 2>&5
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019165 ac_status=$?
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000019168 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 +000019169 if test "x$ac_cv_lib_soname_gif" = "x"
19170 then
19171 ac_cv_lib_soname_gif="libgif.$LIBEXT"
19172 fi
19173else
19174 echo "$as_me: failed program was:" >&5
19175sed 's/^/| /' conftest.$ac_ext >&5
19176
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019177 ac_cv_lib_soname_gif="libgif.$LIBEXT"
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019178fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019179
Jeremy White0ebeb532006-06-20 13:18:41 +020019180rm -f core conftest.err conftest.$ac_objext \
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019181 conftest$ac_exeext conftest.$ac_ext
19182 LIBS=$ac_get_soname_save_LIBS
19183fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019184{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
19185echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019186if test "${ac_cv_lib_soname_gif+set}" = set; then
19187
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019188cat >>confdefs.h <<_ACEOF
19189#define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
19190_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019191
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019192fi
Hans Leidekker081b2502004-10-07 19:12:41 +000019193
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019194 { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
19195echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019196if test "${ac_cv_lib_soname_capi20+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19198else
19199 ac_get_soname_save_LIBS=$LIBS
19200LIBS="-lcapi20 $LIBS"
19201 cat >conftest.$ac_ext <<_ACEOF
19202/* confdefs.h. */
19203_ACEOF
19204cat confdefs.h >>conftest.$ac_ext
19205cat >>conftest.$ac_ext <<_ACEOF
19206/* end confdefs.h. */
19207
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019208/* Override any GCC internal prototype to avoid an error.
19209 Use char because int might match the return type of a GCC
19210 builtin and then its argument prototype would still apply. */
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019211#ifdef __cplusplus
19212extern "C"
19213#endif
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019214char capi20_isinstalled ();
19215int
19216main ()
19217{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019218return capi20_isinstalled ();
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019219 ;
19220 return 0;
19221}
19222_ACEOF
19223rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020019224if { (ac_try="$ac_link"
19225case "(($ac_try" in
19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19228esac
19229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_link") 2>conftest.er1
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019231 ac_status=$?
19232 grep -v '^ *+' conftest.er1 >conftest.err
19233 rm -f conftest.er1
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19238 { (case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19241esac
19242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_try") 2>&5
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019244 ac_status=$?
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; } &&
19247 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019248 { (case "(($ac_try" in
19249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19250 *) ac_try_echo=$ac_try;;
19251esac
19252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19253 (eval "$ac_try") 2>&5
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000019257 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 +000019258 if test "x$ac_cv_lib_soname_capi20" = "x"
19259 then
19260 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19261 fi
19262else
19263 echo "$as_me: failed program was:" >&5
19264sed 's/^/| /' conftest.$ac_ext >&5
19265
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019266 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019267fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019268
Jeremy White0ebeb532006-06-20 13:18:41 +020019269rm -f core conftest.err conftest.$ac_objext \
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019270 conftest$ac_exeext conftest.$ac_ext
19271 LIBS=$ac_get_soname_save_LIBS
19272fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019273{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
19274echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019275if test "${ac_cv_lib_soname_capi20+set}" = set; then
19276
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019277cat >>confdefs.h <<_ACEOF
19278#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
19279_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019280
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019281fi
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019282
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000019283fi
19284
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019285
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000019286
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
Steven Edwardsb9627c12002-05-05 21:03:44 +000019329
19330
Steven Edwards0a8e15a2002-05-10 01:33:40 +000019331
19332
Alexandre Julliard142dab82002-07-01 18:17:30 +000019333
Patrik Stridvall6caeb722002-11-25 21:12:26 +000019334
19335
19336
Pavel Roskin7add08a2003-09-24 18:54:40 +000019337
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000019338
Alexandre Julliarde2930742004-01-08 05:07:05 +000019339
Alexandre Julliard13af4892004-03-05 21:03:46 +000019340
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000019341
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000019342
19343
Alexandre Julliard969f57c2004-09-23 04:48:24 +000019344
Paul Millar10a6c562004-12-07 17:19:54 +000019345
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000019346
Marcus Meissner7a6fdea2005-11-17 12:58:35 +000019347
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010019348
Hans Leidekkerc0e6bb22006-02-20 14:16:38 +010019349
Alexandre Julliard9603ee02006-04-06 11:57:37 +020019350
Paul Millardf10b7d2006-07-16 15:06:28 +010019351
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019352for ac_func in \
19353 _lwp_create \
Alexandre Julliard6f7a2042003-04-01 04:39:35 +000019354 _lwp_self \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000019355 _pclose \
19356 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000019357 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000019358 _spawnvp \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000019359 _stricmp \
19360 _strnicmp \
Steven Edwardsbe514b92003-01-14 19:35:03 +000019361 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010019362 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000019363 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019364 clone \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000019365 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000019366 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000019367 finite \
Hans Leidekkerbed38422004-10-14 03:08:57 +000019368 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000019369 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000019370 fstatfs \
19371 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000019372 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000019373 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000019374 futimesat \
Marcus Meissner7a6fdea2005-11-17 12:58:35 +000019375 getaddrinfo \
Hans Leidekkerc0e6bb22006-02-20 14:16:38 +010019376 getnameinfo \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019377 getnetbyname \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000019378 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019379 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019380 getprotobyname \
19381 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000019382 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019383 getservbyport \
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000019384 gettid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000019385 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000019386 getuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019387 inet_network \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000019388 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019389 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000019390 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000019391 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000019392 popen \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020019393 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000019394 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000019395 pwrite \
Alexandre Julliarde2930742004-01-08 05:07:05 +000019396 readlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019397 rfork \
Jeremy White08c0f692004-10-09 02:26:29 +000019398 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019399 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019400 sendmsg \
Paul Millardf10b7d2006-07-16 15:06:28 +010019401 setrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019402 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019403 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000019404 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000019405 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000019406 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019407 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000019408 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000019409 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019410 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000019411 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019412 tcgetattr \
19413 timegm \
19414 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000019415 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019416 wait4 \
19417 waitpid \
19418
19419do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019421{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19423if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019424 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019425else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019426 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019427/* confdefs.h. */
19428_ACEOF
19429cat confdefs.h >>conftest.$ac_ext
19430cat >>conftest.$ac_ext <<_ACEOF
19431/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000019432/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19434#define $ac_func innocuous_$ac_func
19435
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019436/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019437 which can conflict with char $ac_func (); below.
19438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19439 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000019440
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019441#ifdef __STDC__
19442# include <limits.h>
19443#else
19444# include <assert.h>
19445#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000019446
19447#undef $ac_func
19448
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019449/* Override any GCC internal prototype to avoid an error.
19450 Use char because int might match the return type of a GCC
19451 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019452#ifdef __cplusplus
19453extern "C"
19454#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019455char $ac_func ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019456/* The GNU C library defines this for functions which it implements
19457 to always fail with ENOSYS. Some functions are actually named
19458 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019459#if defined __stub_$ac_func || defined __stub___$ac_func
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019460choke me
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019461#endif
19462
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019463int
19464main ()
19465{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019466return $ac_func ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019467 ;
19468 return 0;
19469}
19470_ACEOF
19471rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020019472if { (ac_try="$ac_link"
19473case "(($ac_try" in
19474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475 *) ac_try_echo=$ac_try;;
19476esac
19477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019479 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019480 grep -v '^ *+' conftest.er1 >conftest.err
19481 rm -f conftest.er1
19482 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019484 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19486 { (case "(($ac_try" in
19487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19488 *) ac_try_echo=$ac_try;;
19489esac
19490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19491 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019492 ac_status=$?
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); }; } &&
19495 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019496 { (case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19499esac
19500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019502 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019504 (exit $ac_status); }; }; then
19505 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019506else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019507 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019508sed 's/^/| /' conftest.$ac_ext >&5
19509
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019510 eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019511fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019512
Jeremy White0ebeb532006-06-20 13:18:41 +020019513rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000019514 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019515fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019516ac_res=`eval echo '${'$as_ac_var'}'`
19517 { echo "$as_me:$LINENO: result: $ac_res" >&5
19518echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019519if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019520 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019521#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019522_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000019523
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019524fi
19525done
19526
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019527
19528
19529
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019530{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19531echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019532if test "${ac_cv_c_const+set}" = set; then
19533 echo $ECHO_N "(cached) $ECHO_C" >&6
19534else
19535 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019536/* confdefs.h. */
19537_ACEOF
19538cat confdefs.h >>conftest.$ac_ext
19539cat >>conftest.$ac_ext <<_ACEOF
19540/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019541
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019542int
19543main ()
19544{
19545/* FIXME: Include the comments suggested by Paul. */
19546#ifndef __cplusplus
19547 /* Ultrix mips cc rejects this. */
19548 typedef int charset[2];
19549 const charset x;
19550 /* SunOS 4.1.1 cc rejects this. */
19551 char const *const *ccp;
19552 char **p;
19553 /* NEC SVR4.0.2 mips cc rejects this. */
19554 struct point {int x, y;};
19555 static struct point const zero = {0,0};
19556 /* AIX XL C 1.02.0.0 rejects this.
19557 It does not let you subtract one const X* pointer from another in
19558 an arm of an if-expression whose if-part is not a constant
19559 expression */
19560 const char *g = "string";
19561 ccp = &g + (g ? g-g : 0);
19562 /* HPUX 7.0 cc rejects these. */
19563 ++ccp;
19564 p = (char**) ccp;
19565 ccp = (char const *const *) p;
19566 { /* SCO 3.2v4 cc rejects this. */
19567 char *t;
19568 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019569
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019570 *t++ = 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019571 if (s) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019572 }
19573 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19574 int x[] = {25, 17};
19575 const int *foo = &x[0];
19576 ++foo;
19577 }
19578 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19579 typedef const int *iptr;
19580 iptr p = 0;
19581 ++p;
19582 }
19583 { /* AIX XL C 1.02.0.0 rejects this saying
19584 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19585 struct s { int j; const int *ap[3]; };
19586 struct s *b; b->j = 5;
19587 }
19588 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19589 const int foo = 10;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019590 if (!foo) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019591 }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019592 return !x[0] && !zero.x;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019593#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019594
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019595 ;
19596 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019597}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019598_ACEOF
19599rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019600if { (ac_try="$ac_compile"
19601case "(($ac_try" in
19602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603 *) ac_try_echo=$ac_try;;
19604esac
19605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019607 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019608 grep -v '^ *+' conftest.er1 >conftest.err
19609 rm -f conftest.er1
19610 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019612 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19614 { (case "(($ac_try" in
19615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19616 *) ac_try_echo=$ac_try;;
19617esac
19618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19619 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019620 ac_status=$?
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); }; } &&
19623 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019624 { (case "(($ac_try" in
19625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19626 *) ac_try_echo=$ac_try;;
19627esac
19628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19629 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019630 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019632 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019633 ac_cv_c_const=yes
19634else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019635 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019636sed 's/^/| /' conftest.$ac_ext >&5
19637
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019638 ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019639fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019640
Jeremy White0ebeb532006-06-20 13:18:41 +020019641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019642fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019643{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19644echo "${ECHO_T}$ac_cv_c_const" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019645if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019646
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019647cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019648#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019649_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019650
19651fi
19652
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019653{ echo "$as_me:$LINENO: checking for inline" >&5
19654echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019655if test "${ac_cv_c_inline+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019657else
19658 ac_cv_c_inline=no
19659for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019660 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019661/* confdefs.h. */
19662_ACEOF
19663cat confdefs.h >>conftest.$ac_ext
19664cat >>conftest.$ac_ext <<_ACEOF
19665/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019666#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019667typedef int foo_t;
19668static $ac_kw foo_t static_foo () {return 0; }
19669$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019670#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019671
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019672_ACEOF
19673rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019674if { (ac_try="$ac_compile"
19675case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19678esac
19679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019681 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019682 grep -v '^ *+' conftest.er1 >conftest.err
19683 rm -f conftest.er1
19684 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019686 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19688 { (case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19691esac
19692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; } &&
19697 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019698 { (case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19701esac
19702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019704 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019706 (exit $ac_status); }; }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019707 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019708else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019709 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019710sed 's/^/| /' conftest.$ac_ext >&5
19711
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019712
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019713fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019714
Jeremy White0ebeb532006-06-20 13:18:41 +020019715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019716 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019717done
19718
19719fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019720{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19721echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000019722
19723
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019724case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019725 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000019726 *)
19727 case $ac_cv_c_inline in
19728 no) ac_val=;;
19729 *) ac_val=$ac_cv_c_inline;;
19730 esac
19731 cat >>confdefs.h <<_ACEOF
19732#ifndef __cplusplus
19733#define inline $ac_val
19734#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019735_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000019736 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019737esac
19738
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019739{ echo "$as_me:$LINENO: checking for mode_t" >&5
19740echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019741if test "${ac_cv_type_mode_t+set}" = set; then
19742 echo $ECHO_N "(cached) $ECHO_C" >&6
19743else
19744 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019745/* confdefs.h. */
19746_ACEOF
19747cat confdefs.h >>conftest.$ac_ext
19748cat >>conftest.$ac_ext <<_ACEOF
19749/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019750$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019751typedef mode_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019752int
19753main ()
19754{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019755if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019756 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019757if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019758 return 0;
19759 ;
19760 return 0;
19761}
19762_ACEOF
19763rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019764if { (ac_try="$ac_compile"
19765case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19768esac
19769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019771 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019772 grep -v '^ *+' conftest.er1 >conftest.err
19773 rm -f conftest.er1
19774 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019776 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19778 { (case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19781esac
19782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019784 ac_status=$?
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); }; } &&
19787 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019788 { (case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19791esac
19792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019794 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019796 (exit $ac_status); }; }; then
19797 ac_cv_type_mode_t=yes
19798else
19799 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019800sed 's/^/| /' conftest.$ac_ext >&5
19801
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019802 ac_cv_type_mode_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019803fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019804
Jeremy White0ebeb532006-06-20 13:18:41 +020019805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019806fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019807{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19808echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019809if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019810
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019811cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019812#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019813_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019814
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019815
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019816fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019817{ echo "$as_me:$LINENO: checking for off_t" >&5
19818echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019819if test "${ac_cv_type_off_t+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
19821else
19822 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019823/* confdefs.h. */
19824_ACEOF
19825cat confdefs.h >>conftest.$ac_ext
19826cat >>conftest.$ac_ext <<_ACEOF
19827/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019828$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019829typedef off_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019830int
19831main ()
19832{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019833if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019834 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019835if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019836 return 0;
19837 ;
19838 return 0;
19839}
19840_ACEOF
19841rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019842if { (ac_try="$ac_compile"
19843case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19846esac
19847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019849 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019850 grep -v '^ *+' conftest.er1 >conftest.err
19851 rm -f conftest.er1
19852 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019854 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19856 { (case "(($ac_try" in
19857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858 *) ac_try_echo=$ac_try;;
19859esac
19860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019862 ac_status=$?
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; } &&
19865 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019866 { (case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19869esac
19870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019872 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019874 (exit $ac_status); }; }; then
19875 ac_cv_type_off_t=yes
19876else
19877 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019878sed 's/^/| /' conftest.$ac_ext >&5
19879
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019880 ac_cv_type_off_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019881fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019882
Jeremy White0ebeb532006-06-20 13:18:41 +020019883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019884fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019885{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19886echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019887if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019888
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019889cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019890#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019891_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019892
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019893
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019894fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019895{ echo "$as_me:$LINENO: checking for pid_t" >&5
19896echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019897if test "${ac_cv_type_pid_t+set}" = set; then
19898 echo $ECHO_N "(cached) $ECHO_C" >&6
19899else
19900 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019901/* confdefs.h. */
19902_ACEOF
19903cat confdefs.h >>conftest.$ac_ext
19904cat >>conftest.$ac_ext <<_ACEOF
19905/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019906$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019907typedef pid_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019908int
19909main ()
19910{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019911if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019912 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019913if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019914 return 0;
19915 ;
19916 return 0;
19917}
19918_ACEOF
19919rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019920if { (ac_try="$ac_compile"
19921case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19924esac
19925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019927 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019928 grep -v '^ *+' conftest.er1 >conftest.err
19929 rm -f conftest.er1
19930 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019932 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19934 { (case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19937esac
19938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019940 ac_status=$?
19941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942 (exit $ac_status); }; } &&
19943 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019944 { (case "(($ac_try" in
19945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19946 *) ac_try_echo=$ac_try;;
19947esac
19948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19949 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019950 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019952 (exit $ac_status); }; }; then
19953 ac_cv_type_pid_t=yes
19954else
19955 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019956sed 's/^/| /' conftest.$ac_ext >&5
19957
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019958 ac_cv_type_pid_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019959fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019960
Jeremy White0ebeb532006-06-20 13:18:41 +020019961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019962fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019963{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19964echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019965if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019966
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019967cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019968#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019969_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019970
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019971
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019972fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019973{ echo "$as_me:$LINENO: checking for size_t" >&5
19974echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019975if test "${ac_cv_type_size_t+set}" = set; then
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
19977else
19978 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019979/* confdefs.h. */
19980_ACEOF
19981cat confdefs.h >>conftest.$ac_ext
19982cat >>conftest.$ac_ext <<_ACEOF
19983/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019984$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019985typedef size_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019986int
19987main ()
19988{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019989if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019990 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019991if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019992 return 0;
19993 ;
19994 return 0;
19995}
19996_ACEOF
19997rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019998if { (ac_try="$ac_compile"
19999case "(($ac_try" in
20000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001 *) ac_try_echo=$ac_try;;
20002esac
20003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020005 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020006 grep -v '^ *+' conftest.er1 >conftest.err
20007 rm -f conftest.er1
20008 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020010 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20012 { (case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20015esac
20016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020018 ac_status=$?
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; } &&
20021 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020022 { (case "(($ac_try" in
20023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024 *) ac_try_echo=$ac_try;;
20025esac
20026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020028 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020030 (exit $ac_status); }; }; then
20031 ac_cv_type_size_t=yes
20032else
20033 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020034sed 's/^/| /' conftest.$ac_ext >&5
20035
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020036 ac_cv_type_size_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020037fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020038
Jeremy White0ebeb532006-06-20 13:18:41 +020020039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020040fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020041{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20042echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020043if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020044
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020045cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020046#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020047_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020048
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020049
20050fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020051{ echo "$as_me:$LINENO: checking for ssize_t" >&5
20052echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020053if test "${ac_cv_type_ssize_t+set}" = set; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20055else
20056 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020057/* confdefs.h. */
20058_ACEOF
20059cat confdefs.h >>conftest.$ac_ext
20060cat >>conftest.$ac_ext <<_ACEOF
20061/* end confdefs.h. */
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020062$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020063typedef ssize_t ac__type_new_;
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020064int
20065main ()
20066{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020067if ((ac__type_new_ *) 0)
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020068 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020069if (sizeof (ac__type_new_))
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020070 return 0;
20071 ;
20072 return 0;
20073}
20074_ACEOF
20075rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020076if { (ac_try="$ac_compile"
20077case "(($ac_try" in
20078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079 *) ac_try_echo=$ac_try;;
20080esac
20081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20082 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020083 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020084 grep -v '^ *+' conftest.er1 >conftest.err
20085 rm -f conftest.er1
20086 cat conftest.err >&5
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20090 { (case "(($ac_try" in
20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20093esac
20094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020096 ac_status=$?
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); }; } &&
20099 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020100 { (case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20103esac
20104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_try") 2>&5
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 ac_cv_type_ssize_t=yes
20110else
20111 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020112sed 's/^/| /' conftest.$ac_ext >&5
20113
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020114 ac_cv_type_ssize_t=no
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020115fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020116
Jeremy White0ebeb532006-06-20 13:18:41 +020020117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020118fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020119{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20120echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020121if test $ac_cv_type_ssize_t = yes; then
20122
20123cat >>confdefs.h <<_ACEOF
20124#define HAVE_SSIZE_T 1
20125_ACEOF
20126
20127
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020128fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020129{ echo "$as_me:$LINENO: checking for long long" >&5
20130echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020131if test "${ac_cv_type_long_long+set}" = set; then
20132 echo $ECHO_N "(cached) $ECHO_C" >&6
20133else
20134 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020135/* confdefs.h. */
20136_ACEOF
20137cat confdefs.h >>conftest.$ac_ext
20138cat >>conftest.$ac_ext <<_ACEOF
20139/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020140$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020141typedef long long ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020142int
20143main ()
20144{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020145if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020146 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020147if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020148 return 0;
20149 ;
20150 return 0;
20151}
20152_ACEOF
20153rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020154if { (ac_try="$ac_compile"
20155case "(($ac_try" in
20156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20157 *) ac_try_echo=$ac_try;;
20158esac
20159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20160 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020161 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020162 grep -v '^ *+' conftest.er1 >conftest.err
20163 rm -f conftest.er1
20164 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020166 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20168 { (case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20171esac
20172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020174 ac_status=$?
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); }; } &&
20177 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020178 { (case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181esac
20182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020184 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020186 (exit $ac_status); }; }; then
20187 ac_cv_type_long_long=yes
20188else
20189 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020190sed 's/^/| /' conftest.$ac_ext >&5
20191
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020192 ac_cv_type_long_long=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020193fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020194
Jeremy White0ebeb532006-06-20 13:18:41 +020020195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020196fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020197{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20198echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020199if test $ac_cv_type_long_long = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020200
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020201cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020202#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020203_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000020204
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020205
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020206fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020207{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
20208echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000020209if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20211else
20212 cat >conftest.$ac_ext <<_ACEOF
20213/* confdefs.h. */
20214_ACEOF
20215cat confdefs.h >>conftest.$ac_ext
20216cat >>conftest.$ac_ext <<_ACEOF
20217/* end confdefs.h. */
20218$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020219typedef fsblkcnt_t ac__type_new_;
Alexandre Julliard13af4892004-03-05 21:03:46 +000020220int
20221main ()
20222{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020223if ((ac__type_new_ *) 0)
Alexandre Julliard13af4892004-03-05 21:03:46 +000020224 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020225if (sizeof (ac__type_new_))
Alexandre Julliard13af4892004-03-05 21:03:46 +000020226 return 0;
20227 ;
20228 return 0;
20229}
20230_ACEOF
20231rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020232if { (ac_try="$ac_compile"
20233case "(($ac_try" in
20234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235 *) ac_try_echo=$ac_try;;
20236esac
20237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000020239 ac_status=$?
20240 grep -v '^ *+' conftest.er1 >conftest.err
20241 rm -f conftest.er1
20242 cat conftest.err >&5
20243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20246 { (case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20249esac
20250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000020252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; } &&
20255 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020256 { (case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20259esac
20260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000020262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 ac_cv_type_fsblkcnt_t=yes
20266else
20267 echo "$as_me: failed program was:" >&5
20268sed 's/^/| /' conftest.$ac_ext >&5
20269
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020270 ac_cv_type_fsblkcnt_t=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000020271fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020272
Jeremy White0ebeb532006-06-20 13:18:41 +020020273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000020274fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020275{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
20276echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000020277if test $ac_cv_type_fsblkcnt_t = yes; then
20278
20279cat >>confdefs.h <<_ACEOF
20280#define HAVE_FSBLKCNT_T 1
20281_ACEOF
20282
20283
20284fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020285{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
20286echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000020287if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20289else
20290 cat >conftest.$ac_ext <<_ACEOF
20291/* confdefs.h. */
20292_ACEOF
20293cat confdefs.h >>conftest.$ac_ext
20294cat >>conftest.$ac_ext <<_ACEOF
20295/* end confdefs.h. */
20296$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020297typedef fsfilcnt_t ac__type_new_;
Alexandre Julliard13af4892004-03-05 21:03:46 +000020298int
20299main ()
20300{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020301if ((ac__type_new_ *) 0)
Alexandre Julliard13af4892004-03-05 21:03:46 +000020302 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020303if (sizeof (ac__type_new_))
Alexandre Julliard13af4892004-03-05 21:03:46 +000020304 return 0;
20305 ;
20306 return 0;
20307}
20308_ACEOF
20309rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020310if { (ac_try="$ac_compile"
20311case "(($ac_try" in
20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313 *) ac_try_echo=$ac_try;;
20314esac
20315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20316 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000020317 ac_status=$?
20318 grep -v '^ *+' conftest.er1 >conftest.err
20319 rm -f conftest.er1
20320 cat conftest.err >&5
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20324 { (case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327esac
20328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000020330 ac_status=$?
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; } &&
20333 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020334 { (case "(($ac_try" in
20335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336 *) ac_try_echo=$ac_try;;
20337esac
20338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000020340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; }; then
20343 ac_cv_type_fsfilcnt_t=yes
20344else
20345 echo "$as_me: failed program was:" >&5
20346sed 's/^/| /' conftest.$ac_ext >&5
20347
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020348 ac_cv_type_fsfilcnt_t=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000020349fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020350
Jeremy White0ebeb532006-06-20 13:18:41 +020020351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000020352fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020353{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
20354echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000020355if test $ac_cv_type_fsfilcnt_t = yes; then
20356
20357cat >>confdefs.h <<_ACEOF
20358#define HAVE_FSFILCNT_T 1
20359_ACEOF
20360
20361
20362fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020363
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020364{ echo "$as_me:$LINENO: checking for sigset_t" >&5
20365echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020366if test "${ac_cv_type_sigset_t+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20368else
20369 cat >conftest.$ac_ext <<_ACEOF
20370/* confdefs.h. */
20371_ACEOF
20372cat confdefs.h >>conftest.$ac_ext
20373cat >>conftest.$ac_ext <<_ACEOF
20374/* end confdefs.h. */
20375#include <signal.h>
20376
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020377typedef sigset_t ac__type_new_;
Paul Millar10a6c562004-12-07 17:19:54 +000020378int
20379main ()
20380{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020381if ((ac__type_new_ *) 0)
Paul Millar10a6c562004-12-07 17:19:54 +000020382 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020383if (sizeof (ac__type_new_))
Paul Millar10a6c562004-12-07 17:19:54 +000020384 return 0;
20385 ;
20386 return 0;
20387}
20388_ACEOF
20389rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020390if { (ac_try="$ac_compile"
20391case "(($ac_try" in
20392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20393 *) ac_try_echo=$ac_try;;
20394esac
20395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20396 (eval "$ac_compile") 2>conftest.er1
Paul Millar10a6c562004-12-07 17:19:54 +000020397 ac_status=$?
20398 grep -v '^ *+' conftest.er1 >conftest.err
20399 rm -f conftest.er1
20400 cat conftest.err >&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20404 { (case "(($ac_try" in
20405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406 *) ac_try_echo=$ac_try;;
20407esac
20408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409 (eval "$ac_try") 2>&5
Paul Millar10a6c562004-12-07 17:19:54 +000020410 ac_status=$?
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; } &&
20413 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020414 { (case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20417esac
20418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_try") 2>&5
Paul Millar10a6c562004-12-07 17:19:54 +000020420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; }; then
20423 ac_cv_type_sigset_t=yes
20424else
20425 echo "$as_me: failed program was:" >&5
20426sed 's/^/| /' conftest.$ac_ext >&5
20427
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020428 ac_cv_type_sigset_t=no
Paul Millar10a6c562004-12-07 17:19:54 +000020429fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020430
Jeremy White0ebeb532006-06-20 13:18:41 +020020431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000020432fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020433{ echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
20434echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020435if test $ac_cv_type_sigset_t = yes; then
20436
20437cat >>confdefs.h <<_ACEOF
20438#define HAVE_SIGSET_T 1
20439_ACEOF
20440
20441
20442fi
20443
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020444{ echo "$as_me:$LINENO: checking for request_sense" >&5
20445echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020446if test "${ac_cv_type_request_sense+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20448else
20449 cat >conftest.$ac_ext <<_ACEOF
20450/* confdefs.h. */
20451_ACEOF
20452cat confdefs.h >>conftest.$ac_ext
20453cat >>conftest.$ac_ext <<_ACEOF
20454/* end confdefs.h. */
20455#include <linux/cdrom.h>
20456
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020457typedef request_sense ac__type_new_;
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020458int
20459main ()
20460{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020461if ((ac__type_new_ *) 0)
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020462 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020463if (sizeof (ac__type_new_))
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020464 return 0;
20465 ;
20466 return 0;
20467}
20468_ACEOF
20469rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020470if { (ac_try="$ac_compile"
20471case "(($ac_try" in
20472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20473 *) ac_try_echo=$ac_try;;
20474esac
20475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20476 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020477 ac_status=$?
20478 grep -v '^ *+' conftest.er1 >conftest.err
20479 rm -f conftest.er1
20480 cat conftest.err >&5
20481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20484 { (case "(($ac_try" in
20485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486 *) ac_try_echo=$ac_try;;
20487esac
20488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489 (eval "$ac_try") 2>&5
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020490 ac_status=$?
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; } &&
20493 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020494 { (case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20497esac
20498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_try") 2>&5
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020500 ac_status=$?
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; }; then
20503 ac_cv_type_request_sense=yes
20504else
20505 echo "$as_me: failed program was:" >&5
20506sed 's/^/| /' conftest.$ac_ext >&5
20507
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020508 ac_cv_type_request_sense=no
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020509fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020510
Jeremy White0ebeb532006-06-20 13:18:41 +020020511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020512fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020513{ echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
20514echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020515if test $ac_cv_type_request_sense = yes; then
20516
20517cat >>confdefs.h <<_ACEOF
20518#define HAVE_REQUEST_SENSE 1
20519_ACEOF
20520
20521
20522fi
20523
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020524
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020525{ echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
20526echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
Daniel Remenake491e8f2005-07-29 14:18:58 +000020527if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20529else
20530 cat >conftest.$ac_ext <<_ACEOF
20531/* confdefs.h. */
20532_ACEOF
20533cat confdefs.h >>conftest.$ac_ext
20534cat >>conftest.$ac_ext <<_ACEOF
20535/* end confdefs.h. */
20536#ifdef HAVE_LINUX_INPUT_H
20537#include <linux/input.h>
20538#endif
20539
20540int
20541main ()
20542{
20543static struct ff_effect ac_aggr;
20544if (ac_aggr.direction)
20545return 0;
20546 ;
20547 return 0;
20548}
20549_ACEOF
20550rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020551if { (ac_try="$ac_compile"
20552case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20555esac
20556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_compile") 2>conftest.er1
Daniel Remenake491e8f2005-07-29 14:18:58 +000020558 ac_status=$?
20559 grep -v '^ *+' conftest.er1 >conftest.err
20560 rm -f conftest.er1
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20565 { (case "(($ac_try" in
20566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567 *) ac_try_echo=$ac_try;;
20568esac
20569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; } &&
20574 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020575 { (case "(($ac_try" in
20576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577 *) ac_try_echo=$ac_try;;
20578esac
20579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20580 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020581 ac_status=$?
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
20584 ac_cv_member_struct_ff_effect_direction=yes
20585else
20586 echo "$as_me: failed program was:" >&5
20587sed 's/^/| /' conftest.$ac_ext >&5
20588
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020589 cat >conftest.$ac_ext <<_ACEOF
Daniel Remenake491e8f2005-07-29 14:18:58 +000020590/* confdefs.h. */
20591_ACEOF
20592cat confdefs.h >>conftest.$ac_ext
20593cat >>conftest.$ac_ext <<_ACEOF
20594/* end confdefs.h. */
20595#ifdef HAVE_LINUX_INPUT_H
20596#include <linux/input.h>
20597#endif
20598
20599int
20600main ()
20601{
20602static struct ff_effect ac_aggr;
20603if (sizeof ac_aggr.direction)
20604return 0;
20605 ;
20606 return 0;
20607}
20608_ACEOF
20609rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020610if { (ac_try="$ac_compile"
20611case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20614esac
20615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_compile") 2>conftest.er1
Daniel Remenake491e8f2005-07-29 14:18:58 +000020617 ac_status=$?
20618 grep -v '^ *+' conftest.er1 >conftest.err
20619 rm -f conftest.er1
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20624 { (case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20627esac
20628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; } &&
20633 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637esac
20638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 ac_cv_member_struct_ff_effect_direction=yes
20644else
20645 echo "$as_me: failed program was:" >&5
20646sed 's/^/| /' conftest.$ac_ext >&5
20647
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020648 ac_cv_member_struct_ff_effect_direction=no
Daniel Remenake491e8f2005-07-29 14:18:58 +000020649fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020650
Jeremy White0ebeb532006-06-20 13:18:41 +020020651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Remenake491e8f2005-07-29 14:18:58 +000020652fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020653
Jeremy White0ebeb532006-06-20 13:18:41 +020020654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Remenake491e8f2005-07-29 14:18:58 +000020655fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020656{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
20657echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
Daniel Remenake491e8f2005-07-29 14:18:58 +000020658if test $ac_cv_member_struct_ff_effect_direction = yes; then
20659
20660cat >>confdefs.h <<_ACEOF
20661#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
20662_ACEOF
20663
20664
20665fi
20666
20667
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020668{ echo "$as_me:$LINENO: checking for sigaddset" >&5
20669echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020670if test "${wine_cv_have_sigaddset+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20672else
20673 cat >conftest.$ac_ext <<_ACEOF
20674/* confdefs.h. */
20675_ACEOF
20676cat confdefs.h >>conftest.$ac_ext
20677cat >>conftest.$ac_ext <<_ACEOF
20678/* end confdefs.h. */
20679#include <signal.h>
20680int
20681main ()
20682{
20683sigset_t set; sigaddset(&set,SIGTERM);
20684 ;
20685 return 0;
20686}
20687_ACEOF
20688rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020020689if { (ac_try="$ac_link"
20690case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20693esac
20694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_link") 2>conftest.er1
Paul Millar10a6c562004-12-07 17:19:54 +000020696 ac_status=$?
20697 grep -v '^ *+' conftest.er1 >conftest.err
20698 rm -f conftest.er1
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20703 { (case "(($ac_try" in
20704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705 *) ac_try_echo=$ac_try;;
20706esac
20707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708 (eval "$ac_try") 2>&5
Paul Millar10a6c562004-12-07 17:19:54 +000020709 ac_status=$?
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); }; } &&
20712 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020713 { (case "(($ac_try" in
20714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20715 *) ac_try_echo=$ac_try;;
20716esac
20717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20718 (eval "$ac_try") 2>&5
Paul Millar10a6c562004-12-07 17:19:54 +000020719 ac_status=$?
20720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721 (exit $ac_status); }; }; then
20722 wine_cv_have_sigaddset=yes
20723else
20724 echo "$as_me: failed program was:" >&5
20725sed 's/^/| /' conftest.$ac_ext >&5
20726
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020727 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000020728fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020729
Jeremy White0ebeb532006-06-20 13:18:41 +020020730rm -f core conftest.err conftest.$ac_objext \
Paul Millar10a6c562004-12-07 17:19:54 +000020731 conftest$ac_exeext conftest.$ac_ext
20732fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020733{ echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
20734echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020735if test "$wine_cv_have_sigaddset" = "yes"
20736then
20737
20738cat >>confdefs.h <<\_ACEOF
20739#define HAVE_SIGADDSET 1
20740_ACEOF
20741
20742fi
20743
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020744
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020745{ echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
20746echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020747if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000020749else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020750 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020751/* confdefs.h. */
20752_ACEOF
20753cat confdefs.h >>conftest.$ac_ext
20754cat >>conftest.$ac_ext <<_ACEOF
20755/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000020756
20757#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020758
20759int
20760main ()
20761{
Rein Klazesff7a61f2000-09-24 19:41:57 +000020762
20763 char *name=NULL;
20764 struct hostent he;
20765 struct hostent *result;
20766 char *buf=NULL;
20767 int bufsize=0;
20768 int res,errnr;
20769 char *addr=NULL;
20770 int addrlen=0;
20771 int addrtype=0;
20772 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
20773 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020774
20775 ;
20776 return 0;
20777}
20778_ACEOF
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000020779rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020020780if { (ac_try="$ac_link"
20781case "(($ac_try" in
20782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20784esac
20785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020787 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020788 grep -v '^ *+' conftest.er1 >conftest.err
20789 rm -f conftest.er1
20790 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020792 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20794 { (case "(($ac_try" in
20795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796 *) ac_try_echo=$ac_try;;
20797esac
20798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020800 ac_status=$?
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; } &&
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000020803 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020804 { (case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20807esac
20808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020810 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020812 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000020813 wine_cv_linux_gethostbyname_r_6=yes
20814else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020815 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020816sed 's/^/| /' conftest.$ac_ext >&5
20817
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020818 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000020819
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020820fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020821
Jeremy White0ebeb532006-06-20 13:18:41 +020020822rm -f core conftest.err conftest.$ac_objext \
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000020823 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020824
20825fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020826{ echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
20827echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000020828 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
20829 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020830
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020831cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000020832#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020833_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000020834
20835 fi
20836
Marcus Meissner028e9a11999-08-04 15:07:56 +000020837if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020838then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020839 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
20840echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020841if test "${wine_cv_linux_joystick_22_api+set}" = set; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020843else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020844 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020845/* confdefs.h. */
20846_ACEOF
20847cat confdefs.h >>conftest.$ac_ext
20848cat >>conftest.$ac_ext <<_ACEOF
20849/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020850
Marcus Meissner028e9a11999-08-04 15:07:56 +000020851 #include <sys/ioctl.h>
20852 #include <linux/joystick.h>
20853
20854 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000020855 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
20856 #error "no 2.2 header"
20857 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020858
20859int
20860main ()
20861{
Marcus Meissner028e9a11999-08-04 15:07:56 +000020862/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020863 ;
20864 return 0;
20865}
20866_ACEOF
20867rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020868if { (ac_try="$ac_compile"
20869case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20872esac
20873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20874 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020875 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020876 grep -v '^ *+' conftest.er1 >conftest.err
20877 rm -f conftest.er1
20878 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020880 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20882 { (case "(($ac_try" in
20883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884 *) ac_try_echo=$ac_try;;
20885esac
20886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; } &&
20891 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020892 { (case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20895esac
20896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20897 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020898 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020900 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000020901 wine_cv_linux_joystick_22_api=yes
20902else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020903 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020904sed 's/^/| /' conftest.$ac_ext >&5
20905
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020906 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000020907fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020908
Jeremy White0ebeb532006-06-20 13:18:41 +020020909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000020910
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020911fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020912{ echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
20913echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000020914 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000020915 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020916
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020917cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000020918#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020919_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000020920
20921 fi
20922fi
20923
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020924
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020925{ echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
20926echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020927if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020928 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020929else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020930 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020931/* confdefs.h. */
20932_ACEOF
20933cat confdefs.h >>conftest.$ac_ext
20934cat >>conftest.$ac_ext <<_ACEOF
20935/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020936#include <sys/types.h>
20937#ifdef HAVE_SYS_PARAM_H
20938# include <sys/param.h>
20939#endif
Robert Millan55b74482006-02-06 21:53:27 +010020940#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020941# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010020942#endif
20943#ifdef HAVE_SYS_VFS_H
20944# include <sys/vfs.h>
20945#endif
20946#ifdef HAVE_SYS_STATFS_H
20947# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020948#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020949
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020950int
20951main ()
20952{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020953static struct statfs ac_aggr;
20954if (ac_aggr.f_bfree)
20955return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020956 ;
20957 return 0;
20958}
20959_ACEOF
20960rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020961if { (ac_try="$ac_compile"
20962case "(($ac_try" in
20963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964 *) ac_try_echo=$ac_try;;
20965esac
20966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020968 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020969 grep -v '^ *+' conftest.er1 >conftest.err
20970 rm -f conftest.er1
20971 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020973 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20975 { (case "(($ac_try" in
20976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977 *) ac_try_echo=$ac_try;;
20978esac
20979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020981 ac_status=$?
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); }; } &&
20984 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020985 { (case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20988esac
20989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020991 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020993 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020994 ac_cv_member_struct_statfs_f_bfree=yes
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020995else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020996 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020997sed 's/^/| /' conftest.$ac_ext >&5
20998
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020999 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021000/* confdefs.h. */
21001_ACEOF
21002cat confdefs.h >>conftest.$ac_ext
21003cat >>conftest.$ac_ext <<_ACEOF
21004/* end confdefs.h. */
21005#include <sys/types.h>
21006#ifdef HAVE_SYS_PARAM_H
21007# include <sys/param.h>
21008#endif
Robert Millan55b74482006-02-06 21:53:27 +010021009#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021010# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021011#endif
21012#ifdef HAVE_SYS_VFS_H
21013# include <sys/vfs.h>
21014#endif
21015#ifdef HAVE_SYS_STATFS_H
21016# include <sys/statfs.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021017#endif
21018
21019int
21020main ()
21021{
21022static struct statfs ac_aggr;
21023if (sizeof ac_aggr.f_bfree)
21024return 0;
21025 ;
21026 return 0;
21027}
21028_ACEOF
21029rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021030if { (ac_try="$ac_compile"
21031case "(($ac_try" in
21032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033 *) ac_try_echo=$ac_try;;
21034esac
21035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21036 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021037 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000021038 grep -v '^ *+' conftest.er1 >conftest.err
21039 rm -f conftest.er1
21040 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21044 { (case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21047esac
21048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000021050 ac_status=$?
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; } &&
21053 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021054 { (case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21057esac
21058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021060 ac_status=$?
21061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); }; }; then
21063 ac_cv_member_struct_statfs_f_bfree=yes
21064else
21065 echo "$as_me: failed program was:" >&5
21066sed 's/^/| /' conftest.$ac_ext >&5
21067
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021068 ac_cv_member_struct_statfs_f_bfree=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000021069fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021070
Jeremy White0ebeb532006-06-20 13:18:41 +020021071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000021072fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021073
Jeremy White0ebeb532006-06-20 13:18:41 +020021074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021075fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021076{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
21077echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021078if test $ac_cv_member_struct_statfs_f_bfree = yes; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000021079
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021080cat >>confdefs.h <<_ACEOF
21081#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021082_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000021083
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021084
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000021085fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021086{ echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
21087echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021088if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021089 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000021090else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021091 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021092/* confdefs.h. */
21093_ACEOF
21094cat confdefs.h >>conftest.$ac_ext
21095cat >>conftest.$ac_ext <<_ACEOF
21096/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021097#include <sys/types.h>
21098#ifdef HAVE_SYS_PARAM_H
21099# include <sys/param.h>
21100#endif
Robert Millan55b74482006-02-06 21:53:27 +010021101#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021102# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021103#endif
21104#ifdef HAVE_SYS_VFS_H
21105# include <sys/vfs.h>
21106#endif
21107#ifdef HAVE_SYS_STATFS_H
21108# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021109#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021110
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021111int
21112main ()
21113{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021114static struct statfs ac_aggr;
21115if (ac_aggr.f_bavail)
21116return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021117 ;
21118 return 0;
21119}
21120_ACEOF
21121rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021122if { (ac_try="$ac_compile"
21123case "(($ac_try" in
21124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125 *) ac_try_echo=$ac_try;;
21126esac
21127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021129 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000021130 grep -v '^ *+' conftest.er1 >conftest.err
21131 rm -f conftest.er1
21132 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021134 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21136 { (case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21139esac
21140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000021142 ac_status=$?
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); }; } &&
21145 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021146 { (case "(($ac_try" in
21147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148 *) ac_try_echo=$ac_try;;
21149esac
21150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021152 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021154 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021155 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000021156else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021157 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021158sed 's/^/| /' conftest.$ac_ext >&5
21159
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021160 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021161/* confdefs.h. */
21162_ACEOF
21163cat confdefs.h >>conftest.$ac_ext
21164cat >>conftest.$ac_ext <<_ACEOF
21165/* end confdefs.h. */
Alexandre Julliard829fe321998-07-26 14:27:39 +000021166#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021167#ifdef HAVE_SYS_PARAM_H
21168# include <sys/param.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000021169#endif
Robert Millan55b74482006-02-06 21:53:27 +010021170#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021171# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021172#endif
21173#ifdef HAVE_SYS_VFS_H
21174# include <sys/vfs.h>
21175#endif
21176#ifdef HAVE_SYS_STATFS_H
21177# include <sys/statfs.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021178#endif
21179
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021180int
21181main ()
21182{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021183static struct statfs ac_aggr;
21184if (sizeof ac_aggr.f_bavail)
21185return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021186 ;
21187 return 0;
21188}
21189_ACEOF
21190rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021191if { (ac_try="$ac_compile"
21192case "(($ac_try" in
21193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21194 *) ac_try_echo=$ac_try;;
21195esac
21196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21197 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021198 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000021199 grep -v '^ *+' conftest.er1 >conftest.err
21200 rm -f conftest.er1
21201 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021203 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21205 { (case "(($ac_try" in
21206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207 *) ac_try_echo=$ac_try;;
21208esac
21209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21210 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000021211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; } &&
21214 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021215 { (case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21218esac
21219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021221 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021223 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021224 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliard829fe321998-07-26 14:27:39 +000021225else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021226 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021227sed 's/^/| /' conftest.$ac_ext >&5
21228
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021229 ac_cv_member_struct_statfs_f_bavail=no
Alexandre Julliard829fe321998-07-26 14:27:39 +000021230fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021231
Jeremy White0ebeb532006-06-20 13:18:41 +020021232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000021233fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021234
Jeremy White0ebeb532006-06-20 13:18:41 +020021235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000021236fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021237{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
21238echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021239if test $ac_cv_member_struct_statfs_f_bavail = yes; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000021240
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021241cat >>confdefs.h <<_ACEOF
21242#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021243_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000021244
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021245
Patrik Stridvall09da9662001-07-08 22:30:50 +000021246fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021247{ echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
21248echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021249if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
21250 echo $ECHO_N "(cached) $ECHO_C" >&6
21251else
21252 cat >conftest.$ac_ext <<_ACEOF
21253/* confdefs.h. */
21254_ACEOF
21255cat confdefs.h >>conftest.$ac_ext
21256cat >>conftest.$ac_ext <<_ACEOF
21257/* end confdefs.h. */
21258#include <sys/types.h>
21259#ifdef HAVE_SYS_PARAM_H
21260# include <sys/param.h>
21261#endif
Robert Millan55b74482006-02-06 21:53:27 +010021262#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021263# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021264#endif
21265#ifdef HAVE_SYS_VFS_H
21266# include <sys/vfs.h>
21267#endif
21268#ifdef HAVE_SYS_STATFS_H
21269# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021270#endif
21271
21272int
21273main ()
21274{
21275static struct statfs ac_aggr;
21276if (ac_aggr.f_frsize)
21277return 0;
21278 ;
21279 return 0;
21280}
21281_ACEOF
21282rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021283if { (ac_try="$ac_compile"
21284case "(($ac_try" in
21285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286 *) ac_try_echo=$ac_try;;
21287esac
21288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21289 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021290 ac_status=$?
21291 grep -v '^ *+' conftest.er1 >conftest.err
21292 rm -f conftest.er1
21293 cat conftest.err >&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21297 { (case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21300esac
21301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021303 ac_status=$?
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; } &&
21306 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021307 { (case "(($ac_try" in
21308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21309 *) ac_try_echo=$ac_try;;
21310esac
21311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021313 ac_status=$?
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; }; then
21316 ac_cv_member_struct_statfs_f_frsize=yes
21317else
21318 echo "$as_me: failed program was:" >&5
21319sed 's/^/| /' conftest.$ac_ext >&5
21320
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021321 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000021322/* confdefs.h. */
21323_ACEOF
21324cat confdefs.h >>conftest.$ac_ext
21325cat >>conftest.$ac_ext <<_ACEOF
21326/* end confdefs.h. */
21327#include <sys/types.h>
21328#ifdef HAVE_SYS_PARAM_H
21329# include <sys/param.h>
21330#endif
Robert Millan55b74482006-02-06 21:53:27 +010021331#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021332# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021333#endif
21334#ifdef HAVE_SYS_VFS_H
21335# include <sys/vfs.h>
21336#endif
21337#ifdef HAVE_SYS_STATFS_H
21338# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021339#endif
21340
21341int
21342main ()
21343{
21344static struct statfs ac_aggr;
21345if (sizeof ac_aggr.f_frsize)
21346return 0;
21347 ;
21348 return 0;
21349}
21350_ACEOF
21351rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021352if { (ac_try="$ac_compile"
21353case "(($ac_try" in
21354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355 *) ac_try_echo=$ac_try;;
21356esac
21357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021359 ac_status=$?
21360 grep -v '^ *+' conftest.er1 >conftest.err
21361 rm -f conftest.er1
21362 cat conftest.err >&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21366 { (case "(($ac_try" in
21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368 *) ac_try_echo=$ac_try;;
21369esac
21370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021372 ac_status=$?
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); }; } &&
21375 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021376 { (case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21379esac
21380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021382 ac_status=$?
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); }; }; then
21385 ac_cv_member_struct_statfs_f_frsize=yes
21386else
21387 echo "$as_me: failed program was:" >&5
21388sed 's/^/| /' conftest.$ac_ext >&5
21389
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021390 ac_cv_member_struct_statfs_f_frsize=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000021391fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021392
Jeremy White0ebeb532006-06-20 13:18:41 +020021393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021394fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021395
Jeremy White0ebeb532006-06-20 13:18:41 +020021396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021397fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021398{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
21399echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021400if test $ac_cv_member_struct_statfs_f_frsize = yes; then
21401
21402cat >>confdefs.h <<_ACEOF
21403#define HAVE_STRUCT_STATFS_F_FRSIZE 1
21404_ACEOF
21405
21406
21407fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021408{ echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
21409echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021410if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21412else
21413 cat >conftest.$ac_ext <<_ACEOF
21414/* confdefs.h. */
21415_ACEOF
21416cat confdefs.h >>conftest.$ac_ext
21417cat >>conftest.$ac_ext <<_ACEOF
21418/* end confdefs.h. */
21419#include <sys/types.h>
21420#ifdef HAVE_SYS_PARAM_H
21421# include <sys/param.h>
21422#endif
Robert Millan55b74482006-02-06 21:53:27 +010021423#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021424# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021425#endif
21426#ifdef HAVE_SYS_VFS_H
21427# include <sys/vfs.h>
21428#endif
21429#ifdef HAVE_SYS_STATFS_H
21430# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021431#endif
21432
21433int
21434main ()
21435{
21436static struct statfs ac_aggr;
21437if (ac_aggr.f_ffree)
21438return 0;
21439 ;
21440 return 0;
21441}
21442_ACEOF
21443rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021444if { (ac_try="$ac_compile"
21445case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21448esac
21449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021451 ac_status=$?
21452 grep -v '^ *+' conftest.er1 >conftest.err
21453 rm -f conftest.er1
21454 cat conftest.err >&5
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21458 { (case "(($ac_try" in
21459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21460 *) ac_try_echo=$ac_try;;
21461esac
21462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21463 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021464 ac_status=$?
21465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21466 (exit $ac_status); }; } &&
21467 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021468 { (case "(($ac_try" in
21469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21470 *) ac_try_echo=$ac_try;;
21471esac
21472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21473 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021474 ac_status=$?
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); }; }; then
21477 ac_cv_member_struct_statfs_f_ffree=yes
21478else
21479 echo "$as_me: failed program was:" >&5
21480sed 's/^/| /' conftest.$ac_ext >&5
21481
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021482 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000021483/* confdefs.h. */
21484_ACEOF
21485cat confdefs.h >>conftest.$ac_ext
21486cat >>conftest.$ac_ext <<_ACEOF
21487/* end confdefs.h. */
21488#include <sys/types.h>
21489#ifdef HAVE_SYS_PARAM_H
21490# include <sys/param.h>
21491#endif
Robert Millan55b74482006-02-06 21:53:27 +010021492#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021493# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021494#endif
21495#ifdef HAVE_SYS_VFS_H
21496# include <sys/vfs.h>
21497#endif
21498#ifdef HAVE_SYS_STATFS_H
21499# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021500#endif
21501
21502int
21503main ()
21504{
21505static struct statfs ac_aggr;
21506if (sizeof ac_aggr.f_ffree)
21507return 0;
21508 ;
21509 return 0;
21510}
21511_ACEOF
21512rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021513if { (ac_try="$ac_compile"
21514case "(($ac_try" in
21515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516 *) ac_try_echo=$ac_try;;
21517esac
21518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21519 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021520 ac_status=$?
21521 grep -v '^ *+' conftest.er1 >conftest.err
21522 rm -f conftest.er1
21523 cat conftest.err >&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21527 { (case "(($ac_try" in
21528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21530esac
21531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021533 ac_status=$?
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; } &&
21536 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021537 { (case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21540esac
21541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021543 ac_status=$?
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
21546 ac_cv_member_struct_statfs_f_ffree=yes
21547else
21548 echo "$as_me: failed program was:" >&5
21549sed 's/^/| /' conftest.$ac_ext >&5
21550
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021551 ac_cv_member_struct_statfs_f_ffree=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000021552fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021553
Jeremy White0ebeb532006-06-20 13:18:41 +020021554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021555fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021556
Jeremy White0ebeb532006-06-20 13:18:41 +020021557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021558fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021559{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
21560echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021561if test $ac_cv_member_struct_statfs_f_ffree = yes; then
21562
21563cat >>confdefs.h <<_ACEOF
21564#define HAVE_STRUCT_STATFS_F_FFREE 1
21565_ACEOF
21566
21567
21568fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021569{ echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
21570echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021571if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
21572 echo $ECHO_N "(cached) $ECHO_C" >&6
21573else
21574 cat >conftest.$ac_ext <<_ACEOF
21575/* confdefs.h. */
21576_ACEOF
21577cat confdefs.h >>conftest.$ac_ext
21578cat >>conftest.$ac_ext <<_ACEOF
21579/* end confdefs.h. */
21580#include <sys/types.h>
21581#ifdef HAVE_SYS_PARAM_H
21582# include <sys/param.h>
21583#endif
Robert Millan55b74482006-02-06 21:53:27 +010021584#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021585# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021586#endif
21587#ifdef HAVE_SYS_VFS_H
21588# include <sys/vfs.h>
21589#endif
21590#ifdef HAVE_SYS_STATFS_H
21591# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021592#endif
21593
21594int
21595main ()
21596{
21597static struct statfs ac_aggr;
21598if (ac_aggr.f_favail)
21599return 0;
21600 ;
21601 return 0;
21602}
21603_ACEOF
21604rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021605if { (ac_try="$ac_compile"
21606case "(($ac_try" in
21607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21608 *) ac_try_echo=$ac_try;;
21609esac
21610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21611 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021612 ac_status=$?
21613 grep -v '^ *+' conftest.er1 >conftest.err
21614 rm -f conftest.er1
21615 cat conftest.err >&5
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21619 { (case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21622esac
21623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; } &&
21628 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021629 { (case "(($ac_try" in
21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631 *) ac_try_echo=$ac_try;;
21632esac
21633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21634 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; }; then
21638 ac_cv_member_struct_statfs_f_favail=yes
21639else
21640 echo "$as_me: failed program was:" >&5
21641sed 's/^/| /' conftest.$ac_ext >&5
21642
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021643 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000021644/* confdefs.h. */
21645_ACEOF
21646cat confdefs.h >>conftest.$ac_ext
21647cat >>conftest.$ac_ext <<_ACEOF
21648/* end confdefs.h. */
21649#include <sys/types.h>
21650#ifdef HAVE_SYS_PARAM_H
21651# include <sys/param.h>
21652#endif
Robert Millan55b74482006-02-06 21:53:27 +010021653#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021654# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021655#endif
21656#ifdef HAVE_SYS_VFS_H
21657# include <sys/vfs.h>
21658#endif
21659#ifdef HAVE_SYS_STATFS_H
21660# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021661#endif
21662
21663int
21664main ()
21665{
21666static struct statfs ac_aggr;
21667if (sizeof ac_aggr.f_favail)
21668return 0;
21669 ;
21670 return 0;
21671}
21672_ACEOF
21673rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021674if { (ac_try="$ac_compile"
21675case "(($ac_try" in
21676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677 *) ac_try_echo=$ac_try;;
21678esac
21679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021681 ac_status=$?
21682 grep -v '^ *+' conftest.er1 >conftest.err
21683 rm -f conftest.er1
21684 cat conftest.err >&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21688 { (case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21691esac
21692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21693 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021694 ac_status=$?
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; } &&
21697 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021698 { (case "(($ac_try" in
21699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700 *) ac_try_echo=$ac_try;;
21701esac
21702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021704 ac_status=$?
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; }; then
21707 ac_cv_member_struct_statfs_f_favail=yes
21708else
21709 echo "$as_me: failed program was:" >&5
21710sed 's/^/| /' conftest.$ac_ext >&5
21711
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021712 ac_cv_member_struct_statfs_f_favail=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000021713fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021714
Jeremy White0ebeb532006-06-20 13:18:41 +020021715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021716fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021717
Jeremy White0ebeb532006-06-20 13:18:41 +020021718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021719fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021720{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
21721echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021722if test $ac_cv_member_struct_statfs_f_favail = yes; then
21723
21724cat >>confdefs.h <<_ACEOF
21725#define HAVE_STRUCT_STATFS_F_FAVAIL 1
21726_ACEOF
21727
21728
21729fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021730{ echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
21731echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
Alexandre Julliardb859a682004-03-07 03:16:43 +000021732if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
21733 echo $ECHO_N "(cached) $ECHO_C" >&6
21734else
21735 cat >conftest.$ac_ext <<_ACEOF
21736/* confdefs.h. */
21737_ACEOF
21738cat confdefs.h >>conftest.$ac_ext
21739cat >>conftest.$ac_ext <<_ACEOF
21740/* end confdefs.h. */
21741#include <sys/types.h>
21742#ifdef HAVE_SYS_PARAM_H
21743# include <sys/param.h>
21744#endif
Robert Millan55b74482006-02-06 21:53:27 +010021745#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000021746# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021747#endif
21748#ifdef HAVE_SYS_VFS_H
21749# include <sys/vfs.h>
21750#endif
21751#ifdef HAVE_SYS_STATFS_H
21752# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000021753#endif
21754
21755int
21756main ()
21757{
21758static struct statfs ac_aggr;
21759if (ac_aggr.f_namelen)
21760return 0;
21761 ;
21762 return 0;
21763}
21764_ACEOF
21765rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021766if { (ac_try="$ac_compile"
21767case "(($ac_try" in
21768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21769 *) ac_try_echo=$ac_try;;
21770esac
21771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21772 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardb859a682004-03-07 03:16:43 +000021773 ac_status=$?
21774 grep -v '^ *+' conftest.er1 >conftest.err
21775 rm -f conftest.er1
21776 cat conftest.err >&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21780 { (case "(($ac_try" in
21781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782 *) ac_try_echo=$ac_try;;
21783esac
21784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021786 ac_status=$?
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); }; } &&
21789 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021790 { (case "(($ac_try" in
21791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21792 *) ac_try_echo=$ac_try;;
21793esac
21794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21795 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; }; then
21799 ac_cv_member_struct_statfs_f_namelen=yes
21800else
21801 echo "$as_me: failed program was:" >&5
21802sed 's/^/| /' conftest.$ac_ext >&5
21803
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021804 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb859a682004-03-07 03:16:43 +000021805/* confdefs.h. */
21806_ACEOF
21807cat confdefs.h >>conftest.$ac_ext
21808cat >>conftest.$ac_ext <<_ACEOF
21809/* end confdefs.h. */
21810#include <sys/types.h>
21811#ifdef HAVE_SYS_PARAM_H
21812# include <sys/param.h>
21813#endif
Robert Millan55b74482006-02-06 21:53:27 +010021814#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000021815# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021816#endif
21817#ifdef HAVE_SYS_VFS_H
21818# include <sys/vfs.h>
21819#endif
21820#ifdef HAVE_SYS_STATFS_H
21821# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000021822#endif
21823
21824int
21825main ()
21826{
21827static struct statfs ac_aggr;
21828if (sizeof ac_aggr.f_namelen)
21829return 0;
21830 ;
21831 return 0;
21832}
21833_ACEOF
21834rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021835if { (ac_try="$ac_compile"
21836case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21839esac
21840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardb859a682004-03-07 03:16:43 +000021842 ac_status=$?
21843 grep -v '^ *+' conftest.er1 >conftest.err
21844 rm -f conftest.er1
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21849 { (case "(($ac_try" in
21850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21852esac
21853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021855 ac_status=$?
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); }; } &&
21858 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021859 { (case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21862esac
21863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021865 ac_status=$?
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); }; }; then
21868 ac_cv_member_struct_statfs_f_namelen=yes
21869else
21870 echo "$as_me: failed program was:" >&5
21871sed 's/^/| /' conftest.$ac_ext >&5
21872
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021873 ac_cv_member_struct_statfs_f_namelen=no
Alexandre Julliardb859a682004-03-07 03:16:43 +000021874fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021875
Jeremy White0ebeb532006-06-20 13:18:41 +020021876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb859a682004-03-07 03:16:43 +000021877fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021878
Jeremy White0ebeb532006-06-20 13:18:41 +020021879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb859a682004-03-07 03:16:43 +000021880fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021881{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
21882echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
Alexandre Julliardb859a682004-03-07 03:16:43 +000021883if test $ac_cv_member_struct_statfs_f_namelen = yes; then
21884
21885cat >>confdefs.h <<_ACEOF
21886#define HAVE_STRUCT_STATFS_F_NAMELEN 1
21887_ACEOF
21888
21889
21890fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000021891
21892
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021893{ echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
21894echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021895if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
21896 echo $ECHO_N "(cached) $ECHO_C" >&6
21897else
21898 cat >conftest.$ac_ext <<_ACEOF
21899/* confdefs.h. */
21900_ACEOF
21901cat confdefs.h >>conftest.$ac_ext
21902cat >>conftest.$ac_ext <<_ACEOF
21903/* end confdefs.h. */
21904#ifdef HAVE_SYS_STATVFS_H
21905#include <sys/statvfs.h>
21906#endif
21907
21908int
21909main ()
21910{
21911static struct statvfs ac_aggr;
21912if (ac_aggr.f_blocks)
21913return 0;
21914 ;
21915 return 0;
21916}
21917_ACEOF
21918rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021919if { (ac_try="$ac_compile"
21920case "(($ac_try" in
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922 *) ac_try_echo=$ac_try;;
21923esac
21924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021926 ac_status=$?
21927 grep -v '^ *+' conftest.er1 >conftest.err
21928 rm -f conftest.er1
21929 cat conftest.err >&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21933 { (case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21936esac
21937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021939 ac_status=$?
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; } &&
21942 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021943 { (case "(($ac_try" in
21944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945 *) ac_try_echo=$ac_try;;
21946esac
21947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; }; then
21952 ac_cv_member_struct_statvfs_f_blocks=yes
21953else
21954 echo "$as_me: failed program was:" >&5
21955sed 's/^/| /' conftest.$ac_ext >&5
21956
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021957 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000021958/* confdefs.h. */
21959_ACEOF
21960cat confdefs.h >>conftest.$ac_ext
21961cat >>conftest.$ac_ext <<_ACEOF
21962/* end confdefs.h. */
21963#ifdef HAVE_SYS_STATVFS_H
21964#include <sys/statvfs.h>
21965#endif
21966
21967int
21968main ()
21969{
21970static struct statvfs ac_aggr;
21971if (sizeof ac_aggr.f_blocks)
21972return 0;
21973 ;
21974 return 0;
21975}
21976_ACEOF
21977rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021978if { (ac_try="$ac_compile"
21979case "(($ac_try" in
21980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21982esac
21983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21984 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021985 ac_status=$?
21986 grep -v '^ *+' conftest.er1 >conftest.err
21987 rm -f conftest.er1
21988 cat conftest.err >&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21992 { (case "(($ac_try" in
21993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994 *) ac_try_echo=$ac_try;;
21995esac
21996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021998 ac_status=$?
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; } &&
22001 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022002 { (case "(($ac_try" in
22003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22004 *) ac_try_echo=$ac_try;;
22005esac
22006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22007 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000022008 ac_status=$?
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); }; }; then
22011 ac_cv_member_struct_statvfs_f_blocks=yes
22012else
22013 echo "$as_me: failed program was:" >&5
22014sed 's/^/| /' conftest.$ac_ext >&5
22015
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022016 ac_cv_member_struct_statvfs_f_blocks=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000022017fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022018
Jeremy White0ebeb532006-06-20 13:18:41 +020022019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000022020fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022021
Jeremy White0ebeb532006-06-20 13:18:41 +020022022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000022023fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022024{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
22025echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000022026if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
22027
22028cat >>confdefs.h <<_ACEOF
22029#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
22030_ACEOF
22031
22032
22033fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000022034
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022035
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022036{ echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
22037echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022038if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022039 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000022040else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022041 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000022042/* confdefs.h. */
22043_ACEOF
22044cat confdefs.h >>conftest.$ac_ext
22045cat >>conftest.$ac_ext <<_ACEOF
22046/* end confdefs.h. */
Patrik Stridvall09da9662001-07-08 22:30:50 +000022047#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000022048#ifdef HAVE_SYS_SOCKET_H
22049# include <sys/socket.h>
22050#endif
22051#ifdef HAVE_SYS_UN_H
22052# include <sys/un.h>
22053#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022054
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022055int
22056main ()
22057{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022058static struct msghdr ac_aggr;
22059if (ac_aggr.msg_accrights)
22060return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022061 ;
22062 return 0;
22063}
22064_ACEOF
22065rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022066if { (ac_try="$ac_compile"
22067case "(($ac_try" in
22068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22069 *) ac_try_echo=$ac_try;;
22070esac
22071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22072 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022073 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022074 grep -v '^ *+' conftest.er1 >conftest.err
22075 rm -f conftest.er1
22076 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022078 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22080 { (case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22083esac
22084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022086 ac_status=$?
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); }; } &&
22089 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022090 { (case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22093esac
22094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022096 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022098 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022099 ac_cv_member_struct_msghdr_msg_accrights=yes
Juergen Lock2d33ab92000-02-13 16:03:29 +000022100else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022101 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000022102sed 's/^/| /' conftest.$ac_ext >&5
22103
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022104 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022105/* confdefs.h. */
22106_ACEOF
22107cat confdefs.h >>conftest.$ac_ext
22108cat >>conftest.$ac_ext <<_ACEOF
22109/* end confdefs.h. */
22110#include <sys/types.h>
22111#ifdef HAVE_SYS_SOCKET_H
22112# include <sys/socket.h>
22113#endif
22114#ifdef HAVE_SYS_UN_H
22115# include <sys/un.h>
22116#endif
22117
22118int
22119main ()
22120{
22121static struct msghdr ac_aggr;
22122if (sizeof ac_aggr.msg_accrights)
22123return 0;
22124 ;
22125 return 0;
22126}
22127_ACEOF
22128rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022129if { (ac_try="$ac_compile"
22130case "(($ac_try" in
22131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132 *) ac_try_echo=$ac_try;;
22133esac
22134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022136 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022137 grep -v '^ *+' conftest.er1 >conftest.err
22138 rm -f conftest.er1
22139 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22143 { (case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22146esac
22147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022149 ac_status=$?
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; } &&
22152 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022153 { (case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22156esac
22157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022159 ac_status=$?
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; }; then
22162 ac_cv_member_struct_msghdr_msg_accrights=yes
22163else
22164 echo "$as_me: failed program was:" >&5
22165sed 's/^/| /' conftest.$ac_ext >&5
22166
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022167 ac_cv_member_struct_msghdr_msg_accrights=no
Juergen Lock2d33ab92000-02-13 16:03:29 +000022168fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022169
Jeremy White0ebeb532006-06-20 13:18:41 +020022170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000022171fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022172
Jeremy White0ebeb532006-06-20 13:18:41 +020022173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022174fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022175{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
22176echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022177if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000022178
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022179cat >>confdefs.h <<_ACEOF
22180#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022181_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000022182
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022183
22184fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022185{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22186echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022187if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
22188 echo $ECHO_N "(cached) $ECHO_C" >&6
22189else
22190 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022191/* confdefs.h. */
22192_ACEOF
22193cat confdefs.h >>conftest.$ac_ext
22194cat >>conftest.$ac_ext <<_ACEOF
22195/* end confdefs.h. */
22196#include <sys/types.h>
22197#ifdef HAVE_SYS_SOCKET_H
22198# include <sys/socket.h>
22199#endif
22200#ifdef HAVE_SYS_UN_H
22201# include <sys/un.h>
22202#endif
22203
22204int
22205main ()
22206{
22207static struct sockaddr ac_aggr;
22208if (ac_aggr.sa_len)
22209return 0;
22210 ;
22211 return 0;
22212}
22213_ACEOF
22214rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022215if { (ac_try="$ac_compile"
22216case "(($ac_try" in
22217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22218 *) ac_try_echo=$ac_try;;
22219esac
22220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22221 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022222 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022223 grep -v '^ *+' conftest.er1 >conftest.err
22224 rm -f conftest.er1
22225 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22229 { (case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22232esac
22233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022235 ac_status=$?
22236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237 (exit $ac_status); }; } &&
22238 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022239 { (case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22242esac
22243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022245 ac_status=$?
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); }; }; then
22248 ac_cv_member_struct_sockaddr_sa_len=yes
22249else
22250 echo "$as_me: failed program was:" >&5
22251sed 's/^/| /' conftest.$ac_ext >&5
22252
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022253 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022254/* confdefs.h. */
22255_ACEOF
22256cat confdefs.h >>conftest.$ac_ext
22257cat >>conftest.$ac_ext <<_ACEOF
22258/* end confdefs.h. */
22259#include <sys/types.h>
22260#ifdef HAVE_SYS_SOCKET_H
22261# include <sys/socket.h>
22262#endif
22263#ifdef HAVE_SYS_UN_H
22264# include <sys/un.h>
22265#endif
22266
22267int
22268main ()
22269{
22270static struct sockaddr ac_aggr;
22271if (sizeof ac_aggr.sa_len)
22272return 0;
22273 ;
22274 return 0;
22275}
22276_ACEOF
22277rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022278if { (ac_try="$ac_compile"
22279case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22282esac
22283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022285 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022286 grep -v '^ *+' conftest.er1 >conftest.err
22287 rm -f conftest.er1
22288 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22292 { (case "(($ac_try" in
22293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294 *) ac_try_echo=$ac_try;;
22295esac
22296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22297 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022298 ac_status=$?
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); }; } &&
22301 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022302 { (case "(($ac_try" in
22303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304 *) ac_try_echo=$ac_try;;
22305esac
22306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022308 ac_status=$?
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); }; }; then
22311 ac_cv_member_struct_sockaddr_sa_len=yes
22312else
22313 echo "$as_me: failed program was:" >&5
22314sed 's/^/| /' conftest.$ac_ext >&5
22315
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022316 ac_cv_member_struct_sockaddr_sa_len=no
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022317fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022318
Jeremy White0ebeb532006-06-20 13:18:41 +020022319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022320fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022321
Jeremy White0ebeb532006-06-20 13:18:41 +020022322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022323fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022324{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22325echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022326if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
22327
22328cat >>confdefs.h <<_ACEOF
22329#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
22330_ACEOF
22331
22332
22333fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022334{ echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
22335echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022336if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
22337 echo $ECHO_N "(cached) $ECHO_C" >&6
22338else
22339 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022340/* confdefs.h. */
22341_ACEOF
22342cat confdefs.h >>conftest.$ac_ext
22343cat >>conftest.$ac_ext <<_ACEOF
22344/* end confdefs.h. */
22345#include <sys/types.h>
22346#ifdef HAVE_SYS_SOCKET_H
22347# include <sys/socket.h>
22348#endif
22349#ifdef HAVE_SYS_UN_H
22350# include <sys/un.h>
22351#endif
22352
22353int
22354main ()
22355{
22356static struct sockaddr_un ac_aggr;
22357if (ac_aggr.sun_len)
22358return 0;
22359 ;
22360 return 0;
22361}
22362_ACEOF
22363rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022364if { (ac_try="$ac_compile"
22365case "(($ac_try" in
22366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22367 *) ac_try_echo=$ac_try;;
22368esac
22369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22370 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022371 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022372 grep -v '^ *+' conftest.er1 >conftest.err
22373 rm -f conftest.er1
22374 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22378 { (case "(($ac_try" in
22379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22380 *) ac_try_echo=$ac_try;;
22381esac
22382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22383 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022384 ac_status=$?
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); }; } &&
22387 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022388 { (case "(($ac_try" in
22389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22390 *) ac_try_echo=$ac_try;;
22391esac
22392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022394 ac_status=$?
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; }; then
22397 ac_cv_member_struct_sockaddr_un_sun_len=yes
22398else
22399 echo "$as_me: failed program was:" >&5
22400sed 's/^/| /' conftest.$ac_ext >&5
22401
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022402 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022403/* confdefs.h. */
22404_ACEOF
22405cat confdefs.h >>conftest.$ac_ext
22406cat >>conftest.$ac_ext <<_ACEOF
22407/* end confdefs.h. */
22408#include <sys/types.h>
22409#ifdef HAVE_SYS_SOCKET_H
22410# include <sys/socket.h>
22411#endif
22412#ifdef HAVE_SYS_UN_H
22413# include <sys/un.h>
22414#endif
22415
22416int
22417main ()
22418{
22419static struct sockaddr_un ac_aggr;
22420if (sizeof ac_aggr.sun_len)
22421return 0;
22422 ;
22423 return 0;
22424}
22425_ACEOF
22426rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022427if { (ac_try="$ac_compile"
22428case "(($ac_try" in
22429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430 *) ac_try_echo=$ac_try;;
22431esac
22432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022434 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022435 grep -v '^ *+' conftest.er1 >conftest.err
22436 rm -f conftest.er1
22437 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022440 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22441 { (case "(($ac_try" in
22442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443 *) ac_try_echo=$ac_try;;
22444esac
22445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22446 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022447 ac_status=$?
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); }; } &&
22450 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022451 { (case "(($ac_try" in
22452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22453 *) ac_try_echo=$ac_try;;
22454esac
22455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22456 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022457 ac_status=$?
22458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); }; }; then
22460 ac_cv_member_struct_sockaddr_un_sun_len=yes
22461else
22462 echo "$as_me: failed program was:" >&5
22463sed 's/^/| /' conftest.$ac_ext >&5
22464
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022465 ac_cv_member_struct_sockaddr_un_sun_len=no
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022466fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022467
Jeremy White0ebeb532006-06-20 13:18:41 +020022468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022469fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022470
Jeremy White0ebeb532006-06-20 13:18:41 +020022471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022472fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022473{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
22474echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022475if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
22476
22477cat >>confdefs.h <<_ACEOF
22478#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
22479_ACEOF
22480
22481
Juergen Lock2d33ab92000-02-13 16:03:29 +000022482fi
22483
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022484
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022485{ echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
22486echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022487if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
22488 echo $ECHO_N "(cached) $ECHO_C" >&6
22489else
22490 cat >conftest.$ac_ext <<_ACEOF
22491/* confdefs.h. */
22492_ACEOF
22493cat confdefs.h >>conftest.$ac_ext
22494cat >>conftest.$ac_ext <<_ACEOF
22495/* end confdefs.h. */
22496#include <sys/types.h>
22497#ifdef HAVE_SCSI_SG_H
22498#include <scsi/sg.h>
22499#endif
22500
22501int
22502main ()
22503{
22504static scsireq_t ac_aggr;
22505if (ac_aggr.cmd)
22506return 0;
22507 ;
22508 return 0;
22509}
22510_ACEOF
22511rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022512if { (ac_try="$ac_compile"
22513case "(($ac_try" in
22514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515 *) ac_try_echo=$ac_try;;
22516esac
22517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022519 ac_status=$?
22520 grep -v '^ *+' conftest.er1 >conftest.err
22521 rm -f conftest.er1
22522 cat conftest.err >&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22526 { (case "(($ac_try" in
22527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22529esac
22530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022532 ac_status=$?
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); }; } &&
22535 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022536 { (case "(($ac_try" in
22537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538 *) ac_try_echo=$ac_try;;
22539esac
22540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22541 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022542 ac_status=$?
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); }; }; then
22545 ac_cv_member_scsireq_t_cmd=yes
22546else
22547 echo "$as_me: failed program was:" >&5
22548sed 's/^/| /' conftest.$ac_ext >&5
22549
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022550 cat >conftest.$ac_ext <<_ACEOF
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022551/* confdefs.h. */
22552_ACEOF
22553cat confdefs.h >>conftest.$ac_ext
22554cat >>conftest.$ac_ext <<_ACEOF
22555/* end confdefs.h. */
22556#include <sys/types.h>
22557#ifdef HAVE_SCSI_SG_H
22558#include <scsi/sg.h>
22559#endif
22560
22561int
22562main ()
22563{
22564static scsireq_t ac_aggr;
22565if (sizeof ac_aggr.cmd)
22566return 0;
22567 ;
22568 return 0;
22569}
22570_ACEOF
22571rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022572if { (ac_try="$ac_compile"
22573case "(($ac_try" in
22574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22575 *) ac_try_echo=$ac_try;;
22576esac
22577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22578 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022579 ac_status=$?
22580 grep -v '^ *+' conftest.er1 >conftest.err
22581 rm -f conftest.er1
22582 cat conftest.err >&5
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22586 { (case "(($ac_try" in
22587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22588 *) ac_try_echo=$ac_try;;
22589esac
22590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22591 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022592 ac_status=$?
22593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594 (exit $ac_status); }; } &&
22595 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022596 { (case "(($ac_try" in
22597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598 *) ac_try_echo=$ac_try;;
22599esac
22600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22601 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022602 ac_status=$?
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); }; }; then
22605 ac_cv_member_scsireq_t_cmd=yes
22606else
22607 echo "$as_me: failed program was:" >&5
22608sed 's/^/| /' conftest.$ac_ext >&5
22609
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022610 ac_cv_member_scsireq_t_cmd=no
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022611fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022612
Jeremy White0ebeb532006-06-20 13:18:41 +020022613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022614fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022615
Jeremy White0ebeb532006-06-20 13:18:41 +020022616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022617fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022618{ echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
22619echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022620if test $ac_cv_member_scsireq_t_cmd = yes; then
22621
22622cat >>confdefs.h <<_ACEOF
22623#define HAVE_SCSIREQ_T_CMD 1
22624_ACEOF
22625
22626
22627fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022628{ echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
22629echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022630if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
22631 echo $ECHO_N "(cached) $ECHO_C" >&6
22632else
22633 cat >conftest.$ac_ext <<_ACEOF
22634/* confdefs.h. */
22635_ACEOF
22636cat confdefs.h >>conftest.$ac_ext
22637cat >>conftest.$ac_ext <<_ACEOF
22638/* end confdefs.h. */
22639#include <sys/types.h>
22640#ifdef HAVE_SCSI_SG_H
22641#include <scsi/sg.h>
22642#endif
22643
22644int
22645main ()
22646{
22647static sg_io_hdr_t ac_aggr;
22648if (ac_aggr.interface_id)
22649return 0;
22650 ;
22651 return 0;
22652}
22653_ACEOF
22654rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022655if { (ac_try="$ac_compile"
22656case "(($ac_try" in
22657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22658 *) ac_try_echo=$ac_try;;
22659esac
22660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22661 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022662 ac_status=$?
22663 grep -v '^ *+' conftest.er1 >conftest.err
22664 rm -f conftest.er1
22665 cat conftest.err >&5
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22669 { (case "(($ac_try" in
22670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671 *) ac_try_echo=$ac_try;;
22672esac
22673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22674 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022675 ac_status=$?
22676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }; } &&
22678 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022679 { (case "(($ac_try" in
22680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681 *) ac_try_echo=$ac_try;;
22682esac
22683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022685 ac_status=$?
22686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687 (exit $ac_status); }; }; then
22688 ac_cv_member_sg_io_hdr_t_interface_id=yes
22689else
22690 echo "$as_me: failed program was:" >&5
22691sed 's/^/| /' conftest.$ac_ext >&5
22692
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022693 cat >conftest.$ac_ext <<_ACEOF
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022694/* confdefs.h. */
22695_ACEOF
22696cat confdefs.h >>conftest.$ac_ext
22697cat >>conftest.$ac_ext <<_ACEOF
22698/* end confdefs.h. */
22699#include <sys/types.h>
22700#ifdef HAVE_SCSI_SG_H
22701#include <scsi/sg.h>
22702#endif
22703
22704int
22705main ()
22706{
22707static sg_io_hdr_t ac_aggr;
22708if (sizeof ac_aggr.interface_id)
22709return 0;
22710 ;
22711 return 0;
22712}
22713_ACEOF
22714rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022715if { (ac_try="$ac_compile"
22716case "(($ac_try" in
22717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718 *) ac_try_echo=$ac_try;;
22719esac
22720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22721 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022722 ac_status=$?
22723 grep -v '^ *+' conftest.er1 >conftest.err
22724 rm -f conftest.er1
22725 cat conftest.err >&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22729 { (case "(($ac_try" in
22730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731 *) ac_try_echo=$ac_try;;
22732esac
22733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22734 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022735 ac_status=$?
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); }; } &&
22738 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022739 { (case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22742esac
22743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022745 ac_status=$?
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); }; }; then
22748 ac_cv_member_sg_io_hdr_t_interface_id=yes
22749else
22750 echo "$as_me: failed program was:" >&5
22751sed 's/^/| /' conftest.$ac_ext >&5
22752
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022753 ac_cv_member_sg_io_hdr_t_interface_id=no
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022754fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022755
Jeremy White0ebeb532006-06-20 13:18:41 +020022756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022757fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022758
Jeremy White0ebeb532006-06-20 13:18:41 +020022759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022760fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022761{ echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
22762echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022763if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
22764
22765cat >>confdefs.h <<_ACEOF
22766#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
22767_ACEOF
22768
22769
22770fi
22771
22772
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022773{ echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
22774echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022775if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
22776 echo $ECHO_N "(cached) $ECHO_C" >&6
22777else
22778 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022779/* confdefs.h. */
22780_ACEOF
22781cat confdefs.h >>conftest.$ac_ext
22782cat >>conftest.$ac_ext <<_ACEOF
22783/* end confdefs.h. */
22784#include <signal.h>
22785
22786int
22787main ()
22788{
22789static siginfo_t ac_aggr;
22790if (ac_aggr.si_fd)
22791return 0;
22792 ;
22793 return 0;
22794}
22795_ACEOF
22796rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022797if { (ac_try="$ac_compile"
22798case "(($ac_try" in
22799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22800 *) ac_try_echo=$ac_try;;
22801esac
22802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22803 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022804 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022805 grep -v '^ *+' conftest.er1 >conftest.err
22806 rm -f conftest.er1
22807 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22811 { (case "(($ac_try" in
22812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813 *) ac_try_echo=$ac_try;;
22814esac
22815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; } &&
22820 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022821 { (case "(($ac_try" in
22822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823 *) ac_try_echo=$ac_try;;
22824esac
22825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022827 ac_status=$?
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); }; }; then
22830 ac_cv_member_siginfo_t_si_fd=yes
22831else
22832 echo "$as_me: failed program was:" >&5
22833sed 's/^/| /' conftest.$ac_ext >&5
22834
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022835 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022836/* confdefs.h. */
22837_ACEOF
22838cat confdefs.h >>conftest.$ac_ext
22839cat >>conftest.$ac_ext <<_ACEOF
22840/* end confdefs.h. */
22841#include <signal.h>
22842
22843int
22844main ()
22845{
22846static siginfo_t ac_aggr;
22847if (sizeof ac_aggr.si_fd)
22848return 0;
22849 ;
22850 return 0;
22851}
22852_ACEOF
22853rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022854if { (ac_try="$ac_compile"
22855case "(($ac_try" in
22856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22857 *) ac_try_echo=$ac_try;;
22858esac
22859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22860 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022861 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022862 grep -v '^ *+' conftest.er1 >conftest.err
22863 rm -f conftest.er1
22864 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22868 { (case "(($ac_try" in
22869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22870 *) ac_try_echo=$ac_try;;
22871esac
22872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22873 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022874 ac_status=$?
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); }; } &&
22877 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022878 { (case "(($ac_try" in
22879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880 *) ac_try_echo=$ac_try;;
22881esac
22882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22883 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022884 ac_status=$?
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; }; then
22887 ac_cv_member_siginfo_t_si_fd=yes
22888else
22889 echo "$as_me: failed program was:" >&5
22890sed 's/^/| /' conftest.$ac_ext >&5
22891
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022892 ac_cv_member_siginfo_t_si_fd=no
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022893fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022894
Jeremy White0ebeb532006-06-20 13:18:41 +020022895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022896fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022897
Jeremy White0ebeb532006-06-20 13:18:41 +020022898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022899fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022900{ echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
22901echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022902if test $ac_cv_member_siginfo_t_si_fd = yes; then
22903
22904cat >>confdefs.h <<_ACEOF
22905#define HAVE_SIGINFO_T_SI_FD 1
22906_ACEOF
22907
22908
22909fi
22910
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022911
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022912{ echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
22913echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022914if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
22915 echo $ECHO_N "(cached) $ECHO_C" >&6
22916else
22917 cat >conftest.$ac_ext <<_ACEOF
22918/* confdefs.h. */
22919_ACEOF
22920cat confdefs.h >>conftest.$ac_ext
22921cat >>conftest.$ac_ext <<_ACEOF
22922/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010022923#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022924#ifdef HAVE_SYS_MTIO_H
22925#include <sys/mtio.h>
22926#endif
22927
22928int
22929main ()
22930{
22931static struct mtget ac_aggr;
22932if (ac_aggr.mt_blksiz)
22933return 0;
22934 ;
22935 return 0;
22936}
22937_ACEOF
22938rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022939if { (ac_try="$ac_compile"
22940case "(($ac_try" in
22941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22942 *) ac_try_echo=$ac_try;;
22943esac
22944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22945 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022946 ac_status=$?
22947 grep -v '^ *+' conftest.er1 >conftest.err
22948 rm -f conftest.er1
22949 cat conftest.err >&5
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22953 { (case "(($ac_try" in
22954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22955 *) ac_try_echo=$ac_try;;
22956esac
22957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22958 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022959 ac_status=$?
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); }; } &&
22962 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022963 { (case "(($ac_try" in
22964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22966esac
22967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22968 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022969 ac_status=$?
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); }; }; then
22972 ac_cv_member_struct_mtget_mt_blksiz=yes
22973else
22974 echo "$as_me: failed program was:" >&5
22975sed 's/^/| /' conftest.$ac_ext >&5
22976
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022977 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022978/* confdefs.h. */
22979_ACEOF
22980cat confdefs.h >>conftest.$ac_ext
22981cat >>conftest.$ac_ext <<_ACEOF
22982/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010022983#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022984#ifdef HAVE_SYS_MTIO_H
22985#include <sys/mtio.h>
22986#endif
22987
22988int
22989main ()
22990{
22991static struct mtget ac_aggr;
22992if (sizeof ac_aggr.mt_blksiz)
22993return 0;
22994 ;
22995 return 0;
22996}
22997_ACEOF
22998rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022999if { (ac_try="$ac_compile"
23000case "(($ac_try" in
23001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23003esac
23004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023006 ac_status=$?
23007 grep -v '^ *+' conftest.er1 >conftest.err
23008 rm -f conftest.er1
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23013 { (case "(($ac_try" in
23014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23015 *) ac_try_echo=$ac_try;;
23016esac
23017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23018 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023019 ac_status=$?
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); }; } &&
23022 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023023 { (case "(($ac_try" in
23024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23025 *) ac_try_echo=$ac_try;;
23026esac
23027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23028 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023029 ac_status=$?
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); }; }; then
23032 ac_cv_member_struct_mtget_mt_blksiz=yes
23033else
23034 echo "$as_me: failed program was:" >&5
23035sed 's/^/| /' conftest.$ac_ext >&5
23036
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023037 ac_cv_member_struct_mtget_mt_blksiz=no
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023038fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023039
Jeremy White0ebeb532006-06-20 13:18:41 +020023040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023041fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023042
Jeremy White0ebeb532006-06-20 13:18:41 +020023043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023044fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023045{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
23046echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023047if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
23048
23049cat >>confdefs.h <<_ACEOF
23050#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
23051_ACEOF
23052
23053
23054fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023055{ echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
23056echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023057if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
23058 echo $ECHO_N "(cached) $ECHO_C" >&6
23059else
23060 cat >conftest.$ac_ext <<_ACEOF
23061/* confdefs.h. */
23062_ACEOF
23063cat confdefs.h >>conftest.$ac_ext
23064cat >>conftest.$ac_ext <<_ACEOF
23065/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010023066#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023067#ifdef HAVE_SYS_MTIO_H
23068#include <sys/mtio.h>
23069#endif
23070
23071int
23072main ()
23073{
23074static struct mtget ac_aggr;
23075if (ac_aggr.mt_gstat)
23076return 0;
23077 ;
23078 return 0;
23079}
23080_ACEOF
23081rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023082if { (ac_try="$ac_compile"
23083case "(($ac_try" in
23084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23085 *) ac_try_echo=$ac_try;;
23086esac
23087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23088 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023089 ac_status=$?
23090 grep -v '^ *+' conftest.er1 >conftest.err
23091 rm -f conftest.er1
23092 cat conftest.err >&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23096 { (case "(($ac_try" in
23097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23098 *) ac_try_echo=$ac_try;;
23099esac
23100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23101 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023102 ac_status=$?
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); }; } &&
23105 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023106 { (case "(($ac_try" in
23107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108 *) ac_try_echo=$ac_try;;
23109esac
23110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23111 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023112 ac_status=$?
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); }; }; then
23115 ac_cv_member_struct_mtget_mt_gstat=yes
23116else
23117 echo "$as_me: failed program was:" >&5
23118sed 's/^/| /' conftest.$ac_ext >&5
23119
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023120 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023121/* confdefs.h. */
23122_ACEOF
23123cat confdefs.h >>conftest.$ac_ext
23124cat >>conftest.$ac_ext <<_ACEOF
23125/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010023126#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023127#ifdef HAVE_SYS_MTIO_H
23128#include <sys/mtio.h>
23129#endif
23130
23131int
23132main ()
23133{
23134static struct mtget ac_aggr;
23135if (sizeof ac_aggr.mt_gstat)
23136return 0;
23137 ;
23138 return 0;
23139}
23140_ACEOF
23141rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023142if { (ac_try="$ac_compile"
23143case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23146esac
23147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023149 ac_status=$?
23150 grep -v '^ *+' conftest.er1 >conftest.err
23151 rm -f conftest.er1
23152 cat conftest.err >&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23156 { (case "(($ac_try" in
23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158 *) ac_try_echo=$ac_try;;
23159esac
23160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23161 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023162 ac_status=$?
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; } &&
23165 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023166 { (case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23169esac
23170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23171 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023172 ac_status=$?
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); }; }; then
23175 ac_cv_member_struct_mtget_mt_gstat=yes
23176else
23177 echo "$as_me: failed program was:" >&5
23178sed 's/^/| /' conftest.$ac_ext >&5
23179
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023180 ac_cv_member_struct_mtget_mt_gstat=no
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023181fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023182
Jeremy White0ebeb532006-06-20 13:18:41 +020023183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023184fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023185
Jeremy White0ebeb532006-06-20 13:18:41 +020023186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023187fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023188{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
23189echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023190if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
23191
23192cat >>confdefs.h <<_ACEOF
23193#define HAVE_STRUCT_MTGET_MT_GSTAT 1
23194_ACEOF
23195
23196
23197fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023198{ echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
23199echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023200if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
23201 echo $ECHO_N "(cached) $ECHO_C" >&6
23202else
23203 cat >conftest.$ac_ext <<_ACEOF
23204/* confdefs.h. */
23205_ACEOF
23206cat confdefs.h >>conftest.$ac_ext
23207cat >>conftest.$ac_ext <<_ACEOF
23208/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010023209#include <sys/types.h>
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023210#ifdef HAVE_SYS_MTIO_H
23211#include <sys/mtio.h>
23212#endif
23213
23214int
23215main ()
23216{
23217static struct mtget ac_aggr;
23218if (ac_aggr.mt_blkno)
23219return 0;
23220 ;
23221 return 0;
23222}
23223_ACEOF
23224rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023225if { (ac_try="$ac_compile"
23226case "(($ac_try" in
23227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23228 *) ac_try_echo=$ac_try;;
23229esac
23230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23231 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023232 ac_status=$?
23233 grep -v '^ *+' conftest.er1 >conftest.err
23234 rm -f conftest.er1
23235 cat conftest.err >&5
23236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23239 { (case "(($ac_try" in
23240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23241 *) ac_try_echo=$ac_try;;
23242esac
23243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23244 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023245 ac_status=$?
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; } &&
23248 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023249 { (case "(($ac_try" in
23250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251 *) ac_try_echo=$ac_try;;
23252esac
23253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23254 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023255 ac_status=$?
23256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257 (exit $ac_status); }; }; then
23258 ac_cv_member_struct_mtget_mt_blkno=yes
23259else
23260 echo "$as_me: failed program was:" >&5
23261sed 's/^/| /' conftest.$ac_ext >&5
23262
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023263 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023264/* confdefs.h. */
23265_ACEOF
23266cat confdefs.h >>conftest.$ac_ext
23267cat >>conftest.$ac_ext <<_ACEOF
23268/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010023269#include <sys/types.h>
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023270#ifdef HAVE_SYS_MTIO_H
23271#include <sys/mtio.h>
23272#endif
23273
23274int
23275main ()
23276{
23277static struct mtget ac_aggr;
23278if (sizeof ac_aggr.mt_blkno)
23279return 0;
23280 ;
23281 return 0;
23282}
23283_ACEOF
23284rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023285if { (ac_try="$ac_compile"
23286case "(($ac_try" in
23287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288 *) ac_try_echo=$ac_try;;
23289esac
23290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23291 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023292 ac_status=$?
23293 grep -v '^ *+' conftest.er1 >conftest.err
23294 rm -f conftest.er1
23295 cat conftest.err >&5
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23299 { (case "(($ac_try" in
23300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23301 *) ac_try_echo=$ac_try;;
23302esac
23303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23304 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023305 ac_status=$?
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); }; } &&
23308 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023309 { (case "(($ac_try" in
23310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311 *) ac_try_echo=$ac_try;;
23312esac
23313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23314 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023315 ac_status=$?
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); }; }; then
23318 ac_cv_member_struct_mtget_mt_blkno=yes
23319else
23320 echo "$as_me: failed program was:" >&5
23321sed 's/^/| /' conftest.$ac_ext >&5
23322
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023323 ac_cv_member_struct_mtget_mt_blkno=no
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023324fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023325
Jeremy White0ebeb532006-06-20 13:18:41 +020023326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023327fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023328
Jeremy White0ebeb532006-06-20 13:18:41 +020023329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023330fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023331{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
23332echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023333if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
23334
23335cat >>confdefs.h <<_ACEOF
23336#define HAVE_STRUCT_MTGET_MT_BLKNO 1
23337_ACEOF
23338
23339
23340fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023341
23342
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023343{ echo "$as_me:$LINENO: checking for struct option.name" >&5
23344echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023345if test "${ac_cv_member_struct_option_name+set}" = set; then
23346 echo $ECHO_N "(cached) $ECHO_C" >&6
23347else
23348 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023349/* confdefs.h. */
23350_ACEOF
23351cat confdefs.h >>conftest.$ac_ext
23352cat >>conftest.$ac_ext <<_ACEOF
23353/* end confdefs.h. */
23354#ifdef HAVE_GETOPT_H
23355#include <getopt.h>
23356#endif
23357
23358int
23359main ()
23360{
23361static struct option ac_aggr;
23362if (ac_aggr.name)
23363return 0;
23364 ;
23365 return 0;
23366}
23367_ACEOF
23368rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023369if { (ac_try="$ac_compile"
23370case "(($ac_try" in
23371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372 *) ac_try_echo=$ac_try;;
23373esac
23374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23375 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023376 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023377 grep -v '^ *+' conftest.er1 >conftest.err
23378 rm -f conftest.er1
23379 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23383 { (case "(($ac_try" in
23384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385 *) ac_try_echo=$ac_try;;
23386esac
23387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23388 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023389 ac_status=$?
23390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391 (exit $ac_status); }; } &&
23392 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023393 { (case "(($ac_try" in
23394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395 *) ac_try_echo=$ac_try;;
23396esac
23397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398 (eval "$ac_try") 2>&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023399 ac_status=$?
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); }; }; then
23402 ac_cv_member_struct_option_name=yes
23403else
23404 echo "$as_me: failed program was:" >&5
23405sed 's/^/| /' conftest.$ac_ext >&5
23406
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023407 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023408/* confdefs.h. */
23409_ACEOF
23410cat confdefs.h >>conftest.$ac_ext
23411cat >>conftest.$ac_ext <<_ACEOF
23412/* end confdefs.h. */
23413#ifdef HAVE_GETOPT_H
23414#include <getopt.h>
23415#endif
23416
23417int
23418main ()
23419{
23420static struct option ac_aggr;
23421if (sizeof ac_aggr.name)
23422return 0;
23423 ;
23424 return 0;
23425}
23426_ACEOF
23427rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023428if { (ac_try="$ac_compile"
23429case "(($ac_try" in
23430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23431 *) ac_try_echo=$ac_try;;
23432esac
23433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23434 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023435 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023436 grep -v '^ *+' conftest.er1 >conftest.err
23437 rm -f conftest.er1
23438 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23442 { (case "(($ac_try" in
23443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444 *) ac_try_echo=$ac_try;;
23445esac
23446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023448 ac_status=$?
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); }; } &&
23451 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023452 { (case "(($ac_try" in
23453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23454 *) ac_try_echo=$ac_try;;
23455esac
23456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23457 (eval "$ac_try") 2>&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023458 ac_status=$?
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; }; then
23461 ac_cv_member_struct_option_name=yes
23462else
23463 echo "$as_me: failed program was:" >&5
23464sed 's/^/| /' conftest.$ac_ext >&5
23465
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023466 ac_cv_member_struct_option_name=no
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023467fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023468
Jeremy White0ebeb532006-06-20 13:18:41 +020023469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023470fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023471
Jeremy White0ebeb532006-06-20 13:18:41 +020023472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023473fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023474{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
23475echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023476if test $ac_cv_member_struct_option_name = yes; then
23477
23478cat >>confdefs.h <<_ACEOF
23479#define HAVE_STRUCT_OPTION_NAME 1
23480_ACEOF
23481
23482
23483fi
23484
23485
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023486{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23487echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
Pavel Roskind6507192003-10-03 03:28:40 +000023488if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23489 echo $ECHO_N "(cached) $ECHO_C" >&6
23490else
23491 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000023492/* confdefs.h. */
23493_ACEOF
23494cat confdefs.h >>conftest.$ac_ext
23495cat >>conftest.$ac_ext <<_ACEOF
23496/* end confdefs.h. */
23497$ac_includes_default
23498int
23499main ()
23500{
23501static struct stat ac_aggr;
23502if (ac_aggr.st_blocks)
23503return 0;
23504 ;
23505 return 0;
23506}
23507_ACEOF
23508rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023509if { (ac_try="$ac_compile"
23510case "(($ac_try" in
23511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512 *) ac_try_echo=$ac_try;;
23513esac
23514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23515 (eval "$ac_compile") 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000023516 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023517 grep -v '^ *+' conftest.er1 >conftest.err
23518 rm -f conftest.er1
23519 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000023520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23523 { (case "(($ac_try" in
23524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23525 *) ac_try_echo=$ac_try;;
23526esac
23527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23528 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023529 ac_status=$?
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); }; } &&
23532 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023533 { (case "(($ac_try" in
23534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535 *) ac_try_echo=$ac_try;;
23536esac
23537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23538 (eval "$ac_try") 2>&5
Pavel Roskind6507192003-10-03 03:28:40 +000023539 ac_status=$?
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; }; then
23542 ac_cv_member_struct_stat_st_blocks=yes
23543else
23544 echo "$as_me: failed program was:" >&5
23545sed 's/^/| /' conftest.$ac_ext >&5
23546
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023547 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000023548/* confdefs.h. */
23549_ACEOF
23550cat confdefs.h >>conftest.$ac_ext
23551cat >>conftest.$ac_ext <<_ACEOF
23552/* end confdefs.h. */
23553$ac_includes_default
23554int
23555main ()
23556{
23557static struct stat ac_aggr;
23558if (sizeof ac_aggr.st_blocks)
23559return 0;
23560 ;
23561 return 0;
23562}
23563_ACEOF
23564rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023565if { (ac_try="$ac_compile"
23566case "(($ac_try" in
23567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23568 *) ac_try_echo=$ac_try;;
23569esac
23570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23571 (eval "$ac_compile") 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000023572 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023573 grep -v '^ *+' conftest.er1 >conftest.err
23574 rm -f conftest.er1
23575 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000023576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23579 { (case "(($ac_try" in
23580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23581 *) ac_try_echo=$ac_try;;
23582esac
23583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23584 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023585 ac_status=$?
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); }; } &&
23588 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023589 { (case "(($ac_try" in
23590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23592esac
23593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_try") 2>&5
Pavel Roskind6507192003-10-03 03:28:40 +000023595 ac_status=$?
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); }; }; then
23598 ac_cv_member_struct_stat_st_blocks=yes
23599else
23600 echo "$as_me: failed program was:" >&5
23601sed 's/^/| /' conftest.$ac_ext >&5
23602
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023603 ac_cv_member_struct_stat_st_blocks=no
Pavel Roskind6507192003-10-03 03:28:40 +000023604fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023605
Jeremy White0ebeb532006-06-20 13:18:41 +020023606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000023607fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023608
Jeremy White0ebeb532006-06-20 13:18:41 +020023609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000023610fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023611{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23612echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
Pavel Roskind6507192003-10-03 03:28:40 +000023613if test $ac_cv_member_struct_stat_st_blocks = yes; then
23614
23615cat >>confdefs.h <<_ACEOF
23616#define HAVE_STRUCT_STAT_ST_BLOCKS 1
23617_ACEOF
23618
23619
23620fi
23621
23622
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023623{ echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23624echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023625if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23626 echo $ECHO_N "(cached) $ECHO_C" >&6
23627else
23628 cat >conftest.$ac_ext <<_ACEOF
23629/* confdefs.h. */
23630_ACEOF
23631cat confdefs.h >>conftest.$ac_ext
23632cat >>conftest.$ac_ext <<_ACEOF
23633/* end confdefs.h. */
23634#ifdef HAVE_SYS_TYPES_H
23635#include <sys/types.h>
23636#endif
23637#ifdef HAVE_NETINET_IN_H
23638#include <netinet/in.h>
23639#endif
23640
23641int
23642main ()
23643{
23644static struct sockaddr_in6 ac_aggr;
23645if (ac_aggr.sin6_scope_id)
23646return 0;
23647 ;
23648 return 0;
23649}
23650_ACEOF
23651rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023652if { (ac_try="$ac_compile"
23653case "(($ac_try" in
23654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23655 *) ac_try_echo=$ac_try;;
23656esac
23657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23658 (eval "$ac_compile") 2>conftest.er1
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023659 ac_status=$?
23660 grep -v '^ *+' conftest.er1 >conftest.err
23661 rm -f conftest.er1
23662 cat conftest.err >&5
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23666 { (case "(($ac_try" in
23667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668 *) ac_try_echo=$ac_try;;
23669esac
23670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23671 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023672 ac_status=$?
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); }; } &&
23675 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023676 { (case "(($ac_try" in
23677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678 *) ac_try_echo=$ac_try;;
23679esac
23680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023682 ac_status=$?
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); }; }; then
23685 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23686else
23687 echo "$as_me: failed program was:" >&5
23688sed 's/^/| /' conftest.$ac_ext >&5
23689
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023690 cat >conftest.$ac_ext <<_ACEOF
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023691/* confdefs.h. */
23692_ACEOF
23693cat confdefs.h >>conftest.$ac_ext
23694cat >>conftest.$ac_ext <<_ACEOF
23695/* end confdefs.h. */
23696#ifdef HAVE_SYS_TYPES_H
23697#include <sys/types.h>
23698#endif
23699#ifdef HAVE_NETINET_IN_H
23700#include <netinet/in.h>
23701#endif
23702
23703int
23704main ()
23705{
23706static struct sockaddr_in6 ac_aggr;
23707if (sizeof ac_aggr.sin6_scope_id)
23708return 0;
23709 ;
23710 return 0;
23711}
23712_ACEOF
23713rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023714if { (ac_try="$ac_compile"
23715case "(($ac_try" in
23716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23718esac
23719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23720 (eval "$ac_compile") 2>conftest.er1
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023721 ac_status=$?
23722 grep -v '^ *+' conftest.er1 >conftest.err
23723 rm -f conftest.er1
23724 cat conftest.err >&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23728 { (case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23731esac
23732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023734 ac_status=$?
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); }; } &&
23737 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023738 { (case "(($ac_try" in
23739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23740 *) ac_try_echo=$ac_try;;
23741esac
23742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23743 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023744 ac_status=$?
23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746 (exit $ac_status); }; }; then
23747 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23748else
23749 echo "$as_me: failed program was:" >&5
23750sed 's/^/| /' conftest.$ac_ext >&5
23751
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023752 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023753fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023754
Jeremy White0ebeb532006-06-20 13:18:41 +020023755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023756fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023757
Jeremy White0ebeb532006-06-20 13:18:41 +020023758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023759fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023760{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23761echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023762if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23763
23764cat >>confdefs.h <<_ACEOF
23765#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23766_ACEOF
23767
23768
23769fi
23770
23771
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023772{ echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
23773echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
23774if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
23775 echo $ECHO_N "(cached) $ECHO_C" >&6
23776else
23777 cat >conftest.$ac_ext <<_ACEOF
23778/* confdefs.h. */
23779_ACEOF
23780cat confdefs.h >>conftest.$ac_ext
23781cat >>conftest.$ac_ext <<_ACEOF
23782/* end confdefs.h. */
23783#ifdef HAVE_SYS_TYPES_H
23784#include <sys/types.h>
23785#endif
23786#ifdef HAVE_NETINET_IN_H
23787# include <netinet/in.h>
23788#endif
23789#ifdef HAVE_ARPA_NAMESER_H
23790# include <arpa/nameser.h>
23791#endif
23792
23793int
23794main ()
23795{
23796static ns_msg ac_aggr;
23797if (ac_aggr._msg_ptr)
23798return 0;
23799 ;
23800 return 0;
23801}
23802_ACEOF
23803rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023804if { (ac_try="$ac_compile"
23805case "(($ac_try" in
23806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23807 *) ac_try_echo=$ac_try;;
23808esac
23809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23810 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023811 ac_status=$?
23812 grep -v '^ *+' conftest.er1 >conftest.err
23813 rm -f conftest.er1
23814 cat conftest.err >&5
23815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23818 { (case "(($ac_try" in
23819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820 *) ac_try_echo=$ac_try;;
23821esac
23822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23823 (eval "$ac_try") 2>&5
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023824 ac_status=$?
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); }; } &&
23827 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023828 { (case "(($ac_try" in
23829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23830 *) ac_try_echo=$ac_try;;
23831esac
23832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23833 (eval "$ac_try") 2>&5
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023834 ac_status=$?
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); }; }; then
23837 ac_cv_member_ns_msg__msg_ptr=yes
23838else
23839 echo "$as_me: failed program was:" >&5
23840sed 's/^/| /' conftest.$ac_ext >&5
23841
23842 cat >conftest.$ac_ext <<_ACEOF
23843/* confdefs.h. */
23844_ACEOF
23845cat confdefs.h >>conftest.$ac_ext
23846cat >>conftest.$ac_ext <<_ACEOF
23847/* end confdefs.h. */
23848#ifdef HAVE_SYS_TYPES_H
23849#include <sys/types.h>
23850#endif
23851#ifdef HAVE_NETINET_IN_H
23852# include <netinet/in.h>
23853#endif
23854#ifdef HAVE_ARPA_NAMESER_H
23855# include <arpa/nameser.h>
23856#endif
23857
23858int
23859main ()
23860{
23861static ns_msg ac_aggr;
23862if (sizeof ac_aggr._msg_ptr)
23863return 0;
23864 ;
23865 return 0;
23866}
23867_ACEOF
23868rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023869if { (ac_try="$ac_compile"
23870case "(($ac_try" in
23871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23872 *) ac_try_echo=$ac_try;;
23873esac
23874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23875 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023876 ac_status=$?
23877 grep -v '^ *+' conftest.er1 >conftest.err
23878 rm -f conftest.er1
23879 cat conftest.err >&5
23880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23881 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23883 { (case "(($ac_try" in
23884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23885 *) ac_try_echo=$ac_try;;
23886esac
23887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23888 (eval "$ac_try") 2>&5
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023889 ac_status=$?
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; } &&
23892 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023893 { (case "(($ac_try" in
23894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23895 *) ac_try_echo=$ac_try;;
23896esac
23897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23898 (eval "$ac_try") 2>&5
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023899 ac_status=$?
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); }; }; then
23902 ac_cv_member_ns_msg__msg_ptr=yes
23903else
23904 echo "$as_me: failed program was:" >&5
23905sed 's/^/| /' conftest.$ac_ext >&5
23906
23907 ac_cv_member_ns_msg__msg_ptr=no
23908fi
23909
Jeremy White0ebeb532006-06-20 13:18:41 +020023910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023911fi
23912
Jeremy White0ebeb532006-06-20 13:18:41 +020023913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023914fi
23915{ echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
23916echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
23917if test $ac_cv_member_ns_msg__msg_ptr = yes; then
23918
23919cat >>confdefs.h <<_ACEOF
23920#define HAVE_NS_MSG__MSG_PTR 1
23921_ACEOF
23922
23923
23924fi
23925
23926
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023927{ echo "$as_me:$LINENO: checking for timezone variable" >&5
23928echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000023929if test "${ac_cv_have_timezone+set}" = set; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23931else
23932 cat >conftest.$ac_ext <<_ACEOF
23933/* confdefs.h. */
23934_ACEOF
23935cat confdefs.h >>conftest.$ac_ext
23936cat >>conftest.$ac_ext <<_ACEOF
23937/* end confdefs.h. */
23938#include <time.h>
23939int
23940main ()
23941{
23942timezone;
23943 ;
23944 return 0;
23945}
23946_ACEOF
23947rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020023948if { (ac_try="$ac_link"
23949case "(($ac_try" in
23950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23951 *) ac_try_echo=$ac_try;;
23952esac
23953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23954 (eval "$ac_link") 2>conftest.er1
Phil Krylov6618b032005-05-24 11:52:46 +000023955 ac_status=$?
23956 grep -v '^ *+' conftest.er1 >conftest.err
23957 rm -f conftest.er1
23958 cat conftest.err >&5
23959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23962 { (case "(($ac_try" in
23963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23964 *) ac_try_echo=$ac_try;;
23965esac
23966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23967 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000023968 ac_status=$?
23969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); }; } &&
23971 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023972 { (case "(($ac_try" in
23973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23974 *) ac_try_echo=$ac_try;;
23975esac
23976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23977 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000023978 ac_status=$?
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); }; }; then
23981 ac_cv_have_timezone="yes"
23982else
23983 echo "$as_me: failed program was:" >&5
23984sed 's/^/| /' conftest.$ac_ext >&5
23985
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023986 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000023987fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023988
Jeremy White0ebeb532006-06-20 13:18:41 +020023989rm -f core conftest.err conftest.$ac_objext \
Phil Krylov6618b032005-05-24 11:52:46 +000023990 conftest$ac_exeext conftest.$ac_ext
23991fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023992{ echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
23993echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000023994if test "$ac_cv_have_timezone" = "yes"
23995then
23996
23997cat >>confdefs.h <<\_ACEOF
23998#define HAVE_TIMEZONE 1
23999_ACEOF
24000
24001fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024002{ echo "$as_me:$LINENO: checking for daylight variable" >&5
24003echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000024004if test "${ac_cv_have_daylight+set}" = set; then
24005 echo $ECHO_N "(cached) $ECHO_C" >&6
24006else
24007 cat >conftest.$ac_ext <<_ACEOF
24008/* confdefs.h. */
24009_ACEOF
24010cat confdefs.h >>conftest.$ac_ext
24011cat >>conftest.$ac_ext <<_ACEOF
24012/* end confdefs.h. */
24013#include <time.h>
24014int
24015main ()
24016{
24017daylight;
24018 ;
24019 return 0;
24020}
24021_ACEOF
24022rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020024023if { (ac_try="$ac_link"
24024case "(($ac_try" in
24025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24026 *) ac_try_echo=$ac_try;;
24027esac
24028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24029 (eval "$ac_link") 2>conftest.er1
Phil Krylov6618b032005-05-24 11:52:46 +000024030 ac_status=$?
24031 grep -v '^ *+' conftest.er1 >conftest.err
24032 rm -f conftest.er1
24033 cat conftest.err >&5
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020024036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24037 { (case "(($ac_try" in
24038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24039 *) ac_try_echo=$ac_try;;
24040esac
24041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24042 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000024043 ac_status=$?
24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); }; } &&
24046 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020024047 { (case "(($ac_try" in
24048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24049 *) ac_try_echo=$ac_try;;
24050esac
24051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24052 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000024053 ac_status=$?
24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055 (exit $ac_status); }; }; then
24056 ac_cv_have_daylight="yes"
24057else
24058 echo "$as_me: failed program was:" >&5
24059sed 's/^/| /' conftest.$ac_ext >&5
24060
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024061 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000024062fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024063
Jeremy White0ebeb532006-06-20 13:18:41 +020024064rm -f core conftest.err conftest.$ac_objext \
Phil Krylov6618b032005-05-24 11:52:46 +000024065 conftest$ac_exeext conftest.$ac_ext
24066fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024067{ echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
24068echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000024069if test "$ac_cv_have_daylight" = "yes"
24070then
24071
24072cat >>confdefs.h <<\_ACEOF
24073#define HAVE_DAYLIGHT 1
24074_ACEOF
24075
24076fi
24077
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024078
Alexandre Julliardfc01b722002-05-12 03:16:39 +000024079case $host_cpu in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024080 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
24081echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024082if test "${ac_cv_cpp_def___i386__+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024083 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000024084else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024085 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024086/* confdefs.h. */
24087_ACEOF
24088cat confdefs.h >>conftest.$ac_ext
24089cat >>conftest.$ac_ext <<_ACEOF
24090/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024091#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000024092yes
24093#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024094_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000024095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024096 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000024097 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000024098else
Alexandre Julliard05783b52002-12-11 00:21:55 +000024099 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000024100fi
24101rm -f conftest*
24102
24103fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024104{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
24105echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024106if test $ac_cv_cpp_def___i386__ = yes; then
24107 CFLAGS="$CFLAGS -D__i386__"
24108 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000024109fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000024110 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024111 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
24112echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
Alexandre Julliarde3be5642005-09-09 09:30:02 +000024113if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
24114 echo $ECHO_N "(cached) $ECHO_C" >&6
24115else
24116 cat >conftest.$ac_ext <<_ACEOF
24117/* confdefs.h. */
24118_ACEOF
24119cat confdefs.h >>conftest.$ac_ext
24120cat >>conftest.$ac_ext <<_ACEOF
24121/* end confdefs.h. */
24122#ifndef __x86_64__
24123yes
24124#endif
24125_ACEOF
24126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24127 $EGREP "yes" >/dev/null 2>&1; then
24128 ac_cv_cpp_def___x86_64__=yes
24129else
24130 ac_cv_cpp_def___x86_64__=no
24131fi
24132rm -f conftest*
24133
24134fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024135{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
24136echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliarde3be5642005-09-09 09:30:02 +000024137if test $ac_cv_cpp_def___x86_64__ = yes; then
24138 CFLAGS="$CFLAGS -D__x86_64__"
24139 LINTFLAGS="$LINTFLAGS -D__x86_64__"
24140fi
Alexandre Julliard58c64192006-07-10 13:05:20 +020024141
24142 { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5
24143echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; }
24144if test "${ac_cv_cpp_def__WIN64+set}" = set; then
24145 echo $ECHO_N "(cached) $ECHO_C" >&6
24146else
24147 cat >conftest.$ac_ext <<_ACEOF
24148/* confdefs.h. */
24149_ACEOF
24150cat confdefs.h >>conftest.$ac_ext
24151cat >>conftest.$ac_ext <<_ACEOF
24152/* end confdefs.h. */
24153#ifndef _WIN64
24154yes
24155#endif
24156_ACEOF
24157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24158 $EGREP "yes" >/dev/null 2>&1; then
24159 ac_cv_cpp_def__WIN64=yes
24160else
24161 ac_cv_cpp_def__WIN64=no
24162fi
24163rm -f conftest*
24164
24165fi
24166{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5
24167echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; }
24168if test $ac_cv_cpp_def__WIN64 = yes; then
24169 CFLAGS="$CFLAGS -D_WIN64"
24170 LINTFLAGS="$LINTFLAGS -D_WIN64"
24171fi
Alexandre Julliarde3be5642005-09-09 09:30:02 +000024172 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024173 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
24174echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024175if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
Steven Edwards69b67862002-12-10 22:48:48 +000024176 echo $ECHO_N "(cached) $ECHO_C" >&6
24177else
24178 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024179/* confdefs.h. */
24180_ACEOF
24181cat confdefs.h >>conftest.$ac_ext
24182cat >>conftest.$ac_ext <<_ACEOF
24183/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000024184#ifndef __ALPHA__
24185yes
24186#endif
24187_ACEOF
24188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24189 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000024190 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000024191else
Alexandre Julliard05783b52002-12-11 00:21:55 +000024192 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000024193fi
24194rm -f conftest*
24195
24196fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024197{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
24198echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024199if test $ac_cv_cpp_def___ALPHA__ = yes; then
24200 CFLAGS="$CFLAGS -D__ALPHA__"
24201 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Steven Edwards69b67862002-12-10 22:48:48 +000024202fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000024203 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024204 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
24205echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024206if test "${ac_cv_cpp_def___sparc__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024207 echo $ECHO_N "(cached) $ECHO_C" >&6
24208else
24209 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024210/* confdefs.h. */
24211_ACEOF
24212cat confdefs.h >>conftest.$ac_ext
24213cat >>conftest.$ac_ext <<_ACEOF
24214/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024215#ifndef __sparc__
24216yes
24217#endif
24218_ACEOF
24219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024220 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000024221 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024222else
Alexandre Julliard05783b52002-12-11 00:21:55 +000024223 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024224fi
24225rm -f conftest*
24226
24227fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024228{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
24229echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024230if test $ac_cv_cpp_def___sparc__ = yes; then
24231 CFLAGS="$CFLAGS -D__sparc__"
24232 LINTFLAGS="$LINTFLAGS -D__sparc__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024233fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000024234 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024235 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
24236echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000024237if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
24238 echo $ECHO_N "(cached) $ECHO_C" >&6
24239else
24240 cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000024241/* confdefs.h. */
24242_ACEOF
24243cat confdefs.h >>conftest.$ac_ext
24244cat >>conftest.$ac_ext <<_ACEOF
24245/* end confdefs.h. */
24246#ifndef __powerpc__
24247yes
24248#endif
24249_ACEOF
24250if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24251 $EGREP "yes" >/dev/null 2>&1; then
24252 ac_cv_cpp_def___powerpc__=yes
24253else
24254 ac_cv_cpp_def___powerpc__=no
24255fi
24256rm -f conftest*
24257
24258fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024259{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
24260echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000024261if test $ac_cv_cpp_def___powerpc__ = yes; then
24262 CFLAGS="$CFLAGS -D__powerpc__"
24263 LINTFLAGS="$LINTFLAGS -D__powerpc__"
24264fi
24265 ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000024266esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024267
24268case $host_vendor in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024269 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
24270echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024271if test "${ac_cv_cpp_def___sun__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024272 echo $ECHO_N "(cached) $ECHO_C" >&6
24273else
24274 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024275/* confdefs.h. */
24276_ACEOF
24277cat confdefs.h >>conftest.$ac_ext
24278cat >>conftest.$ac_ext <<_ACEOF
24279/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024280#ifndef __sun__
24281yes
24282#endif
24283_ACEOF
24284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024285 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000024286 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024287else
Alexandre Julliard05783b52002-12-11 00:21:55 +000024288 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024289fi
24290rm -f conftest*
24291
24292fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024293{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
24294echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024295if test $ac_cv_cpp_def___sun__ = yes; then
24296 CFLAGS="$CFLAGS -D__sun__"
24297 LINTFLAGS="$LINTFLAGS -D__sun__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024298fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000024299 ;;
24300esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024301
24302
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024303
24304
24305
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024306ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000024307
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024308ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000024309
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024310ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024311
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024312ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024313
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024314ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024315
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024316ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024317
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000024318
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000024319MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024320
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024321
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000024322MAKE_DLL_RULES=dlls/Makedll.rules
24323
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024324
Alexandre Julliard633b12d2005-08-25 12:14:13 +000024325MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
24326
24327
Alexandre Julliardedeee892002-08-09 01:22:40 +000024328MAKE_TEST_RULES=dlls/Maketest.rules
24329
24330
Alexandre Julliard117436e2003-05-01 00:39:29 +000024331MAKE_LIB_RULES=libs/Makelib.rules
24332
24333
Alexandre Julliard626f4252000-11-10 23:35:20 +000024334MAKE_PROG_RULES=programs/Makeprog.rules
24335
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024336
Mike McCormacka430db92006-08-02 02:19:15 +090024337ac_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/comcat/tests/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/comdlg32/tests/Makefile dlls/compstui/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/cryptnet/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hlink/Makefile dlls/hlink/tests/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/infosoft/Makefile dlls/inseng/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/query/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/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/oleview/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/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 +000024338
Alexandre Julliard626f4252000-11-10 23:35:20 +000024339
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024340cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024341# This file is a shell script that caches the results of configure
24342# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024343# scripts and configure runs, see configure's option --config-cache.
24344# It is not useful on other systems. If it contains results you don't
24345# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024346#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024347# config.status only pays attention to the cache file if you give it
24348# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024349#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024350# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024351# loading this file, other *unset* `ac_cv_foo' will be assigned the
24352# following values.
24353
24354_ACEOF
24355
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000024356# The following way of writing the cache mishandles newlines in values,
24357# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024358# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024359# Ultrix sh set writes to stderr and can't be redirected directly,
24360# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024361(
24362 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24363 eval ac_val=\$$ac_var
24364 case $ac_val in #(
24365 *${as_nl}*)
24366 case $ac_var in #(
24367 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24368echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24369 esac
24370 case $ac_var in #(
24371 _ | IFS | as_nl) ;; #(
24372 *) $as_unset $ac_var ;;
24373 esac ;;
24374 esac
24375 done
24376
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024377 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024378 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24379 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024380 # `set' does not quote correctly, so add quotes (double-quote
24381 # substitution turns \\\\ into \\, and sed turns \\ into \).
24382 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000024383 "s/'/'\\\\''/g;
24384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024385 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024386 *)
24387 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024389 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024390 esac |
24391 sort
24392) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024393 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024394 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024395 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024396 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24398 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24400 :end' >>confcache
Jeremy White0ebeb532006-06-20 13:18:41 +020024401if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24402 if test -w "$cache_file"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024403 test "x$cache_file" != "x/dev/null" &&
24404 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24405echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024406 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024407 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024408 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24409echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024410 fi
24411fi
24412rm -f confcache
24413
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024414test "x$prefix" = xNONE && prefix=$ac_default_prefix
24415# Let make expand exec_prefix.
24416test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24417
Alexandre Julliard18f92e71996-07-17 20:02:21 +000024418DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024419
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024420ac_libobjs=
24421ac_ltlibobjs=
24422for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24423 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024424 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24425 ac_i=`echo "$ac_i" | sed "$ac_script"`
24426 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24427 # will be set to the directory where LIBOBJS objects are built.
24428 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24429 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024430done
24431LIBOBJS=$ac_libobjs
24432
24433LTLIBOBJS=$ac_ltlibobjs
24434
24435
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024436
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024437: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024438ac_clean_files_save=$ac_clean_files
24439ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024440{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024441echo "$as_me: creating $CONFIG_STATUS" >&6;}
24442cat >$CONFIG_STATUS <<_ACEOF
24443#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024444# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024445# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024446# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024447# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024448
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024449debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024450ac_cs_recheck=false
24451ac_cs_silent=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024452SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024453_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024454
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024455cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024456## --------------------- ##
24457## M4sh Initialization. ##
24458## --------------------- ##
24459
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024460# Be Bourne compatible
24461if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24462 emulate sh
24463 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024464 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24465 # is contrary to our usage. Disable this feature.
24466 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024467 setopt NO_GLOB_SUBST
24468else
24469 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000024470fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024471BIN_SH=xpg4; export BIN_SH # for Tru64
Alexandre Julliard875927f2004-01-02 01:55:29 +000024472DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024473
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024474
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024475# PATH needs CR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024476# Avoid depending upon Character Ranges.
24477as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24478as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24479as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24480as_cr_digits='0123456789'
24481as_cr_alnum=$as_cr_Letters$as_cr_digits
24482
24483# The user is always right.
24484if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024485 echo "#! /bin/sh" >conf$$.sh
24486 echo "exit 0" >>conf$$.sh
24487 chmod +x conf$$.sh
24488 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024489 PATH_SEPARATOR=';'
24490 else
24491 PATH_SEPARATOR=:
24492 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024493 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024494fi
24495
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024496# Support unset when possible.
24497if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24498 as_unset=unset
24499else
24500 as_unset=false
24501fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024502
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024503
24504# IFS
24505# We need space, tab and new line, in precisely that order. Quoting is
24506# there to prevent editors from complaining about space-tab.
24507# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24508# splitting by setting IFS to empty value.)
24509as_nl='
24510'
24511IFS=" "" $as_nl"
24512
24513# Find who we are. Look in the path if we contain no directory separator.
24514case $0 in
24515 *[\\/]* ) as_myself=$0 ;;
24516 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024517for as_dir in $PATH
24518do
24519 IFS=$as_save_IFS
24520 test -z "$as_dir" && as_dir=.
24521 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24522done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024523IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024524
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024525 ;;
24526esac
24527# We did not find ourselves, most probably we were run as `sh COMMAND'
24528# in which case we are not to be found in the path.
24529if test "x$as_myself" = x; then
24530 as_myself=$0
24531fi
24532if test ! -f "$as_myself"; then
24533 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24534 { (exit 1); exit 1; }
24535fi
24536
24537# Work around bugs in pre-3.0 UWIN ksh.
24538for as_var in ENV MAIL MAILPATH
24539do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24540done
24541PS1='$ '
24542PS2='> '
24543PS4='+ '
24544
24545# NLS nuisances.
24546for as_var in \
24547 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24548 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24549 LC_TELEPHONE LC_TIME
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024550do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024551 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24552 eval $as_var=C; export $as_var
24553 else
24554 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24555 fi
24556done
24557
24558# Required to use basename.
24559if expr a : '\(a\)' >/dev/null 2>&1 &&
24560 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24561 as_expr=expr
24562else
24563 as_expr=false
24564fi
24565
24566if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24567 as_basename=basename
24568else
24569 as_basename=false
24570fi
24571
24572
24573# Name of the executable.
24574as_me=`$as_basename -- "$0" ||
24575$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24576 X"$0" : 'X\(//\)$' \| \
24577 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24578echo X/"$0" |
24579 sed '/^.*\/\([^/][^/]*\)\/*$/{
24580 s//\1/
24581 q
24582 }
24583 /^X\/\(\/\/\)$/{
24584 s//\1/
24585 q
24586 }
24587 /^X\/\(\/\).*/{
24588 s//\1/
24589 q
24590 }
24591 s/.*/./; q'`
24592
24593# CDPATH.
24594$as_unset CDPATH
24595
24596
24597
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024598 as_lineno_1=$LINENO
24599 as_lineno_2=$LINENO
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024600 test "x$as_lineno_1" != "x$as_lineno_2" &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024601 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024602
24603 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24604 # uniformly replaced by the line number. The first 'sed' inserts a
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024605 # line-number line after each line using $LINENO; the second 'sed'
24606 # does the real work. The second script uses 'N' to pair each
24607 # line-number line with the line containing $LINENO, and appends
24608 # trailing '-' during substitution so that $LINENO is not a special
24609 # case at line end.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024610 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024611 # scripts with optimization help from Paolo Bonzini. Blame Lee
24612 # E. McMahon (1931-1989) for sed's syntax. :-)
24613 sed -n '
24614 p
24615 /[$]LINENO/=
24616 ' <$as_myself |
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024617 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024618 s/[$]LINENO.*/&-/
24619 t lineno
24620 b
24621 :lineno
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024622 N
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024623 :loop
24624 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024625 t loop
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024626 s/-\n.*//
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024627 ' >$as_me.lineno &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024628 chmod +x "$as_me.lineno" ||
24629 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024630 { (exit 1); exit 1; }; }
24631
24632 # Don't try to exec as it changes $[0], causing all sort of problems
24633 # (the dirname of $[0] is not the place where we might find the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024634 # original and so on. Autoconf is especially sensitive to this).
24635 . "./$as_me.lineno"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024636 # Exit status is that of the last command.
24637 exit
24638}
24639
24640
Jeremy White0ebeb532006-06-20 13:18:41 +020024641if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024642 as_dirname=dirname
24643else
24644 as_dirname=false
24645fi
24646
24647ECHO_C= ECHO_N= ECHO_T=
24648case `echo -n x` in
24649-n*)
24650 case `echo 'x\c'` in
24651 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24652 *) ECHO_C='\c';;
24653 esac;;
24654*)
24655 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024656esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024657
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024658if expr a : '\(a\)' >/dev/null 2>&1 &&
24659 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024660 as_expr=expr
24661else
24662 as_expr=false
24663fi
24664
24665rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024666if test -d conf$$.dir; then
24667 rm -f conf$$.dir/conf$$.file
24668else
24669 rm -f conf$$.dir
24670 mkdir conf$$.dir
24671fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024672echo >conf$$.file
24673if ln -s conf$$.file conf$$ 2>/dev/null; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024674 as_ln_s='ln -s'
24675 # ... but there are two gotchas:
24676 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24677 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24678 # In both cases, we have to default to `cp -p'.
24679 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024680 as_ln_s='cp -p'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024681elif ln conf$$.file conf$$ 2>/dev/null; then
24682 as_ln_s=ln
24683else
24684 as_ln_s='cp -p'
24685fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024686rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24687rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024688
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024689if mkdir -p . 2>/dev/null; then
24690 as_mkdir_p=:
24691else
Alexandre Julliard875927f2004-01-02 01:55:29 +000024692 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024693 as_mkdir_p=false
24694fi
24695
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024696# Find out whether ``test -x'' works. Don't use a zero-byte file, as
24697# systems may use methods other than mode bits to determine executability.
24698cat >conf$$.file <<_ASEOF
24699#! /bin/sh
24700exit 0
24701_ASEOF
24702chmod +x conf$$.file
24703if test -x conf$$.file >/dev/null 2>&1; then
24704 as_executable_p="test -x"
24705else
24706 as_executable_p=:
24707fi
24708rm -f conf$$.file
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024709
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024710# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000024711as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024712
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024713# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000024714as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024715
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024716
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024717exec 6>&1
24718
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024719# Save the log message, to keep $[0] and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024720# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024721# values after options handling.
24722ac_log="
Alexandre Julliardf9cd7142006-07-27 16:55:50 +020024723This file was extended by Wine $as_me 0.9.18, which was
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020024724generated by GNU Autoconf 2.60a. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024725
24726 CONFIG_FILES = $CONFIG_FILES
24727 CONFIG_HEADERS = $CONFIG_HEADERS
24728 CONFIG_LINKS = $CONFIG_LINKS
24729 CONFIG_COMMANDS = $CONFIG_COMMANDS
24730 $ $0 $@
24731
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024732on `(hostname || uname -n) 2>/dev/null | sed 1q`
24733"
24734
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024735_ACEOF
24736
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024737cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024738# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024739config_files="$ac_config_files"
24740config_headers="$ac_config_headers"
24741config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024742
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024743_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024744
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024745cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024746ac_cs_usage="\
24747\`$as_me' instantiates files from templates according to the
24748current configuration.
24749
24750Usage: $0 [OPTIONS] [FILE]...
24751
24752 -h, --help print this help, then exit
24753 -V, --version print version number, then exit
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024754 -q, --quiet do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024755 -d, --debug don't remove temporary files
24756 --recheck update $as_me by reconfiguring in the same conditions
24757 --file=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000024758 instantiate the configuration file FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024759 --header=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000024760 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024761
24762Configuration files:
24763$config_files
24764
24765Configuration headers:
24766$config_headers
24767
24768Configuration commands:
24769$config_commands
24770
24771Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000024772
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024773_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024774cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024775ac_cs_version="\\
Alexandre Julliardf9cd7142006-07-27 16:55:50 +020024776Wine config.status 0.9.18
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020024777configured by $0, generated by GNU Autoconf 2.60a,
Jeremy White0ebeb532006-06-20 13:18:41 +020024778 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024779
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024780Copyright (C) 2006 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024781This config.status script is free software; the Free Software Foundation
24782gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024783
24784ac_pwd='$ac_pwd'
24785srcdir='$srcdir'
24786INSTALL='$INSTALL'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024787_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024788
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024789cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024790# If no file are specified by the user, then we need to provide default
24791# value. By we need to know if files were specified by the user.
24792ac_need_defaults=:
24793while test $# != 0
24794do
24795 case $1 in
24796 --*=*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024797 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24798 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024799 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024800 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024801 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024802 ac_option=$1
24803 ac_optarg=$2
24804 ac_shift=shift
24805 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024806 esac
24807
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024808 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024809 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024810 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24811 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024812 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24813 echo "$ac_cs_version"; exit ;;
24814 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024815 debug=: ;;
24816 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024817 $ac_shift
24818 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024819 ac_need_defaults=false;;
24820 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024821 $ac_shift
24822 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024823 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024824 --he | --h)
24825 # Conflict between --help and --header
24826 { echo "$as_me: error: ambiguous option: $1
24827Try \`$0 --help' for more information." >&2
24828 { (exit 1); exit 1; }; };;
24829 --help | --hel | -h )
24830 echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24832 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24833 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024834
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024835 # This is an error.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024836 -*) { echo "$as_me: error: unrecognized option: $1
24837Try \`$0 --help' for more information." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024838 { (exit 1); exit 1; }; } ;;
24839
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024840 *) ac_config_targets="$ac_config_targets $1"
24841 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024842
24843 esac
24844 shift
24845done
24846
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024847ac_configure_extra_args=
24848
24849if $ac_cs_silent; then
24850 exec 6>/dev/null
24851 ac_configure_extra_args="$ac_configure_extra_args --silent"
24852fi
24853
24854_ACEOF
24855cat >>$CONFIG_STATUS <<_ACEOF
24856if \$ac_cs_recheck; then
Jeremy White0ebeb532006-06-20 13:18:41 +020024857 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024858 CONFIG_SHELL=$SHELL
24859 export CONFIG_SHELL
Jeremy White0ebeb532006-06-20 13:18:41 +020024860 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024861fi
24862
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024863_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024864cat >>$CONFIG_STATUS <<\_ACEOF
24865exec 5>>config.log
24866{
24867 echo
24868 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24869## Running $as_me. ##
24870_ASBOX
24871 echo "$ac_log"
24872} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024873
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024874_ACEOF
24875cat >>$CONFIG_STATUS <<_ACEOF
24876_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024877
24878cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024879
24880# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024881for ac_config_target in $ac_config_targets
24882do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024883 case $ac_config_target in
24884 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
24885 "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
24886 "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
24887 "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
24888 "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
24889 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
24890 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
24891 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
24892 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
24893 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
24894 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
24895 "libs/Makelib.rules") CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
24896 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
24897 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24898 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
24899 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
24900 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
24901 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
24902 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
24903 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
24904 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
24905 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
24906 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
24907 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
24908 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
24909 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
24910 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
24911 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
24912 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
24913 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Aric Stewart9c3b12b2006-07-13 14:16:59 -050024914 "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024915 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
24916 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
24917 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
Detlef Riekenberg955fe0d2006-07-03 22:55:53 +020024918 "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
Detlef Riekenberg5640b562006-06-20 06:12:36 +020024919 "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024920 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
24921 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
24922 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
24923 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
Maarten Lankhorstd2ee3872006-06-28 16:51:41 +020024924 "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024925 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
24926 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
24927 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
24928 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
24929 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
24930 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
24931 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
24932 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
24933 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
24934 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
24935 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
24936 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
24937 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
24938 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
24939 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
24940 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
24941 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
24942 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
24943 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
24944 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
24945 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
24946 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
24947 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
24948 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
24949 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
24950 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
24951 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
24952 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
24953 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
24954 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
24955 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
24956 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
24957 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
24958 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
24959 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
24960 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
24961 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
24962 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
24963 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
24964 "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
24965 "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
24966 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
24967 "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
24968 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
24969 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
Mike McCormackb732e9b2006-06-06 19:26:24 +090024970 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
Mike McCormacka430db92006-08-02 02:19:15 +090024971 "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024972 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
24973 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
24974 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
24975 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
24976 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
24977 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
Mike McCormack4d3877b2006-07-11 11:13:18 +090024978 "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
24979 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024980 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
24981 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
24982 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
24983 "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
24984 "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
24985 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
24986 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
24987 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
24988 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
24989 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
24990 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
24991 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
24992 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
24993 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
24994 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
24995 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
24996 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
24997 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
24998 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
24999 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
25000 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
25001 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
25002 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
25003 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
25004 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
25005 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
25006 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
25007 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
25008 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
25009 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
25010 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
25011 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
25012 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
25013 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
25014 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
25015 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
25016 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
25017 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
25018 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
25019 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
25020 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
25021 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
25022 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
25023 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
25024 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
25025 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
25026 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
25027 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
25028 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
25029 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
25030 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
25031 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
25032 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
25033 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
25034 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
25035 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
25036 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
25037 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
25038 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
25039 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
25040 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
25041 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
25042 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
25043 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
25044 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
25045 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
25046 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
25047 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
25048 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
25049 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
25050 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
25051 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
25052 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
Mike McCormackdefbc492006-07-07 18:21:36 +090025053 "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025054 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
25055 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
25056 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
25057 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
25058 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
25059 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
25060 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
25061 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
25062 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
25063 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
25064 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
25065 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
25066 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
25067 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
25068 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
25069 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
25070 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
25071 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
25072 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
25073 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
25074 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
25075 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
25076 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
25077 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
25078 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
25079 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
25080 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
25081 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
25082 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
25083 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
25084 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
25085 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
25086 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
25087 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
25088 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
25089 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
25090 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
25091 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
25092 "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
25093 "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Mike McCormacka6ea0f62006-06-05 14:01:10 +090025094 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025095 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
25096 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
25097 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
25098 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
Paul Vriens569a4522006-06-13 14:16:58 +020025099 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025100 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
25101 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
25102 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
25103 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
25104 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
25105 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
25106 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
25107 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
25108 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
25109 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
25110 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
25111 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
25112 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
25113 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
25114 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
Alexandre Julliardbdb4fab2006-06-16 09:57:50 +020025115 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025116 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
25117 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
25118 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
25119 "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
25120 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
25121 "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
25122 "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
25123 "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
Emmanuel Maillard144a5352006-05-28 22:46:23 +020025124 "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025125 "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
25126 "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
25127 "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
25128 "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
25129 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
25130 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
25131 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
25132 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
25133 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
25134 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
25135 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
25136 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
25137 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
25138 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
25139 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
25140 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025141 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
25142 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
25143 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25144 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
25145 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025146 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
25147 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
25148 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
25149 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
25150 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
25151 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
25152 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
25153 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
25154 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
25155 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
25156 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
25157 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
25158 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
25159 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
25160 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
Piotr Caban68f590c2006-06-14 19:50:28 +020025161 "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025162 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
25163 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
25164 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
25165 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
25166 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
25167 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
25168 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
25169 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
25170 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
25171 "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
25172 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
25173 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
25174 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
25175 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
25176 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
25177 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
25178 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
25179 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
25180 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
25181 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
25182 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
25183 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
25184 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
25185 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
25186 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
25187 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25188 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
25189 "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
25190 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
25191 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
25192 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
25193 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
25194 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
25195
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025196 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025197echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25198 { (exit 1); exit 1; }; };;
25199 esac
25200done
25201
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025202
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025203# If the user did not use the arguments to specify the items to instantiate,
25204# then the envvar interface is used. Set only those that are not.
25205# We use the long form for the default assignment because of an extremely
25206# bizarre bug on SunOS 4.1.3.
25207if $ac_need_defaults; then
25208 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25209 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25210 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25211fi
25212
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025213# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025214# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025215# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025216# Hook for its removal unless debugging.
25217# Note that there is a small window in which the directory will not be cleaned:
25218# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025219$debug ||
25220{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025221 tmp=
25222 trap 'exit_status=$?
25223 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25224' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025225 trap '{ (exit 1); exit 1; }' 1 2 13 15
25226}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025227# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025228
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025229{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025231 test -n "$tmp" && test -d "$tmp"
25232} ||
25233{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025234 tmp=./conf$$-$RANDOM
25235 (umask 077 && mkdir "$tmp")
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025236} ||
25237{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025238 echo "$me: cannot create a temporary directory in ." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025239 { (exit 1); exit 1; }
25240}
25241
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025242#
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025243# Set up the sed scripts for CONFIG_FILES section.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025244#
25245
25246# No need to generate the scripts if there are no CONFIG_FILES.
25247# This happens for instance when ./config.status config.h
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025248if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025249
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025250_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025251
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025252# Create sed commands to just substitute file output variables.
25253
25254# Remaining file output variables are in a fragment that also has non-file
25255# output varibles.
25256
25257
25258
25259ac_delim='%!_!# '
25260for ac_last_try in false false false false false :; do
25261 cat >conf$$subs.sed <<_ACEOF
25262SHELL!$SHELL$ac_delim
25263PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25264PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25265PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25266PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25267PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25268PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25269exec_prefix!$exec_prefix$ac_delim
25270prefix!$prefix$ac_delim
25271program_transform_name!$program_transform_name$ac_delim
25272bindir!$bindir$ac_delim
25273sbindir!$sbindir$ac_delim
25274libexecdir!$libexecdir$ac_delim
25275datarootdir!$datarootdir$ac_delim
25276datadir!$datadir$ac_delim
25277sysconfdir!$sysconfdir$ac_delim
25278sharedstatedir!$sharedstatedir$ac_delim
25279localstatedir!$localstatedir$ac_delim
25280includedir!$includedir$ac_delim
25281oldincludedir!$oldincludedir$ac_delim
25282docdir!$docdir$ac_delim
25283infodir!$infodir$ac_delim
25284htmldir!$htmldir$ac_delim
25285dvidir!$dvidir$ac_delim
25286pdfdir!$pdfdir$ac_delim
25287psdir!$psdir$ac_delim
25288libdir!$libdir$ac_delim
25289localedir!$localedir$ac_delim
25290mandir!$mandir$ac_delim
25291DEFS!$DEFS$ac_delim
25292ECHO_C!$ECHO_C$ac_delim
25293ECHO_N!$ECHO_N$ac_delim
25294ECHO_T!$ECHO_T$ac_delim
25295LIBS!$LIBS$ac_delim
25296build_alias!$build_alias$ac_delim
25297host_alias!$host_alias$ac_delim
25298target_alias!$target_alias$ac_delim
25299build!$build$ac_delim
25300build_cpu!$build_cpu$ac_delim
25301build_vendor!$build_vendor$ac_delim
25302build_os!$build_os$ac_delim
25303host!$host$ac_delim
25304host_cpu!$host_cpu$ac_delim
25305host_vendor!$host_vendor$ac_delim
25306host_os!$host_os$ac_delim
25307WIN16_FILES!$WIN16_FILES$ac_delim
25308WIN16_INSTALL!$WIN16_INSTALL$ac_delim
25309SET_MAKE!$SET_MAKE$ac_delim
25310CC!$CC$ac_delim
25311CFLAGS!$CFLAGS$ac_delim
25312LDFLAGS!$LDFLAGS$ac_delim
25313CPPFLAGS!$CPPFLAGS$ac_delim
25314ac_ct_CC!$ac_ct_CC$ac_delim
25315EXEEXT!$EXEEXT$ac_delim
25316OBJEXT!$OBJEXT$ac_delim
25317CXX!$CXX$ac_delim
25318CXXFLAGS!$CXXFLAGS$ac_delim
25319ac_ct_CXX!$ac_ct_CXX$ac_delim
25320CPPBIN!$CPPBIN$ac_delim
25321TOOLSDIR!$TOOLSDIR$ac_delim
25322XMKMF!$XMKMF$ac_delim
25323CPP!$CPP$ac_delim
25324X_CFLAGS!$X_CFLAGS$ac_delim
25325X_PRE_LIBS!$X_PRE_LIBS$ac_delim
25326X_LIBS!$X_LIBS$ac_delim
25327X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
25328LEX!$LEX$ac_delim
25329LEXLIB!$LEXLIB$ac_delim
25330LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
25331XLEX!$XLEX$ac_delim
25332BISON!$BISON$ac_delim
25333AS!$AS$ac_delim
25334ac_ct_AS!$ac_ct_AS$ac_delim
25335LD!$LD$ac_delim
25336AR!$AR$ac_delim
25337RANLIB!$RANLIB$ac_delim
25338STRIP!$STRIP$ac_delim
25339WINDRES!$WINDRES$ac_delim
25340LN_S!$LN_S$ac_delim
25341_ACEOF
25342
Jeremy White0ebeb532006-06-20 13:18:41 +020025343 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025344 break
25345 elif $ac_last_try; then
25346 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25347echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25348 { (exit 1); exit 1; }; }
25349 else
25350 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025351 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025352done
25353
Jeremy White0ebeb532006-06-20 13:18:41 +020025354ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25355if test -n "$ac_eof"; then
25356 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25357 ac_eof=`expr $ac_eof + 1`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025358fi
25359
25360cat >>$CONFIG_STATUS <<_ACEOF
25361cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25362/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25363/^[ ]*@MAKE_RULES@[ ]*$/{
25364r $MAKE_RULES
25365d
25366}
25367/^[ ]*@MAKE_DLL_RULES@[ ]*$/{
25368r $MAKE_DLL_RULES
25369d
25370}
25371/^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
25372r $MAKE_IMPLIB_RULES
25373d
25374}
25375/^[ ]*@MAKE_TEST_RULES@[ ]*$/{
25376r $MAKE_TEST_RULES
25377d
25378}
25379/^[ ]*@MAKE_LIB_RULES@[ ]*$/{
25380r $MAKE_LIB_RULES
25381d
25382}
25383/^[ ]*@MAKE_PROG_RULES@[ ]*$/{
25384r $MAKE_PROG_RULES
25385d
25386}
25387_ACEOF
25388sed '
25389s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25390s/^/s,@/; s/!/@,|#_!!_#|/
25391:n
25392t n
25393s/'"$ac_delim"'$/,g/; t
25394s/$/\\/; p
25395N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25396' >>$CONFIG_STATUS <conf$$subs.sed
25397rm -f conf$$subs.sed
25398cat >>$CONFIG_STATUS <<_ACEOF
25399CEOF$ac_eof
25400_ACEOF
25401
25402
25403ac_delim='%!_!# '
25404for ac_last_try in false false false false false :; do
25405 cat >conf$$subs.sed <<_ACEOF
25406LN!$LN$ac_delim
25407GREP!$GREP$ac_delim
25408EGREP!$EGREP$ac_delim
25409LDCONFIG!$LDCONFIG$ac_delim
25410INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25411INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25412INSTALL_DATA!$INSTALL_DATA$ac_delim
25413LINT!$LINT$ac_delim
25414LINTFLAGS!$LINTFLAGS$ac_delim
25415FONTFORGE!$FONTFORGE$ac_delim
25416PKG_CONFIG!$PKG_CONFIG$ac_delim
25417PRELINK!$PRELINK$ac_delim
25418LIBPTHREAD!$LIBPTHREAD$ac_delim
25419XLIB!$XLIB$ac_delim
25420XFILES!$XFILES$ac_delim
25421OPENGLFILES!$OPENGLFILES$ac_delim
25422GLU32FILES!$GLU32FILES$ac_delim
25423OPENGL_LIBS!$OPENGL_LIBS$ac_delim
25424GLUT_LIBS!$GLUT_LIBS$ac_delim
25425GLUT32FILES!$GLUT32FILES$ac_delim
25426NASLIBS!$NASLIBS$ac_delim
25427XML2LIBS!$XML2LIBS$ac_delim
25428XML2INCL!$XML2INCL$ac_delim
25429XSLTLIBS!$XSLTLIBS$ac_delim
25430XSLTINCL!$XSLTINCL$ac_delim
25431HALINCL!$HALINCL$ac_delim
25432CURSESLIBS!$CURSESLIBS$ac_delim
25433sane_devel!$sane_devel$ac_delim
25434SANELIBS!$SANELIBS$ac_delim
25435SANEINCL!$SANEINCL$ac_delim
25436gphoto2_devel!$gphoto2_devel$ac_delim
25437gphoto2port_devel!$gphoto2port_devel$ac_delim
25438GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
25439GPHOTO2INCL!$GPHOTO2INCL$ac_delim
25440ICULIBS!$ICULIBS$ac_delim
25441RESOLVLIBS!$RESOLVLIBS$ac_delim
25442LCMSLIBS!$LCMSLIBS$ac_delim
25443LDAPLIBS!$LDAPLIBS$ac_delim
25444FREETYPELIBS!$FREETYPELIBS$ac_delim
25445FREETYPEINCL!$FREETYPEINCL$ac_delim
25446ft_devel!$ft_devel$ac_delim
25447ft_devel2!$ft_devel2$ac_delim
25448FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
25449ARTSCCONFIG!$ARTSCCONFIG$ac_delim
25450ARTSLIBS!$ARTSLIBS$ac_delim
25451ARTSINCL!$ARTSINCL$ac_delim
25452ESDCONFIG!$ESDCONFIG$ac_delim
25453ESDLIBS!$ESDLIBS$ac_delim
25454ESDINCL!$ESDINCL$ac_delim
25455ALSALIBS!$ALSALIBS$ac_delim
25456AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
25457EXTRACFLAGS!$EXTRACFLAGS$ac_delim
25458BUILTINFLAG!$BUILTINFLAG$ac_delim
25459DLLEXT!$DLLEXT$ac_delim
25460DLLFLAGS!$DLLFLAGS$ac_delim
25461DLLIBS!$DLLIBS$ac_delim
25462LDSHARED!$LDSHARED$ac_delim
25463LDDLLFLAGS!$LDDLLFLAGS$ac_delim
25464LIBEXT!$LIBEXT$ac_delim
25465IMPLIBEXT!$IMPLIBEXT$ac_delim
25466DLLTOOL!$DLLTOOL$ac_delim
25467DLLWRAP!$DLLWRAP$ac_delim
25468LDEXECFLAGS!$LDEXECFLAGS$ac_delim
25469LDEXERPATH!$LDEXERPATH$ac_delim
25470LDDLLRPATH!$LDDLLRPATH$ac_delim
25471COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
25472IOKITLIB!$IOKITLIB$ac_delim
Emmanuel Maillard144a5352006-05-28 22:46:23 +020025473COREAUDIO!$COREAUDIO$ac_delim
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025474CROSSTEST!$CROSSTEST$ac_delim
25475CROSSCC!$CROSSCC$ac_delim
25476CROSSWINDRES!$CROSSWINDRES$ac_delim
25477LDPATH!$LDPATH$ac_delim
25478CRTLIBS!$CRTLIBS$ac_delim
25479SOCKETLIBS!$SOCKETLIBS$ac_delim
25480MAIN_BINARY!$MAIN_BINARY$ac_delim
25481EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
25482LDD!$LDD$ac_delim
25483LIBOBJS!$LIBOBJS$ac_delim
25484LTLIBOBJS!$LTLIBOBJS$ac_delim
25485_ACEOF
25486
Jeremy White0ebeb532006-06-20 13:18:41 +020025487 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025488 break
25489 elif $ac_last_try; then
25490 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25491echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25492 { (exit 1); exit 1; }; }
25493 else
25494 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25495 fi
25496done
25497
Jeremy White0ebeb532006-06-20 13:18:41 +020025498ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25499if test -n "$ac_eof"; then
25500 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25501 ac_eof=`expr $ac_eof + 1`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025502fi
25503
25504cat >>$CONFIG_STATUS <<_ACEOF
25505cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25506/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25507_ACEOF
25508sed '
25509s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25510s/^/s,@/; s/!/@,|#_!!_#|/
25511:n
25512t n
25513s/'"$ac_delim"'$/,g/; t
25514s/$/\\/; p
25515N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25516' >>$CONFIG_STATUS <conf$$subs.sed
25517rm -f conf$$subs.sed
25518cat >>$CONFIG_STATUS <<_ACEOF
25519:end
25520s/|#_!!_#|//g
25521CEOF$ac_eof
25522_ACEOF
25523
25524
25525# VPATH may cause trouble with some makes, so we remove $(srcdir),
25526# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25527# trailing colons and then remove the whole line if VPATH becomes empty
25528# (actually we leave an empty line to preserve line numbers).
25529if test "x$srcdir" = x.; then
25530 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25531s/:*\$(srcdir):*/:/
25532s/:*\${srcdir}:*/:/
25533s/:*@srcdir@:*/:/
25534s/^\([^=]*=[ ]*\):*/\1/
25535s/:*$//
25536s/^[^=]*=[ ]*$//
25537}'
25538fi
25539
25540cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025541fi # test -n "$CONFIG_FILES"
25542
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025543
25544for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25545do
25546 case $ac_tag in
25547 :[FHLC]) ac_mode=$ac_tag; continue;;
25548 esac
25549 case $ac_mode$ac_tag in
25550 :[FHL]*:*);;
25551 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25552echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25553 { (exit 1); exit 1; }; };;
25554 :[FH]-) ac_tag=-:-;;
25555 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25556 esac
25557 ac_save_IFS=$IFS
25558 IFS=:
25559 set x $ac_tag
25560 IFS=$ac_save_IFS
25561 shift
25562 ac_file=$1
25563 shift
25564
25565 case $ac_mode in
25566 :L) ac_source=$1;;
25567 :[FH])
25568 ac_file_inputs=
25569 for ac_f
25570 do
25571 case $ac_f in
25572 -) ac_f="$tmp/stdin";;
25573 *) # Look for the file first in the build tree, then in the source tree
25574 # (if the path is not absolute). The absolute path cannot be DOS-style,
25575 # because $ac_f cannot contain `:'.
25576 test -f "$ac_f" ||
25577 case $ac_f in
25578 [\\/$]*) false;;
25579 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25580 esac ||
25581 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25582echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25583 { (exit 1); exit 1; }; };;
25584 esac
25585 ac_file_inputs="$ac_file_inputs $ac_f"
25586 done
25587
25588 # Let's still pretend it is `configure' which instantiates (i.e., don't
25589 # use $as_me), people would be surprised to read:
25590 # /* config.h. Generated by config.status. */
25591 configure_input="Generated from "`IFS=:
25592 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25593 if test x"$ac_file" != x-; then
25594 configure_input="$ac_file. $configure_input"
25595 { echo "$as_me:$LINENO: creating $ac_file" >&5
25596echo "$as_me: creating $ac_file" >&6;}
25597 fi
25598
25599 case $ac_tag in
25600 *:-:* | *:-) cat >"$tmp/stdin";;
25601 esac
25602 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025603 esac
25604
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025605 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025606$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000025607 X"$ac_file" : 'X\(//\)[^/]' \| \
25608 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025609 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025610echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25612 s//\1/
25613 q
25614 }
25615 /^X\(\/\/\)[^/].*/{
25616 s//\1/
25617 q
25618 }
25619 /^X\(\/\/\)$/{
25620 s//\1/
25621 q
25622 }
25623 /^X\(\/\).*/{
25624 s//\1/
25625 q
25626 }
25627 s/.*/./; q'`
25628 { as_dir="$ac_dir"
25629 case $as_dir in #(
25630 -*) as_dir=./$as_dir;;
25631 esac
25632 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025633 as_dirs=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025634 while :; do
25635 case $as_dir in #(
25636 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25637 *) as_qdir=$as_dir;;
25638 esac
25639 as_dirs="'$as_qdir' $as_dirs"
25640 as_dir=`$as_dirname -- "$as_dir" ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025641$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000025642 X"$as_dir" : 'X\(//\)[^/]' \| \
25643 X"$as_dir" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025644 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025645echo X"$as_dir" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25647 s//\1/
25648 q
25649 }
25650 /^X\(\/\/\)[^/].*/{
25651 s//\1/
25652 q
25653 }
25654 /^X\(\/\/\)$/{
25655 s//\1/
25656 q
25657 }
25658 /^X\(\/\).*/{
25659 s//\1/
25660 q
25661 }
25662 s/.*/./; q'`
25663 test -d "$as_dir" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025664 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025665 test -z "$as_dirs" || eval "mkdir $as_dirs"
25666 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25667echo "$as_me: error: cannot create directory $as_dir" >&2;}
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025668 { (exit 1); exit 1; }; }; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025669 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025670
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025671case "$ac_dir" in
25672.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25673*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025674 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025675 # A ".." for each directory in $ac_dir_suffix.
25676 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25677 case $ac_top_builddir_sub in
25678 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25679 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25680 esac ;;
25681esac
25682ac_abs_top_builddir=$ac_pwd
25683ac_abs_builddir=$ac_pwd$ac_dir_suffix
25684# for backward compatibility:
25685ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025686
25687case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025688 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025689 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025690 ac_top_srcdir=$ac_top_builddir_sub
25691 ac_abs_top_srcdir=$ac_pwd ;;
25692 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025693 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025694 ac_top_srcdir=$srcdir
25695 ac_abs_top_srcdir=$srcdir ;;
25696 *) # Relative name.
25697 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25698 ac_top_srcdir=$ac_top_build_prefix$srcdir
25699 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025700esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025701ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000025702
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025703
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025704 case $ac_mode in
25705 :F)
25706 #
25707 # CONFIG_FILE
25708 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025709
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025710 case $INSTALL in
25711 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025712 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000025713 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025714_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025715
25716cat >>$CONFIG_STATUS <<\_ACEOF
25717# If the template does not know about datarootdir, expand it.
25718# FIXME: This hack should be removed a few years after 2.60.
Jeremy White0ebeb532006-06-20 13:18:41 +020025719ac_datarootdir_hack=; ac_datarootdir_seen=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025720
25721case `sed -n '/datarootdir/ {
25722 p
25723 q
25724}
25725/@datadir@/p
25726/@docdir@/p
25727/@infodir@/p
25728/@localedir@/p
25729/@mandir@/p
25730' $ac_file_inputs` in
Jeremy White0ebeb532006-06-20 13:18:41 +020025731*datarootdir*) ac_datarootdir_seen=yes;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025732*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25733 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25734echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25735_ACEOF
25736cat >>$CONFIG_STATUS <<_ACEOF
25737 ac_datarootdir_hack='
25738 s&@datadir@&$datadir&g
25739 s&@docdir@&$docdir&g
25740 s&@infodir@&$infodir&g
25741 s&@localedir@&$localedir&g
25742 s&@mandir@&$mandir&g
25743 s&\\\${datarootdir}&$datarootdir&g' ;;
25744esac
25745_ACEOF
25746
25747# Neutralize VPATH when `$srcdir' = `.'.
25748# Shell code in configure.ac might set extrasub.
25749# FIXME: do we really want to maintain this feature?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025750cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025751 sed "$ac_vpsub
25752$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025753_ACEOF
25754cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025755:t
25756/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025757s&@configure_input@&$configure_input&;t t
25758s&@top_builddir@&$ac_top_builddir_sub&;t t
25759s&@srcdir@&$ac_srcdir&;t t
25760s&@abs_srcdir@&$ac_abs_srcdir&;t t
25761s&@top_srcdir@&$ac_top_srcdir&;t t
25762s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25763s&@builddir@&$ac_builddir&;t t
25764s&@abs_builddir@&$ac_abs_builddir&;t t
25765s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25766s&@INSTALL@&$ac_INSTALL&;t t
25767$ac_datarootdir_hack
25768" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025769
Jeremy White0ebeb532006-06-20 13:18:41 +020025770test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25771 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020025772 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020025773 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25774which seems to be undefined. Please make sure it is defined." >&5
25775echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25776which seems to be undefined. Please make sure it is defined." >&2;}
25777
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025778 rm -f "$tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025779 case $ac_file in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025780 -) cat "$tmp/out"; rm -f "$tmp/out";;
25781 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025782 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025783 ;;
25784 :H)
25785 #
25786 # CONFIG_HEADER
25787 #
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025788_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025789
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025790# Transform confdefs.h into a sed script `conftest.defines', that
25791# substitutes the proper values into config.h.in to produce config.h.
25792rm -f conftest.defines conftest.tail
25793# First, append a space to every undef/define line, to ease matching.
25794echo 's/$/ /' >conftest.defines
25795# Then, protect against being on the right side of a sed subst, or in
25796# an unquoted here document, in config.status. If some macros were
25797# called several times there might be several #defines for the same
25798# symbol, which is useless. But do not sort them, since the last
25799# AC_DEFINE must be honored.
25800ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
Jeremy White0ebeb532006-06-20 13:18:41 +020025801# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25802# NAME is the cpp macro being defined, VALUE is the value it is being given.
25803# PARAMS is the parameter list in the macro definition--in most cases, it's
25804# just an empty string.
25805ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25806ac_dB='\\)[ (].*,\\1define\\2'
25807ac_dC=' '
25808ac_dD=' ,'
25809
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025810uniq confdefs.h |
25811 sed -n '
25812 t rset
25813 :rset
25814 s/^[ ]*#[ ]*define[ ][ ]*//
25815 t ok
25816 d
25817 :ok
25818 s/[\\&,]/\\&/g
Jeremy White0ebeb532006-06-20 13:18:41 +020025819 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25820 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025821 ' >>conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025822
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025823# Remove the space that was appended to ease matching.
25824# Then replace #undef with comments. This is necessary, for
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025825# example, in the case of _POSIX_SOURCE, which is predefined and required
25826# on some systems where configure will not decide to define it.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025827# (The regexp can be short, since the line contains either #define or #undef.)
25828echo 's/ $//
25829s,^[ #]*u.*,/* & */,' >>conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025830
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025831# Break up conftest.defines:
Jeremy White0ebeb532006-06-20 13:18:41 +020025832ac_max_sed_lines=50
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025833
25834# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25835# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25836# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25837# et cetera.
25838ac_in='$ac_file_inputs'
25839ac_out='"$tmp/out1"'
25840ac_nxt='"$tmp/out2"'
25841
25842while :
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025843do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025844 # Write a here document:
Jeremy White0ebeb532006-06-20 13:18:41 +020025845 cat >>$CONFIG_STATUS <<_ACEOF
25846 # First, check the format of the line:
25847 cat >"\$tmp/defines.sed" <<\\CEOF
25848/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25849/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025850b
Jeremy White0ebeb532006-06-20 13:18:41 +020025851:def
25852_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025853 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025854 echo 'CEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025855 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25856 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25857 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25858 grep . conftest.tail >/dev/null || break
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025859 rm -f conftest.defines
25860 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025861done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025862rm -f conftest.defines conftest.tail
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025863
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025864echo "ac_result=$ac_in" >>$CONFIG_STATUS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025865cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025866 if test x"$ac_file" != x-; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025867 echo "/* $configure_input */" >"$tmp/config.h"
25868 cat "$ac_result" >>"$tmp/config.h"
25869 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025870 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025871echo "$as_me: $ac_file is unchanged" >&6;}
25872 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025873 rm -f $ac_file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025874 mv "$tmp/config.h" $ac_file
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025875 fi
25876 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025877 echo "/* $configure_input */"
25878 cat "$ac_result"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025879 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025880 rm -f "$tmp/out12"
25881 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025882
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025883 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25884echo "$as_me: executing $ac_file commands" >&6;}
25885 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025886 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025887
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025888
25889 case $ac_file$ac_mode in
25890 "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
25891echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
25892 "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
25893echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
25894 "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
25895echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
25896 "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
25897echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
25898 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
25899echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
25900 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
25901echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
25902
25903 esac
25904done # for ac_tag
25905
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000025906
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025907{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025908_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025909chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025910ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025911
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025912
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025913# configure is writing to config.log, and then calls config.status.
25914# config.status does its own redirection, appending to config.log.
25915# Unfortunately, on DOS this fails, as config.log is still kept open
25916# by configure, so config.status won't be able to write to it; its
25917# output is simply discarded. So we exec the FD to /dev/null,
25918# effectively closing config.log, so it can be properly (re)opened and
25919# appended to by config.status. When coming back to configure, we
25920# need to make the FD available again.
25921if test "$no_create" != yes; then
25922 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025923 ac_config_status_args=
25924 test "$silent" = yes &&
25925 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025926 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025927 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025928 exec 5>>config.log
25929 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25930 # would make configure fail if this is the last instruction.
25931 $ac_cs_success || { (exit 1); exit 1; }
25932fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025933
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025934
Ove Kaaven8b4431f1999-01-23 13:59:11 +000025935if test "$have_x" = "no"
25936then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025937 echo >&2
25938 { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
25939echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
25940 { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
25941echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
25942 { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
25943echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
25944 { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5
25945echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;}
Ove Kaaven8b4431f1999-01-23 13:59:11 +000025946fi
25947
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000025948if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000025949then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025950 echo >&2
25951 { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&5
25952echo "$as_me: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&2;}
25953 { echo "$as_me:$LINENO: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
25954echo "$as_me: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000025955fi
25956
Ian Pilcher563598d2001-05-16 20:56:05 +000025957if test "$wine_cv_msg_freetype" = "yes"
25958then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025959 echo >&2
25960 { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
25961echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
25962 { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
25963echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
25964 { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
25965echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
25966 { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
25967echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
Ian Pilcher563598d2001-05-16 20:56:05 +000025968fi
25969
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020025970if test -z "$FONTSSUBDIRS"
Mike McCormack8f6aa412006-04-04 13:36:51 +090025971then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025972 echo >&2
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020025973 if test "$FONTFORGE" = "false"
25974 then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025975 { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
25976echo "$as_me: WARNING: FontForge is missing." >&2;}
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020025977 else
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025978 { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
25979echo "$as_me: WARNING: FreeType is missing." >&2;}
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020025980 fi
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025981 { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
25982echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
Mike McCormack8f6aa412006-04-04 13:36:51 +090025983fi
25984
Alexandre Julliard82776022005-08-08 11:17:25 +000025985if test -z "$ALSALIBS" -a \
25986 -z "$ARTSC_LIBS" -a \
25987 -z "$AUDIOIOLIBS" -a \
25988 -z "$NASLIBS" -a \
25989 -z "$ESD_LIBS" -a \
25990 -z "$ac_cv_lib_soname_jack" -a \
25991 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
25992 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
25993 "$ac_cv_header_soundcard_h" != "yes"
Francois Gouget99d026f2005-03-19 17:08:18 +000025994then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025995 echo >&2
25996 { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
25997echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
25998 { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
25999echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
26000 { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
26001echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
Francois Gouget99d026f2005-03-19 17:08:18 +000026002fi
26003
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000026004echo
Vincent Béron5606d102004-08-19 00:03:45 +000026005echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000026006echo
26007