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