1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for Wine 1.1.29.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: wine-devel@winehq.org about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
236 fi
237 exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255 { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264 return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
306 q
307 }
308 /^X\(\/\/\)$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\).*/{
313 s//\1/
314 q
315 }
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
332 {
333 eval $1+=\$2
334 }'
335 else
336 as_fn_append ()
337 {
338 eval $1=\$$1\$2
339 }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
349 {
350 as_val=$(( $* ))
351 }'
352 else
353 as_fn_arith ()
354 {
355 as_val=`expr "$@" || test $? -eq 1`
356 }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 fi
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\/\)$/{
405 s//\1/
406 q
407 }
408 /^X\/\(\/\).*/{
409 s//\1/
410 q
411 }
412 s/.*/./; q'`
413
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
428 p
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
434 b
435 :lineno
436 N
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
462 *)
463 ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
486 fi
487 else
488 as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
507 fi
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
519 '
520 fi
521 as_executable_p=$as_test_x
522
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530 exec 7<&0 </dev/null 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME='Wine'
551 PACKAGE_TARNAME='wine'
552 PACKAGE_VERSION='1.1.29'
553 PACKAGE_STRING='Wine 1.1.29'
554 PACKAGE_BUGREPORT='wine-devel@winehq.org'
555 PACKAGE_URL='http://www.winehq.org'
556
557 ac_unique_file="server/atom.c"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_subst_vars='LTLIBOBJS
595 LIBOBJS
596 ALL_WINETEST_DEPENDS
597 ALL_PROGRAM_BIN_INSTALL_DIRS
598 ALL_PROGRAM_INSTALL_DIRS
599 ALL_PROGRAM_DIRS
600 ALL_TEST_DIRS
601 ALL_IMPLIB_DIRS
602 ALL_DLL_DIRS
603 ALL_TOP_DIRS
604 ALL_MAKEFILE_DEPENDS
605 ALL_MAKEFILES
606 ALL_MAKERULES
607 DEPENDENCIES
608 LDAPLIBS
609 LIBPOLL
610 LIBDL
611 EXTRA_BINARIES
612 MAIN_BINARY
613 SOCKETLIBS
614 CRTLIBS
615 TOOLSEXT
616 LDPATH
617 BUILTINFLAG
618 EXTRACFLAGS
619 LIBKSTAT
620 LIBMPG123
621 PNGINCL
622 FONTCONFIGINCL
623 CUPSINCL
624 AUDIOIOLIBS
625 ALSALIBS
626 ESDLIBS
627 ESDINCL
628 ESDCONFIG
629 ZLIB
630 FREETYPEINCL
631 FREETYPELIBS
632 ft_devel
633 LCMSLIBS
634 RESOLVLIBS
635 GPHOTO2INCL
636 GPHOTO2LIBS
637 gphoto2port_devel
638 gphoto2_devel
639 SANEINCL
640 sane_devel
641 GNUTLSINCL
642 HALINCL
643 XSLTINCL
644 XML2INCL
645 XML2LIBS
646 NASLIBS
647 X_EXTRA_LIBS
648 X_LIBS
649 X_PRE_LIBS
650 X_CFLAGS
651 XMKMF
652 LIBPTHREAD
653 CROSSTARGETFLAGS
654 CROSSTEST
655 CROSSCC
656 CARBONLIB
657 COREAUDIO
658 DISKARBITRATIONLIB
659 LDEXECFLAGS
660 IOKITLIB
661 COREFOUNDATIONLIB
662 SECURITYLIB
663 MINGWAR
664 DLLWRAP
665 DLLTOOL
666 LDD
667 LDRPATH_LOCAL
668 LDRPATH_INSTALL
669 IMPLIBEXT
670 LIBEXT
671 LDDLLFLAGS
672 LDSHARED
673 DLLFLAGS
674 DLLEXT
675 CPP
676 OPENGL_LIBS
677 XLIB
678 PRELINK
679 ICOTOOL
680 RSVG
681 PKG_CONFIG
682 FONTFORGE
683 LINTFLAGS
684 LINT
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 LDCONFIG
689 EGREP
690 GREP
691 LN
692 LN_S
693 STRIP
694 RANLIB
695 ARFLAGS
696 ac_ct_AR
697 AR
698 BISON
699 FLEX
700 TOOLSDIR
701 WOW64_DISABLE
702 WIN16_INSTALL
703 WIN16_FILES
704 TARGETFLAGS
705 CPPBIN
706 ac_ct_CXX
707 CXXFLAGS
708 CXX
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 SET_MAKE
717 host_os
718 host_vendor
719 host_cpu
720 host
721 build_os
722 build_vendor
723 build_cpu
724 build
725 MAINTAINER_MODE
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 localstatedir
746 sharedstatedir
747 sysconfdir
748 datadir
749 datarootdir
750 libexecdir
751 sbindir
752 bindir
753 program_transform_name
754 prefix
755 exec_prefix
756 PACKAGE_URL
757 PACKAGE_BUGREPORT
758 PACKAGE_STRING
759 PACKAGE_VERSION
760 PACKAGE_TARNAME
761 PACKAGE_NAME
762 PATH_SEPARATOR
763 SHELL'
764 ac_subst_files='MAKE_RULES
765 MAKE_DLL_RULES
766 MAKE_IMPLIB_RULES
767 MAKE_TEST_RULES
768 MAKE_PROG_RULES'
769 ac_user_opts='
770 enable_option_checking
771 enable_win16
772 enable_win64
773 enable_tests
774 enable_maintainer_mode
775 with_alsa
776 with_audioio
777 with_capi
778 with_cms
779 with_coreaudio
780 with_cups
781 with_curses
782 with_esd
783 with_fontconfig
784 with_freetype
785 with_gphoto
786 with_glu
787 with_gnutls
788 with_gsm
789 with_hal
790 with_jack
791 with_jpeg
792 with_ldap
793 with_mpg123
794 with_nas
795 with_opengl
796 with_openssl
797 with_oss
798 with_png
799 with_pthread
800 with_sane
801 with_xcomposite
802 with_xcursor
803 with_xinerama
804 with_xinput
805 with_xml
806 with_xrandr
807 with_xrender
808 with_xshape
809 with_xshm
810 with_xslt
811 with_xxf86vm
812 with_wine_tools
813 with_wine64
814 enable_largefile
815 with_x
816 '
817 ac_precious_vars='build_alias
818 host_alias
819 target_alias
820 CC
821 CFLAGS
822 LDFLAGS
823 LIBS
824 CPPFLAGS
825 CXX
826 CXXFLAGS
827 CCC
828 CPP
829 XMKMF'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
889 fi
890
891 case $ac_option in
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *) ac_optarg=yes ;;
894 esac
895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
906
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
921
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
926
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
959
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
995
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1000
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1030
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1104
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1163
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1179
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1213
1214 -*) as_fn_error "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information."
1216 ;;
1217
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1227
1228 *)
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1234 ;;
1235
1236 esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error "missing argument to $ac_option"
1242 fi
1243
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1250 fi
1251
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1257 do
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
1270 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1272
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1285 If a cross compiler is detected then cross compile mode will be used." >&2
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 \`configure' configures Wine 1.1.29 to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 X features:
1429 --x-includes=DIR X include files are in DIR
1430 --x-libraries=DIR X library files are in DIR
1431
1432 System types:
1433 --build=BUILD configure for building on BUILD [guessed]
1434 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1435 _ACEOF
1436 fi
1437
1438 if test -n "$ac_init_help"; then
1439 case $ac_init_help in
1440 short | recursive ) echo "Configuration of Wine 1.1.29:";;
1441 esac
1442 cat <<\_ACEOF
1443
1444 Optional Features:
1445 --disable-option-checking ignore unrecognized --enable/--with options
1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1448 --disable-win16 do not include Win16 support
1449 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1450 binaries)
1451 --disable-tests do not build the regression tests
1452 --enable-maintainer-mode
1453 enable maintainer-specific build rules
1454 --disable-largefile omit support for large files
1455
1456 Optional Packages:
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --without-alsa do not use the Alsa sound support
1460 --without-audioio do not use the AudioIO sound support
1461 --without-capi do not use CAPI (ISDN support)
1462 --without-cms do not use CMS (color management support)
1463 --without-coreaudio do not use the CoreAudio sound support
1464 --without-cups do not use CUPS
1465 --without-curses do not use (n)curses
1466 --without-esd do not use the EsounD sound support
1467 --without-fontconfig do not use fontconfig
1468 --without-freetype do not use the FreeType library
1469 --without-gphoto do not use gphoto (Digital Camera support)
1470 --without-glu do not use the GLU library
1471 --without-gnutls do not use GnuTLS (schannel support)
1472 --without-gsm do not use libgsm (GSM 06.10 codec support)
1473 --without-hal do not use HAL (dynamic device support)
1474 --without-jack do not use the Jack sound support
1475 --without-jpeg do not use JPEG
1476 --without-ldap do not use LDAP
1477 --without-mpg123 do not use the mpg123 library
1478 --without-nas do not use the NAS sound support
1479 --without-opengl do not use OpenGL
1480 --without-openssl do not use OpenSSL
1481 --without-oss do not use the OSS sound support
1482 --without-png do not use PNG
1483 --without-pthread do not use the pthread library
1484 --without-sane do not use SANE (scanner support)
1485 --without-xcomposite do not use the Xcomposite extension
1486 --without-xcursor do not use the Xcursor extension
1487 --without-xinerama do not use Xinerama (multi-monitor support)
1488 --without-xinput do not use the Xinput extension
1489 --without-xml do not use XML
1490 --without-xrandr do not use Xrandr (resolution changes)
1491 --without-xrender do not use the Xrender extension
1492 --without-xshape do not use the Xshape extension
1493 --without-xshm do not use XShm (shared memory extension)
1494 --without-xslt do not use XSLT
1495 --without-xxf86vm do not use XFree video mode extension
1496 --with-wine-tools=DIR use Wine tools from directory DIR
1497 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
1498 --with-x use the X Window System
1499
1500 Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
1508 CXX C++ compiler command
1509 CXXFLAGS C++ compiler flags
1510 CPP C preprocessor
1511 XMKMF Path to xmkmf, Makefile generator for X Window System
1512
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1515
1516 Report bugs to <wine-devel@winehq.org>.
1517 Wine home page: <http://www.winehq.org>.
1518 _ACEOF
1519 ac_status=$?
1520 fi
1521
1522 if test "$ac_init_help" = "recursive"; then
1523 # If there are subdirs, report their specific --help.
1524 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525 test -d "$ac_dir" ||
1526 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527 continue
1528 ac_builddir=.
1529
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *)
1533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1534 # A ".." for each directory in $ac_dir_suffix.
1535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1536 case $ac_top_builddir_sub in
1537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1545
1546 case $srcdir in
1547 .) # We are building in place.
1548 ac_srcdir=.
1549 ac_top_srcdir=$ac_top_builddir_sub
1550 ac_abs_top_srcdir=$ac_pwd ;;
1551 [\\/]* | ?:[\\/]* ) # Absolute name.
1552 ac_srcdir=$srcdir$ac_dir_suffix;
1553 ac_top_srcdir=$srcdir
1554 ac_abs_top_srcdir=$srcdir ;;
1555 *) # Relative name.
1556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557 ac_top_srcdir=$ac_top_build_prefix$srcdir
1558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562 cd "$ac_dir" || { ac_status=$?; continue; }
1563 # Check for guested configure.
1564 if test -f "$ac_srcdir/configure.gnu"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567 elif test -f "$ac_srcdir/configure"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure" --help=recursive
1570 else
1571 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572 fi || ac_status=$?
1573 cd "$ac_pwd" || { ac_status=$?; break; }
1574 done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579 cat <<\_ACEOF
1580 Wine configure 1.1.29
1581 generated by GNU Autoconf 2.64
1582
1583 Copyright (C) 2009 Free Software Foundation, Inc.
1584 This configure script is free software; the Free Software Foundation
1585 gives unlimited permission to copy, distribute and modify it.
1586 _ACEOF
1587 exit
1588 fi
1589
1590 ## ------------------------ ##
1591 ## Autoconf initialization. ##
1592 ## ------------------------ ##
1593
1594 # ac_fn_c_try_compile LINENO
1595 # --------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_compile ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626 fi
1627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628 return $ac_retval
1629
1630 } # ac_fn_c_try_compile
1631
1632 # ac_fn_cxx_try_compile LINENO
1633 # ----------------------------
1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_cxx_try_compile ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext
1639 if { { ac_try="$ac_compile"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_cxx_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.$ac_objext; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664 fi
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666 return $ac_retval
1667
1668 } # ac_fn_cxx_try_compile
1669
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_link ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 $as_test_x conftest$ac_exeext
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705 fi
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712 return $ac_retval
1713
1714 } # ac_fn_c_try_link
1715
1716 # ac_fn_c_try_cpp LINENO
1717 # ----------------------
1718 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_cpp ()
1720 {
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_cpp conftest.$ac_ext"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1735 fi
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } >/dev/null && {
1738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=1
1747 fi
1748 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1749 return $ac_retval
1750
1751 } # ac_fn_c_try_cpp
1752
1753 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1756 # the include files in INCLUDES and setting the cache variable VAR
1757 # accordingly.
1758 ac_fn_c_check_header_mongrel ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1765 $as_echo_n "(cached) " >&6
1766 fi
1767 eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 else
1771 # Is the header compilable?
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1773 $as_echo_n "checking $2 usability... " >&6; }
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 ac_header_compiler=yes
1781 else
1782 ac_header_compiler=no
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1786 $as_echo "$ac_header_compiler" >&6; }
1787
1788 # Is the header present?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1790 $as_echo_n "checking $2 presence... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_cpp "$LINENO"; then :
1796 ac_header_preproc=yes
1797 else
1798 ac_header_preproc=no
1799 fi
1800 rm -f conftest.err conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1802 $as_echo "$ac_header_preproc" >&6; }
1803
1804 # So? What about this header?
1805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1806 yes:no: )
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1808 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1810 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1811 ;;
1812 no:yes:* )
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1814 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1816 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1818 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1820 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 ( cat <<\_ASBOX
1824 ## ------------------------------------ ##
1825 ## Report this to wine-devel@winehq.org ##
1826 ## ------------------------------------ ##
1827 _ASBOX
1828 ) | sed "s/^/$as_me: WARNING: /" >&2
1829 ;;
1830 esac
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834 $as_echo_n "(cached) " >&6
1835 else
1836 eval "$3=\$ac_header_compiler"
1837 fi
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 fi
1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843
1844 } # ac_fn_c_check_header_mongrel
1845
1846 # ac_fn_c_try_run LINENO
1847 # ----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1849 # that executables *can* be run.
1850 ac_fn_c_try_run ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>&5
1861 ac_status=$?
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1864 { { case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_try") 2>&5
1871 ac_status=$?
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; }; }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: program exited with status $ac_status" >&5
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=$ac_status
1881 fi
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1885
1886 } # ac_fn_c_try_run
1887
1888 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1889 # -------------------------------------------------------
1890 # Tests whether HEADER exists and can be compiled using the include files in
1891 # INCLUDES, setting the cache variable VAR accordingly.
1892 ac_fn_c_check_header_compile ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1899 else
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 $4
1903 #include <$2>
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 eval "$3=yes"
1907 else
1908 eval "$3=no"
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 fi
1912 eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916
1917 } # ac_fn_c_check_header_compile
1918
1919 # ac_fn_c_check_func LINENO FUNC VAR
1920 # ----------------------------------
1921 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1922 ac_fn_c_check_func ()
1923 {
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1928 $as_echo_n "(cached) " >&6
1929 else
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1932 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1934 #define $2 innocuous_$2
1935
1936 /* System header to define __stub macros and hopefully few prototypes,
1937 which can conflict with char $2 (); below.
1938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1939 <limits.h> exists even on freestanding compilers. */
1940
1941 #ifdef __STDC__
1942 # include <limits.h>
1943 #else
1944 # include <assert.h>
1945 #endif
1946
1947 #undef $2
1948
1949 /* Override any GCC internal prototype to avoid an error.
1950 Use char because int might match the return type of a GCC
1951 builtin and then its argument prototype would still apply. */
1952 #ifdef __cplusplus
1953 extern "C"
1954 #endif
1955 char $2 ();
1956 /* The GNU C library defines this for functions which it implements
1957 to always fail with ENOSYS. Some functions are actually named
1958 something starting with __ and the normal name is an alias. */
1959 #if defined __stub_$2 || defined __stub___$2
1960 choke me
1961 #endif
1962
1963 int
1964 main ()
1965 {
1966 return $2 ();
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_link "$LINENO"; then :
1972 eval "$3=yes"
1973 else
1974 eval "$3=no"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext \
1977 conftest$ac_exeext conftest.$ac_ext
1978 fi
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1983
1984 } # ac_fn_c_check_func
1985
1986 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1987 # ----------------------------------------------------
1988 # Tries to find if the field MEMBER exists in type AGGR, after including
1989 # INCLUDES, setting cache variable VAR accordingly.
1990 ac_fn_c_check_member ()
1991 {
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1994 $as_echo_n "checking for $2.$3... " >&6; }
1995 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1996 $as_echo_n "(cached) " >&6
1997 else
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 $5
2001 int
2002 main ()
2003 {
2004 static $2 ac_aggr;
2005 if (ac_aggr.$3)
2006 return 0;
2007 ;
2008 return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012 eval "$4=yes"
2013 else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 $5
2017 int
2018 main ()
2019 {
2020 static $2 ac_aggr;
2021 if (sizeof ac_aggr.$3)
2022 return 0;
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 eval "$4=yes"
2029 else
2030 eval "$4=no"
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 fi
2036 eval ac_res=\$$4
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2040
2041 } # ac_fn_c_check_member
2042
2043 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2044 # -------------------------------------------
2045 # Tests whether TYPE exists after having included INCLUDES, setting cache
2046 # variable VAR accordingly.
2047 ac_fn_c_check_type ()
2048 {
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 $as_echo_n "checking for $2... " >&6; }
2052 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2053 $as_echo_n "(cached) " >&6
2054 else
2055 eval "$3=no"
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 $4
2059 int
2060 main ()
2061 {
2062 if (sizeof ($2))
2063 return 0;
2064 ;
2065 return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 $4
2072 int
2073 main ()
2074 {
2075 if (sizeof (($2)))
2076 return 0;
2077 ;
2078 return 0;
2079 }
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082
2083 else
2084 eval "$3=yes"
2085 fi
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 fi
2090 eval ac_res=\$$3
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2094
2095 } # ac_fn_c_check_type
2096 cat >config.log <<_ACEOF
2097 This file contains any messages produced by compilers while
2098 running configure, to aid debugging if configure makes a mistake.
2099
2100 It was created by Wine $as_me 1.1.29, which was
2101 generated by GNU Autoconf 2.64. Invocation command line was
2102
2103 $ $0 $@
2104
2105 _ACEOF
2106 exec 5>>config.log
2107 {
2108 cat <<_ASUNAME
2109 ## --------- ##
2110 ## Platform. ##
2111 ## --------- ##
2112
2113 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2114 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2115 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2116 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2117 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2118
2119 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2120 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2121
2122 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2123 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2124 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2125 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2126 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2127 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2128 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2129
2130 _ASUNAME
2131
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2134 do
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 $as_echo "PATH: $as_dir"
2138 done
2139 IFS=$as_save_IFS
2140
2141 } >&5
2142
2143 cat >&5 <<_ACEOF
2144
2145
2146 ## ----------- ##
2147 ## Core tests. ##
2148 ## ----------- ##
2149
2150 _ACEOF
2151
2152
2153 # Keep a trace of the command line.
2154 # Strip out --no-create and --no-recursion so they do not pile up.
2155 # Strip out --silent because we don't want to record it for future runs.
2156 # Also quote any args containing shell meta-characters.
2157 # Make two passes to allow for proper duplicate-argument suppression.
2158 ac_configure_args=
2159 ac_configure_args0=
2160 ac_configure_args1=
2161 ac_must_keep_next=false
2162 for ac_pass in 1 2
2163 do
2164 for ac_arg
2165 do
2166 case $ac_arg in
2167 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2169 | -silent | --silent | --silen | --sile | --sil)
2170 continue ;;
2171 *\'*)
2172 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2173 esac
2174 case $ac_pass in
2175 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2176 2)
2177 as_fn_append ac_configure_args1 " '$ac_arg'"
2178 if test $ac_must_keep_next = true; then
2179 ac_must_keep_next=false # Got value, back to normal.
2180 else
2181 case $ac_arg in
2182 *=* | --config-cache | -C | -disable-* | --disable-* \
2183 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2184 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2185 | -with-* | --with-* | -without-* | --without-* | --x)
2186 case "$ac_configure_args0 " in
2187 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2188 esac
2189 ;;
2190 -* ) ac_must_keep_next=true ;;
2191 esac
2192 fi
2193 as_fn_append ac_configure_args " '$ac_arg'"
2194 ;;
2195 esac
2196 done
2197 done
2198 { ac_configure_args0=; unset ac_configure_args0;}
2199 { ac_configure_args1=; unset ac_configure_args1;}
2200
2201 # When interrupted or exit'd, cleanup temporary files, and complete
2202 # config.log. We remove comments because anyway the quotes in there
2203 # would cause problems or look ugly.
2204 # WARNING: Use '\'' to represent an apostrophe within the trap.
2205 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2206 trap 'exit_status=$?
2207 # Save into config.log some information that might help in debugging.
2208 {
2209 echo
2210
2211 cat <<\_ASBOX
2212 ## ---------------- ##
2213 ## Cache variables. ##
2214 ## ---------------- ##
2215 _ASBOX
2216 echo
2217 # The following way of writing the cache mishandles newlines in values,
2218 (
2219 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2220 eval ac_val=\$$ac_var
2221 case $ac_val in #(
2222 *${as_nl}*)
2223 case $ac_var in #(
2224 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2225 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2226 esac
2227 case $ac_var in #(
2228 _ | IFS | as_nl) ;; #(
2229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2230 *) { eval $ac_var=; unset $ac_var;} ;;
2231 esac ;;
2232 esac
2233 done
2234 (set) 2>&1 |
2235 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2236 *${as_nl}ac_space=\ *)
2237 sed -n \
2238 "s/'\''/'\''\\\\'\'''\''/g;
2239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2240 ;; #(
2241 *)
2242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2243 ;;
2244 esac |
2245 sort
2246 )
2247 echo
2248
2249 cat <<\_ASBOX
2250 ## ----------------- ##
2251 ## Output variables. ##
2252 ## ----------------- ##
2253 _ASBOX
2254 echo
2255 for ac_var in $ac_subst_vars
2256 do
2257 eval ac_val=\$$ac_var
2258 case $ac_val in
2259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2260 esac
2261 $as_echo "$ac_var='\''$ac_val'\''"
2262 done | sort
2263 echo
2264
2265 if test -n "$ac_subst_files"; then
2266 cat <<\_ASBOX
2267 ## ------------------- ##
2268 ## File substitutions. ##
2269 ## ------------------- ##
2270 _ASBOX
2271 echo
2272 for ac_var in $ac_subst_files
2273 do
2274 eval ac_val=\$$ac_var
2275 case $ac_val in
2276 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277 esac
2278 $as_echo "$ac_var='\''$ac_val'\''"
2279 done | sort
2280 echo
2281 fi
2282
2283 if test -s confdefs.h; then
2284 cat <<\_ASBOX
2285 ## ----------- ##
2286 ## confdefs.h. ##
2287 ## ----------- ##
2288 _ASBOX
2289 echo
2290 cat confdefs.h
2291 echo
2292 fi
2293 test "$ac_signal" != 0 &&
2294 $as_echo "$as_me: caught signal $ac_signal"
2295 $as_echo "$as_me: exit $exit_status"
2296 } >&5
2297 rm -f core *.core core.conftest.* &&
2298 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2299 exit $exit_status
2300 ' 0
2301 for ac_signal in 1 2 13 15; do
2302 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2303 done
2304 ac_signal=0
2305
2306 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2307 rm -f -r conftest* confdefs.h
2308
2309 $as_echo "/* confdefs.h */" > confdefs.h
2310
2311 # Predefined preprocessor variables.
2312
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_NAME "$PACKAGE_NAME"
2315 _ACEOF
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2319 _ACEOF
2320
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2323 _ACEOF
2324
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_STRING "$PACKAGE_STRING"
2327 _ACEOF
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2331 _ACEOF
2332
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_URL "$PACKAGE_URL"
2335 _ACEOF
2336
2337
2338 # Let the site file select an alternate cache file if it wants to.
2339 # Prefer an explicitly selected file to automatically selected ones.
2340 ac_site_file1=NONE
2341 ac_site_file2=NONE
2342 if test -n "$CONFIG_SITE"; then
2343 ac_site_file1=$CONFIG_SITE
2344 elif test "x$prefix" != xNONE; then
2345 ac_site_file1=$prefix/share/config.site
2346 ac_site_file2=$prefix/etc/config.site
2347 else
2348 ac_site_file1=$ac_default_prefix/share/config.site
2349 ac_site_file2=$ac_default_prefix/etc/config.site
2350 fi
2351 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2352 do
2353 test "x$ac_site_file" = xNONE && continue
2354 if test -r "$ac_site_file"; then
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2356 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2357 sed 's/^/| /' "$ac_site_file" >&5
2358 . "$ac_site_file"
2359 fi
2360 done
2361
2362 if test -r "$cache_file"; then
2363 # Some versions of bash will fail to source /dev/null (special
2364 # files actually), so we avoid doing that.
2365 if test -f "$cache_file"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2367 $as_echo "$as_me: loading cache $cache_file" >&6;}
2368 case $cache_file in
2369 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2370 *) . "./$cache_file";;
2371 esac
2372 fi
2373 else
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2375 $as_echo "$as_me: creating cache $cache_file" >&6;}
2376 >$cache_file
2377 fi
2378
2379 # Check that the precious variables saved in the cache have kept the same
2380 # value.
2381 ac_cache_corrupted=false
2382 for ac_var in $ac_precious_vars; do
2383 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2384 eval ac_new_set=\$ac_env_${ac_var}_set
2385 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2386 eval ac_new_val=\$ac_env_${ac_var}_value
2387 case $ac_old_set,$ac_new_set in
2388 set,)
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2391 ac_cache_corrupted=: ;;
2392 ,set)
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2394 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2395 ac_cache_corrupted=: ;;
2396 ,);;
2397 *)
2398 if test "x$ac_old_val" != "x$ac_new_val"; then
2399 # differences in whitespace do not lead to failure.
2400 ac_old_val_w=`echo x $ac_old_val`
2401 ac_new_val_w=`echo x $ac_new_val`
2402 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2404 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2405 ac_cache_corrupted=:
2406 else
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2408 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2409 eval $ac_var=\$ac_old_val
2410 fi
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2412 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2414 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2415 fi;;
2416 esac
2417 # Pass precious variables to config.status.
2418 if test "$ac_new_set" = set; then
2419 case $ac_new_val in
2420 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2421 *) ac_arg=$ac_var=$ac_new_val ;;
2422 esac
2423 case " $ac_configure_args " in
2424 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2425 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2426 esac
2427 fi
2428 done
2429 if $ac_cache_corrupted; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2433 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2434 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2435 fi
2436 ## -------------------- ##
2437 ## Main body of script. ##
2438 ## -------------------- ##
2439
2440 ac_ext=c
2441 ac_cpp='$CPP $CPPFLAGS'
2442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2445
2446
2447
2448 ac_config_headers="$ac_config_headers include/config.h"
2449
2450 ac_aux_dir=
2451 for ac_dir in tools "$srcdir"/tools; do
2452 for ac_t in install-sh install.sh shtool; do
2453 if test -f "$ac_dir/$ac_t"; then
2454 ac_aux_dir=$ac_dir
2455 ac_install_sh="$ac_aux_dir/$ac_t -c"
2456 break 2
2457 fi
2458 done
2459 done
2460 if test -z "$ac_aux_dir"; then
2461 as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
2462 fi
2463
2464 # These three variables are undocumented and unsupported,
2465 # and are intended to be withdrawn in a future Autoconf release.
2466 # They can cause serious problems if a builder's source tree is in a directory
2467 # whose full name contains unusual characters.
2468 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2469 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2470 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2471
2472
2473
2474
2475 # Check whether --enable-win16 was given.
2476 if test "${enable_win16+set}" = set; then :
2477 enableval=$enable_win16;
2478 fi
2479
2480 # Check whether --enable-win64 was given.
2481 if test "${enable_win64+set}" = set; then :
2482 enableval=$enable_win64;
2483 fi
2484
2485 # Check whether --enable-tests was given.
2486 if test "${enable_tests+set}" = set; then :
2487 enableval=$enable_tests;
2488 fi
2489
2490 # Check whether --enable-maintainer-mode was given.
2491 if test "${enable_maintainer_mode+set}" = set; then :
2492 enableval=$enable_maintainer_mode;
2493 else
2494 MAINTAINER_MODE=\#
2495
2496 fi
2497
2498
2499
2500 # Check whether --with-alsa was given.
2501 if test "${with_alsa+set}" = set; then :
2502 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2503 fi
2504
2505
2506 # Check whether --with-audioio was given.
2507 if test "${with_audioio+set}" = set; then :
2508 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2509 fi
2510
2511
2512 # Check whether --with-capi was given.
2513 if test "${with_capi+set}" = set; then :
2514 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2515 fi
2516
2517
2518 # Check whether --with-cms was given.
2519 if test "${with_cms+set}" = set; then :
2520 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2521 fi
2522
2523
2524 # Check whether --with-coreaudio was given.
2525 if test "${with_coreaudio+set}" = set; then :
2526 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2527 fi
2528
2529
2530 # Check whether --with-cups was given.
2531 if test "${with_cups+set}" = set; then :
2532 withval=$with_cups;
2533 fi
2534
2535
2536 # Check whether --with-curses was given.
2537 if test "${with_curses+set}" = set; then :
2538 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2539 fi
2540
2541
2542 # Check whether --with-esd was given.
2543 if test "${with_esd+set}" = set; then :
2544 withval=$with_esd;
2545 fi
2546
2547
2548 # Check whether --with-fontconfig was given.
2549 if test "${with_fontconfig+set}" = set; then :
2550 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2551 fi
2552
2553
2554 # Check whether --with-freetype was given.
2555 if test "${with_freetype+set}" = set; then :
2556 withval=$with_freetype;
2557 fi
2558
2559
2560 # Check whether --with-gphoto was given.
2561 if test "${with_gphoto+set}" = set; then :
2562 withval=$with_gphoto;
2563 fi
2564
2565
2566 # Check whether --with-glu was given.
2567 if test "${with_glu+set}" = set; then :
2568 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2569 fi
2570
2571
2572 # Check whether --with-gnutls was given.
2573 if test "${with_gnutls+set}" = set; then :
2574 withval=$with_gnutls;
2575 fi
2576
2577
2578 # Check whether --with-gsm was given.
2579 if test "${with_gsm+set}" = set; then :
2580 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
2581 fi
2582
2583
2584 # Check whether --with-hal was given.
2585 if test "${with_hal+set}" = set; then :
2586 withval=$with_hal;
2587 fi
2588
2589
2590 # Check whether --with-jack was given.
2591 if test "${with_jack+set}" = set; then :
2592 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2593 fi
2594
2595
2596 # Check whether --with-jpeg was given.
2597 if test "${with_jpeg+set}" = set; then :
2598 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2599 fi
2600
2601
2602 # Check whether --with-ldap was given.
2603 if test "${with_ldap+set}" = set; then :
2604 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2605 fi
2606
2607
2608 # Check whether --with-mpg123 was given.
2609 if test "${with_mpg123+set}" = set; then :
2610 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2611 fi
2612
2613
2614 # Check whether --with-nas was given.
2615 if test "${with_nas+set}" = set; then :
2616 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2617 fi
2618
2619
2620 # Check whether --with-opengl was given.
2621 if test "${with_opengl+set}" = set; then :
2622 withval=$with_opengl;
2623 fi
2624
2625
2626 # Check whether --with-openssl was given.
2627 if test "${with_openssl+set}" = set; then :
2628 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2629 fi
2630
2631
2632 # Check whether --with-oss was given.
2633 if test "${with_oss+set}" = set; then :
2634 withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2635 fi
2636
2637
2638 # Check whether --with-png was given.
2639 if test "${with_png+set}" = set; then :
2640 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2641 fi
2642
2643
2644 # Check whether --with-pthread was given.
2645 if test "${with_pthread+set}" = set; then :
2646 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2647 fi
2648
2649
2650 # Check whether --with-sane was given.
2651 if test "${with_sane+set}" = set; then :
2652 withval=$with_sane;
2653 fi
2654
2655
2656 # Check whether --with-xcomposite was given.
2657 if test "${with_xcomposite+set}" = set; then :
2658 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2659 fi
2660
2661
2662 # Check whether --with-xcursor was given.
2663 if test "${with_xcursor+set}" = set; then :
2664 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2665 fi
2666
2667
2668 # Check whether --with-xinerama was given.
2669 if test "${with_xinerama+set}" = set; then :
2670 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2671 fi
2672
2673
2674 # Check whether --with-xinput was given.
2675 if test "${with_xinput+set}" = set; then :
2676 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2677 fi
2678
2679
2680 # Check whether --with-xml was given.
2681 if test "${with_xml+set}" = set; then :
2682 withval=$with_xml;
2683 fi
2684
2685
2686 # Check whether --with-xrandr was given.
2687 if test "${with_xrandr+set}" = set; then :
2688 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2689 fi
2690
2691
2692 # Check whether --with-xrender was given.
2693 if test "${with_xrender+set}" = set; then :
2694 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2695 fi
2696
2697
2698 # Check whether --with-xshape was given.
2699 if test "${with_xshape+set}" = set; then :
2700 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2701 fi
2702
2703
2704 # Check whether --with-xshm was given.
2705 if test "${with_xshm+set}" = set; then :
2706 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2707 fi
2708
2709
2710 # Check whether --with-xslt was given.
2711 if test "${with_xslt+set}" = set; then :
2712 withval=$with_xslt;
2713 fi
2714
2715
2716 # Check whether --with-xxf86vm was given.
2717 if test "${with_xxf86vm+set}" = set; then :
2718 withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; fi
2719 fi
2720
2721
2722
2723 # Check whether --with-wine-tools was given.
2724 if test "${with_wine_tools+set}" = set; then :
2725 withval=$with_wine_tools;
2726 fi
2727
2728
2729 # Check whether --with-wine64 was given.
2730 if test "${with_wine64+set}" = set; then :
2731 withval=$with_wine64;
2732 fi
2733
2734
2735 # Make sure we can run config.sub.
2736 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2737 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2738
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2740 $as_echo_n "checking build system type... " >&6; }
2741 if test "${ac_cv_build+set}" = set; then :
2742 $as_echo_n "(cached) " >&6
2743 else
2744 ac_build_alias=$build_alias
2745 test "x$ac_build_alias" = x &&
2746 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2747 test "x$ac_build_alias" = x &&
2748 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2749 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2750 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2751
2752 fi
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2754 $as_echo "$ac_cv_build" >&6; }
2755 case $ac_cv_build in
2756 *-*-*) ;;
2757 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2758 esac
2759 build=$ac_cv_build
2760 ac_save_IFS=$IFS; IFS='-'
2761 set x $ac_cv_build
2762 shift
2763 build_cpu=$1
2764 build_vendor=$2
2765 shift; shift
2766 # Remember, the first character of IFS is used to create $*,
2767 # except with old shells:
2768 build_os=$*
2769 IFS=$ac_save_IFS
2770 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2771
2772
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2774 $as_echo_n "checking host system type... " >&6; }
2775 if test "${ac_cv_host+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test "x$host_alias" = x; then
2779 ac_cv_host=$ac_cv_build
2780 else
2781 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2782 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2783 fi
2784
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2787 $as_echo "$ac_cv_host" >&6; }
2788 case $ac_cv_host in
2789 *-*-*) ;;
2790 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2791 esac
2792 host=$ac_cv_host
2793 ac_save_IFS=$IFS; IFS='-'
2794 set x $ac_cv_host
2795 shift
2796 host_cpu=$1
2797 host_vendor=$2
2798 shift; shift
2799 # Remember, the first character of IFS is used to create $*,
2800 # except with old shells:
2801 host_os=$*
2802 IFS=$ac_save_IFS
2803 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2804
2805
2806
2807 case "$srcdir" in
2808 .) ;;
2809 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2810 as_fn_error "you are building out of the source tree, but the source tree contains object files.
2811 You need to run 'make distclean' in the source tree first." "$LINENO" 5
2812 fi ;;
2813 esac
2814
2815
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2817 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2818 set x ${MAKE-make}
2819 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2820 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 cat >conftest.make <<\_ACEOF
2824 SHELL = /bin/sh
2825 all:
2826 @echo '@@@%%%=$(MAKE)=@@@%%%'
2827 _ACEOF
2828 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2829 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2830 *@@@%%%=?*=@@@%%%*)
2831 eval ac_cv_prog_make_${ac_make}_set=yes;;
2832 *)
2833 eval ac_cv_prog_make_${ac_make}_set=no;;
2834 esac
2835 rm -f conftest.make
2836 fi
2837 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2839 $as_echo "yes" >&6; }
2840 SET_MAKE=
2841 else
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843 $as_echo "no" >&6; }
2844 SET_MAKE="MAKE=${MAKE-make}"
2845 fi
2846
2847 ac_ext=c
2848 ac_cpp='$CPP $CPPFLAGS'
2849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2852 if test -n "$ac_tool_prefix"; then
2853 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2854 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2856 $as_echo_n "checking for $ac_word... " >&6; }
2857 if test "${ac_cv_prog_CC+set}" = set; then :
2858 $as_echo_n "(cached) " >&6
2859 else
2860 if test -n "$CC"; then
2861 ac_cv_prog_CC="$CC" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 break 2
2873 fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 fi
2879 fi
2880 CC=$ac_cv_prog_CC
2881 if test -n "$CC"; then
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2883 $as_echo "$CC" >&6; }
2884 else
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2886 $as_echo "no" >&6; }
2887 fi
2888
2889
2890 fi
2891 if test -z "$ac_cv_prog_CC"; then
2892 ac_ct_CC=$CC
2893 # Extract the first word of "gcc", so it can be a program name with args.
2894 set dummy gcc; ac_word=$2
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 $as_echo_n "checking for $ac_word... " >&6; }
2897 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 if test -n "$ac_ct_CC"; then
2901 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2905 do
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910 ac_cv_prog_ac_ct_CC="gcc"
2911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2913 fi
2914 done
2915 done
2916 IFS=$as_save_IFS
2917
2918 fi
2919 fi
2920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2921 if test -n "$ac_ct_CC"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2923 $as_echo "$ac_ct_CC" >&6; }
2924 else
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2927 fi
2928
2929 if test "x$ac_ct_CC" = x; then
2930 CC=""
2931 else
2932 case $cross_compiling:$ac_tool_warned in
2933 yes:)
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2936 ac_tool_warned=yes ;;
2937 esac
2938 CC=$ac_ct_CC
2939 fi
2940 else
2941 CC="$ac_cv_prog_CC"
2942 fi
2943
2944 if test -z "$CC"; then
2945 if test -n "$ac_tool_prefix"; then
2946 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2947 set dummy ${ac_tool_prefix}cc; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if test "${ac_cv_prog_CC+set}" = set; then :
2951 $as_echo_n "(cached) " >&6
2952 else
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963 ac_cv_prog_CC="${ac_tool_prefix}cc"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967 done
2968 done
2969 IFS=$as_save_IFS
2970
2971 fi
2972 fi
2973 CC=$ac_cv_prog_CC
2974 if test -n "$CC"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2976 $as_echo "$CC" >&6; }
2977 else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 fi
2981
2982
2983 fi
2984 fi
2985 if test -z "$CC"; then
2986 # Extract the first word of "cc", so it can be a program name with args.
2987 set dummy cc; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if test "${ac_cv_prog_CC+set}" = set; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996 ac_prog_rejected=no
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3005 ac_prog_rejected=yes
3006 continue
3007 fi
3008 ac_cv_prog_CC="cc"
3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 break 2
3011 fi
3012 done
3013 done
3014 IFS=$as_save_IFS
3015
3016 if test $ac_prog_rejected = yes; then
3017 # We found a bogon in the path, so make sure we never use it.
3018 set dummy $ac_cv_prog_CC
3019 shift
3020 if test $# != 0; then
3021 # We chose a different compiler from the bogus one.
3022 # However, it has the same basename, so the bogon will be chosen
3023 # first if we set CC to just the basename; use the full file name.
3024 shift
3025 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3026 fi
3027 fi
3028 fi
3029 fi
3030 CC=$ac_cv_prog_CC
3031 if test -n "$CC"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3033 $as_echo "$CC" >&6; }
3034 else
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3037 fi
3038
3039
3040 fi
3041 if test -z "$CC"; then
3042 if test -n "$ac_tool_prefix"; then
3043 for ac_prog in cl.exe
3044 do
3045 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3046 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_CC+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 if test -n "$CC"; then
3053 ac_cv_prog_CC="$CC" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3057 do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066 done
3067 done
3068 IFS=$as_save_IFS
3069
3070 fi
3071 fi
3072 CC=$ac_cv_prog_CC
3073 if test -n "$CC"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3075 $as_echo "$CC" >&6; }
3076 else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 fi
3080
3081
3082 test -n "$CC" && break
3083 done
3084 fi
3085 if test -z "$CC"; then
3086 ac_ct_CC=$CC
3087 for ac_prog in cl.exe
3088 do
3089 # Extract the first word of "$ac_prog", so it can be a program name with args.
3090 set dummy $ac_prog; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 if test -n "$ac_ct_CC"; then
3097 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 ac_cv_prog_ac_ct_CC="$ac_prog"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3109 fi
3110 done
3111 done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3117 if test -n "$ac_ct_CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3119 $as_echo "$ac_ct_CC" >&6; }
3120 else
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3123 fi
3124
3125
3126 test -n "$ac_ct_CC" && break
3127 done
3128
3129 if test "x$ac_ct_CC" = x; then
3130 CC=""
3131 else
3132 case $cross_compiling:$ac_tool_warned in
3133 yes:)
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3136 ac_tool_warned=yes ;;
3137 esac
3138 CC=$ac_ct_CC
3139 fi
3140 fi
3141
3142 fi
3143
3144
3145 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147 as_fn_error "no acceptable C compiler found in \$PATH
3148 See \`config.log' for more details." "$LINENO" 5; }
3149
3150 # Provide some information about the compiler.
3151 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3152 set X $ac_compile
3153 ac_compiler=$2
3154 for ac_option in --version -v -V -qversion; do
3155 { { ac_try="$ac_compiler $ac_option >&5"
3156 case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159 esac
3160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161 $as_echo "$ac_try_echo"; } >&5
3162 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3163 ac_status=$?
3164 if test -s conftest.err; then
3165 sed '10a\
3166 ... rest of stderr output deleted ...
3167 10q' conftest.err >conftest.er1
3168 cat conftest.er1 >&5
3169 rm -f conftest.er1 conftest.err
3170 fi
3171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172 test $ac_status = 0; }
3173 done
3174
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3176 /* end confdefs.h. */
3177 #include <stdio.h>
3178 int
3179 main ()
3180 {
3181 FILE *f = fopen ("conftest.out", "w");
3182 return ferror (f) || fclose (f) != 0;
3183
3184 ;
3185 return 0;
3186 }
3187 _ACEOF
3188 ac_clean_files_save=$ac_clean_files
3189 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3190 # Try to create an executable without -o first, disregard a.out.
3191 # It will help us diagnose broken compilers, and finding out an intuition
3192 # of exeext.
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3194 $as_echo_n "checking for C compiler default output file name... " >&6; }
3195 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3196
3197 # The possible output files:
3198 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3199
3200 ac_rmfiles=
3201 for ac_file in $ac_files
3202 do
3203 case $ac_file in
3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3205 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3206 esac
3207 done
3208 rm -f $ac_rmfiles
3209
3210 if { { ac_try="$ac_link_default"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_link_default") 2>&5
3218 ac_status=$?
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
3221 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3222 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3223 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3224 # so that the user can short-circuit this test for compilers unknown to
3225 # Autoconf.
3226 for ac_file in $ac_files ''
3227 do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3231 ;;
3232 [ab].out )
3233 # We found the default executable, but exeext='' is most
3234 # certainly right.
3235 break;;
3236 *.* )
3237 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3238 then :; else
3239 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3240 fi
3241 # We set ac_cv_exeext here because the later test for it is not
3242 # safe: cross compilers may not add the suffix if given an `-o'
3243 # argument, so we may need to know it at that point already.
3244 # Even if this section looks crufty: it has the advantage of
3245 # actually working.
3246 break;;
3247 * )
3248 break;;
3249 esac
3250 done
3251 test "$ac_cv_exeext" = no && ac_cv_exeext=
3252
3253 else
3254 ac_file=''
3255 fi
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3257 $as_echo "$ac_file" >&6; }
3258 if test -z "$ac_file"; then :
3259 $as_echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3261
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 { as_fn_set_status 77
3265 as_fn_error "C compiler cannot create executables
3266 See \`config.log' for more details." "$LINENO" 5; }; }
3267 fi
3268 ac_exeext=$ac_cv_exeext
3269
3270 # Check that the compiler produces executables we can run. If not, either
3271 # the compiler is broken, or we cross compile.
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3273 $as_echo_n "checking whether the C compiler works... " >&6; }
3274 # If not cross compiling, check that we can run a simple program.
3275 if test "$cross_compiling" != yes; then
3276 if { ac_try='./$ac_file'
3277 { { case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_try") 2>&5
3284 ac_status=$?
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; }; then
3287 cross_compiling=no
3288 else
3289 if test "$cross_compiling" = maybe; then
3290 cross_compiling=yes
3291 else
3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294 as_fn_error "cannot run C compiled programs.
3295 If you meant to cross compile, use \`--host'.
3296 See \`config.log' for more details." "$LINENO" 5; }
3297 fi
3298 fi
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3301 $as_echo "yes" >&6; }
3302
3303 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3304 ac_clean_files=$ac_clean_files_save
3305 # Check that the compiler produces executables we can run. If not, either
3306 # the compiler is broken, or we cross compile.
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3308 $as_echo_n "checking whether we are cross compiling... " >&6; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3310 $as_echo "$cross_compiling" >&6; }
3311
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3313 $as_echo_n "checking for suffix of executables... " >&6; }
3314 if { { ac_try="$ac_link"
3315 case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320 $as_echo "$ac_try_echo"; } >&5
3321 (eval "$ac_link") 2>&5
3322 ac_status=$?
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }; then :
3325 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3326 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3327 # work properly (i.e., refer to `conftest.exe'), while it won't with
3328 # `rm'.
3329 for ac_file in conftest.exe conftest conftest.*; do
3330 test -f "$ac_file" || continue
3331 case $ac_file in
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334 break;;
3335 * ) break;;
3336 esac
3337 done
3338 else
3339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error "cannot compute suffix of executables: cannot compile and link
3342 See \`config.log' for more details." "$LINENO" 5; }
3343 fi
3344 rm -f conftest$ac_cv_exeext
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3346 $as_echo "$ac_cv_exeext" >&6; }
3347
3348 rm -f conftest.$ac_ext
3349 EXEEXT=$ac_cv_exeext
3350 ac_exeext=$EXEEXT
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3352 $as_echo_n "checking for suffix of object files... " >&6; }
3353 if test "${ac_cv_objext+set}" = set; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358
3359 int
3360 main ()
3361 {
3362
3363 ;
3364 return 0;
3365 }
3366 _ACEOF
3367 rm -f conftest.o conftest.obj
3368 if { { ac_try="$ac_compile"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_compile") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; then :
3379 for ac_file in conftest.o conftest.obj conftest.*; do
3380 test -f "$ac_file" || continue;
3381 case $ac_file in
3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3384 break;;
3385 esac
3386 done
3387 else
3388 $as_echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error "cannot compute suffix of object files: cannot compile
3394 See \`config.log' for more details." "$LINENO" 5; }
3395 fi
3396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3397 fi
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3399 $as_echo "$ac_cv_objext" >&6; }
3400 OBJEXT=$ac_cv_objext
3401 ac_objext=$OBJEXT
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3403 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3404 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409
3410 int
3411 main ()
3412 {
3413 #ifndef __GNUC__
3414 choke me
3415 #endif
3416
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 if ac_fn_c_try_compile "$LINENO"; then :
3422 ac_compiler_gnu=yes
3423 else
3424 ac_compiler_gnu=no
3425 fi
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3428
3429 fi
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3431 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3432 if test $ac_compiler_gnu = yes; then
3433 GCC=yes
3434 else
3435 GCC=
3436 fi
3437 ac_test_CFLAGS=${CFLAGS+set}
3438 ac_save_CFLAGS=$CFLAGS
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3440 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3441 if test "${ac_cv_prog_cc_g+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 ac_save_c_werror_flag=$ac_c_werror_flag
3445 ac_c_werror_flag=yes
3446 ac_cv_prog_cc_g=no
3447 CFLAGS="-g"
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3450
3451 int
3452 main ()
3453 {
3454
3455 ;
3456 return 0;
3457 }
3458 _ACEOF
3459 if ac_fn_c_try_compile "$LINENO"; then :
3460 ac_cv_prog_cc_g=yes
3461 else
3462 CFLAGS=""
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3465
3466 int
3467 main ()
3468 {
3469
3470 ;
3471 return 0;
3472 }
3473 _ACEOF
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475
3476 else
3477 ac_c_werror_flag=$ac_save_c_werror_flag
3478 CFLAGS="-g"
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481
3482 int
3483 main ()
3484 {
3485
3486 ;
3487 return 0;
3488 }
3489 _ACEOF
3490 if ac_fn_c_try_compile "$LINENO"; then :
3491 ac_cv_prog_cc_g=yes
3492 fi
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 fi
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 fi
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_c_werror_flag=$ac_save_c_werror_flag
3499 fi
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3501 $as_echo "$ac_cv_prog_cc_g" >&6; }
3502 if test "$ac_test_CFLAGS" = set; then
3503 CFLAGS=$ac_save_CFLAGS
3504 elif test $ac_cv_prog_cc_g = yes; then
3505 if test "$GCC" = yes; then
3506 CFLAGS="-g -O2"
3507 else
3508 CFLAGS="-g"
3509 fi
3510 else
3511 if test "$GCC" = yes; then
3512 CFLAGS="-O2"
3513 else
3514 CFLAGS=
3515 fi
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3518 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3519 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 ac_cv_prog_cc_c89=no
3523 ac_save_CC=$CC
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3526 #include <stdarg.h>
3527 #include <stdio.h>
3528 #include <sys/types.h>
3529 #include <sys/stat.h>
3530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3531 struct buf { int x; };
3532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3533 static char *e (p, i)
3534 char **p;
3535 int i;
3536 {
3537 return p[i];
3538 }
3539 static char *f (char * (*g) (char **, int), char **p, ...)
3540 {
3541 char *s;
3542 va_list v;
3543 va_start (v,p);
3544 s = g (p, va_arg (v,int));
3545 va_end (v);
3546 return s;
3547 }
3548
3549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3550 function prototypes and stuff, but not '\xHH' hex character constants.
3551 These don't provoke an error unfortunately, instead are silently treated
3552 as 'x'. The following induces an error, until -std is added to get
3553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3554 array size at least. It's necessary to write '\x00'==0 to get something
3555 that's true only with -std. */
3556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3557
3558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3559 inside strings and character constants. */
3560 #define FOO(x) 'x'
3561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3562
3563 int test (int i, double x);
3564 struct s1 {int (*f) (int a);};
3565 struct s2 {int (*f) (double a);};
3566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3567 int argc;
3568 char **argv;
3569 int
3570 main ()
3571 {
3572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3573 ;
3574 return 0;
3575 }
3576 _ACEOF
3577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3579 do
3580 CC="$ac_save_CC $ac_arg"
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582 ac_cv_prog_cc_c89=$ac_arg
3583 fi
3584 rm -f core conftest.err conftest.$ac_objext
3585 test "x$ac_cv_prog_cc_c89" != "xno" && break
3586 done
3587 rm -f conftest.$ac_ext
3588 CC=$ac_save_CC
3589
3590 fi
3591 # AC_CACHE_VAL
3592 case "x$ac_cv_prog_cc_c89" in
3593 x)
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3595 $as_echo "none needed" >&6; } ;;
3596 xno)
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3598 $as_echo "unsupported" >&6; } ;;
3599 *)
3600 CC="$CC $ac_cv_prog_cc_c89"
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3602 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3603 esac
3604 if test "x$ac_cv_prog_cc_c89" != xno; then :
3605
3606 fi
3607
3608 ac_ext=c
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614 ac_ext=cpp
3615 ac_cpp='$CXXCPP $CPPFLAGS'
3616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3619 if test -z "$CXX"; then
3620 if test -n "$CCC"; then
3621 CXX=$CCC
3622 else
3623 if test -n "$ac_tool_prefix"; then
3624 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3625 do
3626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_CXX+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3632 else
3633 if test -n "$CXX"; then
3634 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3635 else
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3646 fi
3647 done
3648 done
3649 IFS=$as_save_IFS
3650
3651 fi
3652 fi
3653 CXX=$ac_cv_prog_CXX
3654 if test -n "$CXX"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3656 $as_echo "$CXX" >&6; }
3657 else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3660 fi
3661
3662
3663 test -n "$CXX" && break
3664 done
3665 fi
3666 if test -z "$CXX"; then
3667 ac_ct_CXX=$CXX
3668 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3669 do
3670 # Extract the first word of "$ac_prog", so it can be a program name with args.
3671 set dummy $ac_prog; ac_word=$2
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3673 $as_echo_n "checking for $ac_word... " >&6; }
3674 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 if test -n "$ac_ct_CXX"; then
3678 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3679 else
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3687 ac_cv_prog_ac_ct_CXX="$ac_prog"
3688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 break 2
3690 fi
3691 done
3692 done
3693 IFS=$as_save_IFS
3694
3695 fi
3696 fi
3697 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3698 if test -n "$ac_ct_CXX"; then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3700 $as_echo "$ac_ct_CXX" >&6; }
3701 else
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 $as_echo "no" >&6; }
3704 fi
3705
3706
3707 test -n "$ac_ct_CXX" && break
3708 done
3709
3710 if test "x$ac_ct_CXX" = x; then
3711 CXX="g++"
3712 else
3713 case $cross_compiling:$ac_tool_warned in
3714 yes:)
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3717 ac_tool_warned=yes ;;
3718 esac
3719 CXX=$ac_ct_CXX
3720 fi
3721 fi
3722
3723 fi
3724 fi
3725 # Provide some information about the compiler.
3726 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3727 set X $ac_compile
3728 ac_compiler=$2
3729 for ac_option in --version -v -V -qversion; do
3730 { { ac_try="$ac_compiler $ac_option >&5"
3731 case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734 esac
3735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736 $as_echo "$ac_try_echo"; } >&5
3737 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3738 ac_status=$?
3739 if test -s conftest.err; then
3740 sed '10a\
3741 ... rest of stderr output deleted ...
3742 10q' conftest.err >conftest.er1
3743 cat conftest.er1 >&5
3744 rm -f conftest.er1 conftest.err
3745 fi
3746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747 test $ac_status = 0; }
3748 done
3749
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3751 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3752 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3753 $as_echo_n "(cached) " >&6
3754 else
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757
3758 int
3759 main ()
3760 {
3761 #ifndef __GNUC__
3762 choke me
3763 #endif
3764
3765 ;
3766 return 0;
3767 }
3768 _ACEOF
3769 if ac_fn_cxx_try_compile "$LINENO"; then :
3770 ac_compiler_gnu=yes
3771 else
3772 ac_compiler_gnu=no
3773 fi
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3776
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3779 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3780 if test $ac_compiler_gnu = yes; then
3781 GXX=yes
3782 else
3783 GXX=
3784 fi
3785 ac_test_CXXFLAGS=${CXXFLAGS+set}
3786 ac_save_CXXFLAGS=$CXXFLAGS
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3788 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3789 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3793 ac_cxx_werror_flag=yes
3794 ac_cv_prog_cxx_g=no
3795 CXXFLAGS="-g"
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798
3799 int
3800 main ()
3801 {
3802
3803 ;
3804 return 0;
3805 }
3806 _ACEOF
3807 if ac_fn_cxx_try_compile "$LINENO"; then :
3808 ac_cv_prog_cxx_g=yes
3809 else
3810 CXXFLAGS=""
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3813
3814 int
3815 main ()
3816 {
3817
3818 ;
3819 return 0;
3820 }
3821 _ACEOF
3822 if ac_fn_cxx_try_compile "$LINENO"; then :
3823
3824 else
3825 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3826 CXXFLAGS="-g"
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3829
3830 int
3831 main ()
3832 {
3833
3834 ;
3835 return 0;
3836 }
3837 _ACEOF
3838 if ac_fn_cxx_try_compile "$LINENO"; then :
3839 ac_cv_prog_cxx_g=yes
3840 fi
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 fi
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844 fi
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3847 fi
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3849 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3850 if test "$ac_test_CXXFLAGS" = set; then
3851 CXXFLAGS=$ac_save_CXXFLAGS
3852 elif test $ac_cv_prog_cxx_g = yes; then
3853 if test "$GXX" = yes; then
3854 CXXFLAGS="-g -O2"
3855 else
3856 CXXFLAGS="-g"
3857 fi
3858 else
3859 if test "$GXX" = yes; then
3860 CXXFLAGS="-O2"
3861 else
3862 CXXFLAGS=
3863 fi
3864 fi
3865 ac_ext=c
3866 ac_cpp='$CPP $CPPFLAGS'
3867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870
3871 if test -n "$ac_tool_prefix"; then
3872 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3873 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if test "${ac_cv_prog_CPPBIN+set}" = set; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 if test -n "$CPPBIN"; then
3880 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3889 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 break 2
3892 fi
3893 done
3894 done
3895 IFS=$as_save_IFS
3896
3897 fi
3898 fi
3899 CPPBIN=$ac_cv_prog_CPPBIN
3900 if test -n "$CPPBIN"; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
3902 $as_echo "$CPPBIN" >&6; }
3903 else
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3905 $as_echo "no" >&6; }
3906 fi
3907
3908
3909 fi
3910 if test -z "$ac_cv_prog_CPPBIN"; then
3911 ac_ct_CPPBIN=$CPPBIN
3912 # Extract the first word of "cpp", so it can be a program name with args.
3913 set dummy cpp; ac_word=$2
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915 $as_echo_n "checking for $ac_word... " >&6; }
3916 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 if test -n "$ac_ct_CPPBIN"; then
3920 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3929 ac_cv_prog_ac_ct_CPPBIN="cpp"
3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3932 fi
3933 done
3934 done
3935 IFS=$as_save_IFS
3936
3937 fi
3938 fi
3939 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3940 if test -n "$ac_ct_CPPBIN"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
3942 $as_echo "$ac_ct_CPPBIN" >&6; }
3943 else
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3946 fi
3947
3948 if test "x$ac_ct_CPPBIN" = x; then
3949 CPPBIN="cpp"
3950 else
3951 case $cross_compiling:$ac_tool_warned in
3952 yes:)
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3955 ac_tool_warned=yes ;;
3956 esac
3957 CPPBIN=$ac_ct_CPPBIN
3958 fi
3959 else
3960 CPPBIN="$ac_cv_prog_CPPBIN"
3961 fi
3962
3963
3964 cat >>confdefs.h <<_ACEOF
3965 #define EXEEXT "$ac_exeext"
3966 _ACEOF
3967
3968
3969 case $host in
3970 *-darwin*)
3971 if test "x$enable_win64" = "xyes"
3972 then
3973 CC="$CC -m64"
3974 CXX="$CXX -m64"
3975 LD="${LD:-ld} -arch x86_64"
3976 AS="${AS:-as} -arch x86_64"
3977 host_cpu="x86_64"
3978 notice_platform="64-bit "
3979 TARGETFLAGS="-m64"
3980
3981 else
3982 CC="$CC -m32"
3983 CXX="$CXX -m32"
3984 LD="${LD:-ld} -arch i386"
3985 AS="${AS:-as} -arch i386"
3986 host_cpu="i386"
3987 notice_platform="32-bit "
3988 TARGETFLAGS="-m32"
3989
3990 enable_win16=${enable_win16:-yes}
3991 fi
3992 ;;
3993 x86_64*)
3994 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
3995 then
3996 CC="$CC -m32"
3997 CXX="$CXX -m32"
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
3999 $as_echo_n "checking whether $CC works... " >&6; }
4000
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4003
4004 int
4005 main ()
4006 {
4007
4008 ;
4009 return 0;
4010 }
4011 _ACEOF
4012 if ac_fn_c_try_link "$LINENO"; then :
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4014 $as_echo "yes" >&6; }
4015 else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4018 as_fn_error "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
4019 fi
4020 rm -f core conftest.err conftest.$ac_objext \
4021 conftest$ac_exeext conftest.$ac_ext
4022 LD="${LD:-ld} -m elf_i386"
4023 AS="${AS:-as} --32"
4024 host_cpu="i386"
4025 notice_platform="32-bit "
4026 TARGETFLAGS="-m32"
4027
4028 enable_win16=${enable_win16:-yes}
4029 else
4030 if test "x${GCC}" = "xyes"
4031 then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
4033 $as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036 #include <stdarg.h>
4037 int
4038 main ()
4039 {
4040 void func(__builtin_ms_va_list *args);
4041 ;
4042 return 0;
4043 }
4044 _ACEOF
4045 if ac_fn_c_try_compile "$LINENO"; then :
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4047 $as_echo "yes" >&6; }
4048 else
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4051 as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
4052 fi
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 fi
4055 TARGETFLAGS="-m64"
4056
4057 fi
4058 ;;
4059 *-mingw32*|*-cygwin*)
4060 enable_win16=${enable_win16:-no}
4061 ;;
4062 i[3456789]86*)
4063 enable_win16=${enable_win16:-yes}
4064 ;;
4065 esac
4066
4067 enable_win16=${enable_win16:-no}
4068
4069 WIN16_FILES="\$(WIN16_FILES)"
4070
4071 WIN16_INSTALL="\$(WIN16_INSTALL)"
4072
4073 if test "x$enable_win16" != "xyes"
4074 then
4075 WIN16_FILES=""
4076 WIN16_INSTALL=""
4077 enable_w32skrnl=${enable_w32skrnl:-no}
4078 enable_winedos=${enable_winedos:-no}
4079 enable_winevdm=${enable_winevdm:-no}
4080 fi
4081
4082 if test -n "$with_wine64"
4083 then
4084 if test "x$enable_win64" = "xyes"
4085 then
4086 as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4087 --enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4088 fi
4089 WOW64_DISABLE=\#
4090
4091 enable_fonts=${enable_fonts:-no}
4092 enable_include=${enable_include:-no}
4093 enable_server=${enable_server:-no}
4094 enable_tools=${enable_tools:-no}
4095 enable_wineboot=${enable_wineboot:-no}
4096 enable_winedbg=${enable_winedbg:-no}
4097 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib32"
4098 fi
4099
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
4101 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
4102 if test "${wine_cv_toolsdir+set}" = set; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 wine_cv_toolsdir="$with_wine_tools"
4106 if test -z "$with_wine_tools"; then
4107 if test "$cross_compiling" = "yes"; then
4108 as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
4109 elif test -n "$with_wine64"; then
4110 wine_cv_toolsdir="$with_wine64"
4111 fi
4112 fi
4113 if test -z "$wine_cv_toolsdir"; then
4114 wine_cv_toolsdir="\$(TOPOBJDIR)"
4115 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4116 case "$wine_cv_toolsdir" in
4117 /*) ;;
4118 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
4119 esac
4120 else
4121 as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
4122 fi
4123 fi
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
4125 $as_echo "$wine_cv_toolsdir" >&6; }
4126 TOOLSDIR=$wine_cv_toolsdir
4127
4128 if test -n "$host_alias" -a "$host_alias" != "$build_alias"
4129 then
4130 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
4131
4132 fi
4133
4134 for ac_prog in flex
4135 do
4136 # Extract the first word of "$ac_prog", so it can be a program name with args.
4137 set dummy $ac_prog; ac_word=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if test "${ac_cv_prog_FLEX+set}" = set; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 if test -n "$FLEX"; then
4144 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4145 else
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4153 ac_cv_prog_FLEX="$ac_prog"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 break 2
4156 fi
4157 done
4158 done
4159 IFS=$as_save_IFS
4160
4161 fi
4162 fi
4163 FLEX=$ac_cv_prog_FLEX
4164 if test -n "$FLEX"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
4166 $as_echo "$FLEX" >&6; }
4167 else
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4170 fi
4171
4172
4173 test -n "$FLEX" && break
4174 done
4175 test -n "$FLEX" || FLEX="none"
4176
4177 if test "$FLEX" = "none"
4178 then
4179 as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
4180 fi
4181
4182 for ac_prog in bison
4183 do
4184 # Extract the first word of "$ac_prog", so it can be a program name with args.
4185 set dummy $ac_prog; ac_word=$2
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if test "${ac_cv_prog_BISON+set}" = set; then :
4189 $as_echo_n "(cached) " >&6
4190 else
4191 if test -n "$BISON"; then
4192 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4196 do
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201 ac_cv_prog_BISON="$ac_prog"
4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 break 2
4204 fi
4205 done
4206 done
4207 IFS=$as_save_IFS
4208
4209 fi
4210 fi
4211 BISON=$ac_cv_prog_BISON
4212 if test -n "$BISON"; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
4214 $as_echo "$BISON" >&6; }
4215 else
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4218 fi
4219
4220
4221 test -n "$BISON" && break
4222 done
4223 test -n "$BISON" || BISON="none"
4224
4225 if test "$BISON" = "none"
4226 then
4227 as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
4228 fi
4229
4230 if test -n "$ac_tool_prefix"; then
4231 for ac_prog in ar gar
4232 do
4233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4234 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if test "${ac_cv_prog_AR+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 if test -n "$AR"; then
4241 ac_cv_prog_AR="$AR" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4253 fi
4254 done
4255 done
4256 IFS=$as_save_IFS
4257
4258 fi
4259 fi
4260 AR=$ac_cv_prog_AR
4261 if test -n "$AR"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4263 $as_echo "$AR" >&6; }
4264 else
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4267 fi
4268
4269
4270 test -n "$AR" && break
4271 done
4272 fi
4273 if test -z "$AR"; then
4274 ac_ct_AR=$AR
4275 for ac_prog in ar gar
4276 do
4277 # Extract the first word of "$ac_prog", so it can be a program name with args.
4278 set dummy $ac_prog; ac_word=$2
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280 $as_echo_n "checking for $ac_word... " >&6; }
4281 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 if test -n "$ac_ct_AR"; then
4285 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4286 else
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290 IFS=$as_save_IFS
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4294 ac_cv_prog_ac_ct_AR="$ac_prog"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 break 2
4297 fi
4298 done
4299 done
4300 IFS=$as_save_IFS
4301
4302 fi
4303 fi
4304 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4305 if test -n "$ac_ct_AR"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4307 $as_echo "$ac_ct_AR" >&6; }
4308 else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4311 fi
4312
4313
4314 test -n "$ac_ct_AR" && break
4315 done
4316
4317 if test "x$ac_ct_AR" = x; then
4318 AR="ar"
4319 else
4320 case $cross_compiling:$ac_tool_warned in
4321 yes:)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4324 ac_tool_warned=yes ;;
4325 esac
4326 AR=$ac_ct_AR
4327 fi
4328 fi
4329
4330 ARFLAGS=rc
4331
4332 if test -n "$ac_tool_prefix"; then
4333 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4334 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 if test -n "$RANLIB"; then
4341 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4342 else
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 for as_dir in $PATH
4345 do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 break 2
4353 fi
4354 done
4355 done
4356 IFS=$as_save_IFS
4357
4358 fi
4359 fi
4360 RANLIB=$ac_cv_prog_RANLIB
4361 if test -n "$RANLIB"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4363 $as_echo "$RANLIB" >&6; }
4364 else
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4367 fi
4368
4369
4370 fi
4371 if test -z "$ac_cv_prog_RANLIB"; then
4372 ac_ct_RANLIB=$RANLIB
4373 # Extract the first word of "ranlib", so it can be a program name with args.
4374 set dummy ranlib; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if test -n "$ac_ct_RANLIB"; then
4381 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390 ac_cv_prog_ac_ct_RANLIB="ranlib"
4391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 break 2
4393 fi
4394 done
4395 done
4396 IFS=$as_save_IFS
4397
4398 fi
4399 fi
4400 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4401 if test -n "$ac_ct_RANLIB"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4403 $as_echo "$ac_ct_RANLIB" >&6; }
4404 else
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407 fi
4408
4409 if test "x$ac_ct_RANLIB" = x; then
4410 RANLIB=":"
4411 else
4412 case $cross_compiling:$ac_tool_warned in
4413 yes:)
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4416 ac_tool_warned=yes ;;
4417 esac
4418 RANLIB=$ac_ct_RANLIB
4419 fi
4420 else
4421 RANLIB="$ac_cv_prog_RANLIB"
4422 fi
4423
4424 if test -n "$ac_tool_prefix"; then
4425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4426 set dummy ${ac_tool_prefix}strip; ac_word=$2
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if test "${ac_cv_prog_STRIP+set}" = set; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 if test -n "$STRIP"; then
4433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438 IFS=$as_save_IFS
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 break 2
4445 fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4449
4450 fi
4451 fi
4452 STRIP=$ac_cv_prog_STRIP
4453 if test -n "$STRIP"; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4455 $as_echo "$STRIP" >&6; }
4456 else
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458 $as_echo "no" >&6; }
4459 fi
4460
4461
4462 fi
4463 if test -z "$ac_cv_prog_STRIP"; then
4464 ac_ct_STRIP=$STRIP
4465 # Extract the first word of "strip", so it can be a program name with args.
4466 set dummy strip; ac_word=$2
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468 $as_echo_n "checking for $ac_word... " >&6; }
4469 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 if test -n "$ac_ct_STRIP"; then
4473 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_ac_ct_STRIP="strip"
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486 done
4487 done
4488 IFS=$as_save_IFS
4489
4490 fi
4491 fi
4492 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4493 if test -n "$ac_ct_STRIP"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4495 $as_echo "$ac_ct_STRIP" >&6; }
4496 else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4499 fi
4500
4501 if test "x$ac_ct_STRIP" = x; then
4502 STRIP="strip"
4503 else
4504 case $cross_compiling:$ac_tool_warned in
4505 yes:)
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4508 ac_tool_warned=yes ;;
4509 esac
4510 STRIP=$ac_ct_STRIP
4511 fi
4512 else
4513 STRIP="$ac_cv_prog_STRIP"
4514 fi
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4517 $as_echo_n "checking whether ln -s works... " >&6; }
4518 LN_S=$as_ln_s
4519 if test "$LN_S" = "ln -s"; then
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4521 $as_echo "yes" >&6; }
4522 else
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4524 $as_echo "no, using $LN_S" >&6; }
4525 fi
4526
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
4528 $as_echo_n "checking whether ln works... " >&6; }
4529 rm -f conf$$ conf$$.file
4530 echo >conf$$.file
4531 if ln conf$$.file conf$$ 2>/dev/null; then
4532 LN=ln
4533
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4535 $as_echo "yes" >&6; }
4536 else
4537 LN="cp -p"
4538
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
4540 $as_echo "no, using $LN" >&6; }
4541 fi
4542 rm -f conf$$ conf$$.file
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4544 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4545 if test "${ac_cv_path_GREP+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if test -z "$GREP"; then
4549 ac_path_GREP_found=false
4550 # Loop through the user's path and test for each of PROGNAME-LIST
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4553 do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_prog in grep ggrep; do
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4559 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4560 # Check for GNU ac_path_GREP and select it if it is found.
4561 # Check for GNU $ac_path_GREP
4562 case `"$ac_path_GREP" --version 2>&1` in
4563 *GNU*)
4564 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4565 *)
4566 ac_count=0
4567 $as_echo_n 0123456789 >"conftest.in"
4568 while :
4569 do
4570 cat "conftest.in" "conftest.in" >"conftest.tmp"
4571 mv "conftest.tmp" "conftest.in"
4572 cp "conftest.in" "conftest.nl"
4573 $as_echo 'GREP' >> "conftest.nl"
4574 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4576 as_fn_arith $ac_count + 1 && ac_count=$as_val
4577 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4578 # Best one so far, save it but keep looking for a better one
4579 ac_cv_path_GREP="$ac_path_GREP"
4580 ac_path_GREP_max=$ac_count
4581 fi
4582 # 10*(2^10) chars as input seems more than enough
4583 test $ac_count -gt 10 && break
4584 done
4585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4586 esac
4587
4588 $ac_path_GREP_found && break 3
4589 done
4590 done
4591 done
4592 IFS=$as_save_IFS
4593 if test -z "$ac_cv_path_GREP"; then
4594 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4595 fi
4596 else
4597 ac_cv_path_GREP=$GREP
4598 fi
4599
4600 fi
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4602 $as_echo "$ac_cv_path_GREP" >&6; }
4603 GREP="$ac_cv_path_GREP"
4604
4605
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4607 $as_echo_n "checking for egrep... " >&6; }
4608 if test "${ac_cv_path_EGREP+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4612 then ac_cv_path_EGREP="$GREP -E"
4613 else
4614 if test -z "$EGREP"; then
4615 ac_path_EGREP_found=false
4616 # Loop through the user's path and test for each of PROGNAME-LIST
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4619 do
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_prog in egrep; do
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4625 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4626 # Check for GNU ac_path_EGREP and select it if it is found.
4627 # Check for GNU $ac_path_EGREP
4628 case `"$ac_path_EGREP" --version 2>&1` in
4629 *GNU*)
4630 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4631 *)
4632 ac_count=0
4633 $as_echo_n 0123456789 >"conftest.in"
4634 while :
4635 do
4636 cat "conftest.in" "conftest.in" >"conftest.tmp"
4637 mv "conftest.tmp" "conftest.in"
4638 cp "conftest.in" "conftest.nl"
4639 $as_echo 'EGREP' >> "conftest.nl"
4640 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4642 as_fn_arith $ac_count + 1 && ac_count=$as_val
4643 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4644 # Best one so far, save it but keep looking for a better one
4645 ac_cv_path_EGREP="$ac_path_EGREP"
4646 ac_path_EGREP_max=$ac_count
4647 fi
4648 # 10*(2^10) chars as input seems more than enough
4649 test $ac_count -gt 10 && break
4650 done
4651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4652 esac
4653
4654 $ac_path_EGREP_found && break 3
4655 done
4656 done
4657 done
4658 IFS=$as_save_IFS
4659 if test -z "$ac_cv_path_EGREP"; then
4660 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4661 fi
4662 else
4663 ac_cv_path_EGREP=$EGREP
4664 fi
4665
4666 fi
4667 fi
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4669 $as_echo "$ac_cv_path_EGREP" >&6; }
4670 EGREP="$ac_cv_path_EGREP"
4671
4672
4673 # Extract the first word of "ldconfig", so it can be a program name with args.
4674 set dummy ldconfig; ac_word=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 case $LDCONFIG in
4681 [\\/]* | ?:[\\/]*)
4682 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4683 ;;
4684 *)
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in /sbin /usr/sbin $PATH
4687 do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696 done
4697 done
4698 IFS=$as_save_IFS
4699
4700 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4701 ;;
4702 esac
4703 fi
4704 LDCONFIG=$ac_cv_path_LDCONFIG
4705 if test -n "$LDCONFIG"; then
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
4707 $as_echo "$LDCONFIG" >&6; }
4708 else
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 $as_echo "no" >&6; }
4711 fi
4712
4713
4714 # Find a good install program. We prefer a C program (faster),
4715 # so one script is as good as another. But avoid the broken or
4716 # incompatible versions:
4717 # SysV /etc/install, /usr/sbin/install
4718 # SunOS /usr/etc/install
4719 # IRIX /sbin/install
4720 # AIX /bin/install
4721 # AmigaOS /C/install, which installs bootblocks on floppy discs
4722 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4723 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4724 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4725 # OS/2's system install, which has a completely different semantic
4726 # ./install, which can be erroneously created by make from ./install.sh.
4727 # Reject install programs that cannot install multiple files.
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4729 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4730 if test -z "$INSTALL"; then
4731 if test "${ac_cv_path_install+set}" = set; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
4739 # Account for people who put trailing slashes in PATH elements.
4740 case $as_dir/ in #((
4741 ./ | .// | /[cC]/* | \
4742 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4743 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4744 /usr/ucb/* ) ;;
4745 *)
4746 # OSF1 and SCO ODT 3.0 have their own names for install.
4747 # Don't use installbsd from OSF since it installs stuff as root
4748 # by default.
4749 for ac_prog in ginstall scoinst install; do
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4752 if test $ac_prog = install &&
4753 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4754 # AIX install. It has an incompatible calling convention.
4755 :
4756 elif test $ac_prog = install &&
4757 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4758 # program-specific install script used by HP pwplus--don't use.
4759 :
4760 else
4761 rm -rf conftest.one conftest.two conftest.dir
4762 echo one > conftest.one
4763 echo two > conftest.two
4764 mkdir conftest.dir
4765 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4766 test -s conftest.one && test -s conftest.two &&
4767 test -s conftest.dir/conftest.one &&
4768 test -s conftest.dir/conftest.two
4769 then
4770 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4771 break 3
4772 fi
4773 fi
4774 fi
4775 done
4776 done
4777 ;;
4778 esac
4779
4780 done
4781 IFS=$as_save_IFS
4782
4783 rm -rf conftest.one conftest.two conftest.dir
4784
4785 fi
4786 if test "${ac_cv_path_install+set}" = set; then
4787 INSTALL=$ac_cv_path_install
4788 else
4789 # As a last resort, use the slow shell script. Don't cache a
4790 # value for INSTALL within a source directory, because that will
4791 # break other packages using the cache if that directory is
4792 # removed, or if the value is a relative name.
4793 INSTALL=$ac_install_sh
4794 fi
4795 fi
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4797 $as_echo "$INSTALL" >&6; }
4798
4799 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4800 # It thinks the first close brace ends the variable substitution.
4801 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4802
4803 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4804
4805 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4806
4807 case "$INSTALL" in
4808 [\\/$]* | ?:[\\/]* ) ;;
4809 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4810 esac
4811
4812 for ac_prog in lclint lint
4813 do
4814 # Extract the first word of "$ac_prog", so it can be a program name with args.
4815 set dummy $ac_prog; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if test "${ac_cv_prog_LINT+set}" = set; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$LINT"; then
4822 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4831 ac_cv_prog_LINT="$ac_prog"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4834 fi
4835 done
4836 done
4837 IFS=$as_save_IFS
4838
4839 fi
4840 fi
4841 LINT=$ac_cv_prog_LINT
4842 if test -n "$LINT"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
4844 $as_echo "$LINT" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 fi
4849
4850
4851 test -n "$LINT" && break
4852 done
4853
4854 if test "$LINT" = "lint"
4855 then
4856 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4857 fi
4858
4859
4860
4861 for ac_prog in fontforge
4862 do
4863 # Extract the first word of "$ac_prog", so it can be a program name with args.
4864 set dummy $ac_prog; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 if test -n "$FONTFORGE"; then
4871 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_FONTFORGE="$ac_prog"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4883 fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4887
4888 fi
4889 fi
4890 FONTFORGE=$ac_cv_prog_FONTFORGE
4891 if test -n "$FONTFORGE"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
4893 $as_echo "$FONTFORGE" >&6; }
4894 else
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4897 fi
4898
4899
4900 test -n "$FONTFORGE" && break
4901 done
4902 test -n "$FONTFORGE" || FONTFORGE="false"
4903
4904 for ac_prog in pkg-config
4905 do
4906 # Extract the first word of "$ac_prog", so it can be a program name with args.
4907 set dummy $ac_prog; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 if test -n "$PKG_CONFIG"; then
4914 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_PKG_CONFIG="$ac_prog"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4926 fi
4927 done
4928 done
4929 IFS=$as_save_IFS
4930
4931 fi
4932 fi
4933 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4934 if test -n "$PKG_CONFIG"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4936 $as_echo "$PKG_CONFIG" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4940 fi
4941
4942
4943 test -n "$PKG_CONFIG" && break
4944 done
4945 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4946
4947 for ac_prog in rsvg
4948 do
4949 # Extract the first word of "$ac_prog", so it can be a program name with args.
4950 set dummy $ac_prog; ac_word=$2
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4952 $as_echo_n "checking for $ac_word... " >&6; }
4953 if test "${ac_cv_prog_RSVG+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4955 else
4956 if test -n "$RSVG"; then
4957 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4958 else
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4961 do
4962 IFS=$as_save_IFS
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966 ac_cv_prog_RSVG="$ac_prog"
4967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 break 2
4969 fi
4970 done
4971 done
4972 IFS=$as_save_IFS
4973
4974 fi
4975 fi
4976 RSVG=$ac_cv_prog_RSVG
4977 if test -n "$RSVG"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
4979 $as_echo "$RSVG" >&6; }
4980 else
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4983 fi
4984
4985
4986 test -n "$RSVG" && break
4987 done
4988 test -n "$RSVG" || RSVG="false"
4989
4990 for ac_prog in icotool
4991 do
4992 # Extract the first word of "$ac_prog", so it can be a program name with args.
4993 set dummy $ac_prog; ac_word=$2
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995 $as_echo_n "checking for $ac_word... " >&6; }
4996 if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 if test -n "$ICOTOOL"; then
5000 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5004 do
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5009 ac_cv_prog_ICOTOOL="$ac_prog"
5010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 break 2
5012 fi
5013 done
5014 done
5015 IFS=$as_save_IFS
5016
5017 fi
5018 fi
5019 ICOTOOL=$ac_cv_prog_ICOTOOL
5020 if test -n "$ICOTOOL"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
5022 $as_echo "$ICOTOOL" >&6; }
5023 else
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5026 fi
5027
5028
5029 test -n "$ICOTOOL" && break
5030 done
5031 test -n "$ICOTOOL" || ICOTOOL="false"
5032
5033
5034 if test "${enable_maintainer_mode+set}" = set
5035 then
5036 if test "$FONTFORGE" = "false"; then wine_warnings="$wine_warnings|fontforge is missing, fonts can't be rebuilt."; fi
5037 if test "$RSVG" = "false"; then wine_warnings="$wine_warnings|rsvg is missing, icons can't be rebuilt."; fi
5038 if test "$ICOTOOL" = "false"; then wine_warnings="$wine_warnings|icotool is missing, icons can't be rebuilt."; fi
5039 fi
5040
5041 case $host_cpu in
5042 *i[3456789]86*)
5043 # Extract the first word of "prelink", so it can be a program name with args.
5044 set dummy prelink; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; }
5047 if test "${ac_cv_path_PRELINK+set}" = set; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 case $PRELINK in
5051 [\\/]* | ?:[\\/]*)
5052 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5053 ;;
5054 *)
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in /sbin /usr/sbin $PATH
5057 do
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
5063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5065 fi
5066 done
5067 done
5068 IFS=$as_save_IFS
5069
5070 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5071 ;;
5072 esac
5073 fi
5074 PRELINK=$ac_cv_path_PRELINK
5075 if test -n "$PRELINK"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
5077 $as_echo "$PRELINK" >&6; }
5078 else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5081 fi
5082
5083
5084 ;;
5085 esac
5086
5087
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
5089 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5090 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 ac_check_lib_save_LIBS=$LIBS
5094 LIBS="-li386 $LIBS"
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5097
5098 /* Override any GCC internal prototype to avoid an error.
5099 Use char because int might match the return type of a GCC
5100 builtin and then its argument prototype would still apply. */
5101 #ifdef __cplusplus
5102 extern "C"
5103 #endif
5104 char i386_set_ldt ();
5105 int
5106 main ()
5107 {
5108 return i386_set_ldt ();
5109 ;
5110 return 0;
5111 }
5112 _ACEOF
5113 if ac_fn_c_try_link "$LINENO"; then :
5114 ac_cv_lib_i386_i386_set_ldt=yes
5115 else
5116 ac_cv_lib_i386_i386_set_ldt=no
5117 fi
5118 rm -f core conftest.err conftest.$ac_objext \
5119 conftest$ac_exeext conftest.$ac_ext
5120 LIBS=$ac_check_lib_save_LIBS
5121 fi
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5123 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5124 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
5125 cat >>confdefs.h <<_ACEOF
5126 #define HAVE_LIBI386 1
5127 _ACEOF
5128
5129 LIBS="-li386 $LIBS"
5130
5131 fi
5132
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
5134 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5135 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 ac_check_lib_save_LIBS=$LIBS
5139 LIBS="-lossaudio $LIBS"
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5142
5143 /* Override any GCC internal prototype to avoid an error.
5144 Use char because int might match the return type of a GCC
5145 builtin and then its argument prototype would still apply. */
5146 #ifdef __cplusplus
5147 extern "C"
5148 #endif
5149 char _oss_ioctl ();
5150 int
5151 main ()
5152 {
5153 return _oss_ioctl ();
5154 ;
5155 return 0;
5156 }
5157 _ACEOF
5158 if ac_fn_c_try_link "$LINENO"; then :
5159 ac_cv_lib_ossaudio__oss_ioctl=yes
5160 else
5161 ac_cv_lib_ossaudio__oss_ioctl=no
5162 fi
5163 rm -f core conftest.err conftest.$ac_objext \
5164 conftest$ac_exeext conftest.$ac_ext
5165 LIBS=$ac_check_lib_save_LIBS
5166 fi
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5168 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5169 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
5170 cat >>confdefs.h <<_ACEOF
5171 #define HAVE_LIBOSSAUDIO 1
5172 _ACEOF
5173
5174 LIBS="-lossaudio $LIBS"
5175
5176 fi
5177
5178
5179 XLIB=""
5180
5181 OPENGL_LIBS=""
5182
5183
5184
5185 # Check whether --enable-largefile was given.
5186 if test "${enable_largefile+set}" = set; then :
5187 enableval=$enable_largefile;
5188 fi
5189
5190 if test "$enable_largefile" != no; then
5191
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5193 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5194 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 ac_cv_sys_largefile_CC=no
5198 if test "$GCC" != yes; then
5199 ac_save_CC=$CC
5200 while :; do
5201 # IRIX 6.2 and later do not support large files by default,
5202 # so use the C compiler's -n32 option if that helps.
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 #include <sys/types.h>
5206 /* Check that off_t can represent 2**63 - 1 correctly.
5207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5208 since some C++ compilers masquerading as C compilers
5209 incorrectly reject 9223372036854775807. */
5210 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5212 && LARGE_OFF_T % 2147483647 == 1)
5213 ? 1 : -1];
5214 int
5215 main ()
5216 {
5217
5218 ;
5219 return 0;
5220 }
5221 _ACEOF
5222 if ac_fn_c_try_compile "$LINENO"; then :
5223 break
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext
5226 CC="$CC -n32"
5227 if ac_fn_c_try_compile "$LINENO"; then :
5228 ac_cv_sys_largefile_CC=' -n32'; break
5229 fi
5230 rm -f core conftest.err conftest.$ac_objext
5231 break
5232 done
5233 CC=$ac_save_CC
5234 rm -f conftest.$ac_ext
5235 fi
5236 fi
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5238 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5239 if test "$ac_cv_sys_largefile_CC" != no; then
5240 CC=$CC$ac_cv_sys_largefile_CC
5241 fi
5242
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5244 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5245 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 while :; do
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 #include <sys/types.h>
5252 /* Check that off_t can represent 2**63 - 1 correctly.
5253 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5254 since some C++ compilers masquerading as C compilers
5255 incorrectly reject 9223372036854775807. */
5256 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5257 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5258 && LARGE_OFF_T % 2147483647 == 1)
5259 ? 1 : -1];
5260 int
5261 main ()
5262 {
5263
5264 ;
5265 return 0;
5266 }
5267 _ACEOF
5268 if ac_fn_c_try_compile "$LINENO"; then :
5269 ac_cv_sys_file_offset_bits=no; break
5270 fi
5271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #define _FILE_OFFSET_BITS 64
5275 #include <sys/types.h>
5276 /* Check that off_t can represent 2**63 - 1 correctly.
5277 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5278 since some C++ compilers masquerading as C compilers
5279 incorrectly reject 9223372036854775807. */
5280 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5281 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5282 && LARGE_OFF_T % 2147483647 == 1)
5283 ? 1 : -1];
5284 int
5285 main ()
5286 {
5287
5288 ;
5289 return 0;
5290 }
5291 _ACEOF
5292 if ac_fn_c_try_compile "$LINENO"; then :
5293 ac_cv_sys_file_offset_bits=64; break
5294 fi
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 ac_cv_sys_file_offset_bits=unknown
5297 break
5298 done
5299 fi
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5301 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5302 case $ac_cv_sys_file_offset_bits in #(
5303 no | unknown) ;;
5304 *)
5305 cat >>confdefs.h <<_ACEOF
5306 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5307 _ACEOF
5308 ;;
5309 esac
5310 rm -rf conftest*
5311 if test $ac_cv_sys_file_offset_bits = unknown; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5313 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5314 if test "${ac_cv_sys_large_files+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 while :; do
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5320 #include <sys/types.h>
5321 /* Check that off_t can represent 2**63 - 1 correctly.
5322 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5323 since some C++ compilers masquerading as C compilers
5324 incorrectly reject 9223372036854775807. */
5325 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5326 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5327 && LARGE_OFF_T % 2147483647 == 1)
5328 ? 1 : -1];
5329 int
5330 main ()
5331 {
5332
5333 ;
5334 return 0;
5335 }
5336 _ACEOF
5337 if ac_fn_c_try_compile "$LINENO"; then :
5338 ac_cv_sys_large_files=no; break
5339 fi
5340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5343 #define _LARGE_FILES 1
5344 #include <sys/types.h>
5345 /* Check that off_t can represent 2**63 - 1 correctly.
5346 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5347 since some C++ compilers masquerading as C compilers
5348 incorrectly reject 9223372036854775807. */
5349 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5350 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5351 && LARGE_OFF_T % 2147483647 == 1)
5352 ? 1 : -1];
5353 int
5354 main ()
5355 {
5356