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