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