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