~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/configure

Version: ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

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