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