/[pearpc]/configure
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (hide annotations)
Wed Sep 5 17:11:21 2007 UTC (16 years, 6 months ago) by dpavlin
File size: 377102 byte(s)
import upstream CVS
1 dpavlin 1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3     # Generated by GNU Autoconf 2.61.
4     #
5     # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6     # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7     # This configure script is free software; the Free Software Foundation
8     # gives unlimited permission to copy, distribute and modify it.
9     ## --------------------- ##
10     ## M4sh Initialization. ##
11     ## --------------------- ##
12    
13     # Be more Bourne compatible
14     DUALCASE=1; export DUALCASE # for MKS sh
15     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16     emulate sh
17     NULLCMD=:
18     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19     # is contrary to our usage. Disable this feature.
20     alias -g '${1+"$@"}'='"$@"'
21     setopt NO_GLOB_SUBST
22     else
23     case `(set -o) 2>/dev/null` in
24     *posix*) set -o posix ;;
25     esac
26    
27     fi
28    
29    
30    
31    
32     # PATH needs CR
33     # Avoid depending upon Character Ranges.
34     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37     as_cr_digits='0123456789'
38     as_cr_alnum=$as_cr_Letters$as_cr_digits
39    
40     # The user is always right.
41     if test "${PATH_SEPARATOR+set}" != set; then
42     echo "#! /bin/sh" >conf$$.sh
43     echo "exit 0" >>conf$$.sh
44     chmod +x conf$$.sh
45     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47     else
48     PATH_SEPARATOR=:
49     fi
50     rm -f conf$$.sh
51     fi
52    
53     # Support unset when possible.
54     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55     as_unset=unset
56     else
57     as_unset=false
58     fi
59    
60    
61     # IFS
62     # We need space, tab and new line, in precisely that order. Quoting is
63     # there to prevent editors from complaining about space-tab.
64     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65     # splitting by setting IFS to empty value.)
66     as_nl='
67     '
68     IFS=" "" $as_nl"
69    
70     # Find who we are. Look in the path if we contain no directory separator.
71     case $0 in
72     *[\\/]* ) as_myself=$0 ;;
73     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74     for as_dir in $PATH
75     do
76     IFS=$as_save_IFS
77     test -z "$as_dir" && as_dir=.
78     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79     done
80     IFS=$as_save_IFS
81    
82     ;;
83     esac
84     # We did not find ourselves, most probably we were run as `sh COMMAND'
85     # in which case we are not to be found in the path.
86     if test "x$as_myself" = x; then
87     as_myself=$0
88     fi
89     if test ! -f "$as_myself"; then
90     echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91     { (exit 1); exit 1; }
92     fi
93    
94     # Work around bugs in pre-3.0 UWIN ksh.
95     for as_var in ENV MAIL MAILPATH
96     do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97     done
98     PS1='$ '
99     PS2='> '
100     PS4='+ '
101    
102     # NLS nuisances.
103     for as_var in \
104     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106     LC_TELEPHONE LC_TIME
107     do
108     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110     else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112     fi
113     done
114    
115     # Required to use basename.
116     if expr a : '\(a\)' >/dev/null 2>&1 &&
117     test "X`expr 00001 : '.*\(...\)'`" = X001; then
118     as_expr=expr
119     else
120     as_expr=false
121     fi
122    
123     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124     as_basename=basename
125     else
126     as_basename=false
127     fi
128    
129    
130     # Name of the executable.
131     as_me=`$as_basename -- "$0" ||
132     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133     X"$0" : 'X\(//\)$' \| \
134     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135     echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137     s//\1/
138     q
139     }
140     /^X\/\(\/\/\)$/{
141     s//\1/
142     q
143     }
144     /^X\/\(\/\).*/{
145     s//\1/
146     q
147     }
148     s/.*/./; q'`
149    
150     # CDPATH.
151     $as_unset CDPATH
152    
153    
154     if test "x$CONFIG_SHELL" = x; then
155     if (eval ":") 2>/dev/null; then
156     as_have_required=yes
157     else
158     as_have_required=no
159     fi
160    
161     if test $as_have_required = yes && (eval ":
162     (as_func_return () {
163     (exit \$1)
164     }
165     as_func_success () {
166     as_func_return 0
167     }
168     as_func_failure () {
169     as_func_return 1
170     }
171     as_func_ret_success () {
172     return 0
173     }
174     as_func_ret_failure () {
175     return 1
176     }
177    
178     exitcode=0
179     if as_func_success; then
180     :
181     else
182     exitcode=1
183     echo as_func_success failed.
184     fi
185    
186     if as_func_failure; then
187     exitcode=1
188     echo as_func_failure succeeded.
189     fi
190    
191     if as_func_ret_success; then
192     :
193     else
194     exitcode=1
195     echo as_func_ret_success failed.
196     fi
197    
198     if as_func_ret_failure; then
199     exitcode=1
200     echo as_func_ret_failure succeeded.
201     fi
202    
203     if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204     :
205     else
206     exitcode=1
207     echo positional parameters were not saved.
208     fi
209    
210     test \$exitcode = 0) || { (exit 1); exit 1; }
211    
212     (
213     as_lineno_1=\$LINENO
214     as_lineno_2=\$LINENO
215     test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216     test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217     ") 2> /dev/null; then
218     :
219     else
220     as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223     do
224     IFS=$as_save_IFS
225     test -z "$as_dir" && as_dir=.
226     case $as_dir in
227     /*)
228     for as_base in sh bash ksh sh5; do
229     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230     done;;
231     esac
232     done
233     IFS=$as_save_IFS
234    
235    
236     for as_shell in $as_candidate_shells $SHELL; do
237     # Try only shells that exist, to save several forks.
238     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239     { ("$as_shell") 2> /dev/null <<\_ASEOF
240     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241     emulate sh
242     NULLCMD=:
243     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244     # is contrary to our usage. Disable this feature.
245     alias -g '${1+"$@"}'='"$@"'
246     setopt NO_GLOB_SUBST
247     else
248     case `(set -o) 2>/dev/null` in
249     *posix*) set -o posix ;;
250     esac
251    
252     fi
253    
254    
255     :
256     _ASEOF
257     }; then
258     CONFIG_SHELL=$as_shell
259     as_have_required=yes
260     if { "$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     # Zsh 3.x and 4.x performs 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     (as_func_return () {
278     (exit $1)
279     }
280     as_func_success () {
281     as_func_return 0
282     }
283     as_func_failure () {
284     as_func_return 1
285     }
286     as_func_ret_success () {
287     return 0
288     }
289     as_func_ret_failure () {
290     return 1
291     }
292    
293     exitcode=0
294     if as_func_success; then
295     :
296     else
297     exitcode=1
298     echo as_func_success failed.
299     fi
300    
301     if as_func_failure; then
302     exitcode=1
303     echo as_func_failure succeeded.
304     fi
305    
306     if as_func_ret_success; then
307     :
308     else
309     exitcode=1
310     echo as_func_ret_success failed.
311     fi
312    
313     if as_func_ret_failure; then
314     exitcode=1
315     echo as_func_ret_failure succeeded.
316     fi
317    
318     if ( set x; as_func_ret_success y && test x = "$1" ); then
319     :
320     else
321     exitcode=1
322     echo positional parameters were not saved.
323     fi
324    
325     test $exitcode = 0) || { (exit 1); exit 1; }
326    
327     (
328     as_lineno_1=$LINENO
329     as_lineno_2=$LINENO
330     test "x$as_lineno_1" != "x$as_lineno_2" &&
331     test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332    
333     _ASEOF
334     }; then
335     break
336     fi
337    
338     fi
339    
340     done
341    
342     if test "x$CONFIG_SHELL" != x; then
343     for as_var in BASH_ENV ENV
344     do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345     done
346     export CONFIG_SHELL
347     exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348     fi
349    
350    
351     if test $as_have_required = no; then
352     echo This script requires a shell more modern than all the
353     echo shells that I found on your system. Please install a
354     echo modern shell, or manually run the script under such a
355     echo shell if you do have one.
356     { (exit 1); exit 1; }
357     fi
358    
359    
360     fi
361    
362     fi
363    
364    
365    
366     (eval "as_func_return () {
367     (exit \$1)
368     }
369     as_func_success () {
370     as_func_return 0
371     }
372     as_func_failure () {
373     as_func_return 1
374     }
375     as_func_ret_success () {
376     return 0
377     }
378     as_func_ret_failure () {
379     return 1
380     }
381    
382     exitcode=0
383     if as_func_success; then
384     :
385     else
386     exitcode=1
387     echo as_func_success failed.
388     fi
389    
390     if as_func_failure; then
391     exitcode=1
392     echo as_func_failure succeeded.
393     fi
394    
395     if as_func_ret_success; then
396     :
397     else
398     exitcode=1
399     echo as_func_ret_success failed.
400     fi
401    
402     if as_func_ret_failure; then
403     exitcode=1
404     echo as_func_ret_failure succeeded.
405     fi
406    
407     if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408     :
409     else
410     exitcode=1
411     echo positional parameters were not saved.
412     fi
413    
414     test \$exitcode = 0") || {
415     echo No shell found that supports shell functions.
416     echo Please tell autoconf@gnu.org about your system,
417     echo including any error possibly output before this
418     echo message
419     }
420    
421    
422    
423     as_lineno_1=$LINENO
424     as_lineno_2=$LINENO
425     test "x$as_lineno_1" != "x$as_lineno_2" &&
426     test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427    
428     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429     # uniformly replaced by the line number. The first 'sed' inserts a
430     # line-number line after each line using $LINENO; the second 'sed'
431     # does the real work. The second script uses 'N' to pair each
432     # line-number line with the line containing $LINENO, and appends
433     # trailing '-' during substitution so that $LINENO is not a special
434     # case at line end.
435     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436     # scripts with optimization help from Paolo Bonzini. Blame Lee
437     # E. McMahon (1931-1989) for sed's syntax. :-)
438     sed -n '
439     p
440     /[$]LINENO/=
441     ' <$as_myself |
442     sed '
443     s/[$]LINENO.*/&-/
444     t lineno
445     b
446     :lineno
447     N
448     :loop
449     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450     t loop
451     s/-\n.*//
452     ' >$as_me.lineno &&
453     chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455     { (exit 1); exit 1; }; }
456    
457     # Don't try to exec as it changes $[0], causing all sort of problems
458     # (the dirname of $[0] is not the place where we might find the
459     # original and so on. Autoconf is especially sensitive to this).
460     . "./$as_me.lineno"
461     # Exit status is that of the last command.
462     exit
463     }
464    
465    
466     if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467     as_dirname=dirname
468     else
469     as_dirname=false
470     fi
471    
472     ECHO_C= ECHO_N= ECHO_T=
473     case `echo -n x` in
474     -n*)
475     case `echo 'x\c'` in
476     *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477     *) ECHO_C='\c';;
478     esac;;
479     *)
480     ECHO_N='-n';;
481     esac
482    
483     if expr a : '\(a\)' >/dev/null 2>&1 &&
484     test "X`expr 00001 : '.*\(...\)'`" = X001; then
485     as_expr=expr
486     else
487     as_expr=false
488     fi
489    
490     rm -f conf$$ conf$$.exe conf$$.file
491     if test -d conf$$.dir; then
492     rm -f conf$$.dir/conf$$.file
493     else
494     rm -f conf$$.dir
495     mkdir conf$$.dir
496     fi
497     echo >conf$$.file
498     if ln -s conf$$.file conf$$ 2>/dev/null; then
499     as_ln_s='ln -s'
500     # ... but there are two gotchas:
501     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503     # In both cases, we have to default to `cp -p'.
504     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506     elif ln conf$$.file conf$$ 2>/dev/null; then
507     as_ln_s=ln
508     else
509     as_ln_s='cp -p'
510     fi
511     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512     rmdir conf$$.dir 2>/dev/null
513    
514     if mkdir -p . 2>/dev/null; then
515     as_mkdir_p=:
516     else
517     test -d ./-p && rmdir ./-p
518     as_mkdir_p=false
519     fi
520    
521     if test -x / >/dev/null 2>&1; then
522     as_test_x='test -x'
523     else
524     if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526     else
527     as_ls_L_option=
528     fi
529     as_test_x='
530     eval sh -c '\''
531     if test -d "$1"; then
532     test -d "$1/.";
533     else
534     case $1 in
535     -*)set "./$1";;
536     esac;
537     case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538     ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540     '
541     fi
542     as_executable_p=$as_test_x
543    
544     # Sed expression to map a string onto a valid CPP name.
545     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546    
547     # Sed expression to map a string onto a valid variable name.
548     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549    
550    
551    
552     exec 7<&0 </dev/null 6>&1
553    
554     # Name of the host.
555     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556     # so uname gets run too.
557     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558    
559     #
560     # Initializations.
561     #
562     ac_default_prefix=/usr/local
563     ac_clean_files=
564     ac_config_libobj_dir=.
565     LIBOBJS=
566     cross_compiling=no
567     subdirs=
568     MFLAGS=
569     MAKEFLAGS=
570     SHELL=${CONFIG_SHELL-/bin/sh}
571    
572     # Identity of this package.
573     PACKAGE_NAME=
574     PACKAGE_TARNAME=
575     PACKAGE_VERSION=
576     PACKAGE_STRING=
577     PACKAGE_BUGREPORT=
578    
579     ac_unique_file="src/system/types.h"
580     # Factoring default headers for most tests.
581     ac_includes_default="\
582     #include <stdio.h>
583     #ifdef HAVE_SYS_TYPES_H
584     # include <sys/types.h>
585     #endif
586     #ifdef HAVE_SYS_STAT_H
587     # include <sys/stat.h>
588     #endif
589     #ifdef STDC_HEADERS
590     # include <stdlib.h>
591     # include <stddef.h>
592     #else
593     # ifdef HAVE_STDLIB_H
594     # include <stdlib.h>
595     # endif
596     #endif
597     #ifdef HAVE_STRING_H
598     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599     # include <memory.h>
600     # endif
601     # include <string.h>
602     #endif
603     #ifdef HAVE_STRINGS_H
604     # include <strings.h>
605     #endif
606     #ifdef HAVE_INTTYPES_H
607     # include <inttypes.h>
608     #endif
609     #ifdef HAVE_STDINT_H
610     # include <stdint.h>
611     #endif
612     #ifdef HAVE_UNISTD_H
613     # include <unistd.h>
614     #endif"
615    
616     ac_subst_vars='SHELL
617     PATH_SEPARATOR
618     PACKAGE_NAME
619     PACKAGE_TARNAME
620     PACKAGE_VERSION
621     PACKAGE_STRING
622     PACKAGE_BUGREPORT
623     exec_prefix
624     prefix
625     program_transform_name
626     bindir
627     sbindir
628     libexecdir
629     datarootdir
630     datadir
631     sysconfdir
632     sharedstatedir
633     localstatedir
634     includedir
635     oldincludedir
636     docdir
637     infodir
638     htmldir
639     dvidir
640     pdfdir
641     psdir
642     libdir
643     localedir
644     mandir
645     DEFS
646     ECHO_C
647     ECHO_N
648     ECHO_T
649     LIBS
650     build_alias
651     host_alias
652     target_alias
653     build
654     build_cpu
655     build_vendor
656     build_os
657     host
658     host_cpu
659     host_vendor
660     host_os
661     target
662     target_cpu
663     target_vendor
664     target_os
665     PACKAGE
666     VERSION
667     INSTALL_PROGRAM
668     INSTALL_SCRIPT
669     INSTALL_DATA
670     CYGPATH_W
671     ACLOCAL
672     AUTOCONF
673     AUTOMAKE
674     AUTOHEADER
675     MAKEINFO
676     AMTAR
677     install_sh
678     STRIP
679     INSTALL_STRIP_PROGRAM
680     mkdir_p
681     AWK
682     SET_MAKE
683     am__leading_dot
684     USE_OSAPI_BEOS_TRUE
685     USE_OSAPI_BEOS_FALSE
686     USE_OSAPI_POSIX_TRUE
687     USE_OSAPI_POSIX_FALSE
688     USE_OSAPI_WIN32_TRUE
689     USE_OSAPI_WIN32_FALSE
690     USE_CPU_GENERIC_TRUE
691     USE_CPU_GENERIC_FALSE
692     USE_CPU_JITC_X86_TRUE
693     USE_CPU_JITC_X86_FALSE
694     RANLIB
695     MAKE
696     CC
697     CFLAGS
698     LDFLAGS
699     CPPFLAGS
700     ac_ct_CC
701     EXEEXT
702     OBJEXT
703     DEPDIR
704     am__include
705     am__quote
706     AMDEP_TRUE
707     AMDEP_FALSE
708     AMDEPBACKSLASH
709     CCDEPMODE
710     am__fastdepCC_TRUE
711     am__fastdepCC_FALSE
712     CXX
713     CXXFLAGS
714     ac_ct_CXX
715     CXXDEPMODE
716     am__fastdepCXX_TRUE
717     am__fastdepCXX_FALSE
718     CPP
719     CCAS
720     CCASFLAGS
721     LEX
722     LEX_OUTPUT_ROOT
723     LEXLIB
724     YACC
725     YFLAGS
726     AR
727     GREP
728     EGREP
729     XMKMF
730     X_CFLAGS
731     X_PRE_LIBS
732     X_LIBS
733     X_EXTRA_LIBS
734     ac_thread
735     QT_CFLAGS
736     SDL_CONFIG
737     SDL_CFLAGS
738     SDL_LIBS
739     USE_ARCH_X86_TRUE
740     USE_ARCH_X86_FALSE
741     USE_ARCH_GENERIC_TRUE
742     USE_ARCH_GENERIC_FALSE
743     USE_UI_QT_TRUE
744     USE_UI_QT_FALSE
745     USE_UI_GTK_TRUE
746     USE_UI_GTK_FALSE
747     USE_UI_BEOS_TRUE
748     USE_UI_BEOS_FALSE
749     USE_UI_SDL_TRUE
750     USE_UI_SDL_FALSE
751     USE_UI_WIN32_TRUE
752     USE_UI_WIN32_FALSE
753     USE_UI_X11_TRUE
754     USE_UI_X11_FALSE
755     ARCH_DIR
756     CPU_DIR
757     UI_DIR
758     OSAPI_DIR
759     PPC_LDADD
760     PPC_LDFLAGS
761     LIBOBJS
762     LTLIBOBJS'
763     ac_subst_files=''
764     ac_precious_vars='build_alias
765     host_alias
766     target_alias
767     CC
768     CFLAGS
769     LDFLAGS
770     LIBS
771     CPPFLAGS
772     CXX
773     CXXFLAGS
774     CCC
775     CPP
776     CCAS
777     CCASFLAGS
778     YACC
779     YFLAGS
780     XMKMF'
781    
782    
783     # Initialize some variables set by options.
784     ac_init_help=
785     ac_init_version=false
786     # The variables have the same names as the options, with
787     # dashes changed to underlines.
788     cache_file=/dev/null
789     exec_prefix=NONE
790     no_create=
791     no_recursion=
792     prefix=NONE
793     program_prefix=NONE
794     program_suffix=NONE
795     program_transform_name=s,x,x,
796     silent=
797     site=
798     srcdir=
799     verbose=
800     x_includes=NONE
801     x_libraries=NONE
802    
803     # Installation directory options.
804     # These are left unexpanded so users can "make install exec_prefix=/foo"
805     # and all the variables that are supposed to be based on exec_prefix
806     # by default will actually change.
807     # Use braces instead of parens because sh, perl, etc. also accept them.
808     # (The list follows the same order as the GNU Coding Standards.)
809     bindir='${exec_prefix}/bin'
810     sbindir='${exec_prefix}/sbin'
811     libexecdir='${exec_prefix}/libexec'
812     datarootdir='${prefix}/share'
813     datadir='${datarootdir}'
814     sysconfdir='${prefix}/etc'
815     sharedstatedir='${prefix}/com'
816     localstatedir='${prefix}/var'
817     includedir='${prefix}/include'
818     oldincludedir='/usr/include'
819     docdir='${datarootdir}/doc/${PACKAGE}'
820     infodir='${datarootdir}/info'
821     htmldir='${docdir}'
822     dvidir='${docdir}'
823     pdfdir='${docdir}'
824     psdir='${docdir}'
825     libdir='${exec_prefix}/lib'
826     localedir='${datarootdir}/locale'
827     mandir='${datarootdir}/man'
828    
829     ac_prev=
830     ac_dashdash=
831     for ac_option
832     do
833     # If the previous option needs an argument, assign it.
834     if test -n "$ac_prev"; then
835     eval $ac_prev=\$ac_option
836     ac_prev=
837     continue
838     fi
839    
840     case $ac_option in
841     *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
842     *) ac_optarg=yes ;;
843     esac
844    
845     # Accept the important Cygnus configure options, so we can diagnose typos.
846    
847     case $ac_dashdash$ac_option in
848     --)
849     ac_dashdash=yes ;;
850    
851     -bindir | --bindir | --bindi | --bind | --bin | --bi)
852     ac_prev=bindir ;;
853     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854     bindir=$ac_optarg ;;
855    
856     -build | --build | --buil | --bui | --bu)
857     ac_prev=build_alias ;;
858     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859     build_alias=$ac_optarg ;;
860    
861     -cache-file | --cache-file | --cache-fil | --cache-fi \
862     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863     ac_prev=cache_file ;;
864     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866     cache_file=$ac_optarg ;;
867    
868     --config-cache | -C)
869     cache_file=config.cache ;;
870    
871     -datadir | --datadir | --datadi | --datad)
872     ac_prev=datadir ;;
873     -datadir=* | --datadir=* | --datadi=* | --datad=*)
874     datadir=$ac_optarg ;;
875    
876     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877     | --dataroo | --dataro | --datar)
878     ac_prev=datarootdir ;;
879     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881     datarootdir=$ac_optarg ;;
882    
883     -disable-* | --disable-*)
884     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885     # Reject names that are not valid shell variable names.
886     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
887     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
888     { (exit 1); exit 1; }; }
889     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
890     eval enable_$ac_feature=no ;;
891    
892     -docdir | --docdir | --docdi | --doc | --do)
893     ac_prev=docdir ;;
894     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895     docdir=$ac_optarg ;;
896    
897     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898     ac_prev=dvidir ;;
899     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900     dvidir=$ac_optarg ;;
901    
902     -enable-* | --enable-*)
903     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904     # Reject names that are not valid shell variable names.
905     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
906     { echo "$as_me: error: invalid feature name: $ac_feature" >&2
907     { (exit 1); exit 1; }; }
908     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
909     eval enable_$ac_feature=\$ac_optarg ;;
910    
911     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913     | --exec | --exe | --ex)
914     ac_prev=exec_prefix ;;
915     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917     | --exec=* | --exe=* | --ex=*)
918     exec_prefix=$ac_optarg ;;
919    
920     -gas | --gas | --ga | --g)
921     # Obsolete; use --with-gas.
922     with_gas=yes ;;
923    
924     -help | --help | --hel | --he | -h)
925     ac_init_help=long ;;
926     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927     ac_init_help=recursive ;;
928     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929     ac_init_help=short ;;
930    
931     -host | --host | --hos | --ho)
932     ac_prev=host_alias ;;
933     -host=* | --host=* | --hos=* | --ho=*)
934     host_alias=$ac_optarg ;;
935    
936     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937     ac_prev=htmldir ;;
938     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939     | --ht=*)
940     htmldir=$ac_optarg ;;
941    
942     -includedir | --includedir | --includedi | --included | --include \
943     | --includ | --inclu | --incl | --inc)
944     ac_prev=includedir ;;
945     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946     | --includ=* | --inclu=* | --incl=* | --inc=*)
947     includedir=$ac_optarg ;;
948    
949     -infodir | --infodir | --infodi | --infod | --info | --inf)
950     ac_prev=infodir ;;
951     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952     infodir=$ac_optarg ;;
953    
954     -libdir | --libdir | --libdi | --libd)
955     ac_prev=libdir ;;
956     -libdir=* | --libdir=* | --libdi=* | --libd=*)
957     libdir=$ac_optarg ;;
958    
959     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960     | --libexe | --libex | --libe)
961     ac_prev=libexecdir ;;
962     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963     | --libexe=* | --libex=* | --libe=*)
964     libexecdir=$ac_optarg ;;
965    
966     -localedir | --localedir | --localedi | --localed | --locale)
967     ac_prev=localedir ;;
968     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969     localedir=$ac_optarg ;;
970    
971     -localstatedir | --localstatedir | --localstatedi | --localstated \
972     | --localstate | --localstat | --localsta | --localst | --locals)
973     ac_prev=localstatedir ;;
974     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976     localstatedir=$ac_optarg ;;
977    
978     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979     ac_prev=mandir ;;
980     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
981     mandir=$ac_optarg ;;
982    
983     -nfp | --nfp | --nf)
984     # Obsolete; use --without-fp.
985     with_fp=no ;;
986    
987     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988     | --no-cr | --no-c | -n)
989     no_create=yes ;;
990    
991     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
993     no_recursion=yes ;;
994    
995     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997     | --oldin | --oldi | --old | --ol | --o)
998     ac_prev=oldincludedir ;;
999     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002     oldincludedir=$ac_optarg ;;
1003    
1004     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005     ac_prev=prefix ;;
1006     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007     prefix=$ac_optarg ;;
1008    
1009     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010     | --program-pre | --program-pr | --program-p)
1011     ac_prev=program_prefix ;;
1012     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014     program_prefix=$ac_optarg ;;
1015    
1016     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017     | --program-suf | --program-su | --program-s)
1018     ac_prev=program_suffix ;;
1019     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021     program_suffix=$ac_optarg ;;
1022    
1023     -program-transform-name | --program-transform-name \
1024     | --program-transform-nam | --program-transform-na \
1025     | --program-transform-n | --program-transform- \
1026     | --program-transform | --program-transfor \
1027     | --program-transfo | --program-transf \
1028     | --program-trans | --program-tran \
1029     | --progr-tra | --program-tr | --program-t)
1030     ac_prev=program_transform_name ;;
1031     -program-transform-name=* | --program-transform-name=* \
1032     | --program-transform-nam=* | --program-transform-na=* \
1033     | --program-transform-n=* | --program-transform-=* \
1034     | --program-transform=* | --program-transfor=* \
1035     | --program-transfo=* | --program-transf=* \
1036     | --program-trans=* | --program-tran=* \
1037     | --progr-tra=* | --program-tr=* | --program-t=*)
1038     program_transform_name=$ac_optarg ;;
1039    
1040     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041     ac_prev=pdfdir ;;
1042     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043     pdfdir=$ac_optarg ;;
1044    
1045     -psdir | --psdir | --psdi | --psd | --ps)
1046     ac_prev=psdir ;;
1047     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1048     psdir=$ac_optarg ;;
1049    
1050     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051     | -silent | --silent | --silen | --sile | --sil)
1052     silent=yes ;;
1053    
1054     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055     ac_prev=sbindir ;;
1056     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057     | --sbi=* | --sb=*)
1058     sbindir=$ac_optarg ;;
1059    
1060     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062     | --sharedst | --shareds | --shared | --share | --shar \
1063     | --sha | --sh)
1064     ac_prev=sharedstatedir ;;
1065     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068     | --sha=* | --sh=*)
1069     sharedstatedir=$ac_optarg ;;
1070    
1071     -site | --site | --sit)
1072     ac_prev=site ;;
1073     -site=* | --site=* | --sit=*)
1074     site=$ac_optarg ;;
1075    
1076     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077     ac_prev=srcdir ;;
1078     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079     srcdir=$ac_optarg ;;
1080    
1081     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082     | --syscon | --sysco | --sysc | --sys | --sy)
1083     ac_prev=sysconfdir ;;
1084     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086     sysconfdir=$ac_optarg ;;
1087    
1088     -target | --target | --targe | --targ | --tar | --ta | --t)
1089     ac_prev=target_alias ;;
1090     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091     target_alias=$ac_optarg ;;
1092    
1093     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1094     verbose=yes ;;
1095    
1096     -version | --version | --versio | --versi | --vers | -V)
1097     ac_init_version=: ;;
1098    
1099     -with-* | --with-*)
1100     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101     # Reject names that are not valid shell variable names.
1102     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103     { echo "$as_me: error: invalid package name: $ac_package" >&2
1104     { (exit 1); exit 1; }; }
1105     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1106     eval with_$ac_package=\$ac_optarg ;;
1107    
1108     -without-* | --without-*)
1109     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110     # Reject names that are not valid shell variable names.
1111     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112     { echo "$as_me: error: invalid package name: $ac_package" >&2
1113     { (exit 1); exit 1; }; }
1114     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115     eval with_$ac_package=no ;;
1116    
1117     --x)
1118     # Obsolete; use --with-x.
1119     with_x=yes ;;
1120    
1121     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122     | --x-incl | --x-inc | --x-in | --x-i)
1123     ac_prev=x_includes ;;
1124     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126     x_includes=$ac_optarg ;;
1127    
1128     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130     ac_prev=x_libraries ;;
1131     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133     x_libraries=$ac_optarg ;;
1134    
1135     -*) { echo "$as_me: error: unrecognized option: $ac_option
1136     Try \`$0 --help' for more information." >&2
1137     { (exit 1); exit 1; }; }
1138     ;;
1139    
1140     *=*)
1141     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142     # Reject names that are not valid shell variable names.
1143     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1144     { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1145     { (exit 1); exit 1; }; }
1146     eval $ac_envvar=\$ac_optarg
1147     export $ac_envvar ;;
1148    
1149     *)
1150     # FIXME: should be removed in autoconf 3.0.
1151     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153     echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1155     ;;
1156    
1157     esac
1158     done
1159    
1160     if test -n "$ac_prev"; then
1161     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162     { echo "$as_me: error: missing argument to $ac_option" >&2
1163     { (exit 1); exit 1; }; }
1164     fi
1165    
1166     # Be sure to have absolute directory names.
1167     for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168     datadir sysconfdir sharedstatedir localstatedir includedir \
1169     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170     libdir localedir mandir
1171     do
1172     eval ac_val=\$$ac_var
1173     case $ac_val in
1174     [\\/$]* | ?:[\\/]* ) continue;;
1175     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1176     esac
1177     { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1178     { (exit 1); exit 1; }; }
1179     done
1180    
1181     # There might be people who depend on the old broken behavior: `$host'
1182     # used to hold the argument of --host etc.
1183     # FIXME: To remove some day.
1184     build=$build_alias
1185     host=$host_alias
1186     target=$target_alias
1187    
1188     # FIXME: To remove some day.
1189     if test "x$host_alias" != x; then
1190     if test "x$build_alias" = x; then
1191     cross_compiling=maybe
1192     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1193     If a cross compiler is detected then cross compile mode will be used." >&2
1194     elif test "x$build_alias" != "x$host_alias"; then
1195     cross_compiling=yes
1196     fi
1197     fi
1198    
1199     ac_tool_prefix=
1200     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1201    
1202     test "$silent" = yes && exec 6>/dev/null
1203    
1204    
1205     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206     ac_ls_di=`ls -di .` &&
1207     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208     { echo "$as_me: error: Working directory cannot be determined" >&2
1209     { (exit 1); exit 1; }; }
1210     test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211     { echo "$as_me: error: pwd does not report name of working directory" >&2
1212     { (exit 1); exit 1; }; }
1213    
1214    
1215     # Find the source files, if location was not specified.
1216     if test -z "$srcdir"; then
1217     ac_srcdir_defaulted=yes
1218     # Try the directory containing this script, then the parent directory.
1219     ac_confdir=`$as_dirname -- "$0" ||
1220     $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1221     X"$0" : 'X\(//\)[^/]' \| \
1222     X"$0" : 'X\(//\)$' \| \
1223     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1224     echo X"$0" |
1225     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1226     s//\1/
1227     q
1228     }
1229     /^X\(\/\/\)[^/].*/{
1230     s//\1/
1231     q
1232     }
1233     /^X\(\/\/\)$/{
1234     s//\1/
1235     q
1236     }
1237     /^X\(\/\).*/{
1238     s//\1/
1239     q
1240     }
1241     s/.*/./; q'`
1242     srcdir=$ac_confdir
1243     if test ! -r "$srcdir/$ac_unique_file"; then
1244     srcdir=..
1245     fi
1246     else
1247     ac_srcdir_defaulted=no
1248     fi
1249     if test ! -r "$srcdir/$ac_unique_file"; then
1250     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1251     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1252     { (exit 1); exit 1; }; }
1253     fi
1254     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1255     ac_abs_confdir=`(
1256     cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1257     { (exit 1); exit 1; }; }
1258     pwd)`
1259     # When building in place, set srcdir=.
1260     if test "$ac_abs_confdir" = "$ac_pwd"; then
1261     srcdir=.
1262     fi
1263     # Remove unnecessary trailing slashes from srcdir.
1264     # Double slashes in file names in object file debugging info
1265     # mess up M-x gdb in Emacs.
1266     case $srcdir in
1267     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1268     esac
1269     for ac_var in $ac_precious_vars; do
1270     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1271     eval ac_env_${ac_var}_value=\$${ac_var}
1272     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1273     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1274     done
1275    
1276     #
1277     # Report the --help message.
1278     #
1279     if test "$ac_init_help" = "long"; then
1280     # Omit some internal or obsolete options to make the list less imposing.
1281     # This message is too long to be a string in the A/UX 3.1 sh.
1282     cat <<_ACEOF
1283     \`configure' configures this package to adapt to many kinds of systems.
1284    
1285     Usage: $0 [OPTION]... [VAR=VALUE]...
1286    
1287     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1288     VAR=VALUE. See below for descriptions of some of the useful variables.
1289    
1290     Defaults for the options are specified in brackets.
1291    
1292     Configuration:
1293     -h, --help display this help and exit
1294     --help=short display options specific to this package
1295     --help=recursive display the short help of all the included packages
1296     -V, --version display version information and exit
1297     -q, --quiet, --silent do not print \`checking...' messages
1298     --cache-file=FILE cache test results in FILE [disabled]
1299     -C, --config-cache alias for \`--cache-file=config.cache'
1300     -n, --no-create do not create output files
1301     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1302    
1303     Installation directories:
1304     --prefix=PREFIX install architecture-independent files in PREFIX
1305     [$ac_default_prefix]
1306     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1307     [PREFIX]
1308    
1309     By default, \`make install' will install all the files in
1310     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1311     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1312     for instance \`--prefix=\$HOME'.
1313    
1314     For better control, use the options below.
1315    
1316     Fine tuning of the installation directories:
1317     --bindir=DIR user executables [EPREFIX/bin]
1318     --sbindir=DIR system admin executables [EPREFIX/sbin]
1319     --libexecdir=DIR program executables [EPREFIX/libexec]
1320     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1321     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1322     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1323     --libdir=DIR object code libraries [EPREFIX/lib]
1324     --includedir=DIR C header files [PREFIX/include]
1325     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1326     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1327     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1328     --infodir=DIR info documentation [DATAROOTDIR/info]
1329     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1330     --mandir=DIR man documentation [DATAROOTDIR/man]
1331     --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1332     --htmldir=DIR html documentation [DOCDIR]
1333     --dvidir=DIR dvi documentation [DOCDIR]
1334     --pdfdir=DIR pdf documentation [DOCDIR]
1335     --psdir=DIR ps documentation [DOCDIR]
1336     _ACEOF
1337    
1338     cat <<\_ACEOF
1339    
1340     Program names:
1341     --program-prefix=PREFIX prepend PREFIX to installed program names
1342     --program-suffix=SUFFIX append SUFFIX to installed program names
1343     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1344    
1345     X features:
1346     --x-includes=DIR X include files are in DIR
1347     --x-libraries=DIR X library files are in DIR
1348    
1349     System types:
1350     --build=BUILD configure for building on BUILD [guessed]
1351     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1352     --target=TARGET configure for building compilers for TARGET [HOST]
1353     _ACEOF
1354     fi
1355    
1356     if test -n "$ac_init_help"; then
1357    
1358     cat <<\_ACEOF
1359    
1360     Optional Features:
1361     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1362     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1363     --enable-release make an optimized build default=yes
1364     --enable-fpo compile with -fomit-frame-pointer default=yes
1365     --enable-profiling make a profile build (implies debug) default=no
1366     --enable-debug make a debug build default=yes
1367     --enable-cpu choose cpu (generic or jitc_x86) default=<YOUR-ARCH> or generic
1368     --enable-ui choose ui (beos, gtk, qt, sdl, win32, or x11) system-specific defaults
1369     --disable-dependency-tracking speeds up one-time build
1370     --enable-dependency-tracking do not reject slow dependency extractors
1371     --disable-sdltest Do not try to compile and run a test SDL program
1372    
1373     Optional Packages:
1374     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1375     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1376     --with-x use the X Window System
1377     --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1378     --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1379    
1380     Some influential environment variables:
1381     CC C compiler command
1382     CFLAGS C compiler flags
1383     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1384     nonstandard directory <lib dir>
1385     LIBS libraries to pass to the linker, e.g. -l<library>
1386     CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1387     you have headers in a nonstandard directory <include dir>
1388     CXX C++ compiler command
1389     CXXFLAGS C++ compiler flags
1390     CPP C preprocessor
1391     CCAS assembler compiler command (defaults to CC)
1392     CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1393     YACC The `Yet Another C Compiler' implementation to use. Defaults to
1394     the first program found out of: `bison -y', `byacc', `yacc'.
1395     YFLAGS The list of arguments that will be passed by default to $YACC.
1396     This script will default YFLAGS to the empty string to avoid a
1397     default value of `-d' given by some make applications.
1398     XMKMF Path to xmkmf, Makefile generator for X Window System
1399    
1400     Use these variables to override the choices made by `configure' or to help
1401     it to find libraries and programs with nonstandard names/locations.
1402    
1403     _ACEOF
1404     ac_status=$?
1405     fi
1406    
1407     if test "$ac_init_help" = "recursive"; then
1408     # If there are subdirs, report their specific --help.
1409     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1410     test -d "$ac_dir" || continue
1411     ac_builddir=.
1412    
1413     case "$ac_dir" in
1414     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415     *)
1416     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1417     # A ".." for each directory in $ac_dir_suffix.
1418     ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1419     case $ac_top_builddir_sub in
1420     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1422     esac ;;
1423     esac
1424     ac_abs_top_builddir=$ac_pwd
1425     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1426     # for backward compatibility:
1427     ac_top_builddir=$ac_top_build_prefix
1428    
1429     case $srcdir in
1430     .) # We are building in place.
1431     ac_srcdir=.
1432     ac_top_srcdir=$ac_top_builddir_sub
1433     ac_abs_top_srcdir=$ac_pwd ;;
1434     [\\/]* | ?:[\\/]* ) # Absolute name.
1435     ac_srcdir=$srcdir$ac_dir_suffix;
1436     ac_top_srcdir=$srcdir
1437     ac_abs_top_srcdir=$srcdir ;;
1438     *) # Relative name.
1439     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440     ac_top_srcdir=$ac_top_build_prefix$srcdir
1441     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1442     esac
1443     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1444    
1445     cd "$ac_dir" || { ac_status=$?; continue; }
1446     # Check for guested configure.
1447     if test -f "$ac_srcdir/configure.gnu"; then
1448     echo &&
1449     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1450     elif test -f "$ac_srcdir/configure"; then
1451     echo &&
1452     $SHELL "$ac_srcdir/configure" --help=recursive
1453     else
1454     echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1455     fi || ac_status=$?
1456     cd "$ac_pwd" || { ac_status=$?; break; }
1457     done
1458     fi
1459    
1460     test -n "$ac_init_help" && exit $ac_status
1461     if $ac_init_version; then
1462     cat <<\_ACEOF
1463     configure
1464     generated by GNU Autoconf 2.61
1465    
1466     Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1467     2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1468     This configure script is free software; the Free Software Foundation
1469     gives unlimited permission to copy, distribute and modify it.
1470     _ACEOF
1471     exit
1472     fi
1473     cat >config.log <<_ACEOF
1474     This file contains any messages produced by compilers while
1475     running configure, to aid debugging if configure makes a mistake.
1476    
1477     It was created by $as_me, which was
1478     generated by GNU Autoconf 2.61. Invocation command line was
1479    
1480     $ $0 $@
1481    
1482     _ACEOF
1483     exec 5>>config.log
1484     {
1485     cat <<_ASUNAME
1486     ## --------- ##
1487     ## Platform. ##
1488     ## --------- ##
1489    
1490     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1491     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1492     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1493     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1494     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1495    
1496     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1497     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1498    
1499     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1500     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1501     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1502     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1503     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1504     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1505     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1506    
1507     _ASUNAME
1508    
1509     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510     for as_dir in $PATH
1511     do
1512     IFS=$as_save_IFS
1513     test -z "$as_dir" && as_dir=.
1514     echo "PATH: $as_dir"
1515     done
1516     IFS=$as_save_IFS
1517    
1518     } >&5
1519    
1520     cat >&5 <<_ACEOF
1521    
1522    
1523     ## ----------- ##
1524     ## Core tests. ##
1525     ## ----------- ##
1526    
1527     _ACEOF
1528    
1529    
1530     # Keep a trace of the command line.
1531     # Strip out --no-create and --no-recursion so they do not pile up.
1532     # Strip out --silent because we don't want to record it for future runs.
1533     # Also quote any args containing shell meta-characters.
1534     # Make two passes to allow for proper duplicate-argument suppression.
1535     ac_configure_args=
1536     ac_configure_args0=
1537     ac_configure_args1=
1538     ac_must_keep_next=false
1539     for ac_pass in 1 2
1540     do
1541     for ac_arg
1542     do
1543     case $ac_arg in
1544     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1545     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1546     | -silent | --silent | --silen | --sile | --sil)
1547     continue ;;
1548     *\'*)
1549     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1550     esac
1551     case $ac_pass in
1552     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1553     2)
1554     ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1555     if test $ac_must_keep_next = true; then
1556     ac_must_keep_next=false # Got value, back to normal.
1557     else
1558     case $ac_arg in
1559     *=* | --config-cache | -C | -disable-* | --disable-* \
1560     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1561     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1562     | -with-* | --with-* | -without-* | --without-* | --x)
1563     case "$ac_configure_args0 " in
1564     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1565     esac
1566     ;;
1567     -* ) ac_must_keep_next=true ;;
1568     esac
1569     fi
1570     ac_configure_args="$ac_configure_args '$ac_arg'"
1571     ;;
1572     esac
1573     done
1574     done
1575     $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1576     $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1577    
1578     # When interrupted or exit'd, cleanup temporary files, and complete
1579     # config.log. We remove comments because anyway the quotes in there
1580     # would cause problems or look ugly.
1581     # WARNING: Use '\'' to represent an apostrophe within the trap.
1582     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1583     trap 'exit_status=$?
1584     # Save into config.log some information that might help in debugging.
1585     {
1586     echo
1587    
1588     cat <<\_ASBOX
1589     ## ---------------- ##
1590     ## Cache variables. ##
1591     ## ---------------- ##
1592     _ASBOX
1593     echo
1594     # The following way of writing the cache mishandles newlines in values,
1595     (
1596     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1597     eval ac_val=\$$ac_var
1598     case $ac_val in #(
1599     *${as_nl}*)
1600     case $ac_var in #(
1601     *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1602     echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1603     esac
1604     case $ac_var in #(
1605     _ | IFS | as_nl) ;; #(
1606     *) $as_unset $ac_var ;;
1607     esac ;;
1608     esac
1609     done
1610     (set) 2>&1 |
1611     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1612     *${as_nl}ac_space=\ *)
1613     sed -n \
1614     "s/'\''/'\''\\\\'\'''\''/g;
1615     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1616     ;; #(
1617     *)
1618     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1619     ;;
1620     esac |
1621     sort
1622     )
1623     echo
1624    
1625     cat <<\_ASBOX
1626     ## ----------------- ##
1627     ## Output variables. ##
1628     ## ----------------- ##
1629     _ASBOX
1630     echo
1631     for ac_var in $ac_subst_vars
1632     do
1633     eval ac_val=\$$ac_var
1634     case $ac_val in
1635     *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1636     esac
1637     echo "$ac_var='\''$ac_val'\''"
1638     done | sort
1639     echo
1640    
1641     if test -n "$ac_subst_files"; then
1642     cat <<\_ASBOX
1643     ## ------------------- ##
1644     ## File substitutions. ##
1645     ## ------------------- ##
1646     _ASBOX
1647     echo
1648     for ac_var in $ac_subst_files
1649     do
1650     eval ac_val=\$$ac_var
1651     case $ac_val in
1652     *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1653     esac
1654     echo "$ac_var='\''$ac_val'\''"
1655     done | sort
1656     echo
1657     fi
1658    
1659     if test -s confdefs.h; then
1660     cat <<\_ASBOX
1661     ## ----------- ##
1662     ## confdefs.h. ##
1663     ## ----------- ##
1664     _ASBOX
1665     echo
1666     cat confdefs.h
1667     echo
1668     fi
1669     test "$ac_signal" != 0 &&
1670     echo "$as_me: caught signal $ac_signal"
1671     echo "$as_me: exit $exit_status"
1672     } >&5
1673     rm -f core *.core core.conftest.* &&
1674     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1675     exit $exit_status
1676     ' 0
1677     for ac_signal in 1 2 13 15; do
1678     trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1679     done
1680     ac_signal=0
1681    
1682     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1683     rm -f -r conftest* confdefs.h
1684    
1685     # Predefined preprocessor variables.
1686    
1687     cat >>confdefs.h <<_ACEOF
1688     #define PACKAGE_NAME "$PACKAGE_NAME"
1689     _ACEOF
1690    
1691    
1692     cat >>confdefs.h <<_ACEOF
1693     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1694     _ACEOF
1695    
1696    
1697     cat >>confdefs.h <<_ACEOF
1698     #define PACKAGE_VERSION "$PACKAGE_VERSION"
1699     _ACEOF
1700    
1701    
1702     cat >>confdefs.h <<_ACEOF
1703     #define PACKAGE_STRING "$PACKAGE_STRING"
1704     _ACEOF
1705    
1706    
1707     cat >>confdefs.h <<_ACEOF
1708     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1709     _ACEOF
1710    
1711    
1712     # Let the site file select an alternate cache file if it wants to.
1713     # Prefer explicitly selected file to automatically selected ones.
1714     if test -n "$CONFIG_SITE"; then
1715     set x "$CONFIG_SITE"
1716     elif test "x$prefix" != xNONE; then
1717     set x "$prefix/share/config.site" "$prefix/etc/config.site"
1718     else
1719     set x "$ac_default_prefix/share/config.site" \
1720     "$ac_default_prefix/etc/config.site"
1721     fi
1722     shift
1723     for ac_site_file
1724     do
1725     if test -r "$ac_site_file"; then
1726     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1727     echo "$as_me: loading site script $ac_site_file" >&6;}
1728     sed 's/^/| /' "$ac_site_file" >&5
1729     . "$ac_site_file"
1730     fi
1731     done
1732    
1733     if test -r "$cache_file"; then
1734     # Some versions of bash will fail to source /dev/null (special
1735     # files actually), so we avoid doing that.
1736     if test -f "$cache_file"; then
1737     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1738     echo "$as_me: loading cache $cache_file" >&6;}
1739     case $cache_file in
1740     [\\/]* | ?:[\\/]* ) . "$cache_file";;
1741     *) . "./$cache_file";;
1742     esac
1743     fi
1744     else
1745     { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1746     echo "$as_me: creating cache $cache_file" >&6;}
1747     >$cache_file
1748     fi
1749    
1750     # Check that the precious variables saved in the cache have kept the same
1751     # value.
1752     ac_cache_corrupted=false
1753     for ac_var in $ac_precious_vars; do
1754     eval ac_old_set=\$ac_cv_env_${ac_var}_set
1755     eval ac_new_set=\$ac_env_${ac_var}_set
1756     eval ac_old_val=\$ac_cv_env_${ac_var}_value
1757     eval ac_new_val=\$ac_env_${ac_var}_value
1758     case $ac_old_set,$ac_new_set in
1759     set,)
1760     { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1761     echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1762     ac_cache_corrupted=: ;;
1763     ,set)
1764     { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1765     echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1766     ac_cache_corrupted=: ;;
1767     ,);;
1768     *)
1769     if test "x$ac_old_val" != "x$ac_new_val"; then
1770     { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1771     echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1772     { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1773     echo "$as_me: former value: $ac_old_val" >&2;}
1774     { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1775     echo "$as_me: current value: $ac_new_val" >&2;}
1776     ac_cache_corrupted=:
1777     fi;;
1778     esac
1779     # Pass precious variables to config.status.
1780     if test "$ac_new_set" = set; then
1781     case $ac_new_val in
1782     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1783     *) ac_arg=$ac_var=$ac_new_val ;;
1784     esac
1785     case " $ac_configure_args " in
1786     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1787     *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1788     esac
1789     fi
1790     done
1791     if $ac_cache_corrupted; then
1792     { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1793     echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1794     { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1795     echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1796     { (exit 1); exit 1; }; }
1797     fi
1798    
1799    
1800    
1801    
1802    
1803    
1804    
1805    
1806    
1807    
1808    
1809    
1810    
1811    
1812    
1813    
1814    
1815     ac_ext=c
1816     ac_cpp='$CPP $CPPFLAGS'
1817     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819     ac_compiler_gnu=$ac_cv_c_compiler_gnu
1820    
1821    
1822    
1823     PACKAGE=pearpc
1824     VERSION=0.5pre
1825    
1826     ac_aux_dir=
1827     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1828     if test -f "$ac_dir/install-sh"; then
1829     ac_aux_dir=$ac_dir
1830     ac_install_sh="$ac_aux_dir/install-sh -c"
1831     break
1832     elif test -f "$ac_dir/install.sh"; then
1833     ac_aux_dir=$ac_dir
1834     ac_install_sh="$ac_aux_dir/install.sh -c"
1835     break
1836     elif test -f "$ac_dir/shtool"; then
1837     ac_aux_dir=$ac_dir
1838     ac_install_sh="$ac_aux_dir/shtool install -c"
1839     break
1840     fi
1841     done
1842     if test -z "$ac_aux_dir"; then
1843     { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1844     echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1845     { (exit 1); exit 1; }; }
1846     fi
1847    
1848     # These three variables are undocumented and unsupported,
1849     # and are intended to be withdrawn in a future Autoconf release.
1850     # They can cause serious problems if a builder's source tree is in a directory
1851     # whose full name contains unusual characters.
1852     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1853     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1854     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1855    
1856    
1857     # Make sure we can run config.sub.
1858     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1859     { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1860     echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1861     { (exit 1); exit 1; }; }
1862    
1863     { echo "$as_me:$LINENO: checking build system type" >&5
1864     echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1865     if test "${ac_cv_build+set}" = set; then
1866     echo $ECHO_N "(cached) $ECHO_C" >&6
1867     else
1868     ac_build_alias=$build_alias
1869     test "x$ac_build_alias" = x &&
1870     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1871     test "x$ac_build_alias" = x &&
1872     { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1873     echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1874     { (exit 1); exit 1; }; }
1875     ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1876     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1877     echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1878     { (exit 1); exit 1; }; }
1879    
1880     fi
1881     { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1882     echo "${ECHO_T}$ac_cv_build" >&6; }
1883     case $ac_cv_build in
1884     *-*-*) ;;
1885     *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1886     echo "$as_me: error: invalid value of canonical build" >&2;}
1887     { (exit 1); exit 1; }; };;
1888     esac
1889     build=$ac_cv_build
1890     ac_save_IFS=$IFS; IFS='-'
1891     set x $ac_cv_build
1892     shift
1893     build_cpu=$1
1894     build_vendor=$2
1895     shift; shift
1896     # Remember, the first character of IFS is used to create $*,
1897     # except with old shells:
1898     build_os=$*
1899     IFS=$ac_save_IFS
1900     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1901    
1902    
1903     { echo "$as_me:$LINENO: checking host system type" >&5
1904     echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1905     if test "${ac_cv_host+set}" = set; then
1906     echo $ECHO_N "(cached) $ECHO_C" >&6
1907     else
1908     if test "x$host_alias" = x; then
1909     ac_cv_host=$ac_cv_build
1910     else
1911     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1912     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1913     echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1914     { (exit 1); exit 1; }; }
1915     fi
1916    
1917     fi
1918     { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1919     echo "${ECHO_T}$ac_cv_host" >&6; }
1920     case $ac_cv_host in
1921     *-*-*) ;;
1922     *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1923     echo "$as_me: error: invalid value of canonical host" >&2;}
1924     { (exit 1); exit 1; }; };;
1925     esac
1926     host=$ac_cv_host
1927     ac_save_IFS=$IFS; IFS='-'
1928     set x $ac_cv_host
1929     shift
1930     host_cpu=$1
1931     host_vendor=$2
1932     shift; shift
1933     # Remember, the first character of IFS is used to create $*,
1934     # except with old shells:
1935     host_os=$*
1936     IFS=$ac_save_IFS
1937     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1938    
1939    
1940     { echo "$as_me:$LINENO: checking target system type" >&5
1941     echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1942     if test "${ac_cv_target+set}" = set; then
1943     echo $ECHO_N "(cached) $ECHO_C" >&6
1944     else
1945     if test "x$target_alias" = x; then
1946     ac_cv_target=$ac_cv_host
1947     else
1948     ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1949     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1950     echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1951     { (exit 1); exit 1; }; }
1952     fi
1953    
1954     fi
1955     { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1956     echo "${ECHO_T}$ac_cv_target" >&6; }
1957     case $ac_cv_target in
1958     *-*-*) ;;
1959     *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1960     echo "$as_me: error: invalid value of canonical target" >&2;}
1961     { (exit 1); exit 1; }; };;
1962     esac
1963     target=$ac_cv_target
1964     ac_save_IFS=$IFS; IFS='-'
1965     set x $ac_cv_target
1966     shift
1967     target_cpu=$1
1968     target_vendor=$2
1969     shift; shift
1970     # Remember, the first character of IFS is used to create $*,
1971     # except with old shells:
1972     target_os=$*
1973     IFS=$ac_save_IFS
1974     case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1975    
1976    
1977     # The aliases save the names the user supplied, while $host etc.
1978     # will get canonicalized.
1979     test -n "$target_alias" &&
1980     test "$program_prefix$program_suffix$program_transform_name" = \
1981     NONENONEs,x,x, &&
1982     program_prefix=${target_alias}-
1983    
1984    
1985    
1986    
1987     # Check whether --enable-release was given.
1988     if test "${enable_release+set}" = set; then
1989     enableval=$enable_release;
1990     else
1991     enable_release="yes"
1992     fi
1993    
1994     # Check whether --enable-fpo was given.
1995     if test "${enable_fpo+set}" = set; then
1996     enableval=$enable_fpo;
1997     else
1998     enable_fpo="yes"
1999     fi
2000    
2001     # Check whether --enable-profiling was given.
2002     if test "${enable_profiling+set}" = set; then
2003     enableval=$enable_profiling;
2004     else
2005     enable_profiling="no"
2006     fi
2007    
2008     # Check whether --enable-debug was given.
2009     if test "${enable_debug+set}" = set; then
2010     enableval=$enable_debug;
2011     else
2012     enable_debug="yes"
2013     fi
2014    
2015     # Check whether --enable-cpu was given.
2016     if test "${enable_cpu+set}" = set; then
2017     enableval=$enable_cpu;
2018     else
2019     enable_cpu=""
2020     fi
2021    
2022     # Check whether --enable-ui was given.
2023     if test "${enable_ui+set}" = set; then
2024     enableval=$enable_ui;
2025     else
2026     enable_ui="no"
2027     fi
2028    
2029    
2030     PPC_CFLAGS="-Wundef -Wall -fsigned-char"
2031     PPC_CXXFLAGS="-Wundef -Wall -Woverloaded-virtual -fsigned-char"
2032     PPC_LDADD=""
2033     PPC_LDFLAGS="$LDFLAGS"
2034     PPC_CCASFLAGS=""
2035    
2036     if test "x$enable_release" = "xyes"; then
2037     PPC_CFLAGS="$CFLAGS $PPC_CFLAGS -O2"
2038     PPC_CXXFLAGS="$CXXFLAGS $PPC_CXXFLAGS -O2"
2039     else
2040     PPC_CFLAGS="$PPC_CFLAGS -O0"
2041     PPC_CXXFLAGS="$PPC_CXXFLAGS -O0"
2042     fi
2043    
2044     if test "x$enable_fpo" = "xyes"; then
2045     PPC_CFLAGS="$PPC_CFLAGS -fomit-frame-pointer"
2046     PPC_CXXFLAGS="$PPC_CXXFLAGS -fomit-frame-pointer"
2047     fi
2048    
2049     if test "x$enable_profiling" = "xyes"; then
2050     enable_debug = "yes"
2051     PPC_CFLAGS="$PPC_CFLAGS -pg -g"
2052     PPC_CXXFLAGS="$PPC_CXXFLAGS -pg -g"
2053     else
2054     if test "x$enable_debug" = "xyes"; then
2055     PPC_CFLAGS="$PPC_CFLAGS -g -fno-inline"
2056     PPC_CXXFLAGS="$PPC_CXXFLAGS -g -fno-inline"
2057     fi
2058     fi
2059    
2060     am__api_version="1.8"
2061     # Find a good install program. We prefer a C program (faster),
2062     # so one script is as good as another. But avoid the broken or
2063     # incompatible versions:
2064     # SysV /etc/install, /usr/sbin/install
2065     # SunOS /usr/etc/install
2066     # IRIX /sbin/install
2067     # AIX /bin/install
2068     # AmigaOS /C/install, which installs bootblocks on floppy discs
2069     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2070     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2071     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2072     # OS/2's system install, which has a completely different semantic
2073     # ./install, which can be erroneously created by make from ./install.sh.
2074     { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2075     echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2076     if test -z "$INSTALL"; then
2077     if test "${ac_cv_path_install+set}" = set; then
2078     echo $ECHO_N "(cached) $ECHO_C" >&6
2079     else
2080     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081     for as_dir in $PATH
2082     do
2083     IFS=$as_save_IFS
2084     test -z "$as_dir" && as_dir=.
2085     # Account for people who put trailing slashes in PATH elements.
2086     case $as_dir/ in
2087     ./ | .// | /cC/* | \
2088     /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2089     ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2090     /usr/ucb/* ) ;;
2091     *)
2092     # OSF1 and SCO ODT 3.0 have their own names for install.
2093     # Don't use installbsd from OSF since it installs stuff as root
2094     # by default.
2095     for ac_prog in ginstall scoinst install; do
2096     for ac_exec_ext in '' $ac_executable_extensions; do
2097     if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2098     if test $ac_prog = install &&
2099     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2100     # AIX install. It has an incompatible calling convention.
2101     :
2102     elif test $ac_prog = install &&
2103     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2104     # program-specific install script used by HP pwplus--don't use.
2105     :
2106     else
2107     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2108     break 3
2109     fi
2110     fi
2111     done
2112     done
2113     ;;
2114     esac
2115     done
2116     IFS=$as_save_IFS
2117    
2118    
2119     fi
2120     if test "${ac_cv_path_install+set}" = set; then
2121     INSTALL=$ac_cv_path_install
2122     else
2123     # As a last resort, use the slow shell script. Don't cache a
2124     # value for INSTALL within a source directory, because that will
2125     # break other packages using the cache if that directory is
2126     # removed, or if the value is a relative name.
2127     INSTALL=$ac_install_sh
2128     fi
2129     fi
2130     { echo "$as_me:$LINENO: result: $INSTALL" >&5
2131     echo "${ECHO_T}$INSTALL" >&6; }
2132    
2133     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2134     # It thinks the first close brace ends the variable substitution.
2135     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2136    
2137     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2138    
2139     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2140    
2141     { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2142     echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2143     # Just in case
2144     sleep 1
2145     echo timestamp > conftest.file
2146     # Do `set' in a subshell so we don't clobber the current shell's
2147     # arguments. Must try -L first in case configure is actually a
2148     # symlink; some systems play weird games with the mod time of symlinks
2149     # (eg FreeBSD returns the mod time of the symlink's containing
2150     # directory).
2151     if (
2152     set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2153     if test "$*" = "X"; then
2154     # -L didn't work.
2155     set X `ls -t $srcdir/configure conftest.file`
2156     fi
2157     rm -f conftest.file
2158     if test "$*" != "X $srcdir/configure conftest.file" \
2159     && test "$*" != "X conftest.file $srcdir/configure"; then
2160    
2161     # If neither matched, then we have a broken ls. This can happen
2162     # if, for instance, CONFIG_SHELL is bash and it inherits a
2163     # broken ls alias from the environment. This has actually
2164     # happened. Such a system could not be considered "sane".
2165     { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2166     alias in your environment" >&5
2167     echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2168     alias in your environment" >&2;}
2169     { (exit 1); exit 1; }; }
2170     fi
2171    
2172     test "$2" = conftest.file
2173     )
2174     then
2175     # Ok.
2176     :
2177     else
2178     { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2179     Check your system clock" >&5
2180     echo "$as_me: error: newly created file is older than distributed files!
2181     Check your system clock" >&2;}
2182     { (exit 1); exit 1; }; }
2183     fi
2184     { echo "$as_me:$LINENO: result: yes" >&5
2185     echo "${ECHO_T}yes" >&6; }
2186     test "$program_prefix" != NONE &&
2187     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2188     # Use a double $ so make ignores it.
2189     test "$program_suffix" != NONE &&
2190     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2191     # Double any \ or $. echo might interpret backslashes.
2192     # By default was `s,x,x', remove it if useless.
2193     cat <<\_ACEOF >conftest.sed
2194     s/[\\$]/&&/g;s/;s,x,x,$//
2195     _ACEOF
2196     program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2197     rm -f conftest.sed
2198    
2199     # expand $ac_aux_dir to an absolute path
2200     am_aux_dir=`cd $ac_aux_dir && pwd`
2201    
2202     test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2203     # Use eval to expand $SHELL
2204     if eval "$MISSING --run true"; then
2205     am_missing_run="$MISSING --run "
2206     else
2207     am_missing_run=
2208     { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2209     echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2210     fi
2211    
2212     if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2213     # Keeping the `.' argument allows $(mkdir_p) to be used without
2214     # argument. Indeed, we sometimes output rules like
2215     # $(mkdir_p) $(somedir)
2216     # where $(somedir) is conditionally defined.
2217     # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2218     # expensive solution, as it forces Make to start a sub-shell.)
2219     mkdir_p='mkdir -p -- .'
2220     else
2221     # On NextStep and OpenStep, the `mkdir' command does not
2222     # recognize any option. It will interpret all options as
2223     # directories to create, and then abort because `.' already
2224     # exists.
2225     for d in ./-p ./--version;
2226     do
2227     test -d $d && rmdir $d
2228     done
2229     # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2230     if test -f "$ac_aux_dir/mkinstalldirs"; then
2231     mkdir_p='$(mkinstalldirs)'
2232     else
2233     mkdir_p='$(install_sh) -d'
2234     fi
2235     fi
2236    
2237     for ac_prog in gawk mawk nawk awk
2238     do
2239     # Extract the first word of "$ac_prog", so it can be a program name with args.
2240     set dummy $ac_prog; ac_word=$2
2241     { echo "$as_me:$LINENO: checking for $ac_word" >&5
2242     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2243     if test "${ac_cv_prog_AWK+set}" = set; then
2244     echo $ECHO_N "(cached) $ECHO_C" >&6
2245     else
2246     if test -n "$AWK"; then
2247     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2248     else
2249     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250     for as_dir in $PATH
2251     do
2252     IFS=$as_save_IFS
2253     test -z "$as_dir" && as_dir=.
2254     for ac_exec_ext in '' $ac_executable_extensions; do
2255     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2256     ac_cv_prog_AWK="$ac_prog"
2257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258     break 2
2259     fi
2260     done
2261     done
2262     IFS=$as_save_IFS
2263    
2264     fi
2265     fi
2266     AWK=$ac_cv_prog_AWK
2267     if test -n "$AWK"; then
2268     { echo "$as_me:$LINENO: result: $AWK" >&5
2269     echo "${ECHO_T}$AWK" >&6; }
2270     else
2271     { echo "$as_me:$LINENO: result: no" >&5
2272     echo "${ECHO_T}no" >&6; }
2273     fi
2274    
2275    
2276     test -n "$AWK" && break
2277     done
2278    
2279     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2280     echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2281     set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2282     if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2283     echo $ECHO_N "(cached) $ECHO_C" >&6
2284     else
2285     cat >conftest.make <<\_ACEOF
2286     SHELL = /bin/sh
2287     all:
2288     @echo '@@@%%%=$(MAKE)=@@@%%%'
2289     _ACEOF
2290     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2291     case `${MAKE-make} -f conftest.make 2>/dev/null` in
2292     *@@@%%%=?*=@@@%%%*)
2293     eval ac_cv_prog_make_${ac_make}_set=yes;;
2294     *)
2295     eval ac_cv_prog_make_${ac_make}_set=no;;
2296     esac
2297     rm -f conftest.make
2298     fi
2299     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2300     { echo "$as_me:$LINENO: result: yes" >&5
2301     echo "${ECHO_T}yes" >&6; }
2302     SET_MAKE=
2303     else
2304     { echo "$as_me:$LINENO: result: no" >&5
2305     echo "${ECHO_T}no" >&6; }
2306     SET_MAKE="MAKE=${MAKE-make}"
2307     fi
2308    
2309     rm -rf .tst 2>/dev/null
2310     mkdir .tst 2>/dev/null
2311     if test -d .tst; then
2312     am__leading_dot=.
2313     else
2314     am__leading_dot=_
2315     fi
2316     rmdir .tst 2>/dev/null
2317    
2318     # test to see if srcdir already configured
2319     if test "`cd $srcdir && pwd`" != "`pwd`" &&
2320     test -f $srcdir/config.status; then
2321     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2322     echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2323     { (exit 1); exit 1; }; }
2324     fi
2325    
2326     # test whether we have cygpath
2327     if test -z "$CYGPATH_W"; then
2328     if (cygpath --version) >/dev/null 2>/dev/null; then
2329     CYGPATH_W='cygpath -w'
2330     else
2331     CYGPATH_W=echo
2332     fi
2333     fi
2334    
2335    
2336     # Define the identity of the package.
2337     PACKAGE=$PACKAGE
2338     VERSION=$VERSION
2339    
2340    
2341     # Some tools Automake needs.
2342    
2343     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2344    
2345    
2346     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2347    
2348    
2349     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2350    
2351    
2352     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2353    
2354    
2355     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2356    
2357    
2358     AMTAR=${AMTAR-"${am_missing_run}tar"}
2359    
2360     install_sh=${install_sh-"$am_aux_dir/install-sh"}
2361    
2362     # Installed binaries are usually stripped using `strip' when the user
2363     # run `make install-strip'. However `strip' might not be the right
2364     # tool to use in cross-compilation environments, therefore Automake
2365     # will honor the `STRIP' environment variable to overrule this program.
2366     if test "$cross_compiling" != no; then
2367     if test -n "$ac_tool_prefix"; then
2368     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2369     set dummy ${ac_tool_prefix}strip; ac_word=$2
2370     { echo "$as_me:$LINENO: checking for $ac_word" >&5
2371     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2372     if test "${ac_cv_prog_STRIP+set}" = set; then
2373     echo $ECHO_N "(cached) $ECHO_C" >&6
2374     else
2375     if test -n "$STRIP"; then
2376     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2377     else
2378     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379     for as_dir in $PATH
2380     do
2381     IFS=$as_save_IFS
2382     test -z "$as_dir" && as_dir=.
2383     for ac_exec_ext in '' $ac_executable_extensions; do
2384     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2385     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387     break 2
2388     fi
2389     done
2390     done
2391     IFS=$as_save_IFS
2392    
2393     fi
2394     fi
2395     STRIP=$ac_cv_prog_STRIP
2396     if test -n "$STRIP"; then
2397     { echo "$as_me:$LINENO: result: $STRIP" >&5
2398     echo "${ECHO_T}$STRIP" >&6; }
2399     else
2400     { echo "$as_me:$LINENO: result: no" >&5
2401     echo "${ECHO_T}no" >&6; }
2402     fi
2403    
2404    
2405     fi
2406     if test -z "$ac_cv_prog_STRIP"; then
2407     ac_ct_STRIP=$STRIP
2408     # Extract the first word of "strip", so it can be a program name with args.
2409     set dummy strip; ac_word=$2
2410     { echo "$as_me:$LINENO: checking for $ac_word" >&5
2411     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2412     if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2413     echo $ECHO_N "(cached) $ECHO_C" >&6
2414     else
2415     if test -n "$ac_ct_STRIP"; then
2416     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2417     else
2418     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419     for as_dir in $PATH
2420     do
2421     IFS=$as_save_IFS
2422     test -z "$as_dir" && as_dir=.
2423     for ac_exec_ext in '' $ac_executable_extensions; do
2424     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425     ac_cv_prog_ac_ct_STRIP="strip"
2426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427     break 2
2428     fi
2429     done
2430     done
2431     IFS=$as_save_IFS
2432    
2433     fi
2434     fi
2435     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2436     if test -n "$ac_ct_STRIP"; then
2437     { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2438     echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2439     else
2440     { echo "$as_me:$LINENO: result: no" >&5
2441     echo "${ECHO_T}no" >&6; }
2442     fi
2443    
2444     if test "x$ac_ct_STRIP" = x; then
2445     STRIP=":"
2446     else
2447     case $cross_compiling:$ac_tool_warned in
2448     yes:)
2449     { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2450     whose name does not start with the host triplet. If you think this
2451     configuration is useful to you, please write to autoconf@gnu.org." >&5
2452     echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2453     whose name does not start with the host triplet. If you think this
2454     configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2455     ac_tool_warned=yes ;;
2456     esac
2457     STRIP=$ac_ct_STRIP
2458     fi
2459     else
2460     STRIP="$ac_cv_prog_STRIP"
2461     fi
2462    
2463     fi
2464     INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2465    
2466     # We need awk for the "check" target. The system "awk" is bad on
2467     # some platforms.
2468    
2469    
2470    
2471     ac_config_headers="$ac_config_headers config.h"
2472    
2473    
2474    
2475     case "$target_os" in
2476     linux* | gnu* | k*bsd*-gnu)
2477     OSAPI_DIR=posix
2478     if test "x$enable_ui" = "xno"; then
2479     enable_ui="x11"
2480     fi
2481     { echo "$as_me:$LINENO: result: *** GNU, building POSIX version. we need pthread and rt." >&5
2482     echo "${ECHO_T}*** GNU, building POSIX version. we need pthread and rt." >&6; }
2483     PPC_LDADD="$PPC_LDADD -lpthread -lrt"
2484     ;;
2485     freebsd*)
2486     OSAPI_DIR=posix
2487     if test "x$enable_ui" = "xno"; then
2488     enable_ui="x11"
2489     fi
2490     { echo "$as_me:$LINENO: result: *** FREEBSD, building native FreeBSD version. we need pthread." >&5
2491     echo "${ECHO_T}*** FREEBSD, building native FreeBSD version. we need pthread." >&6; }
2492     PPC_LDFLAGS="$PPC_LDFLAGS -pthread"
2493     ;;
2494     cygwin*)
2495     OSAPI_DIR=win32
2496     if test "x$enable_ui" = "xno"; then
2497     enable_ui="win32"
2498     fi
2499     { echo "$as_me:$LINENO: result: *** CYGWIN, building native Win32 version (without cygwin.dll)" >&5
2500     echo "${ECHO_T}*** CYGWIN, building native Win32 version (without cygwin.dll)" >&6; }
2501     PPC_CFLAGS="$PPC_CFLAGS -mno-cygwin"
2502     PPC_CXXFLAGS="$PPC_CXXFLAGS -mno-cygwin"
2503     PPC_LDADD="$PPC_LDADD -lgdi32 -lcomdlg32 -lwinmm"
2504     PPC_CCASFLAGS="-DPREFIX=_"
2505     ;;
2506     mingw32*)
2507     OSAPI_DIR=win32
2508     if test "x$enable_ui" = "xno"; then
2509     enable_ui="win32"
2510     fi
2511     { echo "$as_me:$LINENO: result: *** MinGW, building native Win32 version" >&5
2512     echo "${ECHO_T}*** MinGW, building native Win32 version" >&6; }
2513     PPC_LDADD="$PPC_LDADD -lgdi32 -lcomdlg32 -lwinmm"
2514     PPC_CCASFLAGS="-DPREFIX=_"
2515     ;;
2516     darwin*)
2517     OSAPI_DIR=posix
2518     if test "x$enable_ui" = "xno"; then
2519     enable_ui="x11"
2520     fi
2521     { echo "$as_me:$LINENO: result: *** DARWIN, building native Darwin version (X11)" >&5
2522     echo "${ECHO_T}*** DARWIN, building native Darwin version (X11)" >&6; }
2523     PPC_CCASFLAGS="-DPREFIX=_"
2524     PPC_CFLAGS="$PPC_CFLAGS -mdynamic-no-pic"
2525     PPC_CXXFLAGS="$PPC_CXXFLAGS -mdynamic-no-pic"
2526     ;;
2527     beos*)
2528     OSAPI_DIR=beos
2529     if test "x$enable_ui" = "xno"; then
2530     enable_ui="beos"
2531     fi
2532     { echo "$as_me:$LINENO: result: *** BEOS, building native BeOS version" >&5
2533     echo "${ECHO_T}*** BEOS, building native BeOS version" >&6; }
2534     PPC_LDFLAGS="-lbe -lgame"
2535     PPC_CFLAGS="$PPC_CFLAGS -Wno-multichar"
2536     PPC_CXXFLAGS="$PPC_CXXFLAGS -Wno-multichar"
2537     ;;
2538     *)
2539     { echo "$as_me:$LINENO: WARNING: configure: warning: $target_os: unknown target OS, assuming POSIX-compatible..." >&5
2540     echo "$as_me: WARNING: configure: warning: $target_os: unknown target OS, assuming POSIX-compatible..." >&2;}
2541     OSAPI_DIR=posix
2542     { echo "$as_me:$LINENO: WARNING: *** assuming POSIX OS, we need pthread" >&5
2543     echo "$as_me: WARNING: *** assuming POSIX OS, we need pthread" >&2;}
2544     PPC_LDADD="$PPC_LDADD -lpthread"
2545     ;;
2546     esac
2547    
2548     case "$enable_cpu" in
2549     jitc_x86*)
2550     CPU_DIR="cpu_jitc_x86"
2551     ;;
2552     generic*)
2553     CPU_DIR="cpu_generic"
2554     ;;
2555     *)
2556     CPU_DIR=""
2557     ;;
2558     esac
2559    
2560     case "$target" in
2561     i?86*)
2562     { echo "$as_me:$LINENO: result: *** x86 target system" >&5
2563     echo "${ECHO_T}*** x86 target system" >&6; }
2564     ARCH_DIR=x86
2565     if test -z "$CPU_DIR"; then
2566     CPU_DIR="cpu_jitc_x86"
2567     fi
2568     ;;
2569     *)
2570     ARCH_DIR=generic
2571     if test -z "$CPU_DIR"; then
2572     CPU_DIR="cpu_generic"
2573     fi
2574     ;;
2575     esac
2576    
2577    
2578     cat >>confdefs.h <<_ACEOF
2579     #define SYSTEM_OSAPI_SPECIFIC_TYPES_HDR "system/osapi/$OSAPI_DIR/types.h"
2580     _ACEOF
2581    
2582    
2583     cat >>confdefs.h <<_ACEOF
2584     #define SYSTEM_ARCH_SPECIFIC_FEATURES_DIR "system/arch/$ARCH_DIR/sysfeatures.h"
2585     _ACEOF
2586    
2587    
2588     cat >>confdefs.h <<_ACEOF
2589     #define SYSTEM_ARCH_SPECIFIC_ENDIAN_DIR "system/arch/$ARCH_DIR/sysendian.h"
2590     _ACEOF
2591    
2592    
2593     PPC_CFLAGS="$PPC_CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pipe";
2594     PPC_CXXFLAGS="$PPC_CXXFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pipe";
2595    
2596    
2597    
2598     if test x$OSAPI_DIR = xbeos; then
2599     USE_OSAPI_BEOS_TRUE=
2600     USE_OSAPI_BEOS_FALSE='#'
2601     else
2602     USE_OSAPI_BEOS_TRUE='#'
2603     USE_OSAPI_BEOS_FALSE=
2604     fi
2605    
2606    
2607    
2608     if test x$OSAPI_DIR = xposix; then
2609     USE_OSAPI_POSIX_TRUE=
2610     USE_OSAPI_POSIX_FALSE='#'
2611     else
2612     USE_OSAPI_POSIX_TRUE='#'
2613     USE_OSAPI_POSIX_FALSE=
2614     fi
2615    
2616    
2617    
2618     if test x$OSAPI_DIR = xwin32; then
2619     USE_OSAPI_WIN32_TRUE=
2620     USE_OSAPI_WIN32_FALSE='#'
2621     else
2622     USE_OSAPI_WIN32_TRUE='#'
2623     USE_OSAPI_WIN32_FALSE=
2624     fi
2625    
2626    
2627    
2628    
2629     if test x$CPU_DIR = xcpu_generic; then
2630     USE_CPU_GENERIC_TRUE=
2631     USE_CPU_GENERIC_FALSE='#'
2632     else
2633     USE_CPU_GENERIC_TRUE='#'
2634     USE_CPU_GENERIC_FALSE=
2635     fi
2636    
2637    
2638    
2639     if test x$CPU_DIR = xcpu_jitc_x86; then
2640     USE_CPU_JITC_X86_TRUE=
2641     USE_CPU_JITC_X86_FALSE='#'
2642     else
2643     USE_CPU_JITC_X86_TRUE='#'
2644     USE_CPU_JITC_X86_FALSE=
2645     fi
2646    
2647    
2648     if test -n "$ac_tool_prefix"; then
2649     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2650     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2651     { echo "$as_me:$LINENO: checking for $ac_word" >&5
2652     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653     if test "${ac_cv_prog_RANLIB+set}" = set; then
2654     echo $ECHO_N "(cached) $ECHO_C" >&6
2655     else
2656     if test -n "$RANLIB"; then
2657     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2658     else
2659     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660     for as_dir in $PATH
2661     do
2662     IFS=$as_save_IFS
2663     test -z "$as_dir" && as_dir=.
2664     for ac_exec_ext in '' $ac_executable_extensions; do
2665     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668     break 2
2669     fi
2670     done
2671     done
2672     IFS=$as_save_IFS
2673    
2674     fi
2675     fi
2676     RANLIB=$ac_cv_prog_RANLIB
2677     if test -n "$RANLIB"; then
2678     { echo "$as_me:$LINENO: result: $RANLIB" >&5
2679     echo "${ECHO_T}$RANLIB" >&6; }
2680     else
2681     { echo "$as_me:$LINENO: result: no" >&5
2682     echo "${ECHO_T}no" >&6; }
2683     fi
2684    
2685    
2686     fi
2687     if test -z "$ac_cv_prog_RANLIB"; then
2688     ac_ct_RANLIB=$RANLIB
2689     # Extract the first word of "ranlib", so it can be a program name with args.
2690     set dummy ranlib; ac_word=$2
2691     { echo "$as_me:$LINENO: checking for $ac_word" >&5
2692     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2693     if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2694     echo $ECHO_N "(cached) $ECHO_C" >&6
2695     else
2696     if test -n "$ac_ct_RANLIB"; then
2697     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2698     else
2699     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700     for as_dir in $PATH
2701     do
2702     IFS=$as_save_IFS
2703     test -z "$as_dir" && as_dir=.
2704     for ac_exec_ext in '' $ac_executable_extensions; do
2705     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2706     ac_cv_prog_ac_ct_RANLIB="ranlib"
2707     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708     break 2
2709     fi
2710     done
2711     done
2712     IFS=$as_save_IFS
2713    
2714     fi
2715     fi
2716     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2717     if test -n "$ac_ct_RANLIB"; then
2718     { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2719     echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2720     else
2721     { echo "$as_me:$LINENO: result: no" >&5
2722     echo "${ECHO_T}no" >&6; }
2723     fi
2724    
2725     if test "x$ac_ct_RANLIB" = x; then
2726     RANLIB=":"
2727     else
2728     case $cross_compiling:$ac_tool_warned in
2729     yes:)
2730     { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2731     whose name does not start with the host triplet. If you think this
2732     configuration is useful to you, please write to autoconf@gnu.org." >&5
2733     echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2734     whose name does not start with the host triplet. If you think this
2735     configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2736     ac_tool_warned=yes ;;
2737     esac
2738     RANLIB=$ac_ct_RANLIB
2739     fi
2740     else
2741     RANLIB="$ac_cv_prog_RANLIB"
2742     fi
2743    
2744     for ac_prog in gmake make
2745     do
2746     # Extract the first word of "$ac_prog", so it can be a program name with args.
2747     set dummy $ac_prog; ac_word=$2
2748     { echo "$as_me:$LINENO: checking for $ac_word" >&5
2749     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2750     if test "${ac_cv_path_MAKE+set}" = set; then
2751     echo $ECHO_N "(cached) $ECHO_C" >&6
2752     else
2753     case $MAKE in
2754     [\\/]* | ?:[\\/]*)
2755     ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
2756     ;;
2757     *)
2758     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759     for as_dir in $PATH
2760     do
2761     IFS=$as_save_IFS
2762     test -z "$as_dir" && as_dir=.
2763     for ac_exec_ext in '' $ac_executable_extensions; do
2764     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
2766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767     break 2
2768     fi
2769     done
2770     done
2771     IFS=$as_save_IFS
2772    
2773     ;;
2774     esac
2775     fi
2776     MAKE=$ac_cv_path_MAKE
2777     if test -n "$MAKE"; then
2778     { echo "$as_me:$LINENO: result: $MAKE" >&5
2779     echo "${ECHO_T}$MAKE" >&6; }
2780     else
2781     { echo "$as_me:$LINENO: result: no" >&5
2782     echo "${ECHO_T}no" >&6; }
2783     fi
2784    
2785    
2786     test -n "$MAKE" && break
2787     done
2788     test -n "$MAKE" || MAKE=":"
2789    
2790     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2791     echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2792     set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2793     if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2794     echo $ECHO_N "(cached) $ECHO_C" >&6
2795     else
2796     cat >conftest.make <<\_ACEOF
2797     SHELL = /bin/sh
2798     all:
2799     @echo '@@@%%%=$(MAKE)=@@@%%%'
2800     _ACEOF
2801     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2802     case `${MAKE-make} -f conftest.make 2>/dev/null` in
2803     *@@@%%%=?*=@@@%%%*)
2804     eval ac_cv_prog_make_${ac_make}_set=yes;;
2805     *)
2806     eval ac_cv_prog_make_${ac_make}_set=no;;
2807     esac
2808     rm -f conftest.make
2809     fi
2810     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2811     { echo "$as_me:$LINENO: result: yes" >&5
2812     echo "${ECHO_T}yes" >&6; }
2813     SET_MAKE=
2814     else
2815     { echo "$as_me:$LINENO: result: no" >&5
2816     echo "${ECHO_T}no" >&6; }
2817     SET_MAKE="MAKE=${MAKE-make}"
2818     fi
2819    
2820     ac_ext=c
2821     ac_cpp='$CPP $CPPFLAGS'
2822     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825     if test -n "$ac_tool_prefix"; then
2826     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2827     set dummy ${ac_tool_prefix}gcc; ac_word=$2
2828     { echo "$as_me:$LINENO: checking for $ac_word" >&5
2829     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830     if test "${ac_cv_prog_CC+set}" = set; then
2831     echo $ECHO_N "(cached) $ECHO_C" >&6
2832     else
2833     if test -n "$CC"; then
2834     ac_cv_prog_CC="$CC" # Let the user override the test.
2835     else
2836     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837     for as_dir in $PATH
2838     do
2839     IFS=$as_save_IFS
2840     test -z "$as_dir" && as_dir=.
2841     for ac_exec_ext in '' $ac_executable_extensions; do
2842     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845     break 2
2846     fi
2847     done
2848     done
2849     IFS=$as_save_IFS
2850    
2851     fi
2852     fi
2853     CC=$ac_cv_prog_CC
2854     if test -n "$CC"; then
2855     { echo "$as_me:$LINENO: result: $CC" >&5
2856     echo "${ECHO_T}$CC" >&6; }
2857     else
2858     { echo "$as_me:$LINENO: result: no" >&5
2859     echo "${ECHO_T}no" >&6; }
2860     fi
2861    
2862    
2863     fi
2864     if test -z "$ac_cv_prog_CC"; then
2865     ac_ct_CC=$CC
2866     # Extract the first word of "gcc", so it can be a program name with args.
2867     set dummy gcc; ac_word=$2
2868     { echo "$as_me:$LINENO: checking for $ac_word" >&5
2869     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2870     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2871     echo $ECHO_N "(cached) $ECHO_C" >&6
2872     else
2873     if test -n "$ac_ct_CC"; then
2874     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2875     else
2876     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877     for as_dir in $PATH
2878     do
2879     IFS=$as_save_IFS
2880     test -z "$as_dir" && as_dir=.
2881     for ac_exec_ext in '' $ac_executable_extensions; do
2882     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883     ac_cv_prog_ac_ct_CC="gcc"
2884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885     break 2
2886     fi
2887     done
2888     done
2889     IFS=$as_save_IFS
2890    
2891     fi
2892     fi
2893     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2894     if test -n "$ac_ct_CC"; then
2895     { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2896     echo "${ECHO_T}$ac_ct_CC" >&6; }
2897     else
2898     { echo "$as_me:$LINENO: result: no" >&5
2899     echo "${ECHO_T}no" >&6; }
2900     fi
2901    
2902     if test "x$ac_ct_CC" = x; then
2903     CC=""
2904     else
2905     case $cross_compiling:$ac_tool_warned in
2906     yes:)
2907     { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2908     whose name does not start with the host triplet. If you think this
2909     configuration is useful to you, please write to autoconf@gnu.org." >&5
2910     echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2911     whose name does not start with the host triplet. If you think this
2912     configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2913     ac_tool_warned=yes ;;
2914     esac
2915     CC=$ac_ct_CC
2916     fi
2917     else
2918     CC="$ac_cv_prog_CC"
2919     fi
2920    
2921     if test -z "$CC"; then
2922     if test -n "$ac_tool_prefix"; then
2923     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2924     set dummy ${ac_tool_prefix}cc; ac_word=$2
2925     { echo "$as_me:$LINENO: checking for $ac_word" >&5
2926     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2927     if test "${ac_cv_prog_CC+set}" = set; then
2928     echo $ECHO_N "(cached) $ECHO_C" >&6
2929     else
2930     if test -n "$CC"; then
2931     ac_cv_prog_CC="$CC" # Let the user override the test.
2932     else
2933     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934     for as_dir in $PATH
2935     do
2936     IFS=$as_save_IFS
2937     test -z "$as_dir" && as_dir=.
2938     for ac_exec_ext in '' $ac_executable_extensions; do
2939     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940     ac_cv_prog_CC="${ac_tool_prefix}cc"
2941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942     break 2
2943     fi
2944     done
2945     done
2946     IFS=$as_save_IFS
2947    
2948     fi
2949     fi
2950     CC=$ac_cv_prog_CC
2951     if test -n "$CC"; then
2952     { echo "$as_me:$LINENO: result: $CC" >&5
2953     echo "${ECHO_T}$CC" >&6; }
2954     else
2955     { echo "$as_me:$LINENO: result: no" >&5
2956     echo "${ECHO_T}no" >&6; }
2957     fi
2958    
2959    
2960     fi
2961     fi
2962     if test -z "$CC"; then
2963     # Extract the first word of "cc", so it can be a program name with args.
2964     set dummy cc; ac_word=$2
2965     { echo "$as_me:$LINENO: checking for $ac_word" >&5
2966     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2967     if test "${ac_cv_prog_CC+set}" = set; then
2968     echo $ECHO_N "(cached) $ECHO_C" >&6
2969     else
2970     if test -n "$CC"; then
2971     ac_cv_prog_CC="$CC" # Let the user override the test.
2972     else
2973     ac_prog_rejected=no
2974     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975     for as_dir in $PATH
2976     do
2977     IFS=$as_save_IFS
2978     test -z "$as_dir" && as_dir=.
2979     for ac_exec_ext in '' $ac_executable_extensions; do
2980     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2982     ac_prog_rejected=yes
2983     continue
2984     fi
2985     ac_cv_prog_CC="cc"
2986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987     break 2
2988     fi
2989     done
2990     done
2991     IFS=$as_save_IFS
2992    
2993     if test $ac_prog_rejected = yes; then
2994     # We found a bogon in the path, so make sure we never use it.
2995     set dummy $ac_cv_prog_CC
2996     shift
2997     if test $# != 0; then
2998     # We chose a different compiler from the bogus one.
2999     # However, it has the same basename, so the bogon will be chosen
3000     # first if we set CC to just the basename; use the full file name.
3001     shift
3002     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3003     fi
3004     fi
3005     fi
3006     fi
3007     CC=$ac_cv_prog_CC
3008     if test -n "$CC"; then
3009     { echo "$as_me:$LINENO: result: $CC" >&5
3010     echo "${ECHO_T}$CC" >&6; }
3011     else
3012     { echo "$as_me:$LINENO: result: no" >&5
3013     echo "${ECHO_T}no" >&6; }
3014     fi
3015    
3016    
3017     fi
3018     if test -z "$CC"; then
3019     if test -n "$ac_tool_prefix"; then
3020     for ac_prog in cl.exe
3021     do
3022     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3023     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3024     { echo "$as_me:$LINENO: checking for $ac_word" >&5
3025     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3026     if test "${ac_cv_prog_CC+set}" = set; then
3027     echo $ECHO_N "(cached) $ECHO_C" >&6
3028     else
3029     if test -n "$CC"; then
3030     ac_cv_prog_CC="$CC" # Let the user override the test.
3031     else
3032     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033     for as_dir in $PATH
3034     do
3035     IFS=$as_save_IFS
3036     test -z "$as_dir" && as_dir=.
3037     for ac_exec_ext in '' $ac_executable_extensions; do
3038     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041     break 2
3042     fi
3043     done
3044     done
3045     IFS=$as_save_IFS
3046    
3047     fi
3048     fi
3049     CC=$ac_cv_prog_CC
3050     if test -n "$CC"; then
3051     { echo "$as_me:$LINENO: result: $CC" >&5
3052     echo "${ECHO_T}$CC" >&6; }
3053     else
3054     { echo "$as_me:$LINENO: result: no" >&5
3055     echo "${ECHO_T}no" >&6; }
3056     fi
3057    
3058    
3059     test -n "$CC" && break
3060     done
3061     fi
3062     if test -z "$CC"; then
3063     ac_ct_CC=$CC
3064     for ac_prog in cl.exe
3065     do
3066     # Extract the first word of "$ac_prog", so it can be a program name with args.
3067     set dummy $ac_prog; ac_word=$2
3068     { echo "$as_me:$LINENO: checking for $ac_word" >&5
3069     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3070     if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3071     echo $ECHO_N "(cached) $ECHO_C" >&6
3072     else
3073     if test -n "$ac_ct_CC"; then
3074     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3075     else
3076     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077     for as_dir in $PATH
3078     do
3079     IFS=$as_save_IFS
3080     test -z "$as_dir" && as_dir=.
3081     for ac_exec_ext in '' $ac_executable_extensions; do
3082     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083     ac_cv_prog_ac_ct_CC="$ac_prog"
3084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085     break 2
3086     fi
3087     done
3088     done
3089     IFS=$as_save_IFS
3090    
3091     fi
3092     fi
3093     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3094     if test -n "$ac_ct_CC"; then
3095     { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3096     echo "${ECHO_T}$ac_ct_CC" >&6; }
3097     else
3098     { echo "$as_me:$LINENO: result: no" >&5
3099     echo "${ECHO_T}no" >&6; }
3100     fi
3101    
3102    
3103     test -n "$ac_ct_CC" && break
3104     done
3105    
3106     if test "x$ac_ct_CC" = x; then
3107     CC=""
3108     else
3109     case $cross_compiling:$ac_tool_warned in
3110     yes:)
3111     { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3112     whose name does not start with the host triplet. If you think this
3113     configuration is useful to you, please write to autoconf@gnu.org." >&5
3114     echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3115     whose name does not start with the host triplet. If you think this
3116     configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3117     ac_tool_warned=yes ;;
3118     esac
3119     CC=$ac_ct_CC
3120     fi
3121     fi
3122    
3123     fi
3124    
3125    
3126     test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3127     See \`config.log' for more details." >&5
3128     echo "$as_me: error: no acceptable C compiler found in \$PATH
3129     See \`config.log' for more details." >&2;}
3130     { (exit 1); exit 1; }; }
3131    
3132     # Provide some information about the compiler.
3133     echo "$as_me:$LINENO: checking for C compiler version" >&5
3134     ac_compiler=`set X $ac_compile; echo $2`
3135     { (ac_try="$ac_compiler --version >&5"
3136     case "(($ac_try" in
3137     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138     *) ac_try_echo=$ac_try;;
3139     esac
3140     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141     (eval "$ac_compiler --version >&5") 2>&5
3142     ac_status=$?
3143     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144     (exit $ac_status); }
3145     { (ac_try="$ac_compiler -v >&5"
3146     case "(($ac_try" in
3147     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148     *) ac_try_echo=$ac_try;;
3149     esac
3150     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151     (eval "$ac_compiler -v >&5") 2>&5
3152     ac_status=$?
3153     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154     (exit $ac_status); }
3155     { (ac_try="$ac_compiler -V >&5"
3156     case "(($ac_try" in
3157     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158     *) ac_try_echo=$ac_try;;
3159     esac
3160     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161     (eval "$ac_compiler -V >&5") 2>&5
3162     ac_status=$?
3163     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164     (exit $ac_status); }
3165    
3166     cat >conftest.$ac_ext <<_ACEOF
3167     /* confdefs.h. */
3168     _ACEOF
3169     cat confdefs.h >>conftest.$ac_ext
3170     cat >>conftest.$ac_ext <<_ACEOF
3171     /* end confdefs.h. */
3172    
3173     int
3174     main ()
3175     {
3176    
3177     ;
3178     return 0;
3179     }
3180     _ACEOF
3181     ac_clean_files_save=$ac_clean_files
3182     ac_clean_files="$ac_clean_files a.out a.exe b.out"
3183     # Try to create an executable without -o first, disregard a.out.
3184     # It will help us diagnose broken compilers, and finding out an intuition
3185     # of exeext.
3186     { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3187     echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3188     ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3189     #
3190     # List of possible output files, starting from the most likely.
3191     # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3192     # only as a last resort. b.out is created by i960 compilers.
3193     ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3194     #
3195     # The IRIX 6 linker writes into existing files which may not be
3196     # executable, retaining their permissions. Remove them first so a
3197     # subsequent execution test works.
3198     ac_rmfiles=
3199     for ac_file in $ac_files
3200     do
3201     case $ac_file in
3202     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3203     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3204     esac
3205     done
3206     rm -f $ac_rmfiles
3207    
3208     if { (ac_try="$ac_link_default"
3209     case "(($ac_try" in
3210     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211     *) ac_try_echo=$ac_try;;
3212     esac
3213     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214     (eval "$ac_link_default") 2>&5
3215     ac_status=$?
3216     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217     (exit $ac_status); }; then
3218     # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3219     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3220     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3221     # so that the user can short-circuit this test for compilers unknown to
3222     # Autoconf.
3223     for ac_file in $ac_files ''
3224     do
3225     test -f "$ac_file" || continue
3226     case $ac_file in
3227     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3228     ;;
3229     [ab].out )
3230     # We found the default executable, but exeext='' is most
3231     # certainly right.
3232     break;;
3233     *.* )
3234     if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3235     then :; else
3236     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3237     fi
3238     # We set ac_cv_exeext here because the later test for it is not
3239     # safe: cross compilers may not add the suffix if given an `-o'
3240     # argument, so we may need to know it at that point already.
3241     # Even if this section looks crufty: it has the advantage of
3242     # actually working.
3243     break;;
3244     * )
3245     break;;
3246     esac
3247     done
3248     test "$ac_cv_exeext" = no && ac_cv_exeext=
3249    
3250     else
3251     ac_file=''
3252     fi
3253    
3254     { echo "$as_me:$LINENO: result: $ac_file" >&5
3255     echo "${ECHO_T}$ac_file" >&6; }
3256     if test -z "$ac_file"; then
3257     echo "$as_me: failed program was:" >&5
3258     sed 's/^/| /' conftest.$ac_ext >&5
3259    
3260     { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3261     See \`config.log' for more details." >&5
3262     echo "$as_me: error: C compiler cannot create executables
3263     See \`config.log' for more details." >&2;}
3264     { (exit 77); exit 77; }; }
3265     fi
3266    
3267     ac_exeext=$ac_cv_exeext
3268    
3269     # Check that the compiler produces executables we can run. If not, either
3270     # the compiler is broken, or we cross compile.
3271     { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3272     echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3273     # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3274     # If not cross compiling, check that we can run a simple program.
3275     if test "$cross_compiling" != yes; then
3276     if { ac_try='./$ac_file'
3277     { (case "(($ac_try" in
3278     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279     *) ac_try_echo=$ac_try;;
3280     esac
3281     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282     (eval "$ac_try") 2>&5
3283     ac_status=$?
3284     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285     (exit $ac_status); }; }; then
3286     cross_compiling=no
3287     else
3288     if test "$cross_compiling" = maybe; then
3289     cross_compiling=yes
3290     else
3291     { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3292     If you meant to cross compile, use \`--host'.
3293     See \`config.log' for more details." >&5
3294     echo "$as_me: error: cannot run C compiled programs.
3295     If you meant to cross compile, use \`--host'.
3296     See \`config.log' for more details." >&2;}
3297     { (exit 1); exit 1; }; }
3298     fi
3299     fi
3300     fi
3301     { echo "$as_me:$LINENO: result: yes" >&5
3302     echo "${ECHO_T}yes" >&6; }
3303    
3304     rm -f a.out a.exe conftest$ac_cv_exeext b.out
3305     ac_clean_files=$ac_clean_files_save
3306     # Check that the compiler produces executables we can run. If not, either
3307     # the compiler is broken, or we cross compile.
3308     { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3309     echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3310     { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3311     echo "${ECHO_T}$cross_compiling" >&6; }
3312    
3313     { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3314     echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3315     if { (ac_try="$ac_link"
3316     case "(($ac_try" in
3317     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318     *) ac_try_echo=$ac_try;;
3319     esac
3320     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321     (eval "$ac_link") 2>&5
3322     ac_status=$?
3323     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324     (exit $ac_status); }; then
3325     # If both `conftest.exe' and `conftest' are `present' (well, observable)
3326     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3327     # work properly (i.e., refer to `conftest.exe'), while it won't with
3328     # `rm'.
3329     for ac_file in conftest.exe conftest conftest.*; do
3330     test -f "$ac_file" || continue
3331     case $ac_file in
3332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3333     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334     break;;
3335     * ) break;;
3336     esac
3337     done
3338     else
3339     { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3340     See \`config.log' for more details." >&5
3341     echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3342     See \`config.log' for more details." >&2;}
3343     { (exit 1); exit 1; }; }
3344     fi
3345    
3346     rm -f conftest$ac_cv_exeext
3347     { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3348     echo "${ECHO_T}$ac_cv_exeext" >&6; }
3349    
3350     rm -f conftest.$ac_ext
3351     EXEEXT=$ac_cv_exeext
3352     ac_exeext=$EXEEXT
3353     { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3354     echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3355     if test "${ac_cv_objext+set}" = set; then
3356     echo $ECHO_N "(cached) $ECHO_C" >&6
3357     else
3358     cat >conftest.$ac_ext <<_ACEOF
3359     /* confdefs.h. */
3360     _ACEOF
3361     cat confdefs.h >>conftest.$ac_ext
3362     cat >>conftest.$ac_ext <<_ACEOF
3363     /* end confdefs.h. */
3364    
3365     int
3366     main ()
3367     {
3368    
3369     ;
3370     return 0;
3371     }
3372     _ACEOF
3373     rm -f conftest.o conftest.obj
3374     if { (ac_try="$ac_compile"
3375     case "(($ac_try" in
3376     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377     *) ac_try_echo=$ac_try;;
3378     esac
3379     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380     (eval "$ac_compile") 2>&5
3381     ac_status=$?
3382     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383     (exit $ac_status); }; then
3384     for ac_file in conftest.o conftest.obj conftest.*; do
3385     test -f "$ac_file" || continue;
3386     case $ac_file in
3387     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3388     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3389     break;;
3390     esac
3391     done
3392     else
3393     echo "$as_me: failed program was:" >&5
3394     sed 's/^/| /' conftest.$ac_ext >&5
3395    
3396     { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3397     See \`config.log' for more details." >&5
3398     echo "$as_me: error: cannot compute suffix of object files: cannot compile
3399     See \`config.log' for more details." >&2;}
3400     { (exit 1); exit 1; }; }
3401     fi
3402    
3403     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3404     fi
3405     { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3406     echo "${ECHO_T}$ac_cv_objext" >&6; }
3407     OBJEXT=$ac_cv_objext
3408     ac_objext=$OBJEXT
3409     { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3410     echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3411     if test "${ac_cv_c_compiler_gnu+set}" = set; then
3412     echo $ECHO_N "(cached) $ECHO_C" >&6
3413     else
3414     cat >conftest.$ac_ext <<_ACEOF
3415     /* confdefs.h. */
3416     _ACEOF
3417     cat confdefs.h >>conftest.$ac_ext
3418     cat >>conftest.$ac_ext <<_ACEOF
3419     /* end confdefs.h. */
3420    
3421     int
3422     main ()
3423     {
3424     #ifndef __GNUC__
3425     choke me
3426     #endif
3427    
3428     ;
3429     return 0;
3430     }
3431     _ACEOF
3432     rm -f conftest.$ac_objext
3433     if { (ac_try="$ac_compile"
3434     case "(($ac_try" in
3435     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436     *) ac_try_echo=$ac_try;;
3437     esac
3438     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439     (eval "$ac_compile") 2>conftest.er1
3440     ac_status=$?
3441     grep -v '^ *+' conftest.er1 >conftest.err
3442     rm -f conftest.er1
3443     cat conftest.err >&5
3444     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445     (exit $ac_status); } && {
3446     test -z "$ac_c_werror_flag" ||
3447     test ! -s conftest.err
3448     } && test -s conftest.$ac_objext; then
3449     ac_compiler_gnu=yes
3450     else
3451     echo "$as_me: failed program was:" >&5
3452     sed 's/^/| /' conftest.$ac_ext >&5
3453    
3454     ac_compiler_gnu=no
3455     fi
3456    
3457     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3458     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3459    
3460     fi
3461     { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3462     echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3463     GCC=`test $ac_compiler_gnu = yes && echo yes`
3464     ac_test_CFLAGS=${CFLAGS+set}
3465     ac_save_CFLAGS=$CFLAGS
3466     { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3467     echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3468     if test "${ac_cv_prog_cc_g+set}" = set; then
3469     echo $ECHO_N "(cached) $ECHO_C" >&6
3470     else
3471     ac_save_c_werror_flag=$ac_c_werror_flag
3472     ac_c_werror_flag=yes
3473     ac_cv_prog_cc_g=no
3474     CFLAGS="-g"
3475     cat >conftest.$ac_ext <<_ACEOF
3476     /* confdefs.h. */
3477     _ACEOF
3478     cat confdefs.h >>conftest.$ac_ext
3479     cat >>conftest.$ac_ext <<_ACEOF
3480     /* end confdefs.h. */
3481    
3482     int
3483     main ()
3484     {
3485    
3486     ;
3487     return 0;
3488     }
3489     _ACEOF
3490     rm -f conftest.$ac_objext
3491     if { (ac_try="$ac_compile"
3492     case "(($ac_try" in
3493     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494     *) ac_try_echo=$ac_try;;
3495     esac
3496     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497     (eval "$ac_compile") 2>conftest.er1
3498     ac_status=$?
3499     grep -v '^ *+' conftest.er1 >conftest.err
3500     rm -f conftest.er1
3501     cat conftest.err >&5
3502     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503     (exit $ac_status); } && {
3504     test -z "$ac_c_werror_flag" ||
3505     test ! -s conftest.err
3506     } && test -s conftest.$ac_objext; then
3507     ac_cv_prog_cc_g=yes
3508     else
3509     echo "$as_me: failed program was:" >&5
3510     sed 's/^/| /' conftest.$ac_ext >&5
3511    
3512     CFLAGS=""
3513     cat >conftest.$ac_ext <<_ACEOF
3514     /* confdefs.h. */
3515     _ACEOF
3516     cat confdefs.h >>conftest.$ac_ext
3517     cat >>conftest.$ac_ext <<_ACEOF
3518     /* end confdefs.h. */
3519    
3520     int
3521     main ()
3522     {
3523    
3524     ;
3525     return 0;
3526     }
3527     _ACEOF
3528     rm -f conftest.$ac_objext
3529     if { (ac_try="$ac_compile"
3530     case "(($ac_try" in
3531     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532     *) ac_try_echo=$ac_try;;
3533     esac
3534     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535     (eval "$ac_compile") 2>conftest.er1
3536     ac_status=$?
3537     grep -v '^ *+' conftest.er1 >conftest.err
3538     rm -f conftest.er1
3539     cat conftest.err >&5
3540     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541     (exit $ac_status); } && {
3542     test -z "$ac_c_werror_flag" ||
3543     test ! -s conftest.err
3544     } && test -s conftest.$ac_objext; then
3545     :
3546     else
3547     echo "$as_me: failed program was:" >&5
3548     sed 's/^/| /' conftest.$ac_ext >&5
3549    
3550     ac_c_werror_flag=$ac_save_c_werror_flag
3551     CFLAGS="-g"
3552     cat >conftest.$ac_ext <<_ACEOF
3553     /* confdefs.h. */
3554     _ACEOF
3555     cat confdefs.h >>conftest.$ac_ext
3556     cat >>conftest.$ac_ext <<_ACEOF
3557     /* end confdefs.h. */
3558    
3559     int
3560     main ()
3561     {
3562    
3563     ;
3564     return 0;
3565     }
3566     _ACEOF
3567     rm -f conftest.$ac_objext
3568     if { (ac_try="$ac_compile"
3569     case "(($ac_try" in
3570     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571     *) ac_try_echo=$ac_try;;
3572     esac
3573     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574     (eval "$ac_compile") 2>conftest.er1
3575     ac_status=$?
3576     grep -v '^ *+' conftest.er1 >conftest.err
3577     rm -f conftest.er1
3578     cat conftest.err >&5
3579     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580     (exit $ac_status); } && {
3581     test -z "$ac_c_werror_flag" ||
3582     test ! -s conftest.err
3583     } && test -s conftest.$ac_objext; then
3584     ac_cv_prog_cc_g=yes
3585     else
3586     echo "$as_me: failed program was:" >&5
3587     sed 's/^/| /' conftest.$ac_ext >&5
3588    
3589    
3590     fi
3591    
3592     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593     fi
3594    
3595     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596     fi
3597    
3598     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599     ac_c_werror_flag=$ac_save_c_werror_flag
3600     fi
3601     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3602     echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3603     if test "$ac_test_CFLAGS" = set; then
3604     CFLAGS=$ac_save_CFLAGS
3605     elif test $ac_cv_prog_cc_g = yes; then
3606     if test "$GCC" = yes; then
3607     CFLAGS="-g -O2"
3608     else
3609     CFLAGS="-g"
3610     fi
3611     else
3612     if test "$GCC" = yes; then
3613     CFLAGS="-O2"
3614     else
3615     CFLAGS=
3616     fi
3617     fi
3618     { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3619     echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3620     if test "${ac_cv_prog_cc_c89+set}" = set; then
3621     echo $ECHO_N "(cached) $ECHO_C" >&6
3622     else
3623     ac_cv_prog_cc_c89=no
3624     ac_save_CC=$CC
3625     cat >conftest.$ac_ext <<_ACEOF
3626     /* confdefs.h. */
3627     _ACEOF
3628     cat confdefs.h >>conftest.$ac_ext
3629     cat >>conftest.$ac_ext <<_ACEOF
3630     /* end confdefs.h. */
3631     #include <stdarg.h>
3632     #include <stdio.h>
3633     #include <sys/types.h>
3634     #include <sys/stat.h>
3635     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3636     struct buf { int x; };
3637     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3638     static char *e (p, i)
3639     char **p;
3640     int i;
3641     {
3642     return p[i];
3643     }
3644     static char *f (char * (*g) (char **, int), char **p, ...)
3645     {
3646     char *s;
3647     va_list v;
3648     va_start (v,p);
3649     s = g (p, va_arg (v,int));
3650     va_end (v);
3651     return s;
3652     }
3653    
3654     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3655     function prototypes and stuff, but not '\xHH' hex character constants.
3656     These don't provoke an error unfortunately, instead are silently treated
3657     as 'x'. The following induces an error, until -std is added to get
3658     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3659     array size at least. It's necessary to write '\x00'==0 to get something
3660     that's true only with -std. */
3661     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3662    
3663     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3664     inside strings and character constants. */
3665     #define FOO(x) 'x'
3666     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3667    
3668     int test (int i, double x);
3669     struct s1 {int (*f) (int a);};
3670     struct s2 {int (*f) (double a);};
3671     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3672     int argc;
3673     char **argv;
3674     int
3675     main ()
3676     {
3677     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3678     ;
3679     return 0;
3680     }
3681     _ACEOF
3682     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3683     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3684     do
3685     CC="$ac_save_CC $ac_arg"
3686     rm -f conftest.$ac_objext
3687     if { (ac_try="$ac_compile"
3688     case "(($ac_try" in
3689     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690     *) ac_try_echo=$ac_try;;
3691     esac
3692     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693     (eval "$ac_compile") 2>conftest.er1
3694     ac_status=$?
3695     grep -v '^ *+' conftest.er1 >conftest.err
3696     rm -f conftest.er1
3697     cat conftest.err >&5
3698     echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699     (exit $ac_status); } && {
3700     test -z "$ac_c_werror_flag" ||
3701     test ! -s conftest.err
3702     } && test -s conftest.$ac_objext; then
3703     ac_cv_prog_cc_c89=$ac_arg
3704     else
3705     echo "$as_me: failed program was:" >&5
3706     sed 's/^/| /' conftest.$ac_ext >&5
3707    
3708    
3709     fi
3710    
3711     rm -f core conftest.err conftest.$ac_objext
3712     test "x$ac_cv_prog_cc_c89" != "xno" && break
3713     done
3714     rm -f conftest.$ac_ext
3715     CC=$ac_save_CC
3716    
3717     fi
3718     # AC_CACHE_VAL
3719     case "x$ac_cv_prog_cc_c89" in
3720     x)
3721     { echo "$as_me:$LINENO: result: none needed" >&5
3722     echo "${ECHO_T}none needed" >&6; } ;;
3723     xno)
3724     { echo "$as_me:$LINENO: result: unsupported" >&5
3725     echo "${ECHO_T}unsupported" >&6; } ;;
3726     *)
3727     CC="$CC $ac_cv_prog_cc_c89"
3728     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3729     echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3730     esac
3731    
3732    
3733     ac_ext=c
3734     ac_cpp='$CPP $CPPFLAGS'
3735     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738     DEPDIR="${am__leading_dot}deps"
3739    
3740     ac_config_commands="$ac_config_commands depfiles"
3741    
3742    
3743     am_make=${MAKE-make}
3744     cat > confinc << 'END'
3745     am__doit:
3746     @echo done
3747     .PHONY: am__doit
3748     END
3749     # If we don't find an include directive, just comment out the code.
3750     { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3751     echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3752     am__include="#"
3753     am__quote=
3754     _am_result=none
3755     # First try GNU make style include.
3756     echo "include confinc" > confmf
3757     # We grep out `Entering directory' and `Leaving directory'
3758     # messages which can occur if `w' ends up in MAKEFLAGS.
3759     # In particular we don't look at `^make:' because GNU make might
3760     # be invoked under some other name (usually "gmake"), in which
3761     # case it prints its new name instead of `make'.
3762     if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3763     am__include=include
3764     am__quote=
3765     _am_result=GNU
3766     fi
3767     # Now try BSD make style include.
3768     if test "$am__include" = "#"; then
3769     echo '.include "confinc"' > confmf
3770     if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3771     am__include=.include
3772     am__quote="\""
3773     _am_result=BSD
3774     fi
3775     fi
3776    
3777    
3778     { echo "$as_me:$LINENO: result: $_am_result" >&5
3779     echo "${ECHO_T}$_am_result" >&6; }
3780     rm -f confinc confmf
3781    
3782     # Check whether --enable-dependency-tracking was given.
3783     if test "${enable_dependency_tracking+set}" = set; then
3784     enableval=$enable_dependency_tracking;
3785     fi
3786    
3787     if test "x$enable_dependency_tracking" != xno; then
3788     am_depcomp="$ac_aux_dir/depcomp"
3789     AMDEPBACKSLASH='\'
3790     fi
3791    
3792    
3793     if test "x$enable_dependency_tracking" != xno; then
3794     AMDEP_TRUE=
3795     AMDEP_FALSE='#'
3796     else
3797     AMDEP_TRUE='#'
3798     AMDEP_FALSE=
3799     fi
3800    
3801    
3802    
3803    
3804     depcc="$CC" am_compiler_list=
3805    
3806     { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3807     echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3808     if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3809     echo $ECHO_N "(cached) $ECHO_C" >&6
3810     else
3811     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3812     # We make a subdir and do the tests there. Otherwise we can end up
3813     # making bogus files that we don't know about and never remove. For
3814     # instance it was reported that on HP-UX the gcc test will end up
3815     # making a dummy file named `D' -- because `-MD' means `put the output
3816     # in D'.
3817     mkdir conftest.dir
3818     # Copy depcomp to subdir because otherwise we won't find it if we're
3819     # using a relative directory.
3820     cp "$am_depcomp" conftest.dir
3821     cd conftest.dir
3822     # We will build objects and dependencies in a subdirectory because
3823     # it helps to detect inapplicable dependency modes. For instance
3824     # both Tru64's cc and ICC support -MD to output dependencies as a
3825     # side effect of compilation, but ICC will put the dependencies in
3826     # the current directory while Tru64 will put them in the object
3827     # directory.
3828     mkdir sub
3829    
3830     am_cv_CC_dependencies_compiler_type=none
3831     if test "$am_compiler_list" = ""; then
3832     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3833     fi
3834     for depmode in $am_compiler_list; do
3835     # Setup a source with many dependencies, because some compilers
3836     # like to wrap large dependency lists on column 80 (with \), and
3837     # we should not choose a depcomp mode which is confused by this.
3838     #
3839     # We need to recreate these files for each test, as the compiler may
3840     # overwrite some of them when testing with obscure command lines.
3841     # This happens at least with the AIX C compiler.
3842     : > sub/conftest.c
3843     for i in 1 2 3 4 5 6; do
3844     echo '#include "conftst'$i'.h"' >> sub/conftest.c
3845     # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3846     # Solaris 8's {/usr,}/bin/sh.
3847     touch sub/conftst$i.h
3848     done
3849     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3850    
3851     case $depmode in
3852     nosideeffect)
3853     # after this tag, mechanisms are not by side-effect, so they'll
3854     # only be used when explicitly requested
3855     if test "x$enable_dependency_tracking" = xyes; then
3856     continue
3857     else
3858     break
3859     fi
3860     ;;
3861     none) break ;;
3862     esac
3863     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3864     # mode. It turns out that the SunPro C++ compiler does not properly
3865     # handle `-M -o', and we need to detect this.
3866     if depmode=$depmode \
3867     source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3868     depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3869     $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3870     >/dev/null 2>conftest.err &&
3871     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3872     grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3873     ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3874     # icc doesn't choke on unknown options, it will just issue warnings
3875     # or remarks (even with -Werror). So we grep stderr for any message
3876     # that says an option was ignored or not supported.
3877     # When given -MP, icc 7.0 and 7.1 complain thusly:
3878     # icc: Command line warning: ignoring option '-M'; no argument required
3879     # The diagnosis changed in icc 8.0:
3880     # icc: Command line remark: option '-MP' not supported
3881     if (grep 'ignoring option' conftest.err ||
3882     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3883     am_cv_CC_dependencies_compiler_type=$depmode
3884     break
3885     fi
3886     fi
3887     done
3888    
3889     cd ..
3890     rm -rf conftest.dir
3891     else
3892     am_cv_CC_dependencies_compiler_type=none
3893     fi
3894    
3895     fi
3896     { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3897     echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3898     CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3899    
3900    
3901    
3902     if
3903     test "x$enable_dependency_tracking" != xno \
3904     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3905     am__fastdepCC_TRUE=
3906     am__fastdepCC_FALSE='#'
3907     else
3908     am__fastdepCC_TRUE='#'
3909     am__fastdepCC_FALSE=
3910     fi
3911    
3912    
3913     ac_ext=cpp
3914     ac_cpp='$CXXCPP $CPPFLAGS'
3915     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3916     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3918     if test -z "$CXX"; then
3919     if test -n "$CCC"; then
3920     CXX=$CCC
3921     else
3922     if test -n "$ac_tool_prefix"; then
3923     for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3924     do
3925     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3926     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3927     { echo "$as_me:$LINENO: checking for $ac_word" >&5
3928     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3929     if test "${ac_cv_prog_CXX+set}" = set; then
3930     echo $ECHO_N "(cached) $ECHO_C" >&6
3931     else
3932     if test -n "$CXX"; then
3933     ac_cv_prog_CXX="$CXX" # Let the user override the test.
3934     else
3935     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936     for as_dir in $PATH
3937     do
3938     IFS=$as_save_IFS
3939     test -z "$as_dir" && as_dir=.
3940     for ac_exec_ext in '' $ac_executable_extensions; do
3941     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3942     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944     break 2
3945     fi
3946     done
3947     done
3948     IFS=$as_save_IFS
3949    
3950     fi
3951     fi
3952     CXX=$ac_cv_prog_CXX
3953     if test -n "$CXX"; then
3954     { echo "$as_me:$LINENO: result: $CXX" >&5
3955     echo "${ECHO_T}$CXX" >&6; }
3956     else
3957     { echo "$as_me:$LINENO: result: no" >&5
3958     echo "${ECHO_T}no" >&6; }
3959     fi
3960    
3961    
3962     test -n "$CXX" && break
3963     done
3964     fi
3965     if test -z "$CXX"; then
3966     ac_ct_CXX=$CXX
3967     for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3968     do
3969     # Extract the first word of "$ac_prog", so it can be a program name with args.
3970     set dummy $ac_prog; ac_word=$2
3971     { echo "$as_me:$LINENO: checking for $ac_word" >&5
3972     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3973     if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3974     echo $ECHO_N "(cached) $ECHO_C" >&6
3975     else
3976     if test -n "$ac_ct_CXX"; then
3977     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3978     else
3979     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980     for as_dir in $PATH
3981     do
3982     IFS=$as_save_IFS
3983     test -z "$as_dir" && as_dir=.
3984     for ac_exec_ext in '' $ac_executable_extensions; do
3985     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3986     ac_cv_prog_ac_ct_CXX="$ac_prog"
3987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988     break 2
3989     fi
3990     done
3991     done
3992     IFS=$as_save_IFS
3993    
3994     fi
3995     fi
3996     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3997     if test -n "$ac_ct_CXX"; then
3998     { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3999     echo "${ECHO_T}$ac_ct_CXX" >&6; }
4000     else
4001     { echo "$as_me:$LINENO: result: no" >&5
4002     echo "${ECHO_T}no" >&6; }
4003     fi
4004    
4005    
4006     test -n "$ac_ct_CXX" && break
4007     done
4008    
4009     if test "x$ac_ct_CXX" = x; then
4010     CXX="g++"
4011     else
4012     case $cross_compiling:$ac_tool_warned in
4013     yes:)
4014     { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4015     whose name does not start with the host triplet. If you think this
4016     configuration is useful to you, please write to autoconf@gnu.org." >&5
4017     echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4018     whose name does not start with the host triplet. If you think this
4019     configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4020     ac_tool_warned=yes ;;
4021     esac
4022     CXX=$ac_ct_CXX
4023     fi
4024     fi
4025    
4026     fi
4027     fi
4028     # Provide some information about the compiler.
4029     echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4030     ac_compiler=`set X $ac_compile; echo $2`
4031     { (ac_try="$ac_compiler --version >&5"
4032     case "(($ac_try" in
4033     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4034     *) ac_try_echo=$ac_try;;
4035     esac
4036     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4037     (eval "$ac_compiler --version >&5") 2>&5
4038     ac_status=$?
4039     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040     (exit $ac_status); }
4041     { (ac_try="$ac_compiler -v >&5"
4042     case "(($ac_try" in
4043     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044     *) ac_try_echo=$ac_try;;
4045     esac
4046     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047     (eval "$ac_compiler -v >&5") 2>&5
4048     ac_status=$?
4049     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050     (exit $ac_status); }
4051     { (ac_try="$ac_compiler -V >&5"
4052     case "(($ac_try" in
4053     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054     *) ac_try_echo=$ac_try;;
4055     esac
4056     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057     (eval "$ac_compiler -V >&5") 2>&5
4058     ac_status=$?
4059     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060     (exit $ac_status); }
4061    
4062     { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4063     echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4064     if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4065     echo $ECHO_N "(cached) $ECHO_C" >&6
4066     else
4067     cat >conftest.$ac_ext <<_ACEOF
4068     /* confdefs.h. */
4069     _ACEOF
4070     cat confdefs.h >>conftest.$ac_ext
4071     cat >>conftest.$ac_ext <<_ACEOF
4072     /* end confdefs.h. */
4073    
4074     int
4075     main ()
4076     {
4077     #ifndef __GNUC__
4078     choke me
4079     #endif
4080    
4081     ;
4082     return 0;
4083     }
4084     _ACEOF
4085     rm -f conftest.$ac_objext
4086     if { (ac_try="$ac_compile"
4087     case "(($ac_try" in
4088     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089     *) ac_try_echo=$ac_try;;
4090     esac
4091     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092     (eval "$ac_compile") 2>conftest.er1
4093     ac_status=$?
4094     grep -v '^ *+' conftest.er1 >conftest.err
4095     rm -f conftest.er1
4096     cat conftest.err >&5
4097     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098     (exit $ac_status); } && {
4099     test -z "$ac_cxx_werror_flag" ||
4100     test ! -s conftest.err
4101     } && test -s conftest.$ac_objext; then
4102     ac_compiler_gnu=yes
4103     else
4104     echo "$as_me: failed program was:" >&5
4105     sed 's/^/| /' conftest.$ac_ext >&5
4106    
4107     ac_compiler_gnu=no
4108     fi
4109    
4110     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111     ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4112    
4113     fi
4114     { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4115     echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4116     GXX=`test $ac_compiler_gnu = yes && echo yes`
4117     ac_test_CXXFLAGS=${CXXFLAGS+set}
4118     ac_save_CXXFLAGS=$CXXFLAGS
4119     { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4120     echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4121     if test "${ac_cv_prog_cxx_g+set}" = set; then
4122     echo $ECHO_N "(cached) $ECHO_C" >&6
4123     else
4124     ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4125     ac_cxx_werror_flag=yes
4126     ac_cv_prog_cxx_g=no
4127     CXXFLAGS="-g"
4128     cat >conftest.$ac_ext <<_ACEOF
4129     /* confdefs.h. */
4130     _ACEOF
4131     cat confdefs.h >>conftest.$ac_ext
4132     cat >>conftest.$ac_ext <<_ACEOF
4133     /* end confdefs.h. */
4134    
4135     int
4136     main ()
4137     {
4138    
4139     ;
4140     return 0;
4141     }
4142     _ACEOF
4143     rm -f conftest.$ac_objext
4144     if { (ac_try="$ac_compile"
4145     case "(($ac_try" in
4146     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147     *) ac_try_echo=$ac_try;;
4148     esac
4149     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150     (eval "$ac_compile") 2>conftest.er1
4151     ac_status=$?
4152     grep -v '^ *+' conftest.er1 >conftest.err
4153     rm -f conftest.er1
4154     cat conftest.err >&5
4155     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156     (exit $ac_status); } && {
4157     test -z "$ac_cxx_werror_flag" ||
4158     test ! -s conftest.err
4159     } && test -s conftest.$ac_objext; then
4160     ac_cv_prog_cxx_g=yes
4161     else
4162     echo "$as_me: failed program was:" >&5
4163     sed 's/^/| /' conftest.$ac_ext >&5
4164    
4165     CXXFLAGS=""
4166     cat >conftest.$ac_ext <<_ACEOF
4167     /* confdefs.h. */
4168     _ACEOF
4169     cat confdefs.h >>conftest.$ac_ext
4170     cat >>conftest.$ac_ext <<_ACEOF
4171     /* end confdefs.h. */
4172    
4173     int
4174     main ()
4175     {
4176    
4177     ;
4178     return 0;
4179     }
4180     _ACEOF
4181     rm -f conftest.$ac_objext
4182     if { (ac_try="$ac_compile"
4183     case "(($ac_try" in
4184     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185     *) ac_try_echo=$ac_try;;
4186     esac
4187     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188     (eval "$ac_compile") 2>conftest.er1
4189     ac_status=$?
4190     grep -v '^ *+' conftest.er1 >conftest.err
4191     rm -f conftest.er1
4192     cat conftest.err >&5
4193     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194     (exit $ac_status); } && {
4195     test -z "$ac_cxx_werror_flag" ||
4196     test ! -s conftest.err
4197     } && test -s conftest.$ac_objext; then
4198     :
4199     else
4200     echo "$as_me: failed program was:" >&5
4201     sed 's/^/| /' conftest.$ac_ext >&5
4202    
4203     ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4204     CXXFLAGS="-g"
4205     cat >conftest.$ac_ext <<_ACEOF
4206     /* confdefs.h. */
4207     _ACEOF
4208     cat confdefs.h >>conftest.$ac_ext
4209     cat >>conftest.$ac_ext <<_ACEOF
4210     /* end confdefs.h. */
4211    
4212     int
4213     main ()
4214     {
4215    
4216     ;
4217     return 0;
4218     }
4219     _ACEOF
4220     rm -f conftest.$ac_objext
4221     if { (ac_try="$ac_compile"
4222     case "(($ac_try" in
4223     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224     *) ac_try_echo=$ac_try;;
4225     esac
4226     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227     (eval "$ac_compile") 2>conftest.er1
4228     ac_status=$?
4229     grep -v '^ *+' conftest.er1 >conftest.err
4230     rm -f conftest.er1
4231     cat conftest.err >&5
4232     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233     (exit $ac_status); } && {
4234     test -z "$ac_cxx_werror_flag" ||
4235     test ! -s conftest.err
4236     } && test -s conftest.$ac_objext; then
4237     ac_cv_prog_cxx_g=yes
4238     else
4239     echo "$as_me: failed program was:" >&5
4240     sed 's/^/| /' conftest.$ac_ext >&5
4241    
4242    
4243     fi
4244    
4245     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246     fi
4247    
4248     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4249     fi
4250    
4251     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4252     ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4253     fi
4254     { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4255     echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4256     if test "$ac_test_CXXFLAGS" = set; then
4257     CXXFLAGS=$ac_save_CXXFLAGS
4258     elif test $ac_cv_prog_cxx_g = yes; then
4259     if test "$GXX" = yes; then
4260     CXXFLAGS="-g -O2"
4261     else
4262     CXXFLAGS="-g"
4263     fi
4264     else
4265     if test "$GXX" = yes; then
4266     CXXFLAGS="-O2"
4267     else
4268     CXXFLAGS=
4269     fi
4270     fi
4271     ac_ext=c
4272     ac_cpp='$CPP $CPPFLAGS'
4273     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4274     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4275     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276    
4277     depcc="$CXX" am_compiler_list=
4278    
4279     { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4280     echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4281     if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4282     echo $ECHO_N "(cached) $ECHO_C" >&6
4283     else
4284     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4285     # We make a subdir and do the tests there. Otherwise we can end up
4286     # making bogus files that we don't know about and never remove. For
4287     # instance it was reported that on HP-UX the gcc test will end up
4288     # making a dummy file named `D' -- because `-MD' means `put the output
4289     # in D'.
4290     mkdir conftest.dir
4291     # Copy depcomp to subdir because otherwise we won't find it if we're
4292     # using a relative directory.
4293     cp "$am_depcomp" conftest.dir
4294     cd conftest.dir
4295     # We will build objects and dependencies in a subdirectory because
4296     # it helps to detect inapplicable dependency modes. For instance
4297     # both Tru64's cc and ICC support -MD to output dependencies as a
4298     # side effect of compilation, but ICC will put the dependencies in
4299     # the current directory while Tru64 will put them in the object
4300     # directory.
4301     mkdir sub
4302    
4303     am_cv_CXX_dependencies_compiler_type=none
4304     if test "$am_compiler_list" = ""; then
4305     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4306     fi
4307     for depmode in $am_compiler_list; do
4308     # Setup a source with many dependencies, because some compilers
4309     # like to wrap large dependency lists on column 80 (with \), and
4310     # we should not choose a depcomp mode which is confused by this.
4311     #
4312     # We need to recreate these files for each test, as the compiler may
4313     # overwrite some of them when testing with obscure command lines.
4314     # This happens at least with the AIX C compiler.
4315     : > sub/conftest.c
4316     for i in 1 2 3 4 5 6; do
4317     echo '#include "conftst'$i'.h"' >> sub/conftest.c
4318     # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4319     # Solaris 8's {/usr,}/bin/sh.
4320     touch sub/conftst$i.h
4321     done
4322     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4323    
4324     case $depmode in
4325     nosideeffect)
4326     # after this tag, mechanisms are not by side-effect, so they'll
4327     # only be used when explicitly requested
4328     if test "x$enable_dependency_tracking" = xyes; then
4329     continue
4330     else
4331     break
4332     fi
4333     ;;
4334     none) break ;;
4335     esac
4336     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4337     # mode. It turns out that the SunPro C++ compiler does not properly
4338     # handle `-M -o', and we need to detect this.
4339     if depmode=$depmode \
4340     source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4341     depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4342     $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4343     >/dev/null 2>conftest.err &&
4344     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4345     grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4346     ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4347     # icc doesn't choke on unknown options, it will just issue warnings
4348     # or remarks (even with -Werror). So we grep stderr for any message
4349     # that says an option was ignored or not supported.
4350     # When given -MP, icc 7.0 and 7.1 complain thusly:
4351     # icc: Command line warning: ignoring option '-M'; no argument required
4352     # The diagnosis changed in icc 8.0:
4353     # icc: Command line remark: option '-MP' not supported
4354     if (grep 'ignoring option' conftest.err ||
4355     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4356     am_cv_CXX_dependencies_compiler_type=$depmode
4357     break
4358     fi
4359     fi
4360     done
4361    
4362     cd ..
4363     rm -rf conftest.dir
4364     else
4365     am_cv_CXX_dependencies_compiler_type=none
4366     fi
4367    
4368     fi
4369     { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4370     echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4371     CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4372    
4373    
4374    
4375     if
4376     test "x$enable_dependency_tracking" != xno \
4377     && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4378     am__fastdepCXX_TRUE=
4379     am__fastdepCXX_FALSE='#'
4380     else
4381     am__fastdepCXX_TRUE='#'
4382     am__fastdepCXX_FALSE=
4383     fi
4384    
4385    
4386     ac_ext=c
4387     ac_cpp='$CPP $CPPFLAGS'
4388     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4389     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4390     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391     { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4392     echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4393     # On Suns, sometimes $CPP names a directory.
4394     if test -n "$CPP" && test -d "$CPP"; then
4395     CPP=
4396     fi
4397     if test -z "$CPP"; then
4398     if test "${ac_cv_prog_CPP+set}" = set; then
4399     echo $ECHO_N "(cached) $ECHO_C" >&6
4400     else
4401     # Double quotes because CPP needs to be expanded
4402     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4403     do
4404     ac_preproc_ok=false
4405     for ac_c_preproc_warn_flag in '' yes
4406     do
4407     # Use a header file that comes with gcc, so configuring glibc
4408     # with a fresh cross-compiler works.
4409     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4410     # <limits.h> exists even on freestanding compilers.
4411     # On the NeXT, cc -E runs the code through the compiler's parser,
4412     # not just through cpp. "Syntax error" is here to catch this case.
4413     cat >conftest.$ac_ext <<_ACEOF
4414     /* confdefs.h. */
4415     _ACEOF
4416     cat confdefs.h >>conftest.$ac_ext
4417     cat >>conftest.$ac_ext <<_ACEOF
4418     /* end confdefs.h. */
4419     #ifdef __STDC__
4420     # include <limits.h>
4421     #else
4422     # include <assert.h>
4423     #endif
4424     Syntax error
4425     _ACEOF
4426     if { (ac_try="$ac_cpp conftest.$ac_ext"
4427     case "(($ac_try" in
4428     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429     *) ac_try_echo=$ac_try;;
4430     esac
4431     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4432     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4433     ac_status=$?
4434     grep -v '^ *+' conftest.er1 >conftest.err
4435     rm -f conftest.er1
4436     cat conftest.err >&5
4437     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438     (exit $ac_status); } >/dev/null && {
4439     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4440     test ! -s conftest.err
4441     }; then
4442     :
4443     else
4444     echo "$as_me: failed program was:" >&5
4445     sed 's/^/| /' conftest.$ac_ext >&5
4446    
4447     # Broken: fails on valid input.
4448     continue
4449     fi
4450    
4451     rm -f conftest.err conftest.$ac_ext
4452    
4453     # OK, works on sane cases. Now check whether nonexistent headers
4454     # can be detected and how.
4455     cat >conftest.$ac_ext <<_ACEOF
4456     /* confdefs.h. */
4457     _ACEOF
4458     cat confdefs.h >>conftest.$ac_ext
4459     cat >>conftest.$ac_ext <<_ACEOF
4460     /* end confdefs.h. */
4461     #include <ac_nonexistent.h>
4462     _ACEOF
4463     if { (ac_try="$ac_cpp conftest.$ac_ext"
4464     case "(($ac_try" in
4465     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466     *) ac_try_echo=$ac_try;;
4467     esac
4468     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4469     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4470     ac_status=$?
4471     grep -v '^ *+' conftest.er1 >conftest.err
4472     rm -f conftest.er1
4473     cat conftest.err >&5
4474     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475     (exit $ac_status); } >/dev/null && {
4476     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4477     test ! -s conftest.err
4478     }; then
4479     # Broken: success on invalid input.
4480     continue
4481     else
4482     echo "$as_me: failed program was:" >&5
4483     sed 's/^/| /' conftest.$ac_ext >&5
4484    
4485     # Passes both tests.
4486     ac_preproc_ok=:
4487     break
4488     fi
4489    
4490     rm -f conftest.err conftest.$ac_ext
4491    
4492     done
4493     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4494     rm -f conftest.err conftest.$ac_ext
4495     if $ac_preproc_ok; then
4496     break
4497     fi
4498    
4499     done
4500     ac_cv_prog_CPP=$CPP
4501    
4502     fi
4503     CPP=$ac_cv_prog_CPP
4504     else
4505     ac_cv_prog_CPP=$CPP
4506     fi
4507     { echo "$as_me:$LINENO: result: $CPP" >&5
4508     echo "${ECHO_T}$CPP" >&6; }
4509     ac_preproc_ok=false
4510     for ac_c_preproc_warn_flag in '' yes
4511     do
4512     # Use a header file that comes with gcc, so configuring glibc
4513     # with a fresh cross-compiler works.
4514     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4515     # <limits.h> exists even on freestanding compilers.
4516     # On the NeXT, cc -E runs the code through the compiler's parser,
4517     # not just through cpp. "Syntax error" is here to catch this case.
4518     cat >conftest.$ac_ext <<_ACEOF
4519     /* confdefs.h. */
4520     _ACEOF
4521     cat confdefs.h >>conftest.$ac_ext
4522     cat >>conftest.$ac_ext <<_ACEOF
4523     /* end confdefs.h. */
4524     #ifdef __STDC__
4525     # include <limits.h>
4526     #else
4527     # include <assert.h>
4528     #endif
4529     Syntax error
4530     _ACEOF
4531     if { (ac_try="$ac_cpp conftest.$ac_ext"
4532     case "(($ac_try" in
4533     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534     *) ac_try_echo=$ac_try;;
4535     esac
4536     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4538     ac_status=$?
4539     grep -v '^ *+' conftest.er1 >conftest.err
4540     rm -f conftest.er1
4541     cat conftest.err >&5
4542     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543     (exit $ac_status); } >/dev/null && {
4544     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4545     test ! -s conftest.err
4546     }; then
4547     :
4548     else
4549     echo "$as_me: failed program was:" >&5
4550     sed 's/^/| /' conftest.$ac_ext >&5
4551    
4552     # Broken: fails on valid input.
4553     continue
4554     fi
4555    
4556     rm -f conftest.err conftest.$ac_ext
4557    
4558     # OK, works on sane cases. Now check whether nonexistent headers
4559     # can be detected and how.
4560     cat >conftest.$ac_ext <<_ACEOF
4561     /* confdefs.h. */
4562     _ACEOF
4563     cat confdefs.h >>conftest.$ac_ext
4564     cat >>conftest.$ac_ext <<_ACEOF
4565     /* end confdefs.h. */
4566     #include <ac_nonexistent.h>
4567     _ACEOF
4568     if { (ac_try="$ac_cpp conftest.$ac_ext"
4569     case "(($ac_try" in
4570     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571     *) ac_try_echo=$ac_try;;
4572     esac
4573     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4575     ac_status=$?
4576     grep -v '^ *+' conftest.er1 >conftest.err
4577     rm -f conftest.er1
4578     cat conftest.err >&5
4579     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580     (exit $ac_status); } >/dev/null && {
4581     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4582     test ! -s conftest.err
4583     }; then
4584     # Broken: success on invalid input.
4585     continue
4586     else
4587     echo "$as_me: failed program was:" >&5
4588     sed 's/^/| /' conftest.$ac_ext >&5
4589    
4590     # Passes both tests.
4591     ac_preproc_ok=:
4592     break
4593     fi
4594    
4595     rm -f conftest.err conftest.$ac_ext
4596    
4597     done
4598     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4599     rm -f conftest.err conftest.$ac_ext
4600     if $ac_preproc_ok; then
4601     :
4602     else
4603     { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4604     See \`config.log' for more details." >&5
4605     echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4606     See \`config.log' for more details." >&2;}
4607     { (exit 1); exit 1; }; }
4608     fi
4609    
4610     ac_ext=c
4611     ac_cpp='$CPP $CPPFLAGS'
4612     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4613     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4614     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4615    
4616     # By default we simply use the C compiler to build assembly code.
4617    
4618     test "${CCAS+set}" = set || CCAS=$CC
4619     test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4620    
4621    
4622    
4623    
4624    
4625     for ac_prog in flex lex
4626     do
4627     # Extract the first word of "$ac_prog", so it can be a program name with args.
4628     set dummy $ac_prog; ac_word=$2
4629     { echo "$as_me:$LINENO: checking for $ac_word" >&5
4630     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631     if test "${ac_cv_prog_LEX+set}" = set; then
4632     echo $ECHO_N "(cached) $ECHO_C" >&6
4633     else
4634     if test -n "$LEX"; then
4635     ac_cv_prog_LEX="$LEX" # Let the user override the test.
4636     else
4637     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638     for as_dir in $PATH
4639     do
4640     IFS=$as_save_IFS
4641     test -z "$as_dir" && as_dir=.
4642     for ac_exec_ext in '' $ac_executable_extensions; do
4643     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644     ac_cv_prog_LEX="$ac_prog"
4645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646     break 2
4647     fi
4648     done
4649     done
4650     IFS=$as_save_IFS
4651    
4652     fi
4653     fi
4654     LEX=$ac_cv_prog_LEX
4655     if test -n "$LEX"; then
4656     { echo "$as_me:$LINENO: result: $LEX" >&5
4657     echo "${ECHO_T}$LEX" >&6; }
4658     else
4659     { echo "$as_me:$LINENO: result: no" >&5
4660     echo "${ECHO_T}no" >&6; }
4661     fi
4662    
4663    
4664     test -n "$LEX" && break
4665     done
4666     test -n "$LEX" || LEX=":"
4667    
4668     if test "x$LEX" != "x:"; then
4669     cat >conftest.l <<_ACEOF
4670     %%
4671     a { ECHO; }
4672     b { REJECT; }
4673     c { yymore (); }
4674     d { yyless (1); }
4675     e { yyless (input () != 0); }
4676     f { unput (yytext[0]); }
4677     . { BEGIN INITIAL; }
4678     %%
4679     #ifdef YYTEXT_POINTER
4680     extern char *yytext;
4681     #endif
4682     int
4683     main (void)
4684     {
4685     return ! yylex () + ! yywrap ();
4686     }
4687     _ACEOF
4688     { (ac_try="$LEX conftest.l"
4689     case "(($ac_try" in
4690     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691     *) ac_try_echo=$ac_try;;
4692     esac
4693     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694     (eval "$LEX conftest.l") 2>&5
4695     ac_status=$?
4696     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697     (exit $ac_status); }
4698     { echo "$as_me:$LINENO: checking lex output file root" >&5
4699     echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4700     if test "${ac_cv_prog_lex_root+set}" = set; then
4701     echo $ECHO_N "(cached) $ECHO_C" >&6
4702     else
4703    
4704     if test -f lex.yy.c; then
4705     ac_cv_prog_lex_root=lex.yy
4706     elif test -f lexyy.c; then
4707     ac_cv_prog_lex_root=lexyy
4708     else
4709     { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4710     echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4711     { (exit 1); exit 1; }; }
4712     fi
4713     fi
4714     { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4715     echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4716     LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4717    
4718     if test -z "${LEXLIB+set}"; then
4719     { echo "$as_me:$LINENO: checking lex library" >&5
4720     echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4721     if test "${ac_cv_lib_lex+set}" = set; then
4722     echo $ECHO_N "(cached) $ECHO_C" >&6
4723     else
4724    
4725     ac_save_LIBS=$LIBS
4726     ac_cv_lib_lex='none needed'
4727     for ac_lib in '' -lfl -ll; do
4728     LIBS="$ac_lib $ac_save_LIBS"
4729     cat >conftest.$ac_ext <<_ACEOF
4730     `cat $LEX_OUTPUT_ROOT.c`
4731     _ACEOF
4732     rm -f conftest.$ac_objext conftest$ac_exeext
4733     if { (ac_try="$ac_link"
4734     case "(($ac_try" in
4735     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736     *) ac_try_echo=$ac_try;;
4737     esac
4738     eval "echo \"\$as_me:$LINENO: $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     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     $as_test_x conftest$ac_exeext; then
4750     ac_cv_lib_lex=$ac_lib
4751     else
4752     echo "$as_me: failed program was:" >&5
4753     sed 's/^/| /' conftest.$ac_ext >&5
4754    
4755    
4756     fi
4757    
4758     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4759     conftest$ac_exeext conftest.$ac_ext
4760     test "$ac_cv_lib_lex" != 'none needed' && break
4761     done
4762     LIBS=$ac_save_LIBS
4763    
4764     fi
4765     { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4766     echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4767     test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4768     fi
4769    
4770    
4771     { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4772     echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
4773     if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4774     echo $ECHO_N "(cached) $ECHO_C" >&6
4775     else
4776     # POSIX says lex can declare yytext either as a pointer or an array; the
4777     # default is implementation-dependent. Figure out which it is, since
4778     # not all implementations provide the %pointer and %array declarations.
4779     ac_cv_prog_lex_yytext_pointer=no
4780     ac_save_LIBS=$LIBS
4781     LIBS="$LEXLIB $ac_save_LIBS"
4782     cat >conftest.$ac_ext <<_ACEOF
4783     #define YYTEXT_POINTER 1
4784     `cat $LEX_OUTPUT_ROOT.c`
4785     _ACEOF
4786     rm -f conftest.$ac_objext conftest$ac_exeext
4787     if { (ac_try="$ac_link"
4788     case "(($ac_try" in
4789     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4790     *) ac_try_echo=$ac_try;;
4791     esac
4792     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4793     (eval "$ac_link") 2>conftest.er1
4794     ac_status=$?
4795     grep -v '^ *+' conftest.er1 >conftest.err
4796     rm -f conftest.er1
4797     cat conftest.err >&5
4798     echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799     (exit $ac_status); } && {
4800     test -z "$ac_c_werror_flag" ||
4801     test ! -s conftest.err
4802     } && test -s conftest$ac_exeext &&
4803     $as_test_x conftest$ac_exeext; then
4804     ac_cv_prog_lex_yytext_pointer=yes
4805     else
4806     echo "$as_me: failed program was:" >&5
4807     sed 's/^/| /' conftest.$ac_ext >&5
4808    
4809    
4810     fi
4811    
4812     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4813     conftest$ac_exeext conftest.$ac_ext
4814     LIBS=$ac_save_LIBS
4815    
4816     fi
4817     { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4818     echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
4819     if test $ac_cv_prog_lex_yytext_pointer = yes; then
4820    
4821     cat >>confdefs.h <<\_ACEOF
4822     #define YYTEXT_POINTER 1
4823     _ACEOF
4824    
4825     fi
4826     rm -f conftest.l $LEX_OUTPUT_ROOT.c
4827    
4828     fi
4829     if test "$LEX" = :; then
4830     LEX=${am_missing_run}flex
4831     fi
4832    
4833     for ac_prog in 'bison -y' byacc
4834     do
4835     # Extract the first word of "$ac_prog", so it can be a program name with args.
4836     set dummy $ac_prog; ac_word=$2
4837     { echo "$as_me:$LINENO: checking for $ac_word" >&5
4838     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4839     if test "${ac_cv_prog_YACC+set}" = set; then
4840     echo $ECHO_N "(cached) $ECHO_C" >&6
4841     else
4842     if test -n "$YACC"; then
4843     ac_cv_prog_YACC="$YACC" # Let the user override the test.
4844     else
4845     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846     for as_dir in $PATH
4847     do
4848     IFS=$as_save_IFS
4849     test -z "$as_dir" && as_dir=.
4850     for ac_exec_ext in '' $ac_executable_extensions; do
4851     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4852     ac_cv_prog_YACC="$ac_prog"
4853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854     break 2
4855     fi
4856     done
4857     done
4858     IFS=$as_save_IFS
4859    
4860     fi
4861     fi
4862     YACC=$ac_cv_prog_YACC
4863     if test -n "$YACC"; then
4864     { echo "$as_me:$LINENO: result: $YACC" >&5
4865     echo "${ECHO_T}$YACC" >&6; }
4866     else
4867     { echo "$as_me:$LINENO: result: no" >&5
4868     echo "${ECHO_T}no" >&6; }
4869     fi
4870    
4871    
4872     test -n "$YACC" && break
4873     done
4874     test -n "$YACC" || YACC="yacc"
4875    
4876     # Extract the first word of "ar", so it can be a program name with args.
4877     set dummy ar; ac_word=$2
4878     { echo "$as_me:$LINENO: checking for $ac_word" >&5
4879     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4880     if test "${ac_cv_path_AR+set}" = set; then
4881     echo $ECHO_N "(cached) $ECHO_C" >&6
4882     else
4883     case $AR in
4884     [\\/]* | ?:[\\/]*)
4885     ac_cv_path_AR="$AR" # Let the user override the test with a path.
4886     ;;
4887     *)
4888     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889     for as_dir in $PATH
4890     do
4891     IFS=$as_save_IFS
4892     test -z "$as_dir" && as_dir=.
4893     for ac_exec_ext in '' $ac_executable_extensions; do
4894     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897     break 2
4898     fi
4899     done
4900     done
4901     IFS=$as_save_IFS
4902    
4903     ;;
4904     esac
4905     fi
4906     AR=$ac_cv_path_AR
4907     if test -n "$AR"; then
4908     { echo "$as_me:$LINENO: result: $AR" >&5
4909     echo "${ECHO_T}$AR" >&6; }
4910     else
4911     { echo "$as_me:$LINENO: result: no" >&5
4912     echo "${ECHO_T}no" >&6; }
4913     fi
4914    
4915    
4916     # Extract the first word of "gar", so it can be a program name with args.
4917     set dummy gar; ac_word=$2
4918     { echo "$as_me:$LINENO: checking for $ac_word" >&5
4919     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920     if test "${ac_cv_path_AR+set}" = set; then
4921     echo $ECHO_N "(cached) $ECHO_C" >&6
4922     else
4923     case $AR in
4924     [\\/]* | ?:[\\/]*)
4925     ac_cv_path_AR="$AR" # Let the user override the test with a path.
4926     ;;
4927     *)
4928     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929     for as_dir in $PATH
4930     do
4931     IFS=$as_save_IFS
4932     test -z "$as_dir" && as_dir=.
4933     for ac_exec_ext in '' $ac_executable_extensions; do
4934     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937     break 2
4938     fi
4939     done
4940     done
4941     IFS=$as_save_IFS
4942    
4943     ;;
4944     esac
4945     fi
4946     AR=$ac_cv_path_AR
4947     if test -n "$AR"; then
4948     { echo "$as_me:$LINENO: result: $AR" >&5
4949     echo "${ECHO_T}$AR" >&6; }
4950     else
4951     { echo "$as_me:$LINENO: result: no" >&5
4952     echo "${ECHO_T}no" >&6; }
4953     fi
4954    
4955    
4956    
4957    
4958     cat >>confdefs.h <<\_ACEOF
4959     #define HOST_ENDIANESS_BE 1234
4960     _ACEOF
4961    
4962    
4963     cat >>confdefs.h <<\_ACEOF
4964     #define HOST_ENDIANESS_LE 4321
4965     _ACEOF
4966    
4967    
4968     if test "x$OSAPI_DIR" = "xposix"; then
4969    
4970     { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4971     echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4972     if test "${ac_cv_path_GREP+set}" = set; then
4973     echo $ECHO_N "(cached) $ECHO_C" >&6
4974     else
4975     # Extract the first word of "grep ggrep" to use in msg output
4976     if test -z "$GREP"; then
4977     set dummy grep ggrep; ac_prog_name=$2
4978     if test "${ac_cv_path_GREP+set}" = set; then
4979     echo $ECHO_N "(cached) $ECHO_C" >&6
4980     else
4981     ac_path_GREP_found=false
4982     # Loop through the user's path and test for each of PROGNAME-LIST
4983     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4985     do
4986     IFS=$as_save_IFS
4987     test -z "$as_dir" && as_dir=.
4988     for ac_prog in grep ggrep; do
4989     for ac_exec_ext in '' $ac_executable_extensions; do
4990     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4991     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4992     # Check for GNU ac_path_GREP and select it if it is found.
4993     # Check for GNU $ac_path_GREP
4994     case `"$ac_path_GREP" --version 2>&1` in
4995     *GNU*)
4996     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4997     *)
4998     ac_count=0
4999     echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5000     while :
5001     do
5002     cat "conftest.in" "conftest.in" >"conftest.tmp"
5003     mv "conftest.tmp" "conftest.in"
5004     cp "conftest.in" "conftest.nl"
5005     echo 'GREP' >> "conftest.nl"
5006     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5007     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5008     ac_count=`expr $ac_count + 1`
5009     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5010     # Best one so far, save it but keep looking for a better one
5011     ac_cv_path_GREP="$ac_path_GREP"
5012     ac_path_GREP_max=$ac_count
5013     fi
5014     # 10*(2^10) chars as input seems more than enough
5015     test $ac_count -gt 10 && break
5016     done
5017     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5018     esac
5019    
5020    
5021     $ac_path_GREP_found && break 3
5022     done
5023     done
5024    
5025     done
5026     IFS=$as_save_IFS
5027    
5028    
5029     fi
5030    
5031     GREP="$ac_cv_path_GREP"
5032     if test -z "$GREP"; then
5033     { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5034     echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5035     { (exit 1); exit 1; }; }
5036     fi
5037    
5038     else
5039     ac_cv_path_GREP=$GREP
5040     fi
5041    
5042    
5043     fi
5044     { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5045     echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5046     GREP="$ac_cv_path_GREP"
5047    
5048    
5049     { echo "$as_me:$LINENO: checking for egrep" >&5
5050     echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5051     if test "${ac_cv_path_EGREP+set}" = set; then
5052     echo $ECHO_N "(cached) $ECHO_C" >&6
5053     else
5054     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5055     then ac_cv_path_EGREP="$GREP -E"
5056     else
5057     # Extract the first word of "egrep" to use in msg output
5058     if test -z "$EGREP"; then
5059     set dummy egrep; ac_prog_name=$2
5060     if test "${ac_cv_path_EGREP+set}" = set; then
5061     echo $ECHO_N "(cached) $ECHO_C" >&6
5062     else
5063     ac_path_EGREP_found=false
5064     # Loop through the user's path and test for each of PROGNAME-LIST
5065     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5067     do
5068     IFS=$as_save_IFS
5069     test -z "$as_dir" && as_dir=.
5070     for ac_prog in egrep; do
5071     for ac_exec_ext in '' $ac_executable_extensions; do
5072     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5073     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5074     # Check for GNU ac_path_EGREP and select it if it is found.
5075     # Check for GNU $ac_path_EGREP
5076     case `"$ac_path_EGREP" --version 2>&1` in
5077     *GNU*)
5078     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5079     *)
5080     ac_count=0
5081     echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5082     while :
5083     do
5084     cat "conftest.in" "conftest.in" >"conftest.tmp"
5085     mv "conftest.tmp" "conftest.in"
5086     cp "conftest.in" "conftest.nl"
5087     echo 'EGREP' >> "conftest.nl"
5088     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5089     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5090     ac_count=`expr $ac_count + 1`
5091     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5092     # Best one so far, save it but keep looking for a better one
5093     ac_cv_path_EGREP="$ac_path_EGREP"
5094     ac_path_EGREP_max=$ac_count
5095     fi
5096     # 10*(2^10) chars as input seems more than enough
5097     test $ac_count -gt 10 && break
5098     done
5099     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5100     esac
5101    
5102    
5103     $ac_path_EGREP_found && break 3
5104     done
5105     done
5106    
5107     done
5108     IFS=$as_save_IFS
5109    
5110    
5111     fi
5112    
5113     EGREP="$ac_cv_path_EGREP"
5114     if test -z "$EGREP"; then
5115     { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5116     echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5117     { (exit 1); exit 1; }; }
5118     fi
5119    
5120     else
5121     ac_cv_path_EGREP=$EGREP
5122     fi
5123    
5124    
5125     fi
5126     fi
5127     { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5128     echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5129     EGREP="$ac_cv_path_EGREP"
5130    
5131    
5132     { echo "$as_me:$LINENO: checking for clock_settime in -lrt" >&5
5133     echo $ECHO_N "checking for clock_settime in -lrt... $ECHO_C" >&6; }
5134     if test "${ac_cv_lib_rt_clock_settime+set}" = set; then
5135     echo $ECHO_N "(cached) $ECHO_C" >&6
5136     else
5137     ac_check_lib_save_LIBS=$LIBS
5138     LIBS="-lrt $LIBS"
5139     cat >conftest.$ac_ext <<_ACEOF
5140     /* confdefs.h. */
5141     _ACEOF
5142     cat confdefs.h >>conftest.$ac_ext
5143     cat >>conftest.$ac_ext <<_ACEOF
5144     /* end confdefs.h. */
5145    
5146     /* Override any GCC internal prototype to avoid an error.
5147     Use char because int might match the return type of a GCC
5148     builtin and then its argument prototype would still apply. */
5149     #ifdef __cplusplus
5150     extern "C"
5151     #endif
5152     char clock_settime ();
5153     int
5154     main ()
5155     {
5156     return clock_settime ();
5157     ;
5158     return 0;
5159     }
5160     _ACEOF
5161     rm -f conftest.$ac_objext conftest$ac_exeext
5162     if { (ac_try="$ac_link"
5163     case "(($ac_try" in
5164     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5165     *) ac_try_echo=$ac_try;;
5166     esac
5167     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5168     (eval "$ac_link") 2>conftest.er1
5169     ac_status=$?
5170     grep -v '^ *+' conftest.er1 >conftest.err
5171     rm -f conftest.er1
5172     cat conftest.err >&5
5173     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174     (exit $ac_status); } && {
5175     test -z "$ac_c_werror_flag" ||
5176     test ! -s conftest.err
5177     } && test -s conftest$ac_exeext &&
5178     $as_test_x conftest$ac_exeext; then
5179     ac_cv_lib_rt_clock_settime=yes
5180     else
5181     echo "$as_me: failed program was:" >&5
5182     sed 's/^/| /' conftest.$ac_ext >&5
5183    
5184     ac_cv_lib_rt_clock_settime=no
5185     fi
5186    
5187     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5188     conftest$ac_exeext conftest.$ac_ext
5189     LIBS=$ac_check_lib_save_LIBS
5190     fi
5191     { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_settime" >&5
5192     echo "${ECHO_T}$ac_cv_lib_rt_clock_settime" >&6; }
5193     if test $ac_cv_lib_rt_clock_settime = yes; then
5194    
5195    
5196     cat >>confdefs.h <<\_ACEOF
5197     #define USE_POSIX_REALTIME_CLOCK 1
5198     _ACEOF
5199    
5200     PPC_LDADD="$PPC_LDADD -lrt"
5201     cat >conftest.$ac_ext <<_ACEOF
5202     /* confdefs.h. */
5203     _ACEOF
5204     cat confdefs.h >>conftest.$ac_ext
5205     cat >>conftest.$ac_ext <<_ACEOF
5206     /* end confdefs.h. */
5207    
5208     #include <signal.h>
5209     #ifdef SIGRTMIN
5210     yes
5211     #endif
5212    
5213     _ACEOF
5214     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5215     $EGREP "yes" >/dev/null 2>&1; then
5216     syssignal=SIGRTMIN
5217     else
5218     syssignal=SIGALRM
5219    
5220     fi
5221     rm -f conftest*
5222    
5223    
5224     else
5225    
5226     { echo "$as_me:$LINENO: checking for setitimer in -lc" >&5
5227     echo $ECHO_N "checking for setitimer in -lc... $ECHO_C" >&6; }
5228     if test "${ac_cv_lib_c_setitimer+set}" = set; then
5229     echo $ECHO_N "(cached) $ECHO_C" >&6
5230     else
5231     ac_check_lib_save_LIBS=$LIBS
5232     LIBS="-lc $LIBS"
5233     cat >conftest.$ac_ext <<_ACEOF
5234     /* confdefs.h. */
5235     _ACEOF
5236     cat confdefs.h >>conftest.$ac_ext
5237     cat >>conftest.$ac_ext <<_ACEOF
5238     /* end confdefs.h. */
5239    
5240     /* Override any GCC internal prototype to avoid an error.
5241     Use char because int might match the return type of a GCC
5242     builtin and then its argument prototype would still apply. */
5243     #ifdef __cplusplus
5244     extern "C"
5245     #endif
5246     char setitimer ();
5247     int
5248     main ()
5249     {
5250     return setitimer ();
5251     ;
5252     return 0;
5253     }
5254     _ACEOF
5255     rm -f conftest.$ac_objext conftest$ac_exeext
5256     if { (ac_try="$ac_link"
5257     case "(($ac_try" in
5258     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5259     *) ac_try_echo=$ac_try;;
5260     esac
5261     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262     (eval "$ac_link") 2>conftest.er1
5263     ac_status=$?
5264     grep -v '^ *+' conftest.er1 >conftest.err
5265     rm -f conftest.er1
5266     cat conftest.err >&5
5267     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268     (exit $ac_status); } && {
5269     test -z "$ac_c_werror_flag" ||
5270     test ! -s conftest.err
5271     } && test -s conftest$ac_exeext &&
5272     $as_test_x conftest$ac_exeext; then
5273     ac_cv_lib_c_setitimer=yes
5274     else
5275     echo "$as_me: failed program was:" >&5
5276     sed 's/^/| /' conftest.$ac_ext >&5
5277    
5278     ac_cv_lib_c_setitimer=no
5279     fi
5280    
5281     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5282     conftest$ac_exeext conftest.$ac_ext
5283     LIBS=$ac_check_lib_save_LIBS
5284     fi
5285     { echo "$as_me:$LINENO: result: $ac_cv_lib_c_setitimer" >&5
5286     echo "${ECHO_T}$ac_cv_lib_c_setitimer" >&6; }
5287     if test $ac_cv_lib_c_setitimer = yes; then
5288    
5289    
5290     cat >>confdefs.h <<\_ACEOF
5291     #define USE_POSIX_SETITIMER 1
5292     _ACEOF
5293    
5294     syssignal=SIGALRM
5295     PPC_LDADD="$PPC_LDADD"
5296    
5297     else
5298    
5299     { { echo "$as_me:$LINENO: error: *** Unable to find timer mechanism, should have either POSIX realtime API or BSD interval timer API ***" >&5
5300     echo "$as_me: error: *** Unable to find timer mechanism, should have either POSIX realtime API or BSD interval timer API ***" >&2;}
5301     { (exit 1); exit 1; }; }
5302    
5303    
5304     fi
5305    
5306    
5307    
5308     fi
5309    
5310    
5311     cat >>confdefs.h <<_ACEOF
5312     #define SYSTIMER_SIGNAL $syssignal
5313     _ACEOF
5314    
5315     fi
5316    
5317     { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5318     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5319     if test "${ac_cv_header_stdc+set}" = set; then
5320     echo $ECHO_N "(cached) $ECHO_C" >&6
5321     else
5322     cat >conftest.$ac_ext <<_ACEOF
5323     /* confdefs.h. */
5324     _ACEOF
5325     cat confdefs.h >>conftest.$ac_ext
5326     cat >>conftest.$ac_ext <<_ACEOF
5327     /* end confdefs.h. */
5328     #include <stdlib.h>
5329     #include <stdarg.h>
5330     #include <string.h>
5331     #include <float.h>
5332    
5333     int
5334     main ()
5335     {
5336    
5337     ;
5338     return 0;
5339     }
5340     _ACEOF
5341     rm -f conftest.$ac_objext
5342     if { (ac_try="$ac_compile"
5343     case "(($ac_try" in
5344     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345     *) ac_try_echo=$ac_try;;
5346     esac
5347     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348     (eval "$ac_compile") 2>conftest.er1
5349     ac_status=$?
5350     grep -v '^ *+' conftest.er1 >conftest.err
5351     rm -f conftest.er1
5352     cat conftest.err >&5
5353     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354     (exit $ac_status); } && {
5355     test -z "$ac_c_werror_flag" ||
5356     test ! -s conftest.err
5357     } && test -s conftest.$ac_objext; then
5358     ac_cv_header_stdc=yes
5359     else
5360     echo "$as_me: failed program was:" >&5
5361     sed 's/^/| /' conftest.$ac_ext >&5
5362    
5363     ac_cv_header_stdc=no
5364     fi
5365    
5366     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367    
5368     if test $ac_cv_header_stdc = yes; then
5369     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5370     cat >conftest.$ac_ext <<_ACEOF
5371     /* confdefs.h. */
5372     _ACEOF
5373     cat confdefs.h >>conftest.$ac_ext
5374     cat >>conftest.$ac_ext <<_ACEOF
5375     /* end confdefs.h. */
5376     #include <string.h>
5377    
5378     _ACEOF
5379     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5380     $EGREP "memchr" >/dev/null 2>&1; then
5381     :
5382     else
5383     ac_cv_header_stdc=no
5384     fi
5385     rm -f conftest*
5386    
5387     fi
5388    
5389     if test $ac_cv_header_stdc = yes; then
5390     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5391     cat >conftest.$ac_ext <<_ACEOF
5392     /* confdefs.h. */
5393     _ACEOF
5394     cat confdefs.h >>conftest.$ac_ext
5395     cat >>conftest.$ac_ext <<_ACEOF
5396     /* end confdefs.h. */
5397     #include <stdlib.h>
5398    
5399     _ACEOF
5400     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5401     $EGREP "free" >/dev/null 2>&1; then
5402     :
5403     else
5404     ac_cv_header_stdc=no
5405     fi
5406     rm -f conftest*
5407    
5408     fi
5409    
5410     if test $ac_cv_header_stdc = yes; then
5411     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5412     if test "$cross_compiling" = yes; then
5413     :
5414     else
5415     cat >conftest.$ac_ext <<_ACEOF
5416     /* confdefs.h. */
5417     _ACEOF
5418     cat confdefs.h >>conftest.$ac_ext
5419     cat >>conftest.$ac_ext <<_ACEOF
5420     /* end confdefs.h. */
5421     #include <ctype.h>
5422     #include <stdlib.h>
5423     #if ((' ' & 0x0FF) == 0x020)
5424     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5425     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5426     #else
5427     # define ISLOWER(c) \
5428     (('a' <= (c) && (c) <= 'i') \
5429     || ('j' <= (c) && (c) <= 'r') \
5430     || ('s' <= (c) && (c) <= 'z'))
5431     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5432     #endif
5433    
5434     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5435     int
5436     main ()
5437     {
5438     int i;
5439     for (i = 0; i < 256; i++)
5440     if (XOR (islower (i), ISLOWER (i))
5441     || toupper (i) != TOUPPER (i))
5442     return 2;
5443     return 0;
5444     }
5445     _ACEOF
5446     rm -f conftest$ac_exeext
5447     if { (ac_try="$ac_link"
5448     case "(($ac_try" in
5449     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450     *) ac_try_echo=$ac_try;;
5451     esac
5452     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5453     (eval "$ac_link") 2>&5
5454     ac_status=$?
5455     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5457     { (case "(($ac_try" in
5458     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459     *) ac_try_echo=$ac_try;;
5460     esac
5461     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462     (eval "$ac_try") 2>&5
5463     ac_status=$?
5464     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465     (exit $ac_status); }; }; then
5466     :
5467     else
5468     echo "$as_me: program exited with status $ac_status" >&5
5469     echo "$as_me: failed program was:" >&5
5470     sed 's/^/| /' conftest.$ac_ext >&5
5471    
5472     ( exit $ac_status )
5473     ac_cv_header_stdc=no
5474     fi
5475     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5476     fi
5477    
5478    
5479     fi
5480     fi
5481     { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5482     echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5483     if test $ac_cv_header_stdc = yes; then
5484    
5485     cat >>confdefs.h <<\_ACEOF
5486     #define STDC_HEADERS 1
5487     _ACEOF
5488    
5489     fi
5490    
5491     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5492    
5493    
5494    
5495    
5496    
5497    
5498    
5499    
5500    
5501     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5502     inttypes.h stdint.h unistd.h
5503     do
5504     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5505     { echo "$as_me:$LINENO: checking for $ac_header" >&5
5506     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5507     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5508     echo $ECHO_N "(cached) $ECHO_C" >&6
5509     else
5510     cat >conftest.$ac_ext <<_ACEOF
5511     /* confdefs.h. */
5512     _ACEOF
5513     cat confdefs.h >>conftest.$ac_ext
5514     cat >>conftest.$ac_ext <<_ACEOF
5515     /* end confdefs.h. */
5516     $ac_includes_default
5517    
5518     #include <$ac_header>
5519     _ACEOF
5520     rm -f conftest.$ac_objext
5521     if { (ac_try="$ac_compile"
5522     case "(($ac_try" in
5523     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524     *) ac_try_echo=$ac_try;;
5525     esac
5526     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527     (eval "$ac_compile") 2>conftest.er1
5528     ac_status=$?
5529     grep -v '^ *+' conftest.er1 >conftest.err
5530     rm -f conftest.er1
5531     cat conftest.err >&5
5532     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533     (exit $ac_status); } && {
5534     test -z "$ac_c_werror_flag" ||
5535     test ! -s conftest.err
5536     } && test -s conftest.$ac_objext; then
5537     eval "$as_ac_Header=yes"
5538     else
5539     echo "$as_me: failed program was:" >&5
5540     sed 's/^/| /' conftest.$ac_ext >&5
5541    
5542     eval "$as_ac_Header=no"
5543     fi
5544    
5545     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546     fi
5547     ac_res=`eval echo '${'$as_ac_Header'}'`
5548     { echo "$as_me:$LINENO: result: $ac_res" >&5
5549     echo "${ECHO_T}$ac_res" >&6; }
5550     if test `eval echo '${'$as_ac_Header'}'` = yes; then
5551     cat >>confdefs.h <<_ACEOF
5552     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5553     _ACEOF
5554    
5555     fi
5556    
5557     done
5558    
5559    
5560     { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5561     echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
5562     if test "${ac_cv_c_bigendian+set}" = set; then
5563     echo $ECHO_N "(cached) $ECHO_C" >&6
5564     else
5565     # See if sys/param.h defines the BYTE_ORDER macro.
5566     cat >conftest.$ac_ext <<_ACEOF
5567     /* confdefs.h. */
5568     _ACEOF
5569     cat confdefs.h >>conftest.$ac_ext
5570     cat >>conftest.$ac_ext <<_ACEOF
5571     /* end confdefs.h. */
5572     #include <sys/types.h>
5573     #include <sys/param.h>
5574    
5575     int
5576     main ()
5577     {
5578     #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
5579     && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
5580     bogus endian macros
5581     #endif
5582    
5583     ;
5584     return 0;
5585     }
5586     _ACEOF
5587     rm -f conftest.$ac_objext
5588     if { (ac_try="$ac_compile"
5589     case "(($ac_try" in
5590     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591     *) ac_try_echo=$ac_try;;
5592     esac
5593     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594     (eval "$ac_compile") 2>conftest.er1
5595     ac_status=$?
5596     grep -v '^ *+' conftest.er1 >conftest.err
5597     rm -f conftest.er1
5598     cat conftest.err >&5
5599     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600     (exit $ac_status); } && {
5601     test -z "$ac_c_werror_flag" ||
5602     test ! -s conftest.err
5603     } && test -s conftest.$ac_objext; then
5604     # It does; now see whether it defined to BIG_ENDIAN or not.
5605     cat >conftest.$ac_ext <<_ACEOF
5606     /* confdefs.h. */
5607     _ACEOF
5608     cat confdefs.h >>conftest.$ac_ext
5609     cat >>conftest.$ac_ext <<_ACEOF
5610     /* end confdefs.h. */
5611     #include <sys/types.h>
5612     #include <sys/param.h>
5613    
5614     int
5615     main ()
5616     {
5617     #if BYTE_ORDER != BIG_ENDIAN
5618     not big endian
5619     #endif
5620    
5621     ;
5622     return 0;
5623     }
5624     _ACEOF
5625     rm -f conftest.$ac_objext
5626     if { (ac_try="$ac_compile"
5627     case "(($ac_try" in
5628     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629     *) ac_try_echo=$ac_try;;
5630     esac
5631     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632     (eval "$ac_compile") 2>conftest.er1
5633     ac_status=$?
5634     grep -v '^ *+' conftest.er1 >conftest.err
5635     rm -f conftest.er1
5636     cat conftest.err >&5
5637     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638     (exit $ac_status); } && {
5639     test -z "$ac_c_werror_flag" ||
5640     test ! -s conftest.err
5641     } && test -s conftest.$ac_objext; then
5642     ac_cv_c_bigendian=yes
5643     else
5644     echo "$as_me: failed program was:" >&5
5645     sed 's/^/| /' conftest.$ac_ext >&5
5646    
5647     ac_cv_c_bigendian=no
5648     fi
5649    
5650     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5651     else
5652     echo "$as_me: failed program was:" >&5
5653     sed 's/^/| /' conftest.$ac_ext >&5
5654    
5655     # It does not; compile a test program.
5656     if test "$cross_compiling" = yes; then
5657     # try to guess the endianness by grepping values into an object file
5658     ac_cv_c_bigendian=unknown
5659     cat >conftest.$ac_ext <<_ACEOF
5660     /* confdefs.h. */
5661     _ACEOF
5662     cat confdefs.h >>conftest.$ac_ext
5663     cat >>conftest.$ac_ext <<_ACEOF
5664     /* end confdefs.h. */
5665     short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5666     short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5667     void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5668     short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5669     short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5670     void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5671     int
5672     main ()
5673     {
5674     _ascii (); _ebcdic ();
5675     ;
5676     return 0;
5677     }
5678     _ACEOF
5679     rm -f conftest.$ac_objext
5680     if { (ac_try="$ac_compile"
5681     case "(($ac_try" in
5682     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683     *) ac_try_echo=$ac_try;;
5684     esac
5685     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686     (eval "$ac_compile") 2>conftest.er1
5687     ac_status=$?
5688     grep -v '^ *+' conftest.er1 >conftest.err
5689     rm -f conftest.er1
5690     cat conftest.err >&5
5691     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692     (exit $ac_status); } && {
5693     test -z "$ac_c_werror_flag" ||
5694     test ! -s conftest.err
5695     } && test -s conftest.$ac_objext; then
5696     if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5697     ac_cv_c_bigendian=yes
5698     fi
5699     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5700     if test "$ac_cv_c_bigendian" = unknown; then
5701     ac_cv_c_bigendian=no
5702     else
5703     # finding both strings is unlikely to happen, but who knows?
5704     ac_cv_c_bigendian=unknown
5705     fi
5706     fi
5707     else
5708     echo "$as_me: failed program was:" >&5
5709     sed 's/^/| /' conftest.$ac_ext >&5
5710    
5711    
5712     fi
5713    
5714     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715     else
5716     cat >conftest.$ac_ext <<_ACEOF
5717     /* confdefs.h. */
5718     _ACEOF
5719     cat confdefs.h >>conftest.$ac_ext
5720     cat >>conftest.$ac_ext <<_ACEOF
5721     /* end confdefs.h. */
5722     $ac_includes_default
5723     int
5724     main ()
5725     {
5726    
5727     /* Are we little or big endian? From Harbison&Steele. */
5728     union
5729     {
5730     long int l;
5731     char c[sizeof (long int)];
5732     } u;
5733     u.l = 1;
5734     return u.c[sizeof (long int) - 1] == 1;
5735    
5736     ;
5737     return 0;
5738     }
5739     _ACEOF
5740     rm -f conftest$ac_exeext
5741     if { (ac_try="$ac_link"
5742     case "(($ac_try" in
5743     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5744     *) ac_try_echo=$ac_try;;
5745     esac
5746     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747     (eval "$ac_link") 2>&5
5748     ac_status=$?
5749     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5751     { (case "(($ac_try" in
5752     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753     *) ac_try_echo=$ac_try;;
5754     esac
5755     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756     (eval "$ac_try") 2>&5
5757     ac_status=$?
5758     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759     (exit $ac_status); }; }; then
5760     ac_cv_c_bigendian=no
5761     else
5762     echo "$as_me: program exited with status $ac_status" >&5
5763     echo "$as_me: failed program was:" >&5
5764     sed 's/^/| /' conftest.$ac_ext >&5
5765    
5766     ( exit $ac_status )
5767     ac_cv_c_bigendian=yes
5768     fi
5769     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5770     fi
5771    
5772    
5773     fi
5774    
5775     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776     fi
5777     { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5778     echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5779     case $ac_cv_c_bigendian in
5780     yes)
5781    
5782     cat >>confdefs.h <<\_ACEOF
5783     #define HOST_ENDIANESS HOST_ENDIANESS_BE
5784     _ACEOF
5785     ;;
5786     no)
5787    
5788     cat >>confdefs.h <<\_ACEOF
5789     #define HOST_ENDIANESS HOST_ENDIANESS_LE
5790     _ACEOF
5791     ;;
5792     *)
5793    
5794     { echo "$as_me:$LINENO: WARNING: couldn't determine host endianess/byte-order. assuming your machine is little-endian." >&5
5795     echo "$as_me: WARNING: couldn't determine host endianess/byte-order. assuming your machine is little-endian." >&2;}
5796    
5797     cat >>confdefs.h <<\_ACEOF
5798     #define HOST_ENDIANESS HOST_ENDIANESS_LE
5799     _ACEOF
5800    
5801    
5802     ;;
5803     esac
5804    
5805    
5806     case "$ac_cv_c_bigendian" in
5807     yes*)
5808    
5809     cat >>confdefs.h <<\_ACEOF
5810     #define HOST_ENDIANESS HOST_ENDIANESS_BE
5811     _ACEOF
5812    
5813     ;;
5814     no*)
5815    
5816     cat >>confdefs.h <<\_ACEOF
5817     #define HOST_ENDIANESS HOST_ENDIANESS_LE
5818     _ACEOF
5819    
5820     ;;
5821     esac
5822    
5823     if test -z "$AR"; then
5824     { { echo "$as_me:$LINENO: error: *** 'ar' and 'gar' missing, please install one of them or fix your \$PATH ***" >&5
5825     echo "$as_me: error: *** 'ar' and 'gar' missing, please install one of them or fix your \$PATH ***" >&2;}
5826     { (exit 1); exit 1; }; }
5827     fi
5828    
5829    
5830     UI_DIR="$enable_ui"
5831     case "$enable_ui" in
5832     x11)
5833     { echo "$as_me:$LINENO: checking for X" >&5
5834     echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5835    
5836    
5837     # Check whether --with-x was given.
5838     if test "${with_x+set}" = set; then
5839     withval=$with_x;
5840     fi
5841    
5842     # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5843     if test "x$with_x" = xno; then
5844     # The user explicitly disabled X.
5845     have_x=disabled
5846     else
5847     case $x_includes,$x_libraries in #(
5848     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
5849     echo "$as_me: error: Cannot use X directory names containing '" >&2;}
5850     { (exit 1); exit 1; }; };; #(
5851     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
5852     echo $ECHO_N "(cached) $ECHO_C" >&6
5853     else
5854     # One or both of the vars are not set, and there is no cached value.
5855     ac_x_includes=no ac_x_libraries=no
5856     rm -f -r conftest.dir
5857     if mkdir conftest.dir; then
5858     cd conftest.dir
5859     cat >Imakefile <<'_ACEOF'
5860     incroot:
5861     @echo incroot='${INCROOT}'
5862     usrlibdir:
5863     @echo usrlibdir='${USRLIBDIR}'
5864     libdir:
5865     @echo libdir='${LIBDIR}'
5866     _ACEOF
5867     if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5868     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5869     for ac_var in incroot usrlibdir libdir; do
5870     eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5871     done
5872     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5873     for ac_extension in a so sl; do
5874     if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5875     test -f "$ac_im_libdir/libX11.$ac_extension"; then
5876     ac_im_usrlibdir=$ac_im_libdir; break
5877     fi
5878     done
5879     # Screen out bogus values from the imake configuration. They are
5880     # bogus both because they are the default anyway, and because
5881     # using them would break gcc on systems where it needs fixed includes.
5882     case $ac_im_incroot in
5883     /usr/include) ac_x_includes= ;;
5884     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5885     esac
5886     case $ac_im_usrlibdir in
5887     /usr/lib | /lib) ;;
5888     *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5889     esac
5890     fi
5891     cd ..
5892     rm -f -r conftest.dir
5893     fi
5894    
5895     # Standard set of common directories for X headers.
5896     # Check X11 before X11Rn because it is often a symlink to the current release.
5897     ac_x_header_dirs='
5898     /usr/X11/include
5899     /usr/X11R6/include
5900     /usr/X11R5/include
5901     /usr/X11R4/include
5902    
5903     /usr/include/X11
5904     /usr/include/X11R6
5905     /usr/include/X11R5
5906     /usr/include/X11R4
5907    
5908     /usr/local/X11/include
5909     /usr/local/X11R6/include
5910     /usr/local/X11R5/include
5911     /usr/local/X11R4/include
5912    
5913     /usr/local/include/X11
5914     /usr/local/include/X11R6
5915     /usr/local/include/X11R5
5916     /usr/local/include/X11R4
5917    
5918     /usr/X386/include
5919     /usr/x386/include
5920     /usr/XFree86/include/X11
5921    
5922     /usr/include
5923     /usr/local/include
5924     /usr/unsupported/include
5925     /usr/athena/include
5926     /usr/local/x11r5/include
5927     /usr/lpp/Xamples/include
5928    
5929     /usr/openwin/include
5930     /usr/openwin/share/include'
5931    
5932     if test "$ac_x_includes" = no; then
5933     # Guess where to find include files, by looking for Xlib.h.
5934     # First, try using that file with no special directory specified.
5935     cat >conftest.$ac_ext <<_ACEOF
5936     /* confdefs.h. */
5937     _ACEOF
5938     cat confdefs.h >>conftest.$ac_ext
5939     cat >>conftest.$ac_ext <<_ACEOF
5940     /* end confdefs.h. */
5941     #include <X11/Xlib.h>
5942     _ACEOF
5943     if { (ac_try="$ac_cpp conftest.$ac_ext"
5944     case "(($ac_try" in
5945     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946     *) ac_try_echo=$ac_try;;
5947     esac
5948     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5950     ac_status=$?
5951     grep -v '^ *+' conftest.er1 >conftest.err
5952     rm -f conftest.er1
5953     cat conftest.err >&5
5954     echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955     (exit $ac_status); } >/dev/null && {
5956     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5957     test ! -s conftest.err
5958     }; then
5959     # We can compile using X headers with no special include directory.
5960     ac_x_includes=
5961     else
5962     echo "$as_me: failed program was:" >&5
5963     sed 's/^/| /' conftest.$ac_ext >&5
5964    
5965     for ac_dir in $ac_x_header_dirs; do
5966     if test -r "$ac_dir/X11/Xlib.h"; then
5967     ac_x_includes=$ac_dir
5968     break
5969     fi
5970     done
5971     fi
5972    
5973     rm -f conftest.err conftest.$ac_ext
5974     fi # $ac_x_includes = no
5975    
5976     if test "$ac_x_libraries" = no; then
5977     # Check for the libraries.
5978     # See if we find them without any special options.
5979     # Don't add to $LIBS permanently.
5980     ac_save_LIBS=$LIBS
5981     LIBS="-lX11 $LIBS"
5982     cat >conftest.$ac_ext <<_ACEOF
5983     /* confdefs.h. */
5984     _ACEOF
5985     cat confdefs.h >>conftest.$ac_ext
5986     cat >>conftest.$ac_ext <<_ACEOF
5987     /* end confdefs.h. */
5988     #include <X11/Xlib.h>
5989     int
5990     main ()
5991     {
5992     XrmInitialize ()
5993     ;
5994     return 0;
5995     }
5996     _ACEOF
5997     rm -f conftest.$ac_objext conftest$ac_exeext
5998     if { (ac_try="$ac_link"
5999     case "(($ac_try" in
6000     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001     *) ac_try_echo=$ac_try;;
6002     esac
6003     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6004     (eval "$ac_link") 2>conftest.er1
6005     ac_status=$?
6006     grep -v '^ *+' conftest.er1 >conftest.err
6007     rm -f conftest.er1
6008     cat conftest.err >&5
6009     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010     (exit $ac_status); } && {
6011     test -z "$ac_c_werror_flag" ||
6012     test ! -s conftest.err
6013     } && test -s conftest$ac_exeext &&
6014     $as_test_x conftest$ac_exeext; then
6015     LIBS=$ac_save_LIBS
6016     # We can link X programs with no special library path.
6017     ac_x_libraries=
6018     else
6019     echo "$as_me: failed program was:" >&5
6020     sed 's/^/| /' conftest.$ac_ext >&5
6021    
6022     LIBS=$ac_save_LIBS
6023     for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6024     do
6025     # Don't even attempt the hair of trying to link an X program!
6026     for ac_extension in a so sl; do
6027     if test -r "$ac_dir/libX11.$ac_extension"; then
6028     ac_x_libraries=$ac_dir
6029     break 2
6030     fi
6031     done
6032     done
6033     fi
6034    
6035     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6036     conftest$ac_exeext conftest.$ac_ext
6037     fi # $ac_x_libraries = no
6038    
6039     case $ac_x_includes,$ac_x_libraries in #(
6040     no,* | *,no | *\'*)
6041     # Didn't find X, or a directory has "'" in its name.
6042     ac_cv_have_x="have_x=no";; #(
6043     *)
6044     # Record where we found X for the cache.
6045     ac_cv_have_x="have_x=yes\
6046     ac_x_includes='$ac_x_includes'\
6047     ac_x_libraries='$ac_x_libraries'"
6048     esac
6049     fi
6050     ;; #(
6051     *) have_x=yes;;
6052     esac
6053     eval "$ac_cv_have_x"
6054     fi # $with_x != no
6055    
6056     if test "$have_x" != yes; then
6057     { echo "$as_me:$LINENO: result: $have_x" >&5
6058     echo "${ECHO_T}$have_x" >&6; }
6059     no_x=yes
6060     else
6061     # If each of the values was on the command line, it overrides each guess.
6062     test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6063     test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6064     # Update the cache value to reflect the command line values.
6065     ac_cv_have_x="have_x=yes\
6066     ac_x_includes='$x_includes'\
6067     ac_x_libraries='$x_libraries'"
6068     { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6069     echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6070     fi
6071    
6072     if test "$no_x" = yes; then
6073     # Not all programs may use this symbol, but it does not hurt to define it.
6074    
6075     cat >>confdefs.h <<\_ACEOF
6076     #define X_DISPLAY_MISSING 1
6077     _ACEOF
6078    
6079     X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6080     else
6081     if test -n "$x_includes"; then
6082     X_CFLAGS="$X_CFLAGS -I$x_includes"
6083     fi
6084    
6085     # It would also be nice to do this for all -L options, not just this one.
6086     if test -n "$x_libraries"; then
6087     X_LIBS="$X_LIBS -L$x_libraries"
6088     # For Solaris; some versions of Sun CC require a space after -R and
6089     # others require no space. Words are not sufficient . . . .
6090     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6091     echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
6092     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6093     ac_xsave_c_werror_flag=$ac_c_werror_flag
6094     ac_c_werror_flag=yes
6095     cat >conftest.$ac_ext <<_ACEOF
6096     /* confdefs.h. */
6097     _ACEOF
6098     cat confdefs.h >>conftest.$ac_ext
6099     cat >>conftest.$ac_ext <<_ACEOF
6100     /* end confdefs.h. */
6101    
6102     int
6103     main ()
6104     {
6105    
6106     ;
6107     return 0;
6108     }
6109     _ACEOF
6110     rm -f conftest.$ac_objext conftest$ac_exeext
6111     if { (ac_try="$ac_link"
6112     case "(($ac_try" in
6113     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114     *) ac_try_echo=$ac_try;;
6115     esac
6116     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117     (eval "$ac_link") 2>conftest.er1
6118     ac_status=$?
6119     grep -v '^ *+' conftest.er1 >conftest.err
6120     rm -f conftest.er1
6121     cat conftest.err >&5
6122     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123     (exit $ac_status); } && {
6124     test -z "$ac_c_werror_flag" ||
6125     test ! -s conftest.err
6126     } && test -s conftest$ac_exeext &&
6127     $as_test_x conftest$ac_exeext; then
6128     { echo "$as_me:$LINENO: result: no" >&5
6129     echo "${ECHO_T}no" >&6; }
6130     X_LIBS="$X_LIBS -R$x_libraries"
6131     else
6132     echo "$as_me: failed program was:" >&5
6133     sed 's/^/| /' conftest.$ac_ext >&5
6134    
6135     LIBS="$ac_xsave_LIBS -R $x_libraries"
6136     cat >conftest.$ac_ext <<_ACEOF
6137     /* confdefs.h. */
6138     _ACEOF
6139     cat confdefs.h >>conftest.$ac_ext
6140     cat >>conftest.$ac_ext <<_ACEOF
6141     /* end confdefs.h. */
6142    
6143     int
6144     main ()
6145     {
6146    
6147     ;
6148     return 0;
6149     }
6150     _ACEOF
6151     rm -f conftest.$ac_objext conftest$ac_exeext
6152     if { (ac_try="$ac_link"
6153     case "(($ac_try" in
6154     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155     *) ac_try_echo=$ac_try;;
6156     esac
6157     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158     (eval "$ac_link") 2>conftest.er1
6159     ac_status=$?
6160     grep -v '^ *+' conftest.er1 >conftest.err
6161     rm -f conftest.er1
6162     cat conftest.err >&5
6163     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164     (exit $ac_status); } && {
6165     test -z "$ac_c_werror_flag" ||
6166     test ! -s conftest.err
6167     } && test -s conftest$ac_exeext &&
6168     $as_test_x conftest$ac_exeext; then
6169     { echo "$as_me:$LINENO: result: yes" >&5
6170     echo "${ECHO_T}yes" >&6; }
6171     X_LIBS="$X_LIBS -R $x_libraries"
6172     else
6173     echo "$as_me: failed program was:" >&5
6174     sed 's/^/| /' conftest.$ac_ext >&5
6175    
6176     { echo "$as_me:$LINENO: result: neither works" >&5
6177     echo "${ECHO_T}neither works" >&6; }
6178     fi
6179    
6180     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6181     conftest$ac_exeext conftest.$ac_ext
6182     fi
6183    
6184     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6185     conftest$ac_exeext conftest.$ac_ext
6186     ac_c_werror_flag=$ac_xsave_c_werror_flag
6187     LIBS=$ac_xsave_LIBS
6188     fi
6189    
6190     # Check for system-dependent libraries X programs must link with.
6191     # Do this before checking for the system-independent R6 libraries
6192     # (-lICE), since we may need -lsocket or whatever for X linking.
6193    
6194     if test "$ISC" = yes; then
6195     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6196     else
6197     # Martyn Johnson says this is needed for Ultrix, if the X
6198     # libraries were built with DECnet support. And Karl Berry says
6199     # the Alpha needs dnet_stub (dnet does not exist).
6200     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6201     cat >conftest.$ac_ext <<_ACEOF
6202     /* confdefs.h. */
6203     _ACEOF
6204     cat confdefs.h >>conftest.$ac_ext
6205     cat >>conftest.$ac_ext <<_ACEOF
6206     /* end confdefs.h. */
6207    
6208     /* Override any GCC internal prototype to avoid an error.
6209     Use char because int might match the return type of a GCC
6210     builtin and then its argument prototype would still apply. */
6211     #ifdef __cplusplus
6212     extern "C"
6213     #endif
6214     char XOpenDisplay ();
6215     int
6216     main ()
6217     {
6218     return XOpenDisplay ();
6219     ;
6220     return 0;
6221     }
6222     _ACEOF
6223     rm -f conftest.$ac_objext conftest$ac_exeext
6224     if { (ac_try="$ac_link"
6225     case "(($ac_try" in
6226     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227     *) ac_try_echo=$ac_try;;
6228     esac
6229     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230     (eval "$ac_link") 2>conftest.er1
6231     ac_status=$?
6232     grep -v '^ *+' conftest.er1 >conftest.err
6233     rm -f conftest.er1
6234     cat conftest.err >&5
6235     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236     (exit $ac_status); } && {
6237     test -z "$ac_c_werror_flag" ||
6238     test ! -s conftest.err
6239     } && test -s conftest$ac_exeext &&
6240     $as_test_x conftest$ac_exeext; then
6241     :
6242     else
6243     echo "$as_me: failed program was:" >&5
6244     sed 's/^/| /' conftest.$ac_ext >&5
6245    
6246     { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6247     echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
6248     if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6249     echo $ECHO_N "(cached) $ECHO_C" >&6
6250     else
6251     ac_check_lib_save_LIBS=$LIBS
6252     LIBS="-ldnet $LIBS"
6253     cat >conftest.$ac_ext <<_ACEOF
6254     /* confdefs.h. */
6255     _ACEOF
6256     cat confdefs.h >>conftest.$ac_ext
6257     cat >>conftest.$ac_ext <<_ACEOF
6258     /* end confdefs.h. */
6259    
6260     /* Override any GCC internal prototype to avoid an error.
6261     Use char because int might match the return type of a GCC
6262     builtin and then its argument prototype would still apply. */
6263     #ifdef __cplusplus
6264     extern "C"
6265     #endif
6266     char dnet_ntoa ();
6267     int
6268     main ()
6269     {
6270     return dnet_ntoa ();
6271     ;
6272     return 0;
6273     }
6274     _ACEOF
6275     rm -f conftest.$ac_objext conftest$ac_exeext
6276     if { (ac_try="$ac_link"
6277     case "(($ac_try" in
6278     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279     *) ac_try_echo=$ac_try;;
6280     esac
6281     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282     (eval "$ac_link") 2>conftest.er1
6283     ac_status=$?
6284     grep -v '^ *+' conftest.er1 >conftest.err
6285     rm -f conftest.er1
6286     cat conftest.err >&5
6287     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288     (exit $ac_status); } && {
6289     test -z "$ac_c_werror_flag" ||
6290     test ! -s conftest.err
6291     } && test -s conftest$ac_exeext &&
6292     $as_test_x conftest$ac_exeext; then
6293     ac_cv_lib_dnet_dnet_ntoa=yes
6294     else
6295     echo "$as_me: failed program was:" >&5
6296     sed 's/^/| /' conftest.$ac_ext >&5
6297    
6298     ac_cv_lib_dnet_dnet_ntoa=no
6299     fi
6300    
6301     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6302     conftest$ac_exeext conftest.$ac_ext
6303     LIBS=$ac_check_lib_save_LIBS
6304     fi
6305     { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6306     echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6307     if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6308     X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6309     fi
6310    
6311     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6312     { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6313     echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
6314     if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6315     echo $ECHO_N "(cached) $ECHO_C" >&6
6316     else
6317     ac_check_lib_save_LIBS=$LIBS
6318     LIBS="-ldnet_stub $LIBS"
6319     cat >conftest.$ac_ext <<_ACEOF
6320     /* confdefs.h. */
6321     _ACEOF
6322     cat confdefs.h >>conftest.$ac_ext
6323     cat >>conftest.$ac_ext <<_ACEOF
6324     /* end confdefs.h. */
6325    
6326     /* Override any GCC internal prototype to avoid an error.
6327     Use char because int might match the return type of a GCC
6328     builtin and then its argument prototype would still apply. */
6329     #ifdef __cplusplus
6330     extern "C"
6331     #endif
6332     char dnet_ntoa ();
6333     int
6334     main ()
6335     {
6336     return dnet_ntoa ();
6337     ;
6338     return 0;
6339     }
6340     _ACEOF
6341     rm -f conftest.$ac_objext conftest$ac_exeext
6342     if { (ac_try="$ac_link"
6343     case "(($ac_try" in
6344     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345     *) ac_try_echo=$ac_try;;
6346     esac
6347     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348     (eval "$ac_link") 2>conftest.er1
6349     ac_status=$?
6350     grep -v '^ *+' conftest.er1 >conftest.err
6351     rm -f conftest.er1
6352     cat conftest.err >&5
6353     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354     (exit $ac_status); } && {
6355     test -z "$ac_c_werror_flag" ||
6356     test ! -s conftest.err
6357     } && test -s conftest$ac_exeext &&
6358     $as_test_x conftest$ac_exeext; then
6359     ac_cv_lib_dnet_stub_dnet_ntoa=yes
6360     else
6361     echo "$as_me: failed program was:" >&5
6362     sed 's/^/| /' conftest.$ac_ext >&5
6363    
6364     ac_cv_lib_dnet_stub_dnet_ntoa=no
6365     fi
6366    
6367     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6368     conftest$ac_exeext conftest.$ac_ext
6369     LIBS=$ac_check_lib_save_LIBS
6370     fi
6371     { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6372     echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6373     if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6374     X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6375     fi
6376    
6377     fi
6378     fi
6379    
6380     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6381     conftest$ac_exeext conftest.$ac_ext
6382     LIBS="$ac_xsave_LIBS"
6383    
6384     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6385     # to get the SysV transport functions.
6386     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6387     # needs -lnsl.
6388     # The nsl library prevents programs from opening the X display
6389     # on Irix 5.2, according to T.E. Dickey.
6390     # The functions gethostbyname, getservbyname, and inet_addr are
6391     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6392     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
6393     echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
6394     if test "${ac_cv_func_gethostbyname+set}" = set; then
6395     echo $ECHO_N "(cached) $ECHO_C" >&6
6396     else
6397     cat >conftest.$ac_ext <<_ACEOF
6398     /* confdefs.h. */
6399     _ACEOF
6400     cat confdefs.h >>conftest.$ac_ext
6401     cat >>conftest.$ac_ext <<_ACEOF
6402     /* end confdefs.h. */
6403     /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6404     For example, HP-UX 11i <limits.h> declares gettimeofday. */
6405     #define gethostbyname innocuous_gethostbyname
6406    
6407     /* System header to define __stub macros and hopefully few prototypes,
6408     which can conflict with char gethostbyname (); below.
6409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6410     <limits.h> exists even on freestanding compilers. */
6411    
6412     #ifdef __STDC__
6413     # include <limits.h>
6414     #else
6415     # include <assert.h>
6416     #endif
6417    
6418     #undef gethostbyname
6419    
6420     /* Override any GCC internal prototype to avoid an error.
6421     Use char because int might match the return type of a GCC
6422     builtin and then its argument prototype would still apply. */
6423     #ifdef __cplusplus
6424     extern "C"
6425     #endif
6426     char gethostbyname ();
6427     /* The GNU C library defines this for functions which it implements
6428     to always fail with ENOSYS. Some functions are actually named
6429     something starting with __ and the normal name is an alias. */
6430     #if defined __stub_gethostbyname || defined __stub___gethostbyname
6431     choke me
6432     #endif
6433    
6434     int
6435     main ()
6436     {
6437     return gethostbyname ();
6438     ;
6439     return 0;
6440     }
6441     _ACEOF
6442     rm -f conftest.$ac_objext conftest$ac_exeext
6443     if { (ac_try="$ac_link"
6444     case "(($ac_try" in
6445     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446     *) ac_try_echo=$ac_try;;
6447     esac
6448     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449     (eval "$ac_link") 2>conftest.er1
6450     ac_status=$?
6451     grep -v '^ *+' conftest.er1 >conftest.err
6452     rm -f conftest.er1
6453     cat conftest.err >&5
6454     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455     (exit $ac_status); } && {
6456     test -z "$ac_c_werror_flag" ||
6457     test ! -s conftest.err
6458     } && test -s conftest$ac_exeext &&
6459     $as_test_x conftest$ac_exeext; then
6460     ac_cv_func_gethostbyname=yes
6461     else
6462     echo "$as_me: failed program was:" >&5
6463     sed 's/^/| /' conftest.$ac_ext >&5
6464    
6465     ac_cv_func_gethostbyname=no
6466     fi
6467    
6468     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6469     conftest$ac_exeext conftest.$ac_ext
6470     fi
6471     { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6472     echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6473    
6474     if test $ac_cv_func_gethostbyname = no; then
6475     { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6476     echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
6477     if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6478     echo $ECHO_N "(cached) $ECHO_C" >&6
6479     else
6480     ac_check_lib_save_LIBS=$LIBS
6481     LIBS="-lnsl $LIBS"
6482     cat >conftest.$ac_ext <<_ACEOF
6483     /* confdefs.h. */
6484     _ACEOF
6485     cat confdefs.h >>conftest.$ac_ext
6486     cat >>conftest.$ac_ext <<_ACEOF
6487     /* end confdefs.h. */
6488    
6489     /* Override any GCC internal prototype to avoid an error.
6490     Use char because int might match the return type of a GCC
6491     builtin and then its argument prototype would still apply. */
6492     #ifdef __cplusplus
6493     extern "C"
6494     #endif
6495     char gethostbyname ();
6496     int
6497     main ()
6498     {
6499     return gethostbyname ();
6500     ;
6501     return 0;
6502     }
6503     _ACEOF
6504     rm -f conftest.$ac_objext conftest$ac_exeext
6505     if { (ac_try="$ac_link"
6506     case "(($ac_try" in
6507     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508     *) ac_try_echo=$ac_try;;
6509     esac
6510     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511     (eval "$ac_link") 2>conftest.er1
6512     ac_status=$?
6513     grep -v '^ *+' conftest.er1 >conftest.err
6514     rm -f conftest.er1
6515     cat conftest.err >&5
6516     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517     (exit $ac_status); } && {
6518     test -z "$ac_c_werror_flag" ||
6519     test ! -s conftest.err
6520     } && test -s conftest$ac_exeext &&
6521     $as_test_x conftest$ac_exeext; then
6522     ac_cv_lib_nsl_gethostbyname=yes
6523     else
6524     echo "$as_me: failed program was:" >&5
6525     sed 's/^/| /' conftest.$ac_ext >&5
6526    
6527     ac_cv_lib_nsl_gethostbyname=no
6528     fi
6529    
6530     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6531     conftest$ac_exeext conftest.$ac_ext
6532     LIBS=$ac_check_lib_save_LIBS
6533     fi
6534     { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6535     echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
6536     if test $ac_cv_lib_nsl_gethostbyname = yes; then
6537     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6538     fi
6539    
6540     if test $ac_cv_lib_nsl_gethostbyname = no; then
6541     { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6542     echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
6543     if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6544     echo $ECHO_N "(cached) $ECHO_C" >&6
6545     else
6546     ac_check_lib_save_LIBS=$LIBS
6547     LIBS="-lbsd $LIBS"
6548     cat >conftest.$ac_ext <<_ACEOF
6549     /* confdefs.h. */
6550     _ACEOF
6551     cat confdefs.h >>conftest.$ac_ext
6552     cat >>conftest.$ac_ext <<_ACEOF
6553     /* end confdefs.h. */
6554    
6555     /* Override any GCC internal prototype to avoid an error.
6556     Use char because int might match the return type of a GCC
6557     builtin and then its argument prototype would still apply. */
6558     #ifdef __cplusplus
6559     extern "C"
6560     #endif
6561     char gethostbyname ();
6562     int
6563     main ()
6564     {
6565     return gethostbyname ();
6566     ;
6567     return 0;
6568     }
6569     _ACEOF
6570     rm -f conftest.$ac_objext conftest$ac_exeext
6571     if { (ac_try="$ac_link"
6572     case "(($ac_try" in
6573     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574     *) ac_try_echo=$ac_try;;
6575     esac
6576     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577     (eval "$ac_link") 2>conftest.er1
6578     ac_status=$?
6579     grep -v '^ *+' conftest.er1 >conftest.err
6580     rm -f conftest.er1
6581     cat conftest.err >&5
6582     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583     (exit $ac_status); } && {
6584     test -z "$ac_c_werror_flag" ||
6585     test ! -s conftest.err
6586     } && test -s conftest$ac_exeext &&
6587     $as_test_x conftest$ac_exeext; then
6588     ac_cv_lib_bsd_gethostbyname=yes
6589     else
6590     echo "$as_me: failed program was:" >&5
6591     sed 's/^/| /' conftest.$ac_ext >&5
6592    
6593     ac_cv_lib_bsd_gethostbyname=no
6594     fi
6595    
6596     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6597     conftest$ac_exeext conftest.$ac_ext
6598     LIBS=$ac_check_lib_save_LIBS
6599     fi
6600     { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6601     echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
6602     if test $ac_cv_lib_bsd_gethostbyname = yes; then
6603     X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6604     fi
6605    
6606     fi
6607     fi
6608    
6609     # lieder@skyler.mavd.honeywell.com says without -lsocket,
6610     # socket/setsockopt and other routines are undefined under SCO ODT
6611     # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6612     # on later versions), says Simon Leinen: it contains gethostby*
6613     # variants that don't use the name server (or something). -lsocket
6614     # must be given before -lnsl if both are needed. We assume that
6615     # if connect needs -lnsl, so does gethostbyname.
6616     { echo "$as_me:$LINENO: checking for connect" >&5
6617     echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
6618     if test "${ac_cv_func_connect+set}" = set; then
6619     echo $ECHO_N "(cached) $ECHO_C" >&6
6620     else
6621     cat >conftest.$ac_ext <<_ACEOF
6622     /* confdefs.h. */
6623     _ACEOF
6624     cat confdefs.h >>conftest.$ac_ext
6625     cat >>conftest.$ac_ext <<_ACEOF
6626     /* end confdefs.h. */
6627     /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6628     For example, HP-UX 11i <limits.h> declares gettimeofday. */
6629     #define connect innocuous_connect
6630    
6631     /* System header to define __stub macros and hopefully few prototypes,
6632     which can conflict with char connect (); below.
6633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6634     <limits.h> exists even on freestanding compilers. */
6635    
6636     #ifdef __STDC__
6637     # include <limits.h>
6638     #else
6639     # include <assert.h>
6640     #endif
6641    
6642     #undef connect
6643    
6644     /* Override any GCC internal prototype to avoid an error.
6645     Use char because int might match the return type of a GCC
6646     builtin and then its argument prototype would still apply. */
6647     #ifdef __cplusplus
6648     extern "C"
6649     #endif
6650     char connect ();
6651     /* The GNU C library defines this for functions which it implements
6652     to always fail with ENOSYS. Some functions are actually named
6653     something starting with __ and the normal name is an alias. */
6654     #if defined __stub_connect || defined __stub___connect
6655     choke me
6656     #endif
6657    
6658     int
6659     main ()
6660     {
6661     return connect ();
6662     ;
6663     return 0;
6664     }
6665     _ACEOF
6666     rm -f conftest.$ac_objext conftest$ac_exeext
6667     if { (ac_try="$ac_link"
6668     case "(($ac_try" in
6669     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670     *) ac_try_echo=$ac_try;;
6671     esac
6672     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673     (eval "$ac_link") 2>conftest.er1
6674     ac_status=$?
6675     grep -v '^ *+' conftest.er1 >conftest.err
6676     rm -f conftest.er1
6677     cat conftest.err >&5
6678     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679     (exit $ac_status); } && {
6680     test -z "$ac_c_werror_flag" ||
6681     test ! -s conftest.err
6682     } && test -s conftest$ac_exeext &&
6683     $as_test_x conftest$ac_exeext; then
6684     ac_cv_func_connect=yes
6685     else
6686     echo "$as_me: failed program was:" >&5
6687     sed 's/^/| /' conftest.$ac_ext >&5
6688    
6689     ac_cv_func_connect=no
6690     fi
6691    
6692     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6693     conftest$ac_exeext conftest.$ac_ext
6694     fi
6695     { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6696     echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6697    
6698     if test $ac_cv_func_connect = no; then
6699     { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6700     echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
6701     if test "${ac_cv_lib_socket_connect+set}" = set; then
6702     echo $ECHO_N "(cached) $ECHO_C" >&6
6703     else
6704     ac_check_lib_save_LIBS=$LIBS
6705     LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6706     cat >conftest.$ac_ext <<_ACEOF
6707     /* confdefs.h. */
6708     _ACEOF
6709     cat confdefs.h >>conftest.$ac_ext
6710     cat >>conftest.$ac_ext <<_ACEOF
6711     /* end confdefs.h. */
6712    
6713     /* Override any GCC internal prototype to avoid an error.
6714     Use char because int might match the return type of a GCC
6715     builtin and then its argument prototype would still apply. */
6716     #ifdef __cplusplus
6717     extern "C"
6718     #endif
6719     char connect ();
6720     int
6721     main ()
6722     {
6723     return connect ();
6724     ;
6725     return 0;
6726     }
6727     _ACEOF
6728     rm -f conftest.$ac_objext conftest$ac_exeext
6729     if { (ac_try="$ac_link"
6730     case "(($ac_try" in
6731     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6732     *) ac_try_echo=$ac_try;;
6733     esac
6734     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6735     (eval "$ac_link") 2>conftest.er1
6736     ac_status=$?
6737     grep -v '^ *+' conftest.er1 >conftest.err
6738     rm -f conftest.er1
6739     cat conftest.err >&5
6740     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741     (exit $ac_status); } && {
6742     test -z "$ac_c_werror_flag" ||
6743     test ! -s conftest.err
6744     } && test -s conftest$ac_exeext &&
6745     $as_test_x conftest$ac_exeext; then
6746     ac_cv_lib_socket_connect=yes
6747     else
6748     echo "$as_me: failed program was:" >&5
6749     sed 's/^/| /' conftest.$ac_ext >&5
6750    
6751     ac_cv_lib_socket_connect=no
6752     fi
6753    
6754     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6755     conftest$ac_exeext conftest.$ac_ext
6756     LIBS=$ac_check_lib_save_LIBS
6757     fi
6758     { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6759     echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
6760     if test $ac_cv_lib_socket_connect = yes; then
6761     X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6762     fi
6763    
6764     fi
6765    
6766     # Guillermo Gomez says -lposix is necessary on A/UX.
6767     { echo "$as_me:$LINENO: checking for remove" >&5
6768     echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
6769     if test "${ac_cv_func_remove+set}" = set; then
6770     echo $ECHO_N "(cached) $ECHO_C" >&6
6771     else
6772     cat >conftest.$ac_ext <<_ACEOF
6773     /* confdefs.h. */
6774     _ACEOF
6775     cat confdefs.h >>conftest.$ac_ext
6776     cat >>conftest.$ac_ext <<_ACEOF
6777     /* end confdefs.h. */
6778     /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6779     For example, HP-UX 11i <limits.h> declares gettimeofday. */
6780     #define remove innocuous_remove
6781    
6782     /* System header to define __stub macros and hopefully few prototypes,
6783     which can conflict with char remove (); below.
6784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6785     <limits.h> exists even on freestanding compilers. */
6786    
6787     #ifdef __STDC__
6788     # include <limits.h>
6789     #else
6790     # include <assert.h>
6791     #endif
6792    
6793     #undef remove
6794    
6795     /* Override any GCC internal prototype to avoid an error.
6796     Use char because int might match the return type of a GCC
6797     builtin and then its argument prototype would still apply. */
6798     #ifdef __cplusplus
6799     extern "C"
6800     #endif
6801     char remove ();
6802     /* The GNU C library defines this for functions which it implements
6803     to always fail with ENOSYS. Some functions are actually named
6804     something starting with __ and the normal name is an alias. */
6805     #if defined __stub_remove || defined __stub___remove
6806     choke me
6807     #endif
6808    
6809     int
6810     main ()
6811     {
6812     return remove ();
6813     ;
6814     return 0;
6815     }
6816     _ACEOF
6817     rm -f conftest.$ac_objext conftest$ac_exeext
6818     if { (ac_try="$ac_link"
6819     case "(($ac_try" in
6820     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821     *) ac_try_echo=$ac_try;;
6822     esac
6823     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6824     (eval "$ac_link") 2>conftest.er1
6825     ac_status=$?
6826     grep -v '^ *+' conftest.er1 >conftest.err
6827     rm -f conftest.er1
6828     cat conftest.err >&5
6829     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830     (exit $ac_status); } && {
6831     test -z "$ac_c_werror_flag" ||
6832     test ! -s conftest.err
6833     } && test -s conftest$ac_exeext &&
6834     $as_test_x conftest$ac_exeext; then
6835     ac_cv_func_remove=yes
6836     else
6837     echo "$as_me: failed program was:" >&5
6838     sed 's/^/| /' conftest.$ac_ext >&5
6839    
6840     ac_cv_func_remove=no
6841     fi
6842    
6843     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6844     conftest$ac_exeext conftest.$ac_ext
6845     fi
6846     { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6847     echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6848    
6849     if test $ac_cv_func_remove = no; then
6850     { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6851     echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
6852     if test "${ac_cv_lib_posix_remove+set}" = set; then
6853     echo $ECHO_N "(cached) $ECHO_C" >&6
6854     else
6855     ac_check_lib_save_LIBS=$LIBS
6856     LIBS="-lposix $LIBS"
6857     cat >conftest.$ac_ext <<_ACEOF
6858     /* confdefs.h. */
6859     _ACEOF
6860     cat confdefs.h >>conftest.$ac_ext
6861     cat >>conftest.$ac_ext <<_ACEOF
6862     /* end confdefs.h. */
6863    
6864     /* Override any GCC internal prototype to avoid an error.
6865     Use char because int might match the return type of a GCC
6866     builtin and then its argument prototype would still apply. */
6867     #ifdef __cplusplus
6868     extern "C"
6869     #endif
6870     char remove ();
6871     int
6872     main ()
6873     {
6874     return remove ();
6875     ;
6876     return 0;
6877     }
6878     _ACEOF
6879     rm -f conftest.$ac_objext conftest$ac_exeext
6880     if { (ac_try="$ac_link"
6881     case "(($ac_try" in
6882     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883     *) ac_try_echo=$ac_try;;
6884     esac
6885     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6886     (eval "$ac_link") 2>conftest.er1
6887     ac_status=$?
6888     grep -v '^ *+' conftest.er1 >conftest.err
6889     rm -f conftest.er1
6890     cat conftest.err >&5
6891     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892     (exit $ac_status); } && {
6893     test -z "$ac_c_werror_flag" ||
6894     test ! -s conftest.err
6895     } && test -s conftest$ac_exeext &&
6896     $as_test_x conftest$ac_exeext; then
6897     ac_cv_lib_posix_remove=yes
6898     else
6899     echo "$as_me: failed program was:" >&5
6900     sed 's/^/| /' conftest.$ac_ext >&5
6901    
6902     ac_cv_lib_posix_remove=no
6903     fi
6904    
6905     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6906     conftest$ac_exeext conftest.$ac_ext
6907     LIBS=$ac_check_lib_save_LIBS
6908     fi
6909     { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6910     echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
6911     if test $ac_cv_lib_posix_remove = yes; then
6912     X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6913     fi
6914    
6915     fi
6916    
6917     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6918     { echo "$as_me:$LINENO: checking for shmat" >&5
6919     echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6920     if test "${ac_cv_func_shmat+set}" = set; then
6921     echo $ECHO_N "(cached) $ECHO_C" >&6
6922     else
6923     cat >conftest.$ac_ext <<_ACEOF
6924     /* confdefs.h. */
6925     _ACEOF
6926     cat confdefs.h >>conftest.$ac_ext
6927     cat >>conftest.$ac_ext <<_ACEOF
6928     /* end confdefs.h. */
6929     /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6930     For example, HP-UX 11i <limits.h> declares gettimeofday. */
6931     #define shmat innocuous_shmat
6932    
6933     /* System header to define __stub macros and hopefully few prototypes,
6934     which can conflict with char shmat (); below.
6935     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6936     <limits.h> exists even on freestanding compilers. */
6937    
6938     #ifdef __STDC__
6939     # include <limits.h>
6940     #else
6941     # include <assert.h>
6942     #endif
6943    
6944     #undef shmat
6945    
6946     /* Override any GCC internal prototype to avoid an error.
6947     Use char because int might match the return type of a GCC
6948     builtin and then its argument prototype would still apply. */
6949     #ifdef __cplusplus
6950     extern "C"
6951     #endif
6952     char shmat ();
6953     /* The GNU C library defines this for functions which it implements
6954     to always fail with ENOSYS. Some functions are actually named
6955     something starting with __ and the normal name is an alias. */
6956     #if defined __stub_shmat || defined __stub___shmat
6957     choke me
6958     #endif
6959    
6960     int
6961     main ()
6962     {
6963     return shmat ();
6964     ;
6965     return 0;
6966     }
6967     _ACEOF
6968     rm -f conftest.$ac_objext conftest$ac_exeext
6969     if { (ac_try="$ac_link"
6970     case "(($ac_try" in
6971     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6972     *) ac_try_echo=$ac_try;;
6973     esac
6974     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6975     (eval "$ac_link") 2>conftest.er1
6976     ac_status=$?
6977     grep -v '^ *+' conftest.er1 >conftest.err
6978     rm -f conftest.er1
6979     cat conftest.err >&5
6980     echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981     (exit $ac_status); } && {
6982     test -z "$ac_c_werror_flag" ||
6983     test ! -s conftest.err
6984     } && test -s conftest$ac_exeext &&
6985     $as_test_x conftest$ac_exeext; then
6986     ac_cv_func_shmat=yes
6987     else
6988     echo "$as_me: failed program was:" >&5
6989     sed 's/^/| /' conftest.$ac_ext >&5
6990    
6991     ac_cv_func_shmat=no
6992     fi
6993    
6994     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6995     conftest$ac_exeext conftest.$ac_ext
6996     fi
6997     { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6998     echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6999    
7000     if test $ac_cv_func_shmat = no; then
7001     { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7002     echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
7003     if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7004     echo $ECHO_N "(cached) $ECHO_C" >&6
7005     else
7006     ac_check_lib_save_LIBS=$LIBS
7007     LIBS="-lipc $LIBS"
7008     cat >conftest.$ac_ext <<_ACEOF
7009     /* confdefs.h. */
7010     _ACEOF
7011     cat confdefs.h >>conftest.$ac_ext
7012     cat >>conftest.$ac_ext <<_ACEOF
7013     /* end confdefs.h. */
7014    
7015     /* Override any GCC internal prototype to avoid an error.
7016     Use char because int might match the return type of a GCC
7017     builtin and then its argument prototype would still apply. */
7018     #ifdef __cplusplus
7019     extern "C"
7020     #endif
7021     char shmat ();
7022     int
7023     main ()
7024     {
7025     return shmat ();
7026     ;
7027     return 0;
7028     }
7029     _ACEOF
7030     rm -f conftest.$ac_objext conftest$ac_exeext
7031     if { (ac_try="$ac_link"
7032     case "(($ac_try" in
7033     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034     *) ac_try_echo=$ac_try;;
7035     esac
7036     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7037     (eval "$ac_link") 2>conftest.er1
7038     ac_status=$?
7039     grep -v '^ *+' conftest.er1 >conftest.err
7040     rm -f conftest.er1
7041     cat conftest.err >&5
7042     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043     (exit $ac_status); } && {
7044     test -z "$ac_c_werror_flag" ||
7045     test ! -s conftest.err
7046     } && test -s conftest$ac_exeext &&
7047     $as_test_x conftest$ac_exeext; then
7048     ac_cv_lib_ipc_shmat=yes
7049     else
7050     echo "$as_me: failed program was:" >&5
7051     sed 's/^/| /' conftest.$ac_ext >&5
7052    
7053     ac_cv_lib_ipc_shmat=no
7054     fi
7055    
7056     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7057     conftest$ac_exeext conftest.$ac_ext
7058     LIBS=$ac_check_lib_save_LIBS
7059     fi
7060     { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7061     echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
7062     if test $ac_cv_lib_ipc_shmat = yes; then
7063     X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7064     fi
7065    
7066     fi
7067     fi
7068    
7069     # Check for libraries that X11R6 Xt/Xaw programs need.
7070     ac_save_LDFLAGS=$LDFLAGS
7071     test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7072     # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7073     # check for ICE first), but we must link in the order -lSM -lICE or
7074     # we get undefined symbols. So assume we have SM if we have ICE.
7075     # These have to be linked with before -lX11, unlike the other
7076     # libraries we check for below, so use a different variable.
7077     # John Interrante, Karl Berry
7078     { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7079     echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
7080     if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7081     echo $ECHO_N "(cached) $ECHO_C" >&6
7082     else
7083     ac_check_lib_save_LIBS=$LIBS
7084     LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7085     cat >conftest.$ac_ext <<_ACEOF
7086     /* confdefs.h. */
7087     _ACEOF
7088     cat confdefs.h >>conftest.$ac_ext
7089     cat >>conftest.$ac_ext <<_ACEOF
7090     /* end confdefs.h. */
7091    
7092     /* Override any GCC internal prototype to avoid an error.
7093     Use char because int might match the return type of a GCC
7094     builtin and then its argument prototype would still apply. */
7095     #ifdef __cplusplus
7096     extern "C"
7097     #endif
7098     char IceConnectionNumber ();
7099     int
7100     main ()
7101     {
7102     return IceConnectionNumber ();
7103     ;
7104     return 0;
7105     }
7106     _ACEOF
7107     rm -f conftest.$ac_objext conftest$ac_exeext
7108     if { (ac_try="$ac_link"
7109     case "(($ac_try" in
7110     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111     *) ac_try_echo=$ac_try;;
7112     esac
7113     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7114     (eval "$ac_link") 2>conftest.er1
7115     ac_status=$?
7116     grep -v '^ *+' conftest.er1 >conftest.err
7117     rm -f conftest.er1
7118     cat conftest.err >&5
7119     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120     (exit $ac_status); } && {
7121     test -z "$ac_c_werror_flag" ||
7122     test ! -s conftest.err
7123     } && test -s conftest$ac_exeext &&
7124     $as_test_x conftest$ac_exeext; then
7125     ac_cv_lib_ICE_IceConnectionNumber=yes
7126     else
7127     echo "$as_me: failed program was:" >&5
7128     sed 's/^/| /' conftest.$ac_ext >&5
7129    
7130     ac_cv_lib_ICE_IceConnectionNumber=no
7131     fi
7132    
7133     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7134     conftest$ac_exeext conftest.$ac_ext
7135     LIBS=$ac_check_lib_save_LIBS
7136     fi
7137     { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7138     echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7139     if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7140     X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7141     fi
7142    
7143     LDFLAGS=$ac_save_LDFLAGS
7144    
7145     fi
7146    
7147    
7148     { echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
7149     echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6; }
7150     if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
7151     echo $ECHO_N "(cached) $ECHO_C" >&6
7152     else
7153     ac_check_lib_save_LIBS=$LIBS
7154     LIBS="-lX11 $X_LIBS
7155     $LIBS"
7156     cat >conftest.$ac_ext <<_ACEOF
7157     /* confdefs.h. */
7158     _ACEOF
7159     cat confdefs.h >>conftest.$ac_ext
7160     cat >>conftest.$ac_ext <<_ACEOF
7161     /* end confdefs.h. */
7162    
7163     /* Override any GCC internal prototype to avoid an error.
7164     Use char because int might match the return type of a GCC
7165     builtin and then its argument prototype would still apply. */
7166     #ifdef __cplusplus
7167     extern "C"
7168     #endif
7169     char XOpenDisplay ();
7170     int
7171     main ()
7172     {
7173     return XOpenDisplay ();
7174     ;
7175     return 0;
7176     }
7177     _ACEOF
7178     rm -f conftest.$ac_objext conftest$ac_exeext
7179     if { (ac_try="$ac_link"
7180     case "(($ac_try" in
7181     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182     *) ac_try_echo=$ac_try;;
7183     esac
7184     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185     (eval "$ac_link") 2>conftest.er1
7186     ac_status=$?
7187     grep -v '^ *+' conftest.er1 >conftest.err
7188     rm -f conftest.er1
7189     cat conftest.err >&5
7190     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191     (exit $ac_status); } && {
7192     test -z "$ac_c_werror_flag" ||
7193     test ! -s conftest.err
7194     } && test -s conftest$ac_exeext &&
7195     $as_test_x conftest$ac_exeext; then
7196     ac_cv_lib_X11_XOpenDisplay=yes
7197     else
7198     echo "$as_me: failed program was:" >&5
7199     sed 's/^/| /' conftest.$ac_ext >&5
7200    
7201     ac_cv_lib_X11_XOpenDisplay=no
7202     fi
7203    
7204     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7205     conftest$ac_exeext conftest.$ac_ext
7206     LIBS=$ac_check_lib_save_LIBS
7207     fi
7208     { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
7209     echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6; }
7210     if test $ac_cv_lib_X11_XOpenDisplay = yes; then
7211    
7212    
7213     PPC_LDADD="$PPC_LDADD -lX11"
7214     PPC_LDFLAGS="$PPC_LDFLAGS $X_LIBS"
7215    
7216     else
7217     { { echo "$as_me:$LINENO: error: Could not find XOpenDisplay in -lX11." >&5
7218     echo "$as_me: error: Could not find XOpenDisplay in -lX11." >&2;}
7219     { (exit 1); exit 1; }; }
7220     fi
7221    
7222     ;;
7223     qt)
7224     { echo "$as_me:$LINENO: checking whether QTDIR environment variable is set" >&5
7225     echo $ECHO_N "checking whether QTDIR environment variable is set... $ECHO_C" >&6; }
7226     if test -z "$QTDIR"; then
7227     { echo "$as_me:$LINENO: result: no" >&5
7228     echo "${ECHO_T}no" >&6; }
7229     { { echo "$as_me:$LINENO: error: QTDIR must be properly set." >&5
7230     echo "$as_me: error: QTDIR must be properly set." >&2;}
7231     { (exit 1); exit 1; }; }
7232     else
7233     { echo "$as_me:$LINENO: result: $QTDIR" >&5
7234     echo "${ECHO_T}$QTDIR" >&6; }
7235     fi
7236    
7237     { echo "$as_me:$LINENO: checking for Qt library" >&5
7238     echo $ECHO_N "checking for Qt library... $ECHO_C" >&6; }
7239     if test "${ac_qtlib+set}" = set; then
7240     echo $ECHO_N "(cached) $ECHO_C" >&6
7241     else
7242    
7243     for X in qt-mt qt; do
7244     if test -z "$ac_qtlib"; then
7245     if test -f $QTDIR/lib/lib$X.so -o -f $QTDIR/lib/lib$X.a; then
7246     ac_qtlib=$X
7247     fi
7248     fi
7249     done
7250    
7251     fi
7252     { echo "$as_me:$LINENO: result: $ac_qtlib" >&5
7253     echo "${ECHO_T}$ac_qtlib" >&6; }
7254     if test -z "$ac_qtlib"; then
7255     { { echo "$as_me:$LINENO: error: Qt library not found. Maybe QTDIR isn't properly set." >&5
7256     echo "$as_me: error: Qt library not found. Maybe QTDIR isn't properly set." >&2;}
7257     { (exit 1); exit 1; }; }
7258     fi
7259    
7260     if test "x$ac_qtlib" = "xqt-mt"; then
7261     ac_thread="thread"
7262     fi
7263    
7264    
7265     CFLAGS="$CFLAGS -I$QTDIR/include"
7266     LIBS="-L$QTDIR/lib -L/usr/X11R6/lib"
7267    
7268     { echo "$as_me:$LINENO: checking for Qt library version >= 3.0.0" >&5
7269     echo $ECHO_N "checking for Qt library version >= 3.0.0... $ECHO_C" >&6; }
7270     if test "${ac_qtlib_version+set}" = set; then
7271     echo $ECHO_N "(cached) $ECHO_C" >&6
7272     else
7273     cat >conftest.$ac_ext <<_ACEOF
7274     /* confdefs.h. */
7275     _ACEOF
7276     cat confdefs.h >>conftest.$ac_ext
7277     cat >>conftest.$ac_ext <<_ACEOF
7278     /* end confdefs.h. */
7279    
7280     #include "qglobal.h"
7281    
7282     int
7283     main ()
7284     {
7285    
7286     #if QT_VERSION < 0x030000
7287     #error Qt library 3.0.0 or greater required.
7288     #endif
7289    
7290     ;
7291     return 0;
7292     }
7293     _ACEOF
7294     rm -f conftest.$ac_objext conftest$ac_exeext
7295     if { (ac_try="$ac_link"
7296     case "(($ac_try" in
7297     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7298     *) ac_try_echo=$ac_try;;
7299     esac
7300     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7301     (eval "$ac_link") 2>conftest.er1
7302     ac_status=$?
7303     grep -v '^ *+' conftest.er1 >conftest.err
7304     rm -f conftest.er1
7305     cat conftest.err >&5
7306     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307     (exit $ac_status); } && {
7308     test -z "$ac_c_werror_flag" ||
7309     test ! -s conftest.err
7310     } && test -s conftest$ac_exeext &&
7311     $as_test_x conftest$ac_exeext; then
7312    
7313     ac_qtlib_version="yes"
7314     QT_CFLAGS="$CFLAGS"
7315     QT_LIBS="-l$ac_qtlib"
7316     QT_LDFLAGS="$LIBS"
7317    
7318     else
7319     echo "$as_me: failed program was:" >&5
7320     sed 's/^/| /' conftest.$ac_ext >&5
7321    
7322    
7323     QT_CFLAGS=""
7324     QT_LIBS=""
7325     QT_LDFLAGS=""
7326     { { echo "$as_me:$LINENO: error: *** QT version 3.0.0 is required for QT gui. Upgrade or try a different --enable-ui option." >&5
7327     echo "$as_me: error: *** QT version 3.0.0 is required for QT gui. Upgrade or try a different --enable-ui option." >&2;}
7328     { (exit 1); exit 1; }; }
7329    
7330     fi
7331    
7332     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7333     conftest$ac_exeext conftest.$ac_ext
7334     CFLAGS="$ac_save_CFLAGS"
7335     LIBS="$ac_save_LIBS"
7336    
7337    
7338     fi
7339     { echo "$as_me:$LINENO: result: $ac_qtlib_version" >&5
7340     echo "${ECHO_T}$ac_qtlib_version" >&6; }
7341    
7342    
7343    
7344    
7345     PPC_LDADD="$PPC_LDADD $QT_LIBS"
7346     PPC_LDFLAGS="$PPC_LDFLAGS $QT_LDFLAGS"
7347     ;;
7348     gtk)
7349     ;;
7350     beos)
7351     ;;
7352     sdl)
7353     SDL_VERSION=1.2.0
7354    
7355    
7356     # Check whether --with-sdl-prefix was given.
7357     if test "${with_sdl_prefix+set}" = set; then
7358     withval=$with_sdl_prefix; sdl_prefix="$withval"
7359     else
7360     sdl_prefix=""
7361     fi
7362    
7363    
7364     # Check whether --with-sdl-exec-prefix was given.
7365     if test "${with_sdl_exec_prefix+set}" = set; then
7366     withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
7367     else
7368     sdl_exec_prefix=""
7369     fi
7370    
7371     # Check whether --enable-sdltest was given.
7372     if test "${enable_sdltest+set}" = set; then
7373     enableval=$enable_sdltest;
7374     else
7375     enable_sdltest=yes
7376     fi
7377    
7378    
7379     if test x$sdl_exec_prefix != x ; then
7380     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
7381     if test x${SDL_CONFIG+set} != xset ; then
7382     SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
7383     fi
7384     fi
7385     if test x$sdl_prefix != x ; then
7386     sdl_args="$sdl_args --prefix=$sdl_prefix"
7387     if test x${SDL_CONFIG+set} != xset ; then
7388     SDL_CONFIG=$sdl_prefix/bin/sdl-config
7389     fi
7390     fi
7391    
7392     if test "x$prefix" != xNONE; then
7393     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
7394     fi
7395     # Extract the first word of "sdl-config", so it can be a program name with args.
7396     set dummy sdl-config; ac_word=$2
7397     { echo "$as_me:$LINENO: checking for $ac_word" >&5
7398     echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7399     if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
7400     echo $ECHO_N "(cached) $ECHO_C" >&6
7401     else
7402     case $SDL_CONFIG in
7403     [\\/]* | ?:[\\/]*)
7404     ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7405     ;;
7406     *)
7407     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408     for as_dir in $PATH
7409     do
7410     IFS=$as_save_IFS
7411     test -z "$as_dir" && as_dir=.
7412     for ac_exec_ext in '' $ac_executable_extensions; do
7413     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7416     break 2
7417     fi
7418     done
7419     done
7420     IFS=$as_save_IFS
7421    
7422     test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7423     ;;
7424     esac
7425     fi
7426     SDL_CONFIG=$ac_cv_path_SDL_CONFIG
7427     if test -n "$SDL_CONFIG"; then
7428     { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
7429     echo "${ECHO_T}$SDL_CONFIG" >&6; }
7430     else
7431     { echo "$as_me:$LINENO: result: no" >&5
7432     echo "${ECHO_T}no" >&6; }
7433     fi
7434    
7435    
7436     min_sdl_version=$SDL_VERSION
7437     { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
7438     echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
7439     no_sdl=""
7440     if test "$SDL_CONFIG" = "no" ; then
7441     no_sdl=yes
7442     else
7443     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
7444     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
7445    
7446     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
7447     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7448     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
7449     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7450     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
7451     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7452     if test "x$enable_sdltest" = "xyes" ; then
7453     ac_save_CFLAGS="$CFLAGS"
7454     ac_save_CXXFLAGS="$CXXFLAGS"
7455     ac_save_LIBS="$LIBS"
7456     CFLAGS="$CFLAGS $SDL_CFLAGS"
7457     CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7458     LIBS="$LIBS $SDL_LIBS"
7459     rm -f conf.sdltest
7460     if test "$cross_compiling" = yes; then
7461     echo $ac_n "cross compiling; assumed OK... $ac_c"
7462     else
7463     cat >conftest.$ac_ext <<_ACEOF
7464     /* confdefs.h. */
7465     _ACEOF
7466     cat confdefs.h >>conftest.$ac_ext
7467     cat >>conftest.$ac_ext <<_ACEOF
7468     /* end confdefs.h. */
7469    
7470     #include <stdio.h>
7471     #include <stdlib.h>
7472     #include <string.h>
7473     #include "SDL.h"
7474    
7475     char*
7476     my_strdup (char *str)
7477     {
7478     char *new_str;
7479    
7480     if (str)
7481     {
7482     new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
7483     strcpy (new_str, str);
7484     }
7485     else
7486     new_str = NULL;
7487    
7488     return new_str;
7489     }
7490    
7491     int main (int argc, char *argv[])
7492     {
7493     int major, minor, micro;
7494     char *tmp_version;
7495    
7496     /* This hangs on some systems (?)
7497     system ("touch conf.sdltest");
7498     */
7499     { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
7500    
7501     /* HP/UX 9 (%@#!) writes to sscanf strings */
7502     tmp_version = my_strdup("$min_sdl_version");
7503     if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7504     printf("%s, bad version string\n", "$min_sdl_version");
7505     exit(1);
7506     }
7507    
7508     if (($sdl_major_version > major) ||
7509     (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
7510     (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
7511     {
7512     return 0;
7513     }
7514     else
7515     {
7516     printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
7517     printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
7518     printf("*** best to upgrade to the required version.\n");
7519     printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
7520     printf("*** to point to the correct copy of sdl-config, and remove the file\n");
7521     printf("*** config.cache before re-running configure\n");
7522     return 1;
7523     }
7524     }
7525    
7526    
7527     _ACEOF
7528     rm -f conftest$ac_exeext
7529     if { (ac_try="$ac_link"
7530     case "(($ac_try" in
7531     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532     *) ac_try_echo=$ac_try;;
7533     esac
7534     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535     (eval "$ac_link") 2>&5
7536     ac_status=$?
7537     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7539     { (case "(($ac_try" in
7540     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541     *) ac_try_echo=$ac_try;;
7542     esac
7543     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7544     (eval "$ac_try") 2>&5
7545     ac_status=$?
7546     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547     (exit $ac_status); }; }; then
7548     :
7549     else
7550     echo "$as_me: program exited with status $ac_status" >&5
7551     echo "$as_me: failed program was:" >&5
7552     sed 's/^/| /' conftest.$ac_ext >&5
7553    
7554     ( exit $ac_status )
7555     no_sdl=yes
7556     fi
7557     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7558     fi
7559    
7560    
7561     CFLAGS="$ac_save_CFLAGS"
7562     CXXFLAGS="$ac_save_CXXFLAGS"
7563     LIBS="$ac_save_LIBS"
7564     fi
7565     fi
7566     if test "x$no_sdl" = x ; then
7567     { echo "$as_me:$LINENO: result: yes" >&5
7568     echo "${ECHO_T}yes" >&6; }
7569     :
7570     else
7571     { echo "$as_me:$LINENO: result: no" >&5
7572     echo "${ECHO_T}no" >&6; }
7573     if test "$SDL_CONFIG" = "no" ; then
7574     echo "*** The sdl-config script installed by SDL could not be found"
7575     echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
7576     echo "*** your path, or set the SDL_CONFIG environment variable to the"
7577     echo "*** full path to sdl-config."
7578     else
7579     if test -f conf.sdltest ; then
7580     :
7581     else
7582     echo "*** Could not run SDL test program, checking why..."
7583     CFLAGS="$CFLAGS $SDL_CFLAGS"
7584     CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7585     LIBS="$LIBS $SDL_LIBS"
7586     cat >conftest.$ac_ext <<_ACEOF
7587     /* confdefs.h. */
7588     _ACEOF
7589     cat confdefs.h >>conftest.$ac_ext
7590     cat >>conftest.$ac_ext <<_ACEOF
7591     /* end confdefs.h. */
7592    
7593     #include <stdio.h>
7594     #include "SDL.h"
7595    
7596     int main(int argc, char *argv[])
7597     { return 0; }
7598     #undef main
7599     #define main K_and_R_C_main
7600    
7601     int
7602     main ()
7603     {
7604     return 0;
7605     ;
7606     return 0;
7607     }
7608     _ACEOF
7609     rm -f conftest.$ac_objext conftest$ac_exeext
7610     if { (ac_try="$ac_link"
7611     case "(($ac_try" in
7612     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7613     *) ac_try_echo=$ac_try;;
7614     esac
7615     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7616     (eval "$ac_link") 2>conftest.er1
7617     ac_status=$?
7618     grep -v '^ *+' conftest.er1 >conftest.err
7619     rm -f conftest.er1
7620     cat conftest.err >&5
7621     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622     (exit $ac_status); } && {
7623     test -z "$ac_c_werror_flag" ||
7624     test ! -s conftest.err
7625     } && test -s conftest$ac_exeext &&
7626     $as_test_x conftest$ac_exeext; then
7627     echo "*** The test program compiled, but did not run. This usually means"
7628     echo "*** that the run-time linker is not finding SDL or finding the wrong"
7629     echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
7630     echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7631     echo "*** to the installed location Also, make sure you have run ldconfig if that"
7632     echo "*** is required on your system"
7633     echo "***"
7634     echo "*** If you have an old version installed, it is best to remove it, although"
7635     echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7636     else
7637     echo "$as_me: failed program was:" >&5
7638     sed 's/^/| /' conftest.$ac_ext >&5
7639    
7640     echo "*** The test program failed to compile or link. See the file config.log for the"
7641     echo "*** exact error that occured. This usually means SDL was incorrectly installed"
7642     echo "*** or that you have moved SDL since it was installed. In the latter case, you"
7643     echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
7644     fi
7645    
7646     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7647     conftest$ac_exeext conftest.$ac_ext
7648     CFLAGS="$ac_save_CFLAGS"
7649     CXXFLAGS="$ac_save_CXXFLAGS"
7650     LIBS="$ac_save_LIBS"
7651     fi
7652     fi
7653     SDL_CFLAGS=""
7654     SDL_LIBS=""
7655     { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
7656     echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
7657     { (exit 1); exit 1; }; }
7658    
7659     fi
7660    
7661    
7662     rm -f conf.sdltest
7663    
7664    
7665     SDL_CFLAGS=`echo "$SDL_CFLAGS" | sed 's/-Dmain=SDL_main//'`
7666     SDL_LIBS=`echo "$SDL_LIBS" | sed 's/-mwindows//' | sed 's/-lmingw32//'`
7667     LDFLAGS="$LDFLAGS $SDL_LIBS"
7668     PPC_CFLAGS="$PPC_CFLAGS $SDL_CFLAGS"
7669     PPC_CXXFLAGS="$PPC_CXXFLAGS $SDL_CFLAGS"
7670     PPC_LDADD="$PPC_LDADD $SDL_LIBS"
7671     PPC_LDFLAGS="$PPC_LDFLAGS $SDL_LIBS"
7672     ;;
7673     win32)
7674     ;;
7675     *)
7676     { { echo "$as_me:$LINENO: error: Invalid parameter to --enable-ui: '$enable_ui'. Run './configure --help' for a list of valid parameters." >&5
7677     echo "$as_me: error: Invalid parameter to --enable-ui: '$enable_ui'. Run './configure --help' for a list of valid parameters." >&2;}
7678     { (exit 1); exit 1; }; }
7679     ;;
7680     esac
7681    
7682    
7683    
7684     if test x$ARCH_DIR = xx86; then
7685     USE_ARCH_X86_TRUE=
7686     USE_ARCH_X86_FALSE='#'
7687     else
7688     USE_ARCH_X86_TRUE='#'
7689     USE_ARCH_X86_FALSE=
7690     fi
7691    
7692    
7693    
7694     if test x$ARCH_DIR = xgeneric; then
7695     USE_ARCH_GENERIC_TRUE=
7696     USE_ARCH_GENERIC_FALSE='#'
7697     else
7698     USE_ARCH_GENERIC_TRUE='#'
7699     USE_ARCH_GENERIC_FALSE=
7700     fi
7701    
7702    
7703    
7704    
7705     if test x$UI_DIR = xqt; then
7706     USE_UI_QT_TRUE=
7707     USE_UI_QT_FALSE='#'
7708     else
7709     USE_UI_QT_TRUE='#'
7710     USE_UI_QT_FALSE=
7711     fi
7712    
7713    
7714    
7715     if test x$UI_DIR = xgtk; then
7716     USE_UI_GTK_TRUE=
7717     USE_UI_GTK_FALSE='#'
7718     else
7719     USE_UI_GTK_TRUE='#'
7720     USE_UI_GTK_FALSE=
7721     fi
7722    
7723    
7724    
7725     if test x$UI_DIR = xbeos; then
7726     USE_UI_BEOS_TRUE=
7727     USE_UI_BEOS_FALSE='#'
7728     else
7729     USE_UI_BEOS_TRUE='#'
7730     USE_UI_BEOS_FALSE=
7731     fi
7732    
7733    
7734    
7735     if test x$UI_DIR = xsdl; then
7736     USE_UI_SDL_TRUE=
7737     USE_UI_SDL_FALSE='#'
7738     else
7739     USE_UI_SDL_TRUE='#'
7740     USE_UI_SDL_FALSE=
7741     fi
7742    
7743    
7744    
7745     if test x$UI_DIR = xwin32; then
7746     USE_UI_WIN32_TRUE=
7747     USE_UI_WIN32_FALSE='#'
7748     else
7749     USE_UI_WIN32_TRUE='#'
7750     USE_UI_WIN32_FALSE=
7751     fi
7752    
7753    
7754    
7755     if test x$UI_DIR = xx11; then
7756     USE_UI_X11_TRUE=
7757     USE_UI_X11_FALSE='#'
7758     else
7759     USE_UI_X11_TRUE='#'
7760     USE_UI_X11_FALSE=
7761     fi
7762    
7763    
7764    
7765    
7766    
7767     for ac_func in gettimeofday memset setenv
7768     do
7769     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7770     { echo "$as_me:$LINENO: checking for $ac_func" >&5
7771     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7772     if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7773     echo $ECHO_N "(cached) $ECHO_C" >&6
7774     else
7775     cat >conftest.$ac_ext <<_ACEOF
7776     /* confdefs.h. */
7777     _ACEOF
7778     cat confdefs.h >>conftest.$ac_ext
7779     cat >>conftest.$ac_ext <<_ACEOF
7780     /* end confdefs.h. */
7781     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7782     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7783     #define $ac_func innocuous_$ac_func
7784    
7785     /* System header to define __stub macros and hopefully few prototypes,
7786     which can conflict with char $ac_func (); below.
7787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7788     <limits.h> exists even on freestanding compilers. */
7789    
7790     #ifdef __STDC__
7791     # include <limits.h>
7792     #else
7793     # include <assert.h>
7794     #endif
7795    
7796     #undef $ac_func
7797    
7798     /* Override any GCC internal prototype to avoid an error.
7799     Use char because int might match the return type of a GCC
7800     builtin and then its argument prototype would still apply. */
7801     #ifdef __cplusplus
7802     extern "C"
7803     #endif
7804     char $ac_func ();
7805     /* The GNU C library defines this for functions which it implements
7806     to always fail with ENOSYS. Some functions are actually named
7807     something starting with __ and the normal name is an alias. */
7808     #if defined __stub_$ac_func || defined __stub___$ac_func
7809     choke me
7810     #endif
7811    
7812     int
7813     main ()
7814     {
7815     return $ac_func ();
7816     ;
7817     return 0;
7818     }
7819     _ACEOF
7820     rm -f conftest.$ac_objext conftest$ac_exeext
7821     if { (ac_try="$ac_link"
7822     case "(($ac_try" in
7823     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824     *) ac_try_echo=$ac_try;;
7825     esac
7826     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827     (eval "$ac_link") 2>conftest.er1
7828     ac_status=$?
7829     grep -v '^ *+' conftest.er1 >conftest.err
7830     rm -f conftest.er1
7831     cat conftest.err >&5
7832     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833     (exit $ac_status); } && {
7834     test -z "$ac_c_werror_flag" ||
7835     test ! -s conftest.err
7836     } && test -s conftest$ac_exeext &&
7837     $as_test_x conftest$ac_exeext; then
7838     eval "$as_ac_var=yes"
7839     else
7840     echo "$as_me: failed program was:" >&5
7841     sed 's/^/| /' conftest.$ac_ext >&5
7842    
7843     eval "$as_ac_var=no"
7844     fi
7845    
7846     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7847     conftest$ac_exeext conftest.$ac_ext
7848     fi
7849     ac_res=`eval echo '${'$as_ac_var'}'`
7850     { echo "$as_me:$LINENO: result: $ac_res" >&5
7851     echo "${ECHO_T}$ac_res" >&6; }
7852     if test `eval echo '${'$as_ac_var'}'` = yes; then
7853     cat >>confdefs.h <<_ACEOF
7854     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7855     _ACEOF
7856    
7857     fi
7858     done
7859    
7860    
7861    
7862     for ac_func in log2
7863     do
7864     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7865     { echo "$as_me:$LINENO: checking for $ac_func" >&5
7866     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7867     if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7868     echo $ECHO_N "(cached) $ECHO_C" >&6
7869     else
7870     cat >conftest.$ac_ext <<_ACEOF
7871     /* confdefs.h. */
7872     _ACEOF
7873     cat confdefs.h >>conftest.$ac_ext
7874     cat >>conftest.$ac_ext <<_ACEOF
7875     /* end confdefs.h. */
7876     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7877     For example, HP-UX 11i <limits.h> declares gettimeofday. */
7878     #define $ac_func innocuous_$ac_func
7879    
7880     /* System header to define __stub macros and hopefully few prototypes,
7881     which can conflict with char $ac_func (); below.
7882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7883     <limits.h> exists even on freestanding compilers. */
7884    
7885     #ifdef __STDC__
7886     # include <limits.h>
7887     #else
7888     # include <assert.h>
7889     #endif
7890    
7891     #undef $ac_func
7892    
7893     /* Override any GCC internal prototype to avoid an error.
7894     Use char because int might match the return type of a GCC
7895     builtin and then its argument prototype would still apply. */
7896     #ifdef __cplusplus
7897     extern "C"
7898     #endif
7899     char $ac_func ();
7900     /* The GNU C library defines this for functions which it implements
7901     to always fail with ENOSYS. Some functions are actually named
7902     something starting with __ and the normal name is an alias. */
7903     #if defined __stub_$ac_func || defined __stub___$ac_func
7904     choke me
7905     #endif
7906    
7907     int
7908     main ()
7909     {
7910     return $ac_func ();
7911     ;
7912     return 0;
7913     }
7914     _ACEOF
7915     rm -f conftest.$ac_objext conftest$ac_exeext
7916     if { (ac_try="$ac_link"
7917     case "(($ac_try" in
7918     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919     *) ac_try_echo=$ac_try;;
7920     esac
7921     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922     (eval "$ac_link") 2>conftest.er1
7923     ac_status=$?
7924     grep -v '^ *+' conftest.er1 >conftest.err
7925     rm -f conftest.er1
7926     cat conftest.err >&5
7927     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928     (exit $ac_status); } && {
7929     test -z "$ac_c_werror_flag" ||
7930     test ! -s conftest.err
7931     } && test -s conftest$ac_exeext &&
7932     $as_test_x conftest$ac_exeext; then
7933     eval "$as_ac_var=yes"
7934     else
7935     echo "$as_me: failed program was:" >&5
7936     sed 's/^/| /' conftest.$ac_ext >&5
7937    
7938     eval "$as_ac_var=no"
7939     fi
7940    
7941     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7942     conftest$ac_exeext conftest.$ac_ext
7943     fi
7944     ac_res=`eval echo '${'$as_ac_var'}'`
7945     { echo "$as_me:$LINENO: result: $ac_res" >&5
7946     echo "${ECHO_T}$ac_res" >&6; }
7947     if test `eval echo '${'$as_ac_var'}'` = yes; then
7948     cat >>confdefs.h <<_ACEOF
7949     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7950     _ACEOF
7951    
7952     else
7953     { echo "$as_me:$LINENO: checking for log2 in math.h" >&5
7954     echo $ECHO_N "checking for log2 in math.h... $ECHO_C" >&6; }
7955     cat >conftest.$ac_ext <<_ACEOF
7956     /* confdefs.h. */
7957     _ACEOF
7958     cat confdefs.h >>conftest.$ac_ext
7959     cat >>conftest.$ac_ext <<_ACEOF
7960     /* end confdefs.h. */
7961     #include <math.h>
7962     int
7963     main ()
7964     {
7965     log2(1.0);
7966     ;
7967     return 0;
7968     }
7969     _ACEOF
7970     rm -f conftest.$ac_objext conftest$ac_exeext
7971     if { (ac_try="$ac_link"
7972     case "(($ac_try" in
7973     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974     *) ac_try_echo=$ac_try;;
7975     esac
7976     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977     (eval "$ac_link") 2>conftest.er1
7978     ac_status=$?
7979     grep -v '^ *+' conftest.er1 >conftest.err
7980     rm -f conftest.er1
7981     cat conftest.err >&5
7982     echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983     (exit $ac_status); } && {
7984     test -z "$ac_c_werror_flag" ||
7985     test ! -s conftest.err
7986     } && test -s conftest$ac_exeext &&
7987     $as_test_x conftest$ac_exeext; then
7988     cat >>confdefs.h <<\_ACEOF
7989     #define HAVE_LOG2 1
7990     _ACEOF
7991     { echo "$as_me:$LINENO: result: yes" >&5
7992     echo "${ECHO_T}yes" >&6; }
7993     else
7994     echo "$as_me: failed program was:" >&5
7995     sed 's/^/| /' conftest.$ac_ext >&5
7996    
7997     { echo "$as_me:$LINENO: result: no" >&5
7998     echo "${ECHO_T}no" >&6; }
7999     fi
8000    
8001     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8002     conftest$ac_exeext conftest.$ac_ext
8003     fi
8004     done
8005    
8006    
8007    
8008     for ac_func in exp2
8009     do
8010     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8011     { echo "$as_me:$LINENO: checking for $ac_func" >&5
8012     echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8013     if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8014     echo $ECHO_N "(cached) $ECHO_C" >&6
8015     else
8016     cat >conftest.$ac_ext <<_ACEOF
8017     /* confdefs.h. */
8018     _ACEOF
8019     cat confdefs.h >>conftest.$ac_ext
8020     cat >>conftest.$ac_ext <<_ACEOF
8021     /* end confdefs.h. */
8022     /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8023     For example, HP-UX 11i <limits.h> declares gettimeofday. */
8024     #define $ac_func innocuous_$ac_func
8025    
8026     /* System header to define __stub macros and hopefully few prototypes,
8027     which can conflict with char $ac_func (); below.
8028     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8029     <limits.h> exists even on freestanding compilers. */
8030    
8031     #ifdef __STDC__
8032     # include <limits.h>
8033     #else
8034     # include <assert.h>
8035     #endif
8036    
8037     #undef $ac_func
8038    
8039     /* Override any GCC internal prototype to avoid an error.
8040     Use char because int might match the return type of a GCC
8041     builtin and then its argument prototype would still apply. */
8042     #ifdef __cplusplus
8043     extern "C"
8044     #endif
8045     char $ac_func ();
8046     /* The GNU C library defines this for functions which it implements
8047     to always fail with ENOSYS. Some functions are actually named
8048     something starting with __ and the normal name is an alias. */
8049     #if defined __stub_$ac_func || defined __stub___$ac_func
8050     choke me
8051     #endif
8052    
8053     int
8054     main ()
8055     {
8056     return $ac_func ();
8057     ;
8058     return 0;
8059     }
8060     _ACEOF
8061     rm -f conftest.$ac_objext conftest$ac_exeext
8062     if { (ac_try="$ac_link"
8063     case "(($ac_try" in
8064     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065     *) ac_try_echo=$ac_try;;
8066     esac
8067     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068     (eval "$ac_link") 2>conftest.er1
8069     ac_status=$?
8070     grep -v '^ *+' conftest.er1 >conftest.err
8071     rm -f conftest.er1
8072     cat conftest.err >&5
8073     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074     (exit $ac_status); } && {
8075     test -z "$ac_c_werror_flag" ||
8076     test ! -s conftest.err
8077     } && test -s conftest$ac_exeext &&
8078     $as_test_x conftest$ac_exeext; then
8079     eval "$as_ac_var=yes"
8080     else
8081     echo "$as_me: failed program was:" >&5
8082     sed 's/^/| /' conftest.$ac_ext >&5
8083    
8084     eval "$as_ac_var=no"
8085     fi
8086    
8087     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8088     conftest$ac_exeext conftest.$ac_ext
8089     fi
8090     ac_res=`eval echo '${'$as_ac_var'}'`
8091     { echo "$as_me:$LINENO: result: $ac_res" >&5
8092     echo "${ECHO_T}$ac_res" >&6; }
8093     if test `eval echo '${'$as_ac_var'}'` = yes; then
8094     cat >>confdefs.h <<_ACEOF
8095     #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8096     _ACEOF
8097    
8098     else
8099     { echo "$as_me:$LINENO: checking for exp2 in math.h" >&5
8100     echo $ECHO_N "checking for exp2 in math.h... $ECHO_C" >&6; }
8101     cat >conftest.$ac_ext <<_ACEOF
8102     /* confdefs.h. */
8103     _ACEOF
8104     cat confdefs.h >>conftest.$ac_ext
8105     cat >>conftest.$ac_ext <<_ACEOF
8106     /* end confdefs.h. */
8107     #include <math.h>
8108     int
8109     main ()
8110     {
8111     exp2(0.0);
8112     ;
8113     return 0;
8114     }
8115     _ACEOF
8116     rm -f conftest.$ac_objext conftest$ac_exeext
8117     if { (ac_try="$ac_link"
8118     case "(($ac_try" in
8119     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120     *) ac_try_echo=$ac_try;;
8121     esac
8122     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123     (eval "$ac_link") 2>conftest.er1
8124     ac_status=$?
8125     grep -v '^ *+' conftest.er1 >conftest.err
8126     rm -f conftest.er1
8127     cat conftest.err >&5
8128     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129     (exit $ac_status); } && {
8130     test -z "$ac_c_werror_flag" ||
8131     test ! -s conftest.err
8132     } && test -s conftest$ac_exeext &&
8133     $as_test_x conftest$ac_exeext; then
8134     cat >>confdefs.h <<\_ACEOF
8135     #define HAVE_EXP2 1
8136     _ACEOF
8137     { echo "$as_me:$LINENO: result: yes" >&5
8138     echo "${ECHO_T}yes" >&6; }
8139     else
8140     echo "$as_me: failed program was:" >&5
8141     sed 's/^/| /' conftest.$ac_ext >&5
8142    
8143     { echo "$as_me:$LINENO: result: no" >&5
8144     echo "${ECHO_T}no" >&6; }
8145     fi
8146    
8147     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8148     conftest$ac_exeext conftest.$ac_ext
8149     fi
8150     done
8151    
8152    
8153     { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8154     echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8155     if test "${ac_cv_header_stdc+set}" = set; then
8156     echo $ECHO_N "(cached) $ECHO_C" >&6
8157     else
8158     cat >conftest.$ac_ext <<_ACEOF
8159     /* confdefs.h. */
8160     _ACEOF
8161     cat confdefs.h >>conftest.$ac_ext
8162     cat >>conftest.$ac_ext <<_ACEOF
8163     /* end confdefs.h. */
8164     #include <stdlib.h>
8165     #include <stdarg.h>
8166     #include <string.h>
8167     #include <float.h>
8168    
8169     int
8170     main ()
8171     {
8172    
8173     ;
8174     return 0;
8175     }
8176     _ACEOF
8177     rm -f conftest.$ac_objext
8178     if { (ac_try="$ac_compile"
8179     case "(($ac_try" in
8180     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181     *) ac_try_echo=$ac_try;;
8182     esac
8183     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184     (eval "$ac_compile") 2>conftest.er1
8185     ac_status=$?
8186     grep -v '^ *+' conftest.er1 >conftest.err
8187     rm -f conftest.er1
8188     cat conftest.err >&5
8189     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190     (exit $ac_status); } && {
8191     test -z "$ac_c_werror_flag" ||
8192     test ! -s conftest.err
8193     } && test -s conftest.$ac_objext; then
8194     ac_cv_header_stdc=yes
8195     else
8196     echo "$as_me: failed program was:" >&5
8197     sed 's/^/| /' conftest.$ac_ext >&5
8198    
8199     ac_cv_header_stdc=no
8200     fi
8201    
8202     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8203    
8204     if test $ac_cv_header_stdc = yes; then
8205     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8206     cat >conftest.$ac_ext <<_ACEOF
8207     /* confdefs.h. */
8208     _ACEOF
8209     cat confdefs.h >>conftest.$ac_ext
8210     cat >>conftest.$ac_ext <<_ACEOF
8211     /* end confdefs.h. */
8212     #include <string.h>
8213    
8214     _ACEOF
8215     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8216     $EGREP "memchr" >/dev/null 2>&1; then
8217     :
8218     else
8219     ac_cv_header_stdc=no
8220     fi
8221     rm -f conftest*
8222    
8223     fi
8224    
8225     if test $ac_cv_header_stdc = yes; then
8226     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8227     cat >conftest.$ac_ext <<_ACEOF
8228     /* confdefs.h. */
8229     _ACEOF
8230     cat confdefs.h >>conftest.$ac_ext
8231     cat >>conftest.$ac_ext <<_ACEOF
8232     /* end confdefs.h. */
8233     #include <stdlib.h>
8234    
8235     _ACEOF
8236     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8237     $EGREP "free" >/dev/null 2>&1; then
8238     :
8239     else
8240     ac_cv_header_stdc=no
8241     fi
8242     rm -f conftest*
8243    
8244     fi
8245    
8246     if test $ac_cv_header_stdc = yes; then
8247     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8248     if test "$cross_compiling" = yes; then
8249     :
8250     else
8251     cat >conftest.$ac_ext <<_ACEOF
8252     /* confdefs.h. */
8253     _ACEOF
8254     cat confdefs.h >>conftest.$ac_ext
8255     cat >>conftest.$ac_ext <<_ACEOF
8256     /* end confdefs.h. */
8257     #include <ctype.h>
8258     #include <stdlib.h>
8259     #if ((' ' & 0x0FF) == 0x020)
8260     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8261     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8262     #else
8263     # define ISLOWER(c) \
8264     (('a' <= (c) && (c) <= 'i') \
8265     || ('j' <= (c) && (c) <= 'r') \
8266     || ('s' <= (c) && (c) <= 'z'))
8267     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8268     #endif
8269    
8270     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8271     int
8272     main ()
8273     {
8274     int i;
8275     for (i = 0; i < 256; i++)
8276     if (XOR (islower (i), ISLOWER (i))
8277     || toupper (i) != TOUPPER (i))
8278     return 2;
8279     return 0;
8280     }
8281     _ACEOF
8282     rm -f conftest$ac_exeext
8283     if { (ac_try="$ac_link"
8284     case "(($ac_try" in
8285     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286     *) ac_try_echo=$ac_try;;
8287     esac
8288     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289     (eval "$ac_link") 2>&5
8290     ac_status=$?
8291     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8293     { (case "(($ac_try" in
8294     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295     *) ac_try_echo=$ac_try;;
8296     esac
8297     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298     (eval "$ac_try") 2>&5
8299     ac_status=$?
8300     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301     (exit $ac_status); }; }; then
8302     :
8303     else
8304     echo "$as_me: program exited with status $ac_status" >&5
8305     echo "$as_me: failed program was:" >&5
8306     sed 's/^/| /' conftest.$ac_ext >&5
8307    
8308     ( exit $ac_status )
8309     ac_cv_header_stdc=no
8310     fi
8311     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8312     fi
8313    
8314    
8315     fi
8316     fi
8317     { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8318     echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8319     if test $ac_cv_header_stdc = yes; then
8320    
8321     cat >>confdefs.h <<\_ACEOF
8322     #define STDC_HEADERS 1
8323     _ACEOF
8324    
8325     fi
8326    
8327    
8328     for ac_header in pthread.h
8329     do
8330     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8331     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8332     { echo "$as_me:$LINENO: checking for $ac_header" >&5
8333     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8334     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8335     echo $ECHO_N "(cached) $ECHO_C" >&6
8336     fi
8337     ac_res=`eval echo '${'$as_ac_Header'}'`
8338     { echo "$as_me:$LINENO: result: $ac_res" >&5
8339     echo "${ECHO_T}$ac_res" >&6; }
8340     else
8341     # Is the header compilable?
8342     { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8343     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8344     cat >conftest.$ac_ext <<_ACEOF
8345     /* confdefs.h. */
8346     _ACEOF
8347     cat confdefs.h >>conftest.$ac_ext
8348     cat >>conftest.$ac_ext <<_ACEOF
8349     /* end confdefs.h. */
8350     $ac_includes_default
8351     #include <$ac_header>
8352     _ACEOF
8353     rm -f conftest.$ac_objext
8354     if { (ac_try="$ac_compile"
8355     case "(($ac_try" in
8356     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357     *) ac_try_echo=$ac_try;;
8358     esac
8359     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360     (eval "$ac_compile") 2>conftest.er1
8361     ac_status=$?
8362     grep -v '^ *+' conftest.er1 >conftest.err
8363     rm -f conftest.er1
8364     cat conftest.err >&5
8365     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366     (exit $ac_status); } && {
8367     test -z "$ac_c_werror_flag" ||
8368     test ! -s conftest.err
8369     } && test -s conftest.$ac_objext; then
8370     ac_header_compiler=yes
8371     else
8372     echo "$as_me: failed program was:" >&5
8373     sed 's/^/| /' conftest.$ac_ext >&5
8374    
8375     ac_header_compiler=no
8376     fi
8377    
8378     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8380     echo "${ECHO_T}$ac_header_compiler" >&6; }
8381    
8382     # Is the header present?
8383     { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8384     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8385     cat >conftest.$ac_ext <<_ACEOF
8386     /* confdefs.h. */
8387     _ACEOF
8388     cat confdefs.h >>conftest.$ac_ext
8389     cat >>conftest.$ac_ext <<_ACEOF
8390     /* end confdefs.h. */
8391     #include <$ac_header>
8392     _ACEOF
8393     if { (ac_try="$ac_cpp conftest.$ac_ext"
8394     case "(($ac_try" in
8395     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396     *) ac_try_echo=$ac_try;;
8397     esac
8398     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8400     ac_status=$?
8401     grep -v '^ *+' conftest.er1 >conftest.err
8402     rm -f conftest.er1
8403     cat conftest.err >&5
8404     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405     (exit $ac_status); } >/dev/null && {
8406     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8407     test ! -s conftest.err
8408     }; then
8409     ac_header_preproc=yes
8410     else
8411     echo "$as_me: failed program was:" >&5
8412     sed 's/^/| /' conftest.$ac_ext >&5
8413    
8414     ac_header_preproc=no
8415     fi
8416    
8417     rm -f conftest.err conftest.$ac_ext
8418     { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8419     echo "${ECHO_T}$ac_header_preproc" >&6; }
8420    
8421     # So? What about this header?
8422     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8423     yes:no: )
8424     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8425     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8427     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8428     ac_header_preproc=yes
8429     ;;
8430     no:yes:* )
8431     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8432     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8433     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8434     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8435     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8436     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8437     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8438     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8440     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8441     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8442     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8443    
8444     ;;
8445     esac
8446     { echo "$as_me:$LINENO: checking for $ac_header" >&5
8447     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8448     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8449     echo $ECHO_N "(cached) $ECHO_C" >&6
8450     else
8451     eval "$as_ac_Header=\$ac_header_preproc"
8452     fi
8453     ac_res=`eval echo '${'$as_ac_Header'}'`
8454     { echo "$as_me:$LINENO: result: $ac_res" >&5
8455     echo "${ECHO_T}$ac_res" >&6; }
8456    
8457     fi
8458     if test `eval echo '${'$as_ac_Header'}'` = yes; then
8459     cat >>confdefs.h <<_ACEOF
8460     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8461     _ACEOF
8462    
8463     cat >>confdefs.h <<\_ACEOF
8464     #define PTHREAD_HDR <pthread.h>
8465     _ACEOF
8466    
8467     fi
8468    
8469     done
8470    
8471    
8472     for ac_header in sys/socket.h
8473     do
8474     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8475     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8476     { echo "$as_me:$LINENO: checking for $ac_header" >&5
8477     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8478     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8479     echo $ECHO_N "(cached) $ECHO_C" >&6
8480     fi
8481     ac_res=`eval echo '${'$as_ac_Header'}'`
8482     { echo "$as_me:$LINENO: result: $ac_res" >&5
8483     echo "${ECHO_T}$ac_res" >&6; }
8484     else
8485     # Is the header compilable?
8486     { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8487     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8488     cat >conftest.$ac_ext <<_ACEOF
8489     /* confdefs.h. */
8490     _ACEOF
8491     cat confdefs.h >>conftest.$ac_ext
8492     cat >>conftest.$ac_ext <<_ACEOF
8493     /* end confdefs.h. */
8494     $ac_includes_default
8495     #include <$ac_header>
8496     _ACEOF
8497     rm -f conftest.$ac_objext
8498     if { (ac_try="$ac_compile"
8499     case "(($ac_try" in
8500     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501     *) ac_try_echo=$ac_try;;
8502     esac
8503     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8504     (eval "$ac_compile") 2>conftest.er1
8505     ac_status=$?
8506     grep -v '^ *+' conftest.er1 >conftest.err
8507     rm -f conftest.er1
8508     cat conftest.err >&5
8509     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510     (exit $ac_status); } && {
8511     test -z "$ac_c_werror_flag" ||
8512     test ! -s conftest.err
8513     } && test -s conftest.$ac_objext; then
8514     ac_header_compiler=yes
8515     else
8516     echo "$as_me: failed program was:" >&5
8517     sed 's/^/| /' conftest.$ac_ext >&5
8518    
8519     ac_header_compiler=no
8520     fi
8521    
8522     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8524     echo "${ECHO_T}$ac_header_compiler" >&6; }
8525    
8526     # Is the header present?
8527     { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8528     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8529     cat >conftest.$ac_ext <<_ACEOF
8530     /* confdefs.h. */
8531     _ACEOF
8532     cat confdefs.h >>conftest.$ac_ext
8533     cat >>conftest.$ac_ext <<_ACEOF
8534     /* end confdefs.h. */
8535     #include <$ac_header>
8536     _ACEOF
8537     if { (ac_try="$ac_cpp conftest.$ac_ext"
8538     case "(($ac_try" in
8539     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540     *) ac_try_echo=$ac_try;;
8541     esac
8542     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8544     ac_status=$?
8545     grep -v '^ *+' conftest.er1 >conftest.err
8546     rm -f conftest.er1
8547     cat conftest.err >&5
8548     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549     (exit $ac_status); } >/dev/null && {
8550     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8551     test ! -s conftest.err
8552     }; then
8553     ac_header_preproc=yes
8554     else
8555     echo "$as_me: failed program was:" >&5
8556     sed 's/^/| /' conftest.$ac_ext >&5
8557    
8558     ac_header_preproc=no
8559     fi
8560    
8561     rm -f conftest.err conftest.$ac_ext
8562     { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8563     echo "${ECHO_T}$ac_header_preproc" >&6; }
8564    
8565     # So? What about this header?
8566     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8567     yes:no: )
8568     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8569     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8571     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8572     ac_header_preproc=yes
8573     ;;
8574     no:yes:* )
8575     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8576     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8577     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8578     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8579     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8580     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8581     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8582     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8584     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8585     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8586     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8587    
8588     ;;
8589     esac
8590     { echo "$as_me:$LINENO: checking for $ac_header" >&5
8591     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8592     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8593     echo $ECHO_N "(cached) $ECHO_C" >&6
8594     else
8595     eval "$as_ac_Header=\$ac_header_preproc"
8596     fi
8597     ac_res=`eval echo '${'$as_ac_Header'}'`
8598     { echo "$as_me:$LINENO: result: $ac_res" >&5
8599     echo "${ECHO_T}$ac_res" >&6; }
8600    
8601     fi
8602     if test `eval echo '${'$as_ac_Header'}'` = yes; then
8603     cat >>confdefs.h <<_ACEOF
8604     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8605     _ACEOF
8606    
8607     fi
8608    
8609     done
8610    
8611    
8612     for ac_header in asm/types.h
8613     do
8614     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8615     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8616     { echo "$as_me:$LINENO: checking for $ac_header" >&5
8617     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8618     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8619     echo $ECHO_N "(cached) $ECHO_C" >&6
8620     fi
8621     ac_res=`eval echo '${'$as_ac_Header'}'`
8622     { echo "$as_me:$LINENO: result: $ac_res" >&5
8623     echo "${ECHO_T}$ac_res" >&6; }
8624     else
8625     # Is the header compilable?
8626     { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8627     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8628     cat >conftest.$ac_ext <<_ACEOF
8629     /* confdefs.h. */
8630     _ACEOF
8631     cat confdefs.h >>conftest.$ac_ext
8632     cat >>conftest.$ac_ext <<_ACEOF
8633     /* end confdefs.h. */
8634     $ac_includes_default
8635     #include <$ac_header>
8636     _ACEOF
8637     rm -f conftest.$ac_objext
8638     if { (ac_try="$ac_compile"
8639     case "(($ac_try" in
8640     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641     *) ac_try_echo=$ac_try;;
8642     esac
8643     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644     (eval "$ac_compile") 2>conftest.er1
8645     ac_status=$?
8646     grep -v '^ *+' conftest.er1 >conftest.err
8647     rm -f conftest.er1
8648     cat conftest.err >&5
8649     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650     (exit $ac_status); } && {
8651     test -z "$ac_c_werror_flag" ||
8652     test ! -s conftest.err
8653     } && test -s conftest.$ac_objext; then
8654     ac_header_compiler=yes
8655     else
8656     echo "$as_me: failed program was:" >&5
8657     sed 's/^/| /' conftest.$ac_ext >&5
8658    
8659     ac_header_compiler=no
8660     fi
8661    
8662     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8664     echo "${ECHO_T}$ac_header_compiler" >&6; }
8665    
8666     # Is the header present?
8667     { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8668     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8669     cat >conftest.$ac_ext <<_ACEOF
8670     /* confdefs.h. */
8671     _ACEOF
8672     cat confdefs.h >>conftest.$ac_ext
8673     cat >>conftest.$ac_ext <<_ACEOF
8674     /* end confdefs.h. */
8675     #include <$ac_header>
8676     _ACEOF
8677     if { (ac_try="$ac_cpp conftest.$ac_ext"
8678     case "(($ac_try" in
8679     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680     *) ac_try_echo=$ac_try;;
8681     esac
8682     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8683     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8684     ac_status=$?
8685     grep -v '^ *+' conftest.er1 >conftest.err
8686     rm -f conftest.er1
8687     cat conftest.err >&5
8688     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689     (exit $ac_status); } >/dev/null && {
8690     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8691     test ! -s conftest.err
8692     }; then
8693     ac_header_preproc=yes
8694     else
8695     echo "$as_me: failed program was:" >&5
8696     sed 's/^/| /' conftest.$ac_ext >&5
8697    
8698     ac_header_preproc=no
8699     fi
8700    
8701     rm -f conftest.err conftest.$ac_ext
8702     { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8703     echo "${ECHO_T}$ac_header_preproc" >&6; }
8704    
8705     # So? What about this header?
8706     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8707     yes:no: )
8708     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8709     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8711     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8712     ac_header_preproc=yes
8713     ;;
8714     no:yes:* )
8715     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8716     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8717     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8718     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8719     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8720     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8721     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8722     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8724     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8725     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8726     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8727    
8728     ;;
8729     esac
8730     { echo "$as_me:$LINENO: checking for $ac_header" >&5
8731     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8732     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8733     echo $ECHO_N "(cached) $ECHO_C" >&6
8734     else
8735     eval "$as_ac_Header=\$ac_header_preproc"
8736     fi
8737     ac_res=`eval echo '${'$as_ac_Header'}'`
8738     { echo "$as_me:$LINENO: result: $ac_res" >&5
8739     echo "${ECHO_T}$ac_res" >&6; }
8740    
8741     fi
8742     if test `eval echo '${'$as_ac_Header'}'` = yes; then
8743     cat >>confdefs.h <<_ACEOF
8744     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8745     _ACEOF
8746    
8747     fi
8748    
8749     done
8750    
8751    
8752     for ac_header in stdint.h
8753     do
8754     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8755     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8756     { echo "$as_me:$LINENO: checking for $ac_header" >&5
8757     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8758     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8759     echo $ECHO_N "(cached) $ECHO_C" >&6
8760     fi
8761     ac_res=`eval echo '${'$as_ac_Header'}'`
8762     { echo "$as_me:$LINENO: result: $ac_res" >&5
8763     echo "${ECHO_T}$ac_res" >&6; }
8764     else
8765     # Is the header compilable?
8766     { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8767     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8768     cat >conftest.$ac_ext <<_ACEOF
8769     /* confdefs.h. */
8770     _ACEOF
8771     cat confdefs.h >>conftest.$ac_ext
8772     cat >>conftest.$ac_ext <<_ACEOF
8773     /* end confdefs.h. */
8774     $ac_includes_default
8775     #include <$ac_header>
8776     _ACEOF
8777     rm -f conftest.$ac_objext
8778     if { (ac_try="$ac_compile"
8779     case "(($ac_try" in
8780     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781     *) ac_try_echo=$ac_try;;
8782     esac
8783     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784     (eval "$ac_compile") 2>conftest.er1
8785     ac_status=$?
8786     grep -v '^ *+' conftest.er1 >conftest.err
8787     rm -f conftest.er1
8788     cat conftest.err >&5
8789     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790     (exit $ac_status); } && {
8791     test -z "$ac_c_werror_flag" ||
8792     test ! -s conftest.err
8793     } && test -s conftest.$ac_objext; then
8794     ac_header_compiler=yes
8795     else
8796     echo "$as_me: failed program was:" >&5
8797     sed 's/^/| /' conftest.$ac_ext >&5
8798    
8799     ac_header_compiler=no
8800     fi
8801    
8802     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8803     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8804     echo "${ECHO_T}$ac_header_compiler" >&6; }
8805    
8806     # Is the header present?
8807     { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8808     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8809     cat >conftest.$ac_ext <<_ACEOF
8810     /* confdefs.h. */
8811     _ACEOF
8812     cat confdefs.h >>conftest.$ac_ext
8813     cat >>conftest.$ac_ext <<_ACEOF
8814     /* end confdefs.h. */
8815     #include <$ac_header>
8816     _ACEOF
8817     if { (ac_try="$ac_cpp conftest.$ac_ext"
8818     case "(($ac_try" in
8819     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820     *) ac_try_echo=$ac_try;;
8821     esac
8822     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8824     ac_status=$?
8825     grep -v '^ *+' conftest.er1 >conftest.err
8826     rm -f conftest.er1
8827     cat conftest.err >&5
8828     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829     (exit $ac_status); } >/dev/null && {
8830     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8831     test ! -s conftest.err
8832     }; then
8833     ac_header_preproc=yes
8834     else
8835     echo "$as_me: failed program was:" >&5
8836     sed 's/^/| /' conftest.$ac_ext >&5
8837    
8838     ac_header_preproc=no
8839     fi
8840    
8841     rm -f conftest.err conftest.$ac_ext
8842     { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8843     echo "${ECHO_T}$ac_header_preproc" >&6; }
8844    
8845     # So? What about this header?
8846     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8847     yes:no: )
8848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8849     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8851     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8852     ac_header_preproc=yes
8853     ;;
8854     no:yes:* )
8855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8856     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8857     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8858     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8859     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8860     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8861     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8862     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8863     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8864     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8865     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8866     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8867    
8868     ;;
8869     esac
8870     { echo "$as_me:$LINENO: checking for $ac_header" >&5
8871     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8872     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8873     echo $ECHO_N "(cached) $ECHO_C" >&6
8874     else
8875     eval "$as_ac_Header=\$ac_header_preproc"
8876     fi
8877     ac_res=`eval echo '${'$as_ac_Header'}'`
8878     { echo "$as_me:$LINENO: result: $ac_res" >&5
8879     echo "${ECHO_T}$ac_res" >&6; }
8880    
8881     fi
8882     if test `eval echo '${'$as_ac_Header'}'` = yes; then
8883     cat >>confdefs.h <<_ACEOF
8884     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8885     _ACEOF
8886    
8887     fi
8888    
8889     done
8890    
8891    
8892     case "$target_os" in
8893     linux*)
8894    
8895     for ac_header in asm/types.h
8896     do
8897     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8898     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8899     { echo "$as_me:$LINENO: checking for $ac_header" >&5
8900     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8901     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8902     echo $ECHO_N "(cached) $ECHO_C" >&6
8903     fi
8904     ac_res=`eval echo '${'$as_ac_Header'}'`
8905     { echo "$as_me:$LINENO: result: $ac_res" >&5
8906     echo "${ECHO_T}$ac_res" >&6; }
8907     else
8908     # Is the header compilable?
8909     { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8910     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8911     cat >conftest.$ac_ext <<_ACEOF
8912     /* confdefs.h. */
8913     _ACEOF
8914     cat confdefs.h >>conftest.$ac_ext
8915     cat >>conftest.$ac_ext <<_ACEOF
8916     /* end confdefs.h. */
8917     $ac_includes_default
8918     #include <$ac_header>
8919     _ACEOF
8920     rm -f conftest.$ac_objext
8921     if { (ac_try="$ac_compile"
8922     case "(($ac_try" in
8923     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924     *) ac_try_echo=$ac_try;;
8925     esac
8926     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8927     (eval "$ac_compile") 2>conftest.er1
8928     ac_status=$?
8929     grep -v '^ *+' conftest.er1 >conftest.err
8930     rm -f conftest.er1
8931     cat conftest.err >&5
8932     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933     (exit $ac_status); } && {
8934     test -z "$ac_c_werror_flag" ||
8935     test ! -s conftest.err
8936     } && test -s conftest.$ac_objext; then
8937     ac_header_compiler=yes
8938     else
8939     echo "$as_me: failed program was:" >&5
8940     sed 's/^/| /' conftest.$ac_ext >&5
8941    
8942     ac_header_compiler=no
8943     fi
8944    
8945     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8947     echo "${ECHO_T}$ac_header_compiler" >&6; }
8948    
8949     # Is the header present?
8950     { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8951     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8952     cat >conftest.$ac_ext <<_ACEOF
8953     /* confdefs.h. */
8954     _ACEOF
8955     cat confdefs.h >>conftest.$ac_ext
8956     cat >>conftest.$ac_ext <<_ACEOF
8957     /* end confdefs.h. */
8958     #include <$ac_header>
8959     _ACEOF
8960     if { (ac_try="$ac_cpp conftest.$ac_ext"
8961     case "(($ac_try" in
8962     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963     *) ac_try_echo=$ac_try;;
8964     esac
8965     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8967     ac_status=$?
8968     grep -v '^ *+' conftest.er1 >conftest.err
8969     rm -f conftest.er1
8970     cat conftest.err >&5
8971     echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972     (exit $ac_status); } >/dev/null && {
8973     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8974     test ! -s conftest.err
8975     }; then
8976     ac_header_preproc=yes
8977     else
8978     echo "$as_me: failed program was:" >&5
8979     sed 's/^/| /' conftest.$ac_ext >&5
8980    
8981     ac_header_preproc=no
8982     fi
8983    
8984     rm -f conftest.err conftest.$ac_ext
8985     { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8986     echo "${ECHO_T}$ac_header_preproc" >&6; }
8987    
8988     # So? What about this header?
8989     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8990     yes:no: )
8991     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8992     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8994     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8995     ac_header_preproc=yes
8996     ;;
8997     no:yes:* )
8998     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8999     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9000     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9001     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9002     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9003     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9004     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9005     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9007     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9008     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9009     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9010    
9011     ;;
9012     esac
9013     { echo "$as_me:$LINENO: checking for $ac_header" >&5
9014     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9015     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9016     echo $ECHO_N "(cached) $ECHO_C" >&6
9017     else
9018     eval "$as_ac_Header=\$ac_header_preproc"
9019     fi
9020     ac_res=`eval echo '${'$as_ac_Header'}'`
9021     { echo "$as_me:$LINENO: result: $ac_res" >&5
9022     echo "${ECHO_T}$ac_res" >&6; }
9023    
9024     fi
9025     if test `eval echo '${'$as_ac_Header'}'` = yes; then
9026     cat >>confdefs.h <<_ACEOF
9027     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9028     _ACEOF
9029    
9030     fi
9031    
9032     done
9033    
9034    
9035    
9036     for ac_header in linux/netlink.h
9037     do
9038     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9039     { echo "$as_me:$LINENO: checking for $ac_header" >&5
9040     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9041     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9042     echo $ECHO_N "(cached) $ECHO_C" >&6
9043     else
9044     cat >conftest.$ac_ext <<_ACEOF
9045     /* confdefs.h. */
9046     _ACEOF
9047     cat confdefs.h >>conftest.$ac_ext
9048     cat >>conftest.$ac_ext <<_ACEOF
9049     /* end confdefs.h. */
9050    
9051     #if HAVE_ASM_TYPES_H
9052     # include <asm/types.h>
9053     #endif
9054     #if HAVE_SYS_SOCKET_H
9055     # include <sys/socket.h>
9056     #endif
9057    
9058    
9059     #include <$ac_header>
9060     _ACEOF
9061     rm -f conftest.$ac_objext
9062     if { (ac_try="$ac_compile"
9063     case "(($ac_try" in
9064     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065     *) ac_try_echo=$ac_try;;
9066     esac
9067     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9068     (eval "$ac_compile") 2>conftest.er1
9069     ac_status=$?
9070     grep -v '^ *+' conftest.er1 >conftest.err
9071     rm -f conftest.er1
9072     cat conftest.err >&5
9073     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074     (exit $ac_status); } && {
9075     test -z "$ac_c_werror_flag" ||
9076     test ! -s conftest.err
9077     } && test -s conftest.$ac_objext; then
9078     eval "$as_ac_Header=yes"
9079     else
9080     echo "$as_me: failed program was:" >&5
9081     sed 's/^/| /' conftest.$ac_ext >&5
9082    
9083     eval "$as_ac_Header=no"
9084     fi
9085    
9086     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9087     fi
9088     ac_res=`eval echo '${'$as_ac_Header'}'`
9089     { echo "$as_me:$LINENO: result: $ac_res" >&5
9090     echo "${ECHO_T}$ac_res" >&6; }
9091     if test `eval echo '${'$as_ac_Header'}'` = yes; then
9092     cat >>confdefs.h <<_ACEOF
9093     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9094     _ACEOF
9095    
9096     cat >>confdefs.h <<\_ACEOF
9097     #define HAVE_LINUX_TUN 1
9098     _ACEOF
9099    
9100     fi
9101    
9102     done
9103    
9104     ;;
9105     beos*)
9106     echo "BEOS CFLAGS=$CFLAGS"
9107     echo "BEOS CPPFLAGS=$CPPFLAGS"
9108     echo "BEOS CXFLAGS=$CXXFLAGS"
9109    
9110     for ac_header in linux/if_tun.h
9111     do
9112     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9113     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9114     { echo "$as_me:$LINENO: checking for $ac_header" >&5
9115     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9116     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9117     echo $ECHO_N "(cached) $ECHO_C" >&6
9118     fi
9119     ac_res=`eval echo '${'$as_ac_Header'}'`
9120     { echo "$as_me:$LINENO: result: $ac_res" >&5
9121     echo "${ECHO_T}$ac_res" >&6; }
9122     else
9123     # Is the header compilable?
9124     { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9125     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9126     cat >conftest.$ac_ext <<_ACEOF
9127     /* confdefs.h. */
9128     _ACEOF
9129     cat confdefs.h >>conftest.$ac_ext
9130     cat >>conftest.$ac_ext <<_ACEOF
9131     /* end confdefs.h. */
9132     $ac_includes_default
9133     #include <$ac_header>
9134     _ACEOF
9135     rm -f conftest.$ac_objext
9136     if { (ac_try="$ac_compile"
9137     case "(($ac_try" in
9138     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9139     *) ac_try_echo=$ac_try;;
9140     esac
9141     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9142     (eval "$ac_compile") 2>conftest.er1
9143     ac_status=$?
9144     grep -v '^ *+' conftest.er1 >conftest.err
9145     rm -f conftest.er1
9146     cat conftest.err >&5
9147     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148     (exit $ac_status); } && {
9149     test -z "$ac_c_werror_flag" ||
9150     test ! -s conftest.err
9151     } && test -s conftest.$ac_objext; then
9152     ac_header_compiler=yes
9153     else
9154     echo "$as_me: failed program was:" >&5
9155     sed 's/^/| /' conftest.$ac_ext >&5
9156    
9157     ac_header_compiler=no
9158     fi
9159    
9160     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9161     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9162     echo "${ECHO_T}$ac_header_compiler" >&6; }
9163    
9164     # Is the header present?
9165     { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9166     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9167     cat >conftest.$ac_ext <<_ACEOF
9168     /* confdefs.h. */
9169     _ACEOF
9170     cat confdefs.h >>conftest.$ac_ext
9171     cat >>conftest.$ac_ext <<_ACEOF
9172     /* end confdefs.h. */
9173     #include <$ac_header>
9174     _ACEOF
9175     if { (ac_try="$ac_cpp conftest.$ac_ext"
9176     case "(($ac_try" in
9177     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178     *) ac_try_echo=$ac_try;;
9179     esac
9180     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9182     ac_status=$?
9183     grep -v '^ *+' conftest.er1 >conftest.err
9184     rm -f conftest.er1
9185     cat conftest.err >&5
9186     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187     (exit $ac_status); } >/dev/null && {
9188     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9189     test ! -s conftest.err
9190     }; then
9191     ac_header_preproc=yes
9192     else
9193     echo "$as_me: failed program was:" >&5
9194     sed 's/^/| /' conftest.$ac_ext >&5
9195    
9196     ac_header_preproc=no
9197     fi
9198    
9199     rm -f conftest.err conftest.$ac_ext
9200     { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9201     echo "${ECHO_T}$ac_header_preproc" >&6; }
9202    
9203     # So? What about this header?
9204     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9205     yes:no: )
9206     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9207     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9209     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9210     ac_header_preproc=yes
9211     ;;
9212     no:yes:* )
9213     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9214     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9215     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9216     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9217     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9218     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9219     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9220     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9221     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9222     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9223     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9224     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9225    
9226     ;;
9227     esac
9228     { echo "$as_me:$LINENO: checking for $ac_header" >&5
9229     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9230     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9231     echo $ECHO_N "(cached) $ECHO_C" >&6
9232     else
9233     eval "$as_ac_Header=\$ac_header_preproc"
9234     fi
9235     ac_res=`eval echo '${'$as_ac_Header'}'`
9236     { echo "$as_me:$LINENO: result: $ac_res" >&5
9237     echo "${ECHO_T}$ac_res" >&6; }
9238    
9239     fi
9240     if test `eval echo '${'$as_ac_Header'}'` = yes; then
9241     cat >>confdefs.h <<_ACEOF
9242     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9243     _ACEOF
9244    
9245     cat >>confdefs.h <<\_ACEOF
9246     #define HAVE_BEOS_TUN 1
9247     _ACEOF
9248    
9249     fi
9250    
9251     done
9252    
9253     { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9254     echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9255     if test "${ac_cv_lib_socket_socket+set}" = set; then
9256     echo $ECHO_N "(cached) $ECHO_C" >&6
9257     else
9258     ac_check_lib_save_LIBS=$LIBS
9259     LIBS="-lsocket $LIBS"
9260     cat >conftest.$ac_ext <<_ACEOF
9261     /* confdefs.h. */
9262     _ACEOF
9263     cat confdefs.h >>conftest.$ac_ext
9264     cat >>conftest.$ac_ext <<_ACEOF
9265     /* end confdefs.h. */
9266    
9267     /* Override any GCC internal prototype to avoid an error.
9268     Use char because int might match the return type of a GCC
9269     builtin and then its argument prototype would still apply. */
9270     #ifdef __cplusplus
9271     extern "C"
9272     #endif
9273     char socket ();
9274     int
9275     main ()
9276     {
9277     return socket ();
9278     ;
9279     return 0;
9280     }
9281     _ACEOF
9282     rm -f conftest.$ac_objext conftest$ac_exeext
9283     if { (ac_try="$ac_link"
9284     case "(($ac_try" in
9285     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286     *) ac_try_echo=$ac_try;;
9287     esac
9288     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289     (eval "$ac_link") 2>conftest.er1
9290     ac_status=$?
9291     grep -v '^ *+' conftest.er1 >conftest.err
9292     rm -f conftest.er1
9293     cat conftest.err >&5
9294     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295     (exit $ac_status); } && {
9296     test -z "$ac_c_werror_flag" ||
9297     test ! -s conftest.err
9298     } && test -s conftest$ac_exeext &&
9299     $as_test_x conftest$ac_exeext; then
9300     ac_cv_lib_socket_socket=yes
9301     else
9302     echo "$as_me: failed program was:" >&5
9303     sed 's/^/| /' conftest.$ac_ext >&5
9304    
9305     ac_cv_lib_socket_socket=no
9306     fi
9307    
9308     rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9309     conftest$ac_exeext conftest.$ac_ext
9310     LIBS=$ac_check_lib_save_LIBS
9311     fi
9312     { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9313     echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9314     if test $ac_cv_lib_socket_socket = yes; then
9315     PPC_LDFLAGS="$PPC_LDFLAGS -lsocket"
9316     fi
9317    
9318     ;;
9319     darwin*)
9320    
9321     for ac_header in mach/clock.h
9322     do
9323     as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9324     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9325     { echo "$as_me:$LINENO: checking for $ac_header" >&5
9326     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9327     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9328     echo $ECHO_N "(cached) $ECHO_C" >&6
9329     fi
9330     ac_res=`eval echo '${'$as_ac_Header'}'`
9331     { echo "$as_me:$LINENO: result: $ac_res" >&5
9332     echo "${ECHO_T}$ac_res" >&6; }
9333     else
9334     # Is the header compilable?
9335     { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9336     echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9337     cat >conftest.$ac_ext <<_ACEOF
9338     /* confdefs.h. */
9339     _ACEOF
9340     cat confdefs.h >>conftest.$ac_ext
9341     cat >>conftest.$ac_ext <<_ACEOF
9342     /* end confdefs.h. */
9343     $ac_includes_default
9344     #include <$ac_header>
9345     _ACEOF
9346     rm -f conftest.$ac_objext
9347     if { (ac_try="$ac_compile"
9348     case "(($ac_try" in
9349     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350     *) ac_try_echo=$ac_try;;
9351     esac
9352     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353     (eval "$ac_compile") 2>conftest.er1
9354     ac_status=$?
9355     grep -v '^ *+' conftest.er1 >conftest.err
9356     rm -f conftest.er1
9357     cat conftest.err >&5
9358     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359     (exit $ac_status); } && {
9360     test -z "$ac_c_werror_flag" ||
9361     test ! -s conftest.err
9362     } && test -s conftest.$ac_objext; then
9363     ac_header_compiler=yes
9364     else
9365     echo "$as_me: failed program was:" >&5
9366     sed 's/^/| /' conftest.$ac_ext >&5
9367    
9368     ac_header_compiler=no
9369     fi
9370    
9371     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9372     { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9373     echo "${ECHO_T}$ac_header_compiler" >&6; }
9374    
9375     # Is the header present?
9376     { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9377     echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9378     cat >conftest.$ac_ext <<_ACEOF
9379     /* confdefs.h. */
9380     _ACEOF
9381     cat confdefs.h >>conftest.$ac_ext
9382     cat >>conftest.$ac_ext <<_ACEOF
9383     /* end confdefs.h. */
9384     #include <$ac_header>
9385     _ACEOF
9386     if { (ac_try="$ac_cpp conftest.$ac_ext"
9387     case "(($ac_try" in
9388     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389     *) ac_try_echo=$ac_try;;
9390     esac
9391     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9393     ac_status=$?
9394     grep -v '^ *+' conftest.er1 >conftest.err
9395     rm -f conftest.er1
9396     cat conftest.err >&5
9397     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398     (exit $ac_status); } >/dev/null && {
9399     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9400     test ! -s conftest.err
9401     }; then
9402     ac_header_preproc=yes
9403     else
9404     echo "$as_me: failed program was:" >&5
9405     sed 's/^/| /' conftest.$ac_ext >&5
9406    
9407     ac_header_preproc=no
9408     fi
9409    
9410     rm -f conftest.err conftest.$ac_ext
9411     { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9412     echo "${ECHO_T}$ac_header_preproc" >&6; }
9413    
9414     # So? What about this header?
9415     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9416     yes:no: )
9417     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9418     echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9420     echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9421     ac_header_preproc=yes
9422     ;;
9423     no:yes:* )
9424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9425     echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9426     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9427     echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9428     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9429     echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9430     { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9431     echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9433     echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9434     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9435     echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9436    
9437     ;;
9438     esac
9439     { echo "$as_me:$LINENO: checking for $ac_header" >&5
9440     echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9441     if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9442     echo $ECHO_N "(cached) $ECHO_C" >&6
9443     else
9444     eval "$as_ac_Header=\$ac_header_preproc"
9445     fi
9446     ac_res=`eval echo '${'$as_ac_Header'}'`
9447     { echo "$as_me:$LINENO: result: $ac_res" >&5
9448     echo "${ECHO_T}$ac_res" >&6; }
9449    
9450     fi
9451     if test `eval echo '${'$as_ac_Header'}'` = yes; then
9452     cat >>confdefs.h <<_ACEOF
9453     #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9454     _ACEOF
9455    
9456     cat >>confdefs.h <<\_ACEOF
9457     #define HAVE_MACH_CLOCK_H 1
9458     _ACEOF
9459    
9460     fi
9461    
9462     done
9463    
9464     ;;
9465     esac
9466    
9467    
9468     CFLAGS="$PPC_CFLAGS"
9469     CXXFLAGS="$PPC_CXXFLAGS"
9470     CCASFLAGS="$PPC_CCASFLAGS"
9471    
9472    
9473    
9474    
9475    
9476    
9477    
9478    
9479    
9480    
9481     { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9482     echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9483     if test "${ac_cv_c_const+set}" = set; then
9484     echo $ECHO_N "(cached) $ECHO_C" >&6
9485     else
9486     cat >conftest.$ac_ext <<_ACEOF
9487     /* confdefs.h. */
9488     _ACEOF
9489     cat confdefs.h >>conftest.$ac_ext
9490     cat >>conftest.$ac_ext <<_ACEOF
9491     /* end confdefs.h. */
9492    
9493     int
9494     main ()
9495     {
9496     /* FIXME: Include the comments suggested by Paul. */
9497     #ifndef __cplusplus
9498     /* Ultrix mips cc rejects this. */
9499     typedef int charset[2];
9500     const charset cs;
9501     /* SunOS 4.1.1 cc rejects this. */
9502     char const *const *pcpcc;
9503     char **ppc;
9504     /* NEC SVR4.0.2 mips cc rejects this. */
9505     struct point {int x, y;};
9506     static struct point const zero = {0,0};
9507     /* AIX XL C 1.02.0.0 rejects this.
9508     It does not let you subtract one const X* pointer from another in
9509     an arm of an if-expression whose if-part is not a constant
9510     expression */
9511     const char *g = "string";
9512     pcpcc = &g + (g ? g-g : 0);
9513     /* HPUX 7.0 cc rejects these. */
9514     ++pcpcc;
9515     ppc = (char**) pcpcc;
9516     pcpcc = (char const *const *) ppc;
9517     { /* SCO 3.2v4 cc rejects this. */
9518     char *t;
9519     char const *s = 0 ? (char *) 0 : (char const *) 0;
9520    
9521     *t++ = 0;
9522     if (s) return 0;
9523     }
9524     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9525     int x[] = {25, 17};
9526     const int *foo = &x[0];
9527     ++foo;
9528     }
9529     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9530     typedef const int *iptr;
9531     iptr p = 0;
9532     ++p;
9533     }
9534     { /* AIX XL C 1.02.0.0 rejects this saying
9535     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9536     struct s { int j; const int *ap[3]; };
9537     struct s *b; b->j = 5;
9538     }
9539     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9540     const int foo = 10;
9541     if (!foo) return 0;
9542     }
9543     return !cs[0] && !zero.x;
9544     #endif
9545    
9546     ;
9547     return 0;
9548     }
9549     _ACEOF
9550     rm -f conftest.$ac_objext
9551     if { (ac_try="$ac_compile"
9552     case "(($ac_try" in
9553     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9554     *) ac_try_echo=$ac_try;;
9555     esac
9556     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557     (eval "$ac_compile") 2>conftest.er1
9558     ac_status=$?
9559     grep -v '^ *+' conftest.er1 >conftest.err
9560     rm -f conftest.er1
9561     cat conftest.err >&5
9562     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563     (exit $ac_status); } && {
9564     test -z "$ac_c_werror_flag" ||
9565     test ! -s conftest.err
9566     } && test -s conftest.$ac_objext; then
9567     ac_cv_c_const=yes
9568     else
9569     echo "$as_me: failed program was:" >&5
9570     sed 's/^/| /' conftest.$ac_ext >&5
9571    
9572     ac_cv_c_const=no
9573     fi
9574    
9575     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9576     fi
9577     { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9578     echo "${ECHO_T}$ac_cv_c_const" >&6; }
9579     if test $ac_cv_c_const = no; then
9580    
9581     cat >>confdefs.h <<\_ACEOF
9582     #define const
9583     _ACEOF
9584    
9585     fi
9586    
9587    
9588     { echo "$as_me:$LINENO: checking for char" >&5
9589     echo $ECHO_N "checking for char... $ECHO_C" >&6; }
9590     if test "${ac_cv_type_char+set}" = set; then
9591     echo $ECHO_N "(cached) $ECHO_C" >&6
9592     else
9593     cat >conftest.$ac_ext <<_ACEOF
9594     /* confdefs.h. */
9595     _ACEOF
9596     cat confdefs.h >>conftest.$ac_ext
9597     cat >>conftest.$ac_ext <<_ACEOF
9598     /* end confdefs.h. */
9599     $ac_includes_default
9600     typedef char ac__type_new_;
9601     int
9602     main ()
9603     {
9604     if ((ac__type_new_ *) 0)
9605     return 0;
9606     if (sizeof (ac__type_new_))
9607     return 0;
9608     ;
9609     return 0;
9610     }
9611     _ACEOF
9612     rm -f conftest.$ac_objext
9613     if { (ac_try="$ac_compile"
9614     case "(($ac_try" in
9615     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616     *) ac_try_echo=$ac_try;;
9617     esac
9618     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619     (eval "$ac_compile") 2>conftest.er1
9620     ac_status=$?
9621     grep -v '^ *+' conftest.er1 >conftest.err
9622     rm -f conftest.er1
9623     cat conftest.err >&5
9624     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625     (exit $ac_status); } && {
9626     test -z "$ac_c_werror_flag" ||
9627     test ! -s conftest.err
9628     } && test -s conftest.$ac_objext; then
9629     ac_cv_type_char=yes
9630     else
9631     echo "$as_me: failed program was:" >&5
9632     sed 's/^/| /' conftest.$ac_ext >&5
9633    
9634     ac_cv_type_char=no
9635     fi
9636    
9637     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9638     fi
9639     { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
9640     echo "${ECHO_T}$ac_cv_type_char" >&6; }
9641    
9642     # The cast to long int works around a bug in the HP C Compiler
9643     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9644     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9645     # This bug is HP SR number 8606223364.
9646     { echo "$as_me:$LINENO: checking size of char" >&5
9647     echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
9648     if test "${ac_cv_sizeof_char+set}" = set; then
9649     echo $ECHO_N "(cached) $ECHO_C" >&6
9650     else
9651     if test "$cross_compiling" = yes; then
9652     # Depending upon the size, compute the lo and hi bounds.
9653     cat >conftest.$ac_ext <<_ACEOF
9654     /* confdefs.h. */
9655     _ACEOF
9656     cat confdefs.h >>conftest.$ac_ext
9657     cat >>conftest.$ac_ext <<_ACEOF
9658     /* end confdefs.h. */
9659     $ac_includes_default
9660     typedef char ac__type_sizeof_;
9661     int
9662     main ()
9663     {
9664     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9665     test_array [0] = 0
9666    
9667     ;
9668     return 0;
9669     }
9670     _ACEOF
9671     rm -f conftest.$ac_objext
9672     if { (ac_try="$ac_compile"
9673     case "(($ac_try" in
9674     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675     *) ac_try_echo=$ac_try;;
9676     esac
9677     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678     (eval "$ac_compile") 2>conftest.er1
9679     ac_status=$?
9680     grep -v '^ *+' conftest.er1 >conftest.err
9681     rm -f conftest.er1
9682     cat conftest.err >&5
9683     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684     (exit $ac_status); } && {
9685     test -z "$ac_c_werror_flag" ||
9686     test ! -s conftest.err
9687     } && test -s conftest.$ac_objext; then
9688     ac_lo=0 ac_mid=0
9689     while :; do
9690     cat >conftest.$ac_ext <<_ACEOF
9691     /* confdefs.h. */
9692     _ACEOF
9693     cat confdefs.h >>conftest.$ac_ext
9694     cat >>conftest.$ac_ext <<_ACEOF
9695     /* end confdefs.h. */
9696     $ac_includes_default
9697     typedef char ac__type_sizeof_;
9698     int
9699     main ()
9700     {
9701     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9702     test_array [0] = 0
9703    
9704     ;
9705     return 0;
9706     }
9707     _ACEOF
9708     rm -f conftest.$ac_objext
9709     if { (ac_try="$ac_compile"
9710     case "(($ac_try" in
9711     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712     *) ac_try_echo=$ac_try;;
9713     esac
9714     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715     (eval "$ac_compile") 2>conftest.er1
9716     ac_status=$?
9717     grep -v '^ *+' conftest.er1 >conftest.err
9718     rm -f conftest.er1
9719     cat conftest.err >&5
9720     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721     (exit $ac_status); } && {
9722     test -z "$ac_c_werror_flag" ||
9723     test ! -s conftest.err
9724     } && test -s conftest.$ac_objext; then
9725     ac_hi=$ac_mid; break
9726     else
9727     echo "$as_me: failed program was:" >&5
9728     sed 's/^/| /' conftest.$ac_ext >&5
9729    
9730     ac_lo=`expr $ac_mid + 1`
9731     if test $ac_lo -le $ac_mid; then
9732     ac_lo= ac_hi=
9733     break
9734     fi
9735     ac_mid=`expr 2 '*' $ac_mid + 1`
9736     fi
9737    
9738     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9739     done
9740     else
9741     echo "$as_me: failed program was:" >&5
9742     sed 's/^/| /' conftest.$ac_ext >&5
9743    
9744     cat >conftest.$ac_ext <<_ACEOF
9745     /* confdefs.h. */
9746     _ACEOF
9747     cat confdefs.h >>conftest.$ac_ext
9748     cat >>conftest.$ac_ext <<_ACEOF
9749     /* end confdefs.h. */
9750     $ac_includes_default
9751     typedef char ac__type_sizeof_;
9752     int
9753     main ()
9754     {
9755     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9756     test_array [0] = 0
9757    
9758     ;
9759     return 0;
9760     }
9761     _ACEOF
9762     rm -f conftest.$ac_objext
9763     if { (ac_try="$ac_compile"
9764     case "(($ac_try" in
9765     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766     *) ac_try_echo=$ac_try;;
9767     esac
9768     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769     (eval "$ac_compile") 2>conftest.er1
9770     ac_status=$?
9771     grep -v '^ *+' conftest.er1 >conftest.err
9772     rm -f conftest.er1
9773     cat conftest.err >&5
9774     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775     (exit $ac_status); } && {
9776     test -z "$ac_c_werror_flag" ||
9777     test ! -s conftest.err
9778     } && test -s conftest.$ac_objext; then
9779     ac_hi=-1 ac_mid=-1
9780     while :; do
9781     cat >conftest.$ac_ext <<_ACEOF
9782     /* confdefs.h. */
9783     _ACEOF
9784     cat confdefs.h >>conftest.$ac_ext
9785     cat >>conftest.$ac_ext <<_ACEOF
9786     /* end confdefs.h. */
9787     $ac_includes_default
9788     typedef char ac__type_sizeof_;
9789     int
9790     main ()
9791     {
9792     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9793     test_array [0] = 0
9794    
9795     ;
9796     return 0;
9797     }
9798     _ACEOF
9799     rm -f conftest.$ac_objext
9800     if { (ac_try="$ac_compile"
9801     case "(($ac_try" in
9802     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803     *) ac_try_echo=$ac_try;;
9804     esac
9805     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806     (eval "$ac_compile") 2>conftest.er1
9807     ac_status=$?
9808     grep -v '^ *+' conftest.er1 >conftest.err
9809     rm -f conftest.er1
9810     cat conftest.err >&5
9811     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812     (exit $ac_status); } && {
9813     test -z "$ac_c_werror_flag" ||
9814     test ! -s conftest.err
9815     } && test -s conftest.$ac_objext; then
9816     ac_lo=$ac_mid; break
9817     else
9818     echo "$as_me: failed program was:" >&5
9819     sed 's/^/| /' conftest.$ac_ext >&5
9820    
9821     ac_hi=`expr '(' $ac_mid ')' - 1`
9822     if test $ac_mid -le $ac_hi; then
9823     ac_lo= ac_hi=
9824     break
9825     fi
9826     ac_mid=`expr 2 '*' $ac_mid`
9827     fi
9828    
9829     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9830     done
9831     else
9832     echo "$as_me: failed program was:" >&5
9833     sed 's/^/| /' conftest.$ac_ext >&5
9834    
9835     ac_lo= ac_hi=
9836     fi
9837    
9838     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839     fi
9840    
9841     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842     # Binary search between lo and hi bounds.
9843     while test "x$ac_lo" != "x$ac_hi"; do
9844     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9845     cat >conftest.$ac_ext <<_ACEOF
9846     /* confdefs.h. */
9847     _ACEOF
9848     cat confdefs.h >>conftest.$ac_ext
9849     cat >>conftest.$ac_ext <<_ACEOF
9850     /* end confdefs.h. */
9851     $ac_includes_default
9852     typedef char ac__type_sizeof_;
9853     int
9854     main ()
9855     {
9856     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9857     test_array [0] = 0
9858    
9859     ;
9860     return 0;
9861     }
9862     _ACEOF
9863     rm -f conftest.$ac_objext
9864     if { (ac_try="$ac_compile"
9865     case "(($ac_try" in
9866     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867     *) ac_try_echo=$ac_try;;
9868     esac
9869     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870     (eval "$ac_compile") 2>conftest.er1
9871     ac_status=$?
9872     grep -v '^ *+' conftest.er1 >conftest.err
9873     rm -f conftest.er1
9874     cat conftest.err >&5
9875     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876     (exit $ac_status); } && {
9877     test -z "$ac_c_werror_flag" ||
9878     test ! -s conftest.err
9879     } && test -s conftest.$ac_objext; then
9880     ac_hi=$ac_mid
9881     else
9882     echo "$as_me: failed program was:" >&5
9883     sed 's/^/| /' conftest.$ac_ext >&5
9884    
9885     ac_lo=`expr '(' $ac_mid ')' + 1`
9886     fi
9887    
9888     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9889     done
9890     case $ac_lo in
9891     ?*) ac_cv_sizeof_char=$ac_lo;;
9892     '') if test "$ac_cv_type_char" = yes; then
9893     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
9894     See \`config.log' for more details." >&5
9895     echo "$as_me: error: cannot compute sizeof (char)
9896     See \`config.log' for more details." >&2;}
9897     { (exit 77); exit 77; }; }
9898     else
9899     ac_cv_sizeof_char=0
9900     fi ;;
9901     esac
9902     else
9903     cat >conftest.$ac_ext <<_ACEOF
9904     /* confdefs.h. */
9905     _ACEOF
9906     cat confdefs.h >>conftest.$ac_ext
9907     cat >>conftest.$ac_ext <<_ACEOF
9908     /* end confdefs.h. */
9909     $ac_includes_default
9910     typedef char ac__type_sizeof_;
9911     static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9912     static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9913     #include <stdio.h>
9914     #include <stdlib.h>
9915     int
9916     main ()
9917     {
9918    
9919     FILE *f = fopen ("conftest.val", "w");
9920     if (! f)
9921     return 1;
9922     if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9923     {
9924     long int i = longval ();
9925     if (i != ((long int) (sizeof (ac__type_sizeof_))))
9926     return 1;
9927     fprintf (f, "%ld\n", i);
9928     }
9929     else
9930     {
9931     unsigned long int i = ulongval ();
9932     if (i != ((long int) (sizeof (ac__type_sizeof_))))
9933     return 1;
9934     fprintf (f, "%lu\n", i);
9935     }
9936     return ferror (f) || fclose (f) != 0;
9937    
9938     ;
9939     return 0;
9940     }
9941     _ACEOF
9942     rm -f conftest$ac_exeext
9943     if { (ac_try="$ac_link"
9944     case "(($ac_try" in
9945     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946     *) ac_try_echo=$ac_try;;
9947     esac
9948     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949     (eval "$ac_link") 2>&5
9950     ac_status=$?
9951     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9953     { (case "(($ac_try" in
9954     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955     *) ac_try_echo=$ac_try;;
9956     esac
9957     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958     (eval "$ac_try") 2>&5
9959     ac_status=$?
9960     echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961     (exit $ac_status); }; }; then
9962     ac_cv_sizeof_char=`cat conftest.val`
9963     else
9964     echo "$as_me: program exited with status $ac_status" >&5
9965     echo "$as_me: failed program was:" >&5
9966     sed 's/^/| /' conftest.$ac_ext >&5
9967    
9968     ( exit $ac_status )
9969     if test "$ac_cv_type_char" = yes; then
9970     { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
9971     See \`config.log' for more details." >&5
9972     echo "$as_me: error: cannot compute sizeof (char)
9973     See \`config.log' for more details." >&2;}
9974     { (exit 77); exit 77; }; }
9975     else
9976     ac_cv_sizeof_char=0
9977     fi
9978     fi
9979     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9980     fi
9981     rm -f conftest.val
9982     fi
9983     { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
9984     echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
9985    
9986    
9987    
9988     cat >>confdefs.h <<_ACEOF
9989     #define SIZEOF_CHAR $ac_cv_sizeof_char
9990     _ACEOF
9991    
9992    
9993     { echo "$as_me:$LINENO: checking for short" >&5
9994     echo $ECHO_N "checking for short... $ECHO_C" >&6; }
9995     if test "${ac_cv_type_short+set}" = set; then
9996     echo $ECHO_N "(cached) $ECHO_C" >&6
9997     else
9998     cat >conftest.$ac_ext <<_ACEOF
9999     /* confdefs.h. */
10000     _ACEOF
10001     cat confdefs.h >>conftest.$ac_ext
10002     cat >>conftest.$ac_ext <<_ACEOF
10003     /* end confdefs.h. */
10004     $ac_includes_default
10005     typedef short ac__type_new_;
10006     int
10007     main ()
10008     {
10009     if ((ac__type_new_ *) 0)
10010     return 0;
10011     if (sizeof (ac__type_new_))
10012     return 0;
10013     ;
10014     return 0;
10015     }
10016     _ACEOF
10017     rm -f conftest.$ac_objext
10018     if { (ac_try="$ac_compile"
10019     case "(($ac_try" in
10020     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021     *) ac_try_echo=$ac_try;;
10022     esac
10023     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024     (eval "$ac_compile") 2>conftest.er1
10025     ac_status=$?
10026     grep -v '^ *+' conftest.er1 >conftest.err
10027     rm -f conftest.er1
10028     cat conftest.err >&5
10029     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030     (exit $ac_status); } && {
10031     test -z "$ac_c_werror_flag" ||
10032     test ! -s conftest.err
10033     } && test -s conftest.$ac_objext; then
10034     ac_cv_type_short=yes
10035     else
10036     echo "$as_me: failed program was:" >&5
10037     sed 's/^/| /' conftest.$ac_ext >&5
10038    
10039     ac_cv_type_short=no
10040     fi
10041    
10042     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10043     fi
10044     { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
10045     echo "${ECHO_T}$ac_cv_type_short" >&6; }
10046    
10047     # The cast to long int works around a bug in the HP C Compiler
10048     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10049     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10050     # This bug is HP SR number 8606223364.
10051     { echo "$as_me:$LINENO: checking size of short" >&5
10052     echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
10053     if test "${ac_cv_sizeof_short+set}" = set; then
10054     echo $ECHO_N "(cached) $ECHO_C" >&6
10055     else
10056     if test "$cross_compiling" = yes; then
10057     # Depending upon the size, compute the lo and hi bounds.
10058     cat >conftest.$ac_ext <<_ACEOF
10059     /* confdefs.h. */
10060     _ACEOF
10061     cat confdefs.h >>conftest.$ac_ext
10062     cat >>conftest.$ac_ext <<_ACEOF
10063     /* end confdefs.h. */
10064     $ac_includes_default
10065     typedef short ac__type_sizeof_;
10066     int
10067     main ()
10068     {
10069     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10070     test_array [0] = 0
10071    
10072     ;
10073     return 0;
10074     }
10075     _ACEOF
10076     rm -f conftest.$ac_objext
10077     if { (ac_try="$ac_compile"
10078     case "(($ac_try" in
10079     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10080     *) ac_try_echo=$ac_try;;
10081     esac
10082     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10083     (eval "$ac_compile") 2>conftest.er1
10084     ac_status=$?
10085     grep -v '^ *+' conftest.er1 >conftest.err
10086     rm -f conftest.er1
10087     cat conftest.err >&5
10088     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089     (exit $ac_status); } && {
10090     test -z "$ac_c_werror_flag" ||
10091     test ! -s conftest.err
10092     } && test -s conftest.$ac_objext; then
10093     ac_lo=0 ac_mid=0
10094     while :; do
10095     cat >conftest.$ac_ext <<_ACEOF
10096     /* confdefs.h. */
10097     _ACEOF
10098     cat confdefs.h >>conftest.$ac_ext
10099     cat >>conftest.$ac_ext <<_ACEOF
10100     /* end confdefs.h. */
10101     $ac_includes_default
10102     typedef short ac__type_sizeof_;
10103     int
10104     main ()
10105     {
10106     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10107     test_array [0] = 0
10108    
10109     ;
10110     return 0;
10111     }
10112     _ACEOF
10113     rm -f conftest.$ac_objext
10114     if { (ac_try="$ac_compile"
10115     case "(($ac_try" in
10116     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117     *) ac_try_echo=$ac_try;;
10118     esac
10119     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120     (eval "$ac_compile") 2>conftest.er1
10121     ac_status=$?
10122     grep -v '^ *+' conftest.er1 >conftest.err
10123     rm -f conftest.er1
10124     cat conftest.err >&5
10125     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126     (exit $ac_status); } && {
10127     test -z "$ac_c_werror_flag" ||
10128     test ! -s conftest.err
10129     } && test -s conftest.$ac_objext; then
10130     ac_hi=$ac_mid; break
10131     else
10132     echo "$as_me: failed program was:" >&5
10133     sed 's/^/| /' conftest.$ac_ext >&5
10134    
10135     ac_lo=`expr $ac_mid + 1`
10136     if test $ac_lo -le $ac_mid; then
10137     ac_lo= ac_hi=
10138     break
10139     fi
10140     ac_mid=`expr 2 '*' $ac_mid + 1`
10141     fi
10142    
10143     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10144     done
10145     else
10146     echo "$as_me: failed program was:" >&5
10147     sed 's/^/| /' conftest.$ac_ext >&5
10148    
10149     cat >conftest.$ac_ext <<_ACEOF
10150     /* confdefs.h. */
10151     _ACEOF
10152     cat confdefs.h >>conftest.$ac_ext
10153     cat >>conftest.$ac_ext <<_ACEOF
10154     /* end confdefs.h. */
10155     $ac_includes_default
10156     typedef short ac__type_sizeof_;
10157     int
10158     main ()
10159     {
10160     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10161     test_array [0] = 0
10162    
10163     ;
10164     return 0;
10165     }
10166     _ACEOF
10167     rm -f conftest.$ac_objext
10168     if { (ac_try="$ac_compile"
10169     case "(($ac_try" in
10170     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171     *) ac_try_echo=$ac_try;;
10172     esac
10173     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174     (eval "$ac_compile") 2>conftest.er1
10175     ac_status=$?
10176     grep -v '^ *+' conftest.er1 >conftest.err
10177     rm -f conftest.er1
10178     cat conftest.err >&5
10179     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180     (exit $ac_status); } && {
10181     test -z "$ac_c_werror_flag" ||
10182     test ! -s conftest.err
10183     } && test -s conftest.$ac_objext; then
10184     ac_hi=-1 ac_mid=-1
10185     while :; do
10186     cat >conftest.$ac_ext <<_ACEOF
10187     /* confdefs.h. */
10188     _ACEOF
10189     cat confdefs.h >>conftest.$ac_ext
10190     cat >>conftest.$ac_ext <<_ACEOF
10191     /* end confdefs.h. */
10192     $ac_includes_default
10193     typedef short ac__type_sizeof_;
10194     int
10195     main ()
10196     {
10197     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10198     test_array [0] = 0
10199    
10200     ;
10201     return 0;
10202     }
10203     _ACEOF
10204     rm -f conftest.$ac_objext
10205     if { (ac_try="$ac_compile"
10206     case "(($ac_try" in
10207     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208     *) ac_try_echo=$ac_try;;
10209     esac
10210     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211     (eval "$ac_compile") 2>conftest.er1
10212     ac_status=$?
10213     grep -v '^ *+' conftest.er1 >conftest.err
10214     rm -f conftest.er1
10215     cat conftest.err >&5
10216     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217     (exit $ac_status); } && {
10218     test -z "$ac_c_werror_flag" ||
10219     test ! -s conftest.err
10220     } && test -s conftest.$ac_objext; then
10221     ac_lo=$ac_mid; break
10222     else
10223     echo "$as_me: failed program was:" >&5
10224     sed 's/^/| /' conftest.$ac_ext >&5
10225    
10226     ac_hi=`expr '(' $ac_mid ')' - 1`
10227     if test $ac_mid -le $ac_hi; then
10228     ac_lo= ac_hi=
10229     break
10230     fi
10231     ac_mid=`expr 2 '*' $ac_mid`
10232     fi
10233    
10234     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10235     done
10236     else
10237     echo "$as_me: failed program was:" >&5
10238     sed 's/^/| /' conftest.$ac_ext >&5
10239    
10240     ac_lo= ac_hi=
10241     fi
10242    
10243     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10244     fi
10245    
10246     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10247     # Binary search between lo and hi bounds.
10248     while test "x$ac_lo" != "x$ac_hi"; do
10249     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10250     cat >conftest.$ac_ext <<_ACEOF
10251     /* confdefs.h. */
10252     _ACEOF
10253     cat confdefs.h >>conftest.$ac_ext
10254     cat >>conftest.$ac_ext <<_ACEOF
10255     /* end confdefs.h. */
10256     $ac_includes_default
10257     typedef short ac__type_sizeof_;
10258     int
10259     main ()
10260     {
10261     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10262     test_array [0] = 0
10263    
10264     ;
10265     return 0;
10266     }
10267     _ACEOF
10268     rm -f conftest.$ac_objext
10269     if { (ac_try="$ac_compile"
10270     case "(($ac_try" in
10271     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272     *) ac_try_echo=$ac_try;;
10273     esac
10274     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275     (eval "$ac_compile") 2>conftest.er1
10276     ac_status=$?
10277     grep -v '^ *+' conftest.er1 >conftest.err
10278     rm -f conftest.er1
10279     cat conftest.err >&5
10280     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281     (exit $ac_status); } && {
10282     test -z "$ac_c_werror_flag" ||
10283     test ! -s conftest.err
10284     } && test -s conftest.$ac_objext; then
10285     ac_hi=$ac_mid
10286     else
10287     echo "$as_me: failed program was:" >&5
10288     sed 's/^/| /' conftest.$ac_ext >&5
10289    
10290     ac_lo=`expr '(' $ac_mid ')' + 1`
10291     fi
10292    
10293     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10294     done
10295     case $ac_lo in
10296     ?*) ac_cv_sizeof_short=$ac_lo;;
10297     '') if test "$ac_cv_type_short" = yes; then
10298     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
10299     See \`config.log' for more details." >&5
10300     echo "$as_me: error: cannot compute sizeof (short)
10301     See \`config.log' for more details." >&2;}
10302     { (exit 77); exit 77; }; }
10303     else
10304     ac_cv_sizeof_short=0
10305     fi ;;
10306     esac
10307     else
10308     cat >conftest.$ac_ext <<_ACEOF
10309     /* confdefs.h. */
10310     _ACEOF
10311     cat confdefs.h >>conftest.$ac_ext
10312     cat >>conftest.$ac_ext <<_ACEOF
10313     /* end confdefs.h. */
10314     $ac_includes_default
10315     typedef short ac__type_sizeof_;
10316     static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10317     static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10318     #include <stdio.h>
10319     #include <stdlib.h>
10320     int
10321     main ()
10322     {
10323    
10324     FILE *f = fopen ("conftest.val", "w");
10325     if (! f)
10326     return 1;
10327     if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10328     {
10329     long int i = longval ();
10330     if (i != ((long int) (sizeof (ac__type_sizeof_))))
10331     return 1;
10332     fprintf (f, "%ld\n", i);
10333     }
10334     else
10335     {
10336     unsigned long int i = ulongval ();
10337     if (i != ((long int) (sizeof (ac__type_sizeof_))))
10338     return 1;
10339     fprintf (f, "%lu\n", i);
10340     }
10341     return ferror (f) || fclose (f) != 0;
10342    
10343     ;
10344     return 0;
10345     }
10346     _ACEOF
10347     rm -f conftest$ac_exeext
10348     if { (ac_try="$ac_link"
10349     case "(($ac_try" in
10350     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351     *) ac_try_echo=$ac_try;;
10352     esac
10353     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354     (eval "$ac_link") 2>&5
10355     ac_status=$?
10356     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10358     { (case "(($ac_try" in
10359     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360     *) ac_try_echo=$ac_try;;
10361     esac
10362     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363     (eval "$ac_try") 2>&5
10364     ac_status=$?
10365     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366     (exit $ac_status); }; }; then
10367     ac_cv_sizeof_short=`cat conftest.val`
10368     else
10369     echo "$as_me: program exited with status $ac_status" >&5
10370     echo "$as_me: failed program was:" >&5
10371     sed 's/^/| /' conftest.$ac_ext >&5
10372    
10373     ( exit $ac_status )
10374     if test "$ac_cv_type_short" = yes; then
10375     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
10376     See \`config.log' for more details." >&5
10377     echo "$as_me: error: cannot compute sizeof (short)
10378     See \`config.log' for more details." >&2;}
10379     { (exit 77); exit 77; }; }
10380     else
10381     ac_cv_sizeof_short=0
10382     fi
10383     fi
10384     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10385     fi
10386     rm -f conftest.val
10387     fi
10388     { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
10389     echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
10390    
10391    
10392    
10393     cat >>confdefs.h <<_ACEOF
10394     #define SIZEOF_SHORT $ac_cv_sizeof_short
10395     _ACEOF
10396    
10397    
10398     { echo "$as_me:$LINENO: checking for int" >&5
10399     echo $ECHO_N "checking for int... $ECHO_C" >&6; }
10400     if test "${ac_cv_type_int+set}" = set; then
10401     echo $ECHO_N "(cached) $ECHO_C" >&6
10402     else
10403     cat >conftest.$ac_ext <<_ACEOF
10404     /* confdefs.h. */
10405     _ACEOF
10406     cat confdefs.h >>conftest.$ac_ext
10407     cat >>conftest.$ac_ext <<_ACEOF
10408     /* end confdefs.h. */
10409     $ac_includes_default
10410     typedef int ac__type_new_;
10411     int
10412     main ()
10413     {
10414     if ((ac__type_new_ *) 0)
10415     return 0;
10416     if (sizeof (ac__type_new_))
10417     return 0;
10418     ;
10419     return 0;
10420     }
10421     _ACEOF
10422     rm -f conftest.$ac_objext
10423     if { (ac_try="$ac_compile"
10424     case "(($ac_try" in
10425     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426     *) ac_try_echo=$ac_try;;
10427     esac
10428     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429     (eval "$ac_compile") 2>conftest.er1
10430     ac_status=$?
10431     grep -v '^ *+' conftest.er1 >conftest.err
10432     rm -f conftest.er1
10433     cat conftest.err >&5
10434     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435     (exit $ac_status); } && {
10436     test -z "$ac_c_werror_flag" ||
10437     test ! -s conftest.err
10438     } && test -s conftest.$ac_objext; then
10439     ac_cv_type_int=yes
10440     else
10441     echo "$as_me: failed program was:" >&5
10442     sed 's/^/| /' conftest.$ac_ext >&5
10443    
10444     ac_cv_type_int=no
10445     fi
10446    
10447     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10448     fi
10449     { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10450     echo "${ECHO_T}$ac_cv_type_int" >&6; }
10451    
10452     # The cast to long int works around a bug in the HP C Compiler
10453     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10454     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10455     # This bug is HP SR number 8606223364.
10456     { echo "$as_me:$LINENO: checking size of int" >&5
10457     echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
10458     if test "${ac_cv_sizeof_int+set}" = set; then
10459     echo $ECHO_N "(cached) $ECHO_C" >&6
10460     else
10461     if test "$cross_compiling" = yes; then
10462     # Depending upon the size, compute the lo and hi bounds.
10463     cat >conftest.$ac_ext <<_ACEOF
10464     /* confdefs.h. */
10465     _ACEOF
10466     cat confdefs.h >>conftest.$ac_ext
10467     cat >>conftest.$ac_ext <<_ACEOF
10468     /* end confdefs.h. */
10469     $ac_includes_default
10470     typedef int ac__type_sizeof_;
10471     int
10472     main ()
10473     {
10474     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10475     test_array [0] = 0
10476    
10477     ;
10478     return 0;
10479     }
10480     _ACEOF
10481     rm -f conftest.$ac_objext
10482     if { (ac_try="$ac_compile"
10483     case "(($ac_try" in
10484     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485     *) ac_try_echo=$ac_try;;
10486     esac
10487     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488     (eval "$ac_compile") 2>conftest.er1
10489     ac_status=$?
10490     grep -v '^ *+' conftest.er1 >conftest.err
10491     rm -f conftest.er1
10492     cat conftest.err >&5
10493     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494     (exit $ac_status); } && {
10495     test -z "$ac_c_werror_flag" ||
10496     test ! -s conftest.err
10497     } && test -s conftest.$ac_objext; then
10498     ac_lo=0 ac_mid=0
10499     while :; do
10500     cat >conftest.$ac_ext <<_ACEOF
10501     /* confdefs.h. */
10502     _ACEOF
10503     cat confdefs.h >>conftest.$ac_ext
10504     cat >>conftest.$ac_ext <<_ACEOF
10505     /* end confdefs.h. */
10506     $ac_includes_default
10507     typedef int ac__type_sizeof_;
10508     int
10509     main ()
10510     {
10511     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10512     test_array [0] = 0
10513    
10514     ;
10515     return 0;
10516     }
10517     _ACEOF
10518     rm -f conftest.$ac_objext
10519     if { (ac_try="$ac_compile"
10520     case "(($ac_try" in
10521     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522     *) ac_try_echo=$ac_try;;
10523     esac
10524     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525     (eval "$ac_compile") 2>conftest.er1
10526     ac_status=$?
10527     grep -v '^ *+' conftest.er1 >conftest.err
10528     rm -f conftest.er1
10529     cat conftest.err >&5
10530     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531     (exit $ac_status); } && {
10532     test -z "$ac_c_werror_flag" ||
10533     test ! -s conftest.err
10534     } && test -s conftest.$ac_objext; then
10535     ac_hi=$ac_mid; break
10536     else
10537     echo "$as_me: failed program was:" >&5
10538     sed 's/^/| /' conftest.$ac_ext >&5
10539    
10540     ac_lo=`expr $ac_mid + 1`
10541     if test $ac_lo -le $ac_mid; then
10542     ac_lo= ac_hi=
10543     break
10544     fi
10545     ac_mid=`expr 2 '*' $ac_mid + 1`
10546     fi
10547    
10548     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10549     done
10550     else
10551     echo "$as_me: failed program was:" >&5
10552     sed 's/^/| /' conftest.$ac_ext >&5
10553    
10554     cat >conftest.$ac_ext <<_ACEOF
10555     /* confdefs.h. */
10556     _ACEOF
10557     cat confdefs.h >>conftest.$ac_ext
10558     cat >>conftest.$ac_ext <<_ACEOF
10559     /* end confdefs.h. */
10560     $ac_includes_default
10561     typedef int ac__type_sizeof_;
10562     int
10563     main ()
10564     {
10565     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10566     test_array [0] = 0
10567    
10568     ;
10569     return 0;
10570     }
10571     _ACEOF
10572     rm -f conftest.$ac_objext
10573     if { (ac_try="$ac_compile"
10574     case "(($ac_try" in
10575     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576     *) ac_try_echo=$ac_try;;
10577     esac
10578     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579     (eval "$ac_compile") 2>conftest.er1
10580     ac_status=$?
10581     grep -v '^ *+' conftest.er1 >conftest.err
10582     rm -f conftest.er1
10583     cat conftest.err >&5
10584     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585     (exit $ac_status); } && {
10586     test -z "$ac_c_werror_flag" ||
10587     test ! -s conftest.err
10588     } && test -s conftest.$ac_objext; then
10589     ac_hi=-1 ac_mid=-1
10590     while :; do
10591     cat >conftest.$ac_ext <<_ACEOF
10592     /* confdefs.h. */
10593     _ACEOF
10594     cat confdefs.h >>conftest.$ac_ext
10595     cat >>conftest.$ac_ext <<_ACEOF
10596     /* end confdefs.h. */
10597     $ac_includes_default
10598     typedef int ac__type_sizeof_;
10599     int
10600     main ()
10601     {
10602     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
10603     test_array [0] = 0
10604    
10605     ;
10606     return 0;
10607     }
10608     _ACEOF
10609     rm -f conftest.$ac_objext
10610     if { (ac_try="$ac_compile"
10611     case "(($ac_try" in
10612     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10613     *) ac_try_echo=$ac_try;;
10614     esac
10615     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616     (eval "$ac_compile") 2>conftest.er1
10617     ac_status=$?
10618     grep -v '^ *+' conftest.er1 >conftest.err
10619     rm -f conftest.er1
10620     cat conftest.err >&5
10621     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622     (exit $ac_status); } && {
10623     test -z "$ac_c_werror_flag" ||
10624     test ! -s conftest.err
10625     } && test -s conftest.$ac_objext; then
10626     ac_lo=$ac_mid; break
10627     else
10628     echo "$as_me: failed program was:" >&5
10629     sed 's/^/| /' conftest.$ac_ext >&5
10630    
10631     ac_hi=`expr '(' $ac_mid ')' - 1`
10632     if test $ac_mid -le $ac_hi; then
10633     ac_lo= ac_hi=
10634     break
10635     fi
10636     ac_mid=`expr 2 '*' $ac_mid`
10637     fi
10638    
10639     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10640     done
10641     else
10642     echo "$as_me: failed program was:" >&5
10643     sed 's/^/| /' conftest.$ac_ext >&5
10644    
10645     ac_lo= ac_hi=
10646     fi
10647    
10648     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10649     fi
10650    
10651     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10652     # Binary search between lo and hi bounds.
10653     while test "x$ac_lo" != "x$ac_hi"; do
10654     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10655     cat >conftest.$ac_ext <<_ACEOF
10656     /* confdefs.h. */
10657     _ACEOF
10658     cat confdefs.h >>conftest.$ac_ext
10659     cat >>conftest.$ac_ext <<_ACEOF
10660     /* end confdefs.h. */
10661     $ac_includes_default
10662     typedef int ac__type_sizeof_;
10663     int
10664     main ()
10665     {
10666     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10667     test_array [0] = 0
10668    
10669     ;
10670     return 0;
10671     }
10672     _ACEOF
10673     rm -f conftest.$ac_objext
10674     if { (ac_try="$ac_compile"
10675     case "(($ac_try" in
10676     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677     *) ac_try_echo=$ac_try;;
10678     esac
10679     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680     (eval "$ac_compile") 2>conftest.er1
10681     ac_status=$?
10682     grep -v '^ *+' conftest.er1 >conftest.err
10683     rm -f conftest.er1
10684     cat conftest.err >&5
10685     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686     (exit $ac_status); } && {
10687     test -z "$ac_c_werror_flag" ||
10688     test ! -s conftest.err
10689     } && test -s conftest.$ac_objext; then
10690     ac_hi=$ac_mid
10691     else
10692     echo "$as_me: failed program was:" >&5
10693     sed 's/^/| /' conftest.$ac_ext >&5
10694    
10695     ac_lo=`expr '(' $ac_mid ')' + 1`
10696     fi
10697    
10698     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10699     done
10700     case $ac_lo in
10701     ?*) ac_cv_sizeof_int=$ac_lo;;
10702     '') if test "$ac_cv_type_int" = yes; then
10703     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
10704     See \`config.log' for more details." >&5
10705     echo "$as_me: error: cannot compute sizeof (int)
10706     See \`config.log' for more details." >&2;}
10707     { (exit 77); exit 77; }; }
10708     else
10709     ac_cv_sizeof_int=0
10710     fi ;;
10711     esac
10712     else
10713     cat >conftest.$ac_ext <<_ACEOF
10714     /* confdefs.h. */
10715     _ACEOF
10716     cat confdefs.h >>conftest.$ac_ext
10717     cat >>conftest.$ac_ext <<_ACEOF
10718     /* end confdefs.h. */
10719     $ac_includes_default
10720     typedef int ac__type_sizeof_;
10721     static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
10722     static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
10723     #include <stdio.h>
10724     #include <stdlib.h>
10725     int
10726     main ()
10727     {
10728    
10729     FILE *f = fopen ("conftest.val", "w");
10730     if (! f)
10731     return 1;
10732     if (((long int) (sizeof (ac__type_sizeof_))) < 0)
10733     {
10734     long int i = longval ();
10735     if (i != ((long int) (sizeof (ac__type_sizeof_))))
10736     return 1;
10737     fprintf (f, "%ld\n", i);
10738     }
10739     else
10740     {
10741     unsigned long int i = ulongval ();
10742     if (i != ((long int) (sizeof (ac__type_sizeof_))))
10743     return 1;
10744     fprintf (f, "%lu\n", i);
10745     }
10746     return ferror (f) || fclose (f) != 0;
10747    
10748     ;
10749     return 0;
10750     }
10751     _ACEOF
10752     rm -f conftest$ac_exeext
10753     if { (ac_try="$ac_link"
10754     case "(($ac_try" in
10755     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756     *) ac_try_echo=$ac_try;;
10757     esac
10758     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759     (eval "$ac_link") 2>&5
10760     ac_status=$?
10761     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10763     { (case "(($ac_try" in
10764     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765     *) ac_try_echo=$ac_try;;
10766     esac
10767     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10768     (eval "$ac_try") 2>&5
10769     ac_status=$?
10770     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771     (exit $ac_status); }; }; then
10772     ac_cv_sizeof_int=`cat conftest.val`
10773     else
10774     echo "$as_me: program exited with status $ac_status" >&5
10775     echo "$as_me: failed program was:" >&5
10776     sed 's/^/| /' conftest.$ac_ext >&5
10777    
10778     ( exit $ac_status )
10779     if test "$ac_cv_type_int" = yes; then
10780     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
10781     See \`config.log' for more details." >&5
10782     echo "$as_me: error: cannot compute sizeof (int)
10783     See \`config.log' for more details." >&2;}
10784     { (exit 77); exit 77; }; }
10785     else
10786     ac_cv_sizeof_int=0
10787     fi
10788     fi
10789     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10790     fi
10791     rm -f conftest.val
10792     fi
10793     { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10794     echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
10795    
10796    
10797    
10798     cat >>confdefs.h <<_ACEOF
10799     #define SIZEOF_INT $ac_cv_sizeof_int
10800     _ACEOF
10801    
10802    
10803     { echo "$as_me:$LINENO: checking for long int" >&5
10804     echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
10805     if test "${ac_cv_type_long_int+set}" = set; then
10806     echo $ECHO_N "(cached) $ECHO_C" >&6
10807     else
10808     cat >conftest.$ac_ext <<_ACEOF
10809     /* confdefs.h. */
10810     _ACEOF
10811     cat confdefs.h >>conftest.$ac_ext
10812     cat >>conftest.$ac_ext <<_ACEOF
10813     /* end confdefs.h. */
10814     $ac_includes_default
10815     typedef long int ac__type_new_;
10816     int
10817     main ()
10818     {
10819     if ((ac__type_new_ *) 0)
10820     return 0;
10821     if (sizeof (ac__type_new_))
10822     return 0;
10823     ;
10824     return 0;
10825     }
10826     _ACEOF
10827     rm -f conftest.$ac_objext
10828     if { (ac_try="$ac_compile"
10829     case "(($ac_try" in
10830     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831     *) ac_try_echo=$ac_try;;
10832     esac
10833     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834     (eval "$ac_compile") 2>conftest.er1
10835     ac_status=$?
10836     grep -v '^ *+' conftest.er1 >conftest.err
10837     rm -f conftest.er1
10838     cat conftest.err >&5
10839     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840     (exit $ac_status); } && {
10841     test -z "$ac_c_werror_flag" ||
10842     test ! -s conftest.err
10843     } && test -s conftest.$ac_objext; then
10844     ac_cv_type_long_int=yes
10845     else
10846     echo "$as_me: failed program was:" >&5
10847     sed 's/^/| /' conftest.$ac_ext >&5
10848    
10849     ac_cv_type_long_int=no
10850     fi
10851    
10852     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10853     fi
10854     { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
10855     echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
10856    
10857     # The cast to long int works around a bug in the HP C Compiler
10858     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10859     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10860     # This bug is HP SR number 8606223364.
10861     { echo "$as_me:$LINENO: checking size of long int" >&5
10862     echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
10863     if test "${ac_cv_sizeof_long_int+set}" = set; then
10864     echo $ECHO_N "(cached) $ECHO_C" >&6
10865     else
10866     if test "$cross_compiling" = yes; then
10867     # Depending upon the size, compute the lo and hi bounds.
10868     cat >conftest.$ac_ext <<_ACEOF
10869     /* confdefs.h. */
10870     _ACEOF
10871     cat confdefs.h >>conftest.$ac_ext
10872     cat >>conftest.$ac_ext <<_ACEOF
10873     /* end confdefs.h. */
10874     $ac_includes_default
10875     typedef long int ac__type_sizeof_;
10876     int
10877     main ()
10878     {
10879     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
10880     test_array [0] = 0
10881    
10882     ;
10883     return 0;
10884     }
10885     _ACEOF
10886     rm -f conftest.$ac_objext
10887     if { (ac_try="$ac_compile"
10888     case "(($ac_try" in
10889     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10890     *) ac_try_echo=$ac_try;;
10891     esac
10892     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10893     (eval "$ac_compile") 2>conftest.er1
10894     ac_status=$?
10895     grep -v '^ *+' conftest.er1 >conftest.err
10896     rm -f conftest.er1
10897     cat conftest.err >&5
10898     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899     (exit $ac_status); } && {
10900     test -z "$ac_c_werror_flag" ||
10901     test ! -s conftest.err
10902     } && test -s conftest.$ac_objext; then
10903     ac_lo=0 ac_mid=0
10904     while :; do
10905     cat >conftest.$ac_ext <<_ACEOF
10906     /* confdefs.h. */
10907     _ACEOF
10908     cat confdefs.h >>conftest.$ac_ext
10909     cat >>conftest.$ac_ext <<_ACEOF
10910     /* end confdefs.h. */
10911     $ac_includes_default
10912     typedef long int ac__type_sizeof_;
10913     int
10914     main ()
10915     {
10916     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
10917     test_array [0] = 0
10918    
10919     ;
10920     return 0;
10921     }
10922     _ACEOF
10923     rm -f conftest.$ac_objext
10924     if { (ac_try="$ac_compile"
10925     case "(($ac_try" in
10926     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927     *) ac_try_echo=$ac_try;;
10928     esac
10929     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10930     (eval "$ac_compile") 2>conftest.er1
10931     ac_status=$?
10932     grep -v '^ *+' conftest.er1 >conftest.err
10933     rm -f conftest.er1
10934     cat conftest.err >&5
10935     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936     (exit $ac_status); } && {
10937     test -z "$ac_c_werror_flag" ||
10938     test ! -s conftest.err
10939     } && test -s conftest.$ac_objext; then
10940     ac_hi=$ac_mid; break
10941     else
10942     echo "$as_me: failed program was:" >&5
10943     sed 's/^/| /' conftest.$ac_ext >&5
10944    
10945     ac_lo=`expr $ac_mid + 1`
10946     if test $ac_lo -le $ac_mid; then
10947     ac_lo= ac_hi=
10948     break
10949     fi
10950     ac_mid=`expr 2 '*' $ac_mid + 1`
10951     fi
10952    
10953     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10954     done
10955     else
10956     echo "$as_me: failed program was:" >&5
10957     sed 's/^/| /' conftest.$ac_ext >&5
10958    
10959     cat >conftest.$ac_ext <<_ACEOF
10960     /* confdefs.h. */
10961     _ACEOF
10962     cat confdefs.h >>conftest.$ac_ext
10963     cat >>conftest.$ac_ext <<_ACEOF
10964     /* end confdefs.h. */
10965     $ac_includes_default
10966     typedef long int ac__type_sizeof_;
10967     int
10968     main ()
10969     {
10970     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
10971     test_array [0] = 0
10972    
10973     ;
10974     return 0;
10975     }
10976     _ACEOF
10977     rm -f conftest.$ac_objext
10978     if { (ac_try="$ac_compile"
10979     case "(($ac_try" in
10980     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981     *) ac_try_echo=$ac_try;;
10982     esac
10983     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984     (eval "$ac_compile") 2>conftest.er1
10985     ac_status=$?
10986     grep -v '^ *+' conftest.er1 >conftest.err
10987     rm -f conftest.er1
10988     cat conftest.err >&5
10989     echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990     (exit $ac_status); } && {
10991     test -z "$ac_c_werror_flag" ||
10992     test ! -s conftest.err
10993     } && test -s conftest.$ac_objext; then
10994     ac_hi=-1 ac_mid=-1
10995     while :; do
10996     cat >conftest.$ac_ext <<_ACEOF
10997     /* confdefs.h. */
10998     _ACEOF
10999     cat confdefs.h >>conftest.$ac_ext
11000     cat >>conftest.$ac_ext <<_ACEOF
11001     /* end confdefs.h. */
11002     $ac_includes_default
11003     typedef long int ac__type_sizeof_;
11004     int
11005     main ()
11006     {
11007     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11008     test_array [0] = 0
11009    
11010     ;
11011     return 0;
11012     }
11013     _ACEOF
11014     rm -f conftest.$ac_objext
11015     if { (ac_try="$ac_compile"
11016     case "(($ac_try" in
11017     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018     *) ac_try_echo=$ac_try;;
11019     esac
11020     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021     (eval "$ac_compile") 2>conftest.er1
11022     ac_status=$?
11023     grep -v '^ *+' conftest.er1 >conftest.err
11024     rm -f conftest.er1
11025     cat conftest.err >&5
11026     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027     (exit $ac_status); } && {
11028     test -z "$ac_c_werror_flag" ||
11029     test ! -s conftest.err
11030     } && test -s conftest.$ac_objext; then
11031     ac_lo=$ac_mid; break
11032     else
11033     echo "$as_me: failed program was:" >&5
11034     sed 's/^/| /' conftest.$ac_ext >&5
11035    
11036     ac_hi=`expr '(' $ac_mid ')' - 1`
11037     if test $ac_mid -le $ac_hi; then
11038     ac_lo= ac_hi=
11039     break
11040     fi
11041     ac_mid=`expr 2 '*' $ac_mid`
11042     fi
11043    
11044     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045     done
11046     else
11047     echo "$as_me: failed program was:" >&5
11048     sed 's/^/| /' conftest.$ac_ext >&5
11049    
11050     ac_lo= ac_hi=
11051     fi
11052    
11053     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054     fi
11055    
11056     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11057     # Binary search between lo and hi bounds.
11058     while test "x$ac_lo" != "x$ac_hi"; do
11059     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11060     cat >conftest.$ac_ext <<_ACEOF
11061     /* confdefs.h. */
11062     _ACEOF
11063     cat confdefs.h >>conftest.$ac_ext
11064     cat >>conftest.$ac_ext <<_ACEOF
11065     /* end confdefs.h. */
11066     $ac_includes_default
11067     typedef long int ac__type_sizeof_;
11068     int
11069     main ()
11070     {
11071     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11072     test_array [0] = 0
11073    
11074     ;
11075     return 0;
11076     }
11077     _ACEOF
11078     rm -f conftest.$ac_objext
11079     if { (ac_try="$ac_compile"
11080     case "(($ac_try" in
11081     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11082     *) ac_try_echo=$ac_try;;
11083     esac
11084     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11085     (eval "$ac_compile") 2>conftest.er1
11086     ac_status=$?
11087     grep -v '^ *+' conftest.er1 >conftest.err
11088     rm -f conftest.er1
11089     cat conftest.err >&5
11090     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091     (exit $ac_status); } && {
11092     test -z "$ac_c_werror_flag" ||
11093     test ! -s conftest.err
11094     } && test -s conftest.$ac_objext; then
11095     ac_hi=$ac_mid
11096     else
11097     echo "$as_me: failed program was:" >&5
11098     sed 's/^/| /' conftest.$ac_ext >&5
11099    
11100     ac_lo=`expr '(' $ac_mid ')' + 1`
11101     fi
11102    
11103     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11104     done
11105     case $ac_lo in
11106     ?*) ac_cv_sizeof_long_int=$ac_lo;;
11107     '') if test "$ac_cv_type_long_int" = yes; then
11108     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
11109     See \`config.log' for more details." >&5
11110     echo "$as_me: error: cannot compute sizeof (long int)
11111     See \`config.log' for more details." >&2;}
11112     { (exit 77); exit 77; }; }
11113     else
11114     ac_cv_sizeof_long_int=0
11115     fi ;;
11116     esac
11117     else
11118     cat >conftest.$ac_ext <<_ACEOF
11119     /* confdefs.h. */
11120     _ACEOF
11121     cat confdefs.h >>conftest.$ac_ext
11122     cat >>conftest.$ac_ext <<_ACEOF
11123     /* end confdefs.h. */
11124     $ac_includes_default
11125     typedef long int ac__type_sizeof_;
11126     static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11127     static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11128     #include <stdio.h>
11129     #include <stdlib.h>
11130     int
11131     main ()
11132     {
11133    
11134     FILE *f = fopen ("conftest.val", "w");
11135     if (! f)
11136     return 1;
11137     if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11138     {
11139     long int i = longval ();
11140     if (i != ((long int) (sizeof (ac__type_sizeof_))))
11141     return 1;
11142     fprintf (f, "%ld\n", i);
11143     }
11144     else
11145     {
11146     unsigned long int i = ulongval ();
11147     if (i != ((long int) (sizeof (ac__type_sizeof_))))
11148     return 1;
11149     fprintf (f, "%lu\n", i);
11150     }
11151     return ferror (f) || fclose (f) != 0;
11152    
11153     ;
11154     return 0;
11155     }
11156     _ACEOF
11157     rm -f conftest$ac_exeext
11158     if { (ac_try="$ac_link"
11159     case "(($ac_try" in
11160     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161     *) ac_try_echo=$ac_try;;
11162     esac
11163     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164     (eval "$ac_link") 2>&5
11165     ac_status=$?
11166     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11168     { (case "(($ac_try" in
11169     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170     *) ac_try_echo=$ac_try;;
11171     esac
11172     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173     (eval "$ac_try") 2>&5
11174     ac_status=$?
11175     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176     (exit $ac_status); }; }; then
11177     ac_cv_sizeof_long_int=`cat conftest.val`
11178     else
11179     echo "$as_me: program exited with status $ac_status" >&5
11180     echo "$as_me: failed program was:" >&5
11181     sed 's/^/| /' conftest.$ac_ext >&5
11182    
11183     ( exit $ac_status )
11184     if test "$ac_cv_type_long_int" = yes; then
11185     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
11186     See \`config.log' for more details." >&5
11187     echo "$as_me: error: cannot compute sizeof (long int)
11188     See \`config.log' for more details." >&2;}
11189     { (exit 77); exit 77; }; }
11190     else
11191     ac_cv_sizeof_long_int=0
11192     fi
11193     fi
11194     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11195     fi
11196     rm -f conftest.val
11197     fi
11198     { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
11199     echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
11200    
11201    
11202    
11203     cat >>confdefs.h <<_ACEOF
11204     #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
11205     _ACEOF
11206    
11207    
11208     { echo "$as_me:$LINENO: checking for long long" >&5
11209     echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
11210     if test "${ac_cv_type_long_long+set}" = set; then
11211     echo $ECHO_N "(cached) $ECHO_C" >&6
11212     else
11213     cat >conftest.$ac_ext <<_ACEOF
11214     /* confdefs.h. */
11215     _ACEOF
11216     cat confdefs.h >>conftest.$ac_ext
11217     cat >>conftest.$ac_ext <<_ACEOF
11218     /* end confdefs.h. */
11219     $ac_includes_default
11220     typedef long long ac__type_new_;
11221     int
11222     main ()
11223     {
11224     if ((ac__type_new_ *) 0)
11225     return 0;
11226     if (sizeof (ac__type_new_))
11227     return 0;
11228     ;
11229     return 0;
11230     }
11231     _ACEOF
11232     rm -f conftest.$ac_objext
11233     if { (ac_try="$ac_compile"
11234     case "(($ac_try" in
11235     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236     *) ac_try_echo=$ac_try;;
11237     esac
11238     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239     (eval "$ac_compile") 2>conftest.er1
11240     ac_status=$?
11241     grep -v '^ *+' conftest.er1 >conftest.err
11242     rm -f conftest.er1
11243     cat conftest.err >&5
11244     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245     (exit $ac_status); } && {
11246     test -z "$ac_c_werror_flag" ||
11247     test ! -s conftest.err
11248     } && test -s conftest.$ac_objext; then
11249     ac_cv_type_long_long=yes
11250     else
11251     echo "$as_me: failed program was:" >&5
11252     sed 's/^/| /' conftest.$ac_ext >&5
11253    
11254     ac_cv_type_long_long=no
11255     fi
11256    
11257     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258     fi
11259     { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11260     echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
11261    
11262     # The cast to long int works around a bug in the HP C Compiler
11263     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11264     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11265     # This bug is HP SR number 8606223364.
11266     { echo "$as_me:$LINENO: checking size of long long" >&5
11267     echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
11268     if test "${ac_cv_sizeof_long_long+set}" = set; then
11269     echo $ECHO_N "(cached) $ECHO_C" >&6
11270     else
11271     if test "$cross_compiling" = yes; then
11272     # Depending upon the size, compute the lo and hi bounds.
11273     cat >conftest.$ac_ext <<_ACEOF
11274     /* confdefs.h. */
11275     _ACEOF
11276     cat confdefs.h >>conftest.$ac_ext
11277     cat >>conftest.$ac_ext <<_ACEOF
11278     /* end confdefs.h. */
11279     $ac_includes_default
11280     typedef long long ac__type_sizeof_;
11281     int
11282     main ()
11283     {
11284     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
11285     test_array [0] = 0
11286    
11287     ;
11288     return 0;
11289     }
11290     _ACEOF
11291     rm -f conftest.$ac_objext
11292     if { (ac_try="$ac_compile"
11293     case "(($ac_try" in
11294     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295     *) ac_try_echo=$ac_try;;
11296     esac
11297     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298     (eval "$ac_compile") 2>conftest.er1
11299     ac_status=$?
11300     grep -v '^ *+' conftest.er1 >conftest.err
11301     rm -f conftest.er1
11302     cat conftest.err >&5
11303     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304     (exit $ac_status); } && {
11305     test -z "$ac_c_werror_flag" ||
11306     test ! -s conftest.err
11307     } && test -s conftest.$ac_objext; then
11308     ac_lo=0 ac_mid=0
11309     while :; do
11310     cat >conftest.$ac_ext <<_ACEOF
11311     /* confdefs.h. */
11312     _ACEOF
11313     cat confdefs.h >>conftest.$ac_ext
11314     cat >>conftest.$ac_ext <<_ACEOF
11315     /* end confdefs.h. */
11316     $ac_includes_default
11317     typedef long long ac__type_sizeof_;
11318     int
11319     main ()
11320     {
11321     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11322     test_array [0] = 0
11323    
11324     ;
11325     return 0;
11326     }
11327     _ACEOF
11328     rm -f conftest.$ac_objext
11329     if { (ac_try="$ac_compile"
11330     case "(($ac_try" in
11331     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332     *) ac_try_echo=$ac_try;;
11333     esac
11334     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335     (eval "$ac_compile") 2>conftest.er1
11336     ac_status=$?
11337     grep -v '^ *+' conftest.er1 >conftest.err
11338     rm -f conftest.er1
11339     cat conftest.err >&5
11340     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341     (exit $ac_status); } && {
11342     test -z "$ac_c_werror_flag" ||
11343     test ! -s conftest.err
11344     } && test -s conftest.$ac_objext; then
11345     ac_hi=$ac_mid; break
11346     else
11347     echo "$as_me: failed program was:" >&5
11348     sed 's/^/| /' conftest.$ac_ext >&5
11349    
11350     ac_lo=`expr $ac_mid + 1`
11351     if test $ac_lo -le $ac_mid; then
11352     ac_lo= ac_hi=
11353     break
11354     fi
11355     ac_mid=`expr 2 '*' $ac_mid + 1`
11356     fi
11357    
11358     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11359     done
11360     else
11361     echo "$as_me: failed program was:" >&5
11362     sed 's/^/| /' conftest.$ac_ext >&5
11363    
11364     cat >conftest.$ac_ext <<_ACEOF
11365     /* confdefs.h. */
11366     _ACEOF
11367     cat confdefs.h >>conftest.$ac_ext
11368     cat >>conftest.$ac_ext <<_ACEOF
11369     /* end confdefs.h. */
11370     $ac_includes_default
11371     typedef long long ac__type_sizeof_;
11372     int
11373     main ()
11374     {
11375     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
11376     test_array [0] = 0
11377    
11378     ;
11379     return 0;
11380     }
11381     _ACEOF
11382     rm -f conftest.$ac_objext
11383     if { (ac_try="$ac_compile"
11384     case "(($ac_try" in
11385     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386     *) ac_try_echo=$ac_try;;
11387     esac
11388     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389     (eval "$ac_compile") 2>conftest.er1
11390     ac_status=$?
11391     grep -v '^ *+' conftest.er1 >conftest.err
11392     rm -f conftest.er1
11393     cat conftest.err >&5
11394     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395     (exit $ac_status); } && {
11396     test -z "$ac_c_werror_flag" ||
11397     test ! -s conftest.err
11398     } && test -s conftest.$ac_objext; then
11399     ac_hi=-1 ac_mid=-1
11400     while :; do
11401     cat >conftest.$ac_ext <<_ACEOF
11402     /* confdefs.h. */
11403     _ACEOF
11404     cat confdefs.h >>conftest.$ac_ext
11405     cat >>conftest.$ac_ext <<_ACEOF
11406     /* end confdefs.h. */
11407     $ac_includes_default
11408     typedef long long ac__type_sizeof_;
11409     int
11410     main ()
11411     {
11412     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
11413     test_array [0] = 0
11414    
11415     ;
11416     return 0;
11417     }
11418     _ACEOF
11419     rm -f conftest.$ac_objext
11420     if { (ac_try="$ac_compile"
11421     case "(($ac_try" in
11422     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423     *) ac_try_echo=$ac_try;;
11424     esac
11425     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426     (eval "$ac_compile") 2>conftest.er1
11427     ac_status=$?
11428     grep -v '^ *+' conftest.er1 >conftest.err
11429     rm -f conftest.er1
11430     cat conftest.err >&5
11431     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432     (exit $ac_status); } && {
11433     test -z "$ac_c_werror_flag" ||
11434     test ! -s conftest.err
11435     } && test -s conftest.$ac_objext; then
11436     ac_lo=$ac_mid; break
11437     else
11438     echo "$as_me: failed program was:" >&5
11439     sed 's/^/| /' conftest.$ac_ext >&5
11440    
11441     ac_hi=`expr '(' $ac_mid ')' - 1`
11442     if test $ac_mid -le $ac_hi; then
11443     ac_lo= ac_hi=
11444     break
11445     fi
11446     ac_mid=`expr 2 '*' $ac_mid`
11447     fi
11448    
11449     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11450     done
11451     else
11452     echo "$as_me: failed program was:" >&5
11453     sed 's/^/| /' conftest.$ac_ext >&5
11454    
11455     ac_lo= ac_hi=
11456     fi
11457    
11458     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459     fi
11460    
11461     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462     # Binary search between lo and hi bounds.
11463     while test "x$ac_lo" != "x$ac_hi"; do
11464     ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11465     cat >conftest.$ac_ext <<_ACEOF
11466     /* confdefs.h. */
11467     _ACEOF
11468     cat confdefs.h >>conftest.$ac_ext
11469     cat >>conftest.$ac_ext <<_ACEOF
11470     /* end confdefs.h. */
11471     $ac_includes_default
11472     typedef long long ac__type_sizeof_;
11473     int
11474     main ()
11475     {
11476     static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
11477     test_array [0] = 0
11478    
11479     ;
11480     return 0;
11481     }
11482     _ACEOF
11483     rm -f conftest.$ac_objext
11484     if { (ac_try="$ac_compile"
11485     case "(($ac_try" in
11486     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11487     *) ac_try_echo=$ac_try;;
11488     esac
11489     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11490     (eval "$ac_compile") 2>conftest.er1
11491     ac_status=$?
11492     grep -v '^ *+' conftest.er1 >conftest.err
11493     rm -f conftest.er1
11494     cat conftest.err >&5
11495     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496     (exit $ac_status); } && {
11497     test -z "$ac_c_werror_flag" ||
11498     test ! -s conftest.err
11499     } && test -s conftest.$ac_objext; then
11500     ac_hi=$ac_mid
11501     else
11502     echo "$as_me: failed program was:" >&5
11503     sed 's/^/| /' conftest.$ac_ext >&5
11504    
11505     ac_lo=`expr '(' $ac_mid ')' + 1`
11506     fi
11507    
11508     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11509     done
11510     case $ac_lo in
11511     ?*) ac_cv_sizeof_long_long=$ac_lo;;
11512     '') if test "$ac_cv_type_long_long" = yes; then
11513     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11514     See \`config.log' for more details." >&5
11515     echo "$as_me: error: cannot compute sizeof (long long)
11516     See \`config.log' for more details." >&2;}
11517     { (exit 77); exit 77; }; }
11518     else
11519     ac_cv_sizeof_long_long=0
11520     fi ;;
11521     esac
11522     else
11523     cat >conftest.$ac_ext <<_ACEOF
11524     /* confdefs.h. */
11525     _ACEOF
11526     cat confdefs.h >>conftest.$ac_ext
11527     cat >>conftest.$ac_ext <<_ACEOF
11528     /* end confdefs.h. */
11529     $ac_includes_default
11530     typedef long long ac__type_sizeof_;
11531     static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
11532     static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
11533     #include <stdio.h>
11534     #include <stdlib.h>
11535     int
11536     main ()
11537     {
11538    
11539     FILE *f = fopen ("conftest.val", "w");
11540     if (! f)
11541     return 1;
11542     if (((long int) (sizeof (ac__type_sizeof_))) < 0)
11543     {
11544     long int i = longval ();
11545     if (i != ((long int) (sizeof (ac__type_sizeof_))))
11546     return 1;
11547     fprintf (f, "%ld\n", i);
11548     }
11549     else
11550     {
11551     unsigned long int i = ulongval ();
11552     if (i != ((long int) (sizeof (ac__type_sizeof_))))
11553     return 1;
11554     fprintf (f, "%lu\n", i);
11555     }
11556     return ferror (f) || fclose (f) != 0;
11557    
11558     ;
11559     return 0;
11560     }
11561     _ACEOF
11562     rm -f conftest$ac_exeext
11563     if { (ac_try="$ac_link"
11564     case "(($ac_try" in
11565     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566     *) ac_try_echo=$ac_try;;
11567     esac
11568     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569     (eval "$ac_link") 2>&5
11570     ac_status=$?
11571     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572     (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11573     { (case "(($ac_try" in
11574     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575     *) ac_try_echo=$ac_try;;
11576     esac
11577     eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578     (eval "$ac_try") 2>&5
11579     ac_status=$?
11580     echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581     (exit $ac_status); }; }; then
11582     ac_cv_sizeof_long_long=`cat conftest.val`
11583     else
11584     echo "$as_me: program exited with status $ac_status" >&5
11585     echo "$as_me: failed program was:" >&5
11586     sed 's/^/| /' conftest.$ac_ext >&5
11587    
11588     ( exit $ac_status )
11589     if test "$ac_cv_type_long_long" = yes; then
11590     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
11591     See \`config.log' for more details." >&5
11592     echo "$as_me: error: cannot compute sizeof (long long)
11593     See \`config.log' for more details." >&2;}
11594     { (exit 77); exit 77; }; }
11595     else
11596     ac_cv_sizeof_long_long=0
11597     fi
11598     fi
11599     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11600     fi
11601     rm -f conftest.val
11602     fi
11603     { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11604     echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
11605    
11606    
11607    
11608     cat >>confdefs.h <<_ACEOF
11609     #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11610     _ACEOF
11611    
11612    
11613    
11614     #AC_SUBST(PTHREAD_FLAGS)
11615    
11616     ac_config_files="$ac_config_files Makefile doc/Makefile scripts/Makefile src/Makefile src/cpu/Makefile src/cpu/cpu_generic/Makefile src/cpu/cpu_jitc_x86/Makefile src/debug/Makefile src/io/Makefile src/io/3c90x/Makefile src/io/ide/Makefile src/io/graphic/Makefile src/io/rtl8139/Makefile src/io/prom/Makefile src/io/prom/fs/Makefile src/io/prom/fs/hfs/Makefile src/io/prom/fs/hfsplus/Makefile src/io/cuda/Makefile src/io/pci/Makefile src/io/pic/Makefile src/io/macio/Makefile src/io/nvram/Makefile src/io/usb/Makefile src/io/serial/Makefile src/system/Makefile src/system/arch/Makefile src/system/arch/x86/Makefile src/system/arch/generic/Makefile src/system/osapi/Makefile src/system/osapi/beos/Makefile src/system/osapi/posix/Makefile src/system/osapi/win32/Makefile src/system/ui/Makefile src/system/ui/beos/Makefile src/system/ui/gtk/Makefile src/system/ui/qt/Makefile src/system/ui/sdl/Makefile src/system/ui/win32/Makefile src/system/ui/x11/Makefile src/tools/Makefile"
11617    
11618     cat >confcache <<\_ACEOF
11619     # This file is a shell script that caches the results of configure
11620     # tests run on this system so they can be shared between configure
11621     # scripts and configure runs, see configure's option --config-cache.
11622     # It is not useful on other systems. If it contains results you don't
11623     # want to keep, you may remove or edit it.
11624     #
11625     # config.status only pays attention to the cache file if you give it
11626     # the --recheck option to rerun configure.
11627     #
11628     # `ac_cv_env_foo' variables (set or unset) will be overridden when
11629     # loading this file, other *unset* `ac_cv_foo' will be assigned the
11630     # following values.
11631    
11632     _ACEOF
11633    
11634     # The following way of writing the cache mishandles newlines in values,
11635     # but we know of no workaround that is simple, portable, and efficient.
11636     # So, we kill variables containing newlines.
11637     # Ultrix sh set writes to stderr and can't be redirected directly,
11638     # and sets the high bit in the cache file unless we assign to the vars.
11639     (
11640     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11641     eval ac_val=\$$ac_var
11642     case $ac_val in #(
11643     *${as_nl}*)
11644     case $ac_var in #(
11645     *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11646     echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11647     esac
11648     case $ac_var in #(
11649     _ | IFS | as_nl) ;; #(
11650     *) $as_unset $ac_var ;;
11651     esac ;;
11652     esac
11653     done
11654    
11655     (set) 2>&1 |
11656     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11657     *${as_nl}ac_space=\ *)
11658     # `set' does not quote correctly, so add quotes (double-quote
11659     # substitution turns \\\\ into \\, and sed turns \\ into \).
11660     sed -n \
11661     "s/'/'\\\\''/g;
11662     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11663     ;; #(
11664     *)
11665     # `set' quotes correctly as required by POSIX, so do not add quotes.
11666     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11667     ;;
11668     esac |
11669     sort
11670     ) |
11671     sed '
11672     /^ac_cv_env_/b end
11673     t clear
11674     :clear
11675     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11676     t end
11677     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11678     :end' >>confcache
11679     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11680     if test -w "$cache_file"; then
11681     test "x$cache_file" != "x/dev/null" &&
11682     { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11683     echo "$as_me: updating cache $cache_file" >&6;}
11684     cat confcache >$cache_file
11685     else
11686     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11687     echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11688     fi
11689     fi
11690     rm -f confcache
11691    
11692     test "x$prefix" = xNONE && prefix=$ac_default_prefix
11693     # Let make expand exec_prefix.
11694     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11695    
11696     DEFS=-DHAVE_CONFIG_H
11697    
11698     ac_libobjs=
11699     ac_ltlibobjs=
11700     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11701     # 1. Remove the extension, and $U if already installed.
11702     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11703     ac_i=`echo "$ac_i" | sed "$ac_script"`
11704     # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11705     # will be set to the directory where LIBOBJS objects are built.
11706     ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11707     ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11708     done
11709     LIBOBJS=$ac_libobjs
11710    
11711     LTLIBOBJS=$ac_ltlibobjs
11712    
11713    
11714     if test -z "${USE_OSAPI_BEOS_TRUE}" && test -z "${USE_OSAPI_BEOS_FALSE}"; then
11715     { { echo "$as_me:$LINENO: error: conditional \"USE_OSAPI_BEOS\" was never defined.
11716     Usually this means the macro was only invoked conditionally." >&5
11717     echo "$as_me: error: conditional \"USE_OSAPI_BEOS\" was never defined.
11718     Usually this means the macro was only invoked conditionally." >&2;}
11719     { (exit 1); exit 1; }; }
11720     fi
11721     if test -z "${USE_OSAPI_POSIX_TRUE}" && test -z "${USE_OSAPI_POSIX_FALSE}"; then
11722     { { echo "$as_me:$LINENO: error: conditional \"USE_OSAPI_POSIX\" was never defined.
11723     Usually this means the macro was only invoked conditionally." >&5
11724     echo "$as_me: error: conditional \"USE_OSAPI_POSIX\" was never defined.
11725     Usually this means the macro was only invoked conditionally." >&2;}
11726     { (exit 1); exit 1; }; }
11727     fi
11728     if test -z "${USE_OSAPI_WIN32_TRUE}" && test -z "${USE_OSAPI_WIN32_FALSE}"; then
11729     { { echo "$as_me:$LINENO: error: conditional \"USE_OSAPI_WIN32\" was never defined.
11730     Usually this means the macro was only invoked conditionally." >&5
11731     echo "$as_me: error: conditional \"USE_OSAPI_WIN32\" was never defined.
11732     Usually this means the macro was only invoked conditionally." >&2;}
11733     { (exit 1); exit 1; }; }
11734     fi
11735     if test -z "${USE_CPU_GENERIC_TRUE}" && test -z "${USE_CPU_GENERIC_FALSE}"; then
11736     { { echo "$as_me:$LINENO: error: conditional \"USE_CPU_GENERIC\" was never defined.
11737     Usually this means the macro was only invoked conditionally." >&5
11738     echo "$as_me: error: conditional \"USE_CPU_GENERIC\" was never defined.
11739     Usually this means the macro was only invoked conditionally." >&2;}
11740     { (exit 1); exit 1; }; }
11741     fi
11742     if test -z "${USE_CPU_JITC_X86_TRUE}" && test -z "${USE_CPU_JITC_X86_FALSE}"; then
11743     { { echo "$as_me:$LINENO: error: conditional \"USE_CPU_JITC_X86\" was never defined.
11744     Usually this means the macro was only invoked conditionally." >&5
11745     echo "$as_me: error: conditional \"USE_CPU_JITC_X86\" was never defined.
11746     Usually this means the macro was only invoked conditionally." >&2;}
11747     { (exit 1); exit 1; }; }
11748     fi
11749     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11750     { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11751     Usually this means the macro was only invoked conditionally." >&5
11752     echo "$as_me: error: conditional \"AMDEP\" was never defined.
11753     Usually this means the macro was only invoked conditionally." >&2;}
11754     { (exit 1); exit 1; }; }
11755     fi
11756     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11757     { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11758     Usually this means the macro was only invoked conditionally." >&5
11759     echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11760     Usually this means the macro was only invoked conditionally." >&2;}
11761     { (exit 1); exit 1; }; }
11762     fi
11763     if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11764     { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
11765     Usually this means the macro was only invoked conditionally." >&5
11766     echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
11767     Usually this means the macro was only invoked conditionally." >&2;}
11768     { (exit 1); exit 1; }; }
11769     fi
11770     if test -z "${USE_ARCH_X86_TRUE}" && test -z "${USE_ARCH_X86_FALSE}"; then
11771     { { echo "$as_me:$LINENO: error: conditional \"USE_ARCH_X86\" was never defined.
11772     Usually this means the macro was only invoked conditionally." >&5
11773     echo "$as_me: error: conditional \"USE_ARCH_X86\" was never defined.
11774     Usually this means the macro was only invoked conditionally." >&2;}
11775     { (exit 1); exit 1; }; }
11776     fi
11777     if test -z "${USE_ARCH_GENERIC_TRUE}" && test -z "${USE_ARCH_GENERIC_FALSE}"; then
11778     { { echo "$as_me:$LINENO: error: conditional \"USE_ARCH_GENERIC\" was never defined.
11779     Usually this means the macro was only invoked conditionally." >&5
11780     echo "$as_me: error: conditional \"USE_ARCH_GENERIC\" was never defined.
11781     Usually this means the macro was only invoked conditionally." >&2;}
11782     { (exit 1); exit 1; }; }
11783     fi
11784     if test -z "${USE_UI_QT_TRUE}" && test -z "${USE_UI_QT_FALSE}"; then
11785     { { echo "$as_me:$LINENO: error: conditional \"USE_UI_QT\" was never defined.
11786     Usually this means the macro was only invoked conditionally." >&5
11787     echo "$as_me: error: conditional \"USE_UI_QT\" was never defined.
11788     Usually this means the macro was only invoked conditionally." >&2;}
11789     { (exit 1); exit 1; }; }
11790     fi
11791     if test -z "${USE_UI_GTK_TRUE}" && test -z "${USE_UI_GTK_FALSE}"; then
11792     { { echo "$as_me:$LINENO: error: conditional \"USE_UI_GTK\" was never defined.
11793     Usually this means the macro was only invoked conditionally." >&5
11794     echo "$as_me: error: conditional \"USE_UI_GTK\" was never defined.
11795     Usually this means the macro was only invoked conditionally." >&2;}
11796     { (exit 1); exit 1; }; }
11797     fi
11798     if test -z "${USE_UI_BEOS_TRUE}" && test -z "${USE_UI_BEOS_FALSE}"; then
11799     { { echo "$as_me:$LINENO: error: conditional \"USE_UI_BEOS\" was never defined.
11800     Usually this means the macro was only invoked conditionally." >&5
11801     echo "$as_me: error: conditional \"USE_UI_BEOS\" was never defined.
11802     Usually this means the macro was only invoked conditionally." >&2;}
11803     { (exit 1); exit 1; }; }
11804     fi
11805     if test -z "${USE_UI_SDL_TRUE}" && test -z "${USE_UI_SDL_FALSE}"; then
11806     { { echo "$as_me:$LINENO: error: conditional \"USE_UI_SDL\" was never defined.
11807     Usually this means the macro was only invoked conditionally." >&5
11808     echo "$as_me: error: conditional \"USE_UI_SDL\" was never defined.
11809     Usually this means the macro was only invoked conditionally." >&2;}
11810     { (exit 1); exit 1; }; }
11811     fi
11812     if test -z "${USE_UI_WIN32_TRUE}" && test -z "${USE_UI_WIN32_FALSE}"; then
11813     { { echo "$as_me:$LINENO: error: conditional \"USE_UI_WIN32\" was never defined.
11814     Usually this means the macro was only invoked conditionally." >&5
11815     echo "$as_me: error: conditional \"USE_UI_WIN32\" was never defined.
11816     Usually this means the macro was only invoked conditionally." >&2;}
11817     { (exit 1); exit 1; }; }
11818     fi
11819     if test -z "${USE_UI_X11_TRUE}" && test -z "${USE_UI_X11_FALSE}"; then
11820     { { echo "$as_me:$LINENO: error: conditional \"USE_UI_X11\" was never defined.
11821     Usually this means the macro was only invoked conditionally." >&5
11822     echo "$as_me: error: conditional \"USE_UI_X11\" was never defined.
11823     Usually this means the macro was only invoked conditionally." >&2;}
11824     { (exit 1); exit 1; }; }
11825     fi
11826    
11827     : ${CONFIG_STATUS=./config.status}
11828     ac_clean_files_save=$ac_clean_files
11829     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11830     { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11831     echo "$as_me: creating $CONFIG_STATUS" >&6;}
11832     cat >$CONFIG_STATUS <<_ACEOF
11833     #! $SHELL
11834     # Generated by $as_me.
11835     # Run this file to recreate the current configuration.
11836     # Compiler output produced by configure, useful for debugging
11837     # configure, is in config.log if it exists.
11838    
11839     debug=false
11840     ac_cs_recheck=false
11841     ac_cs_silent=false
11842     SHELL=\${CONFIG_SHELL-$SHELL}
11843     _ACEOF
11844    
11845     cat >>$CONFIG_STATUS <<\_ACEOF
11846     ## --------------------- ##
11847     ## M4sh Initialization. ##
11848     ## --------------------- ##
11849    
11850     # Be more Bourne compatible
11851     DUALCASE=1; export DUALCASE # for MKS sh
11852     if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11853     emulate sh
11854     NULLCMD=:
11855     # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11856     # is contrary to our usage. Disable this feature.
11857     alias -g '${1+"$@"}'='"$@"'
11858     setopt NO_GLOB_SUBST
11859     else
11860     case `(set -o) 2>/dev/null` in
11861     *posix*) set -o posix ;;
11862     esac
11863    
11864     fi
11865    
11866    
11867    
11868    
11869     # PATH needs CR
11870     # Avoid depending upon Character Ranges.
11871     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11872     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11873     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11874     as_cr_digits='0123456789'
11875     as_cr_alnum=$as_cr_Letters$as_cr_digits
11876    
11877     # The user is always right.
11878     if test "${PATH_SEPARATOR+set}" != set; then
11879     echo "#! /bin/sh" >conf$$.sh
11880     echo "exit 0" >>conf$$.sh
11881     chmod +x conf$$.sh
11882     if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11883     PATH_SEPARATOR=';'
11884     else
11885     PATH_SEPARATOR=:
11886     fi
11887     rm -f conf$$.sh
11888     fi
11889    
11890     # Support unset when possible.
11891     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11892     as_unset=unset
11893     else
11894     as_unset=false
11895     fi
11896    
11897    
11898     # IFS
11899     # We need space, tab and new line, in precisely that order. Quoting is
11900     # there to prevent editors from complaining about space-tab.
11901     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11902     # splitting by setting IFS to empty value.)
11903     as_nl='
11904     '
11905     IFS=" "" $as_nl"
11906    
11907     # Find who we are. Look in the path if we contain no directory separator.
11908     case $0 in
11909     *[\\/]* ) as_myself=$0 ;;
11910     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911     for as_dir in $PATH
11912     do
11913     IFS=$as_save_IFS
11914     test -z "$as_dir" && as_dir=.
11915     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11916     done
11917     IFS=$as_save_IFS
11918    
11919     ;;
11920     esac
11921     # We did not find ourselves, most probably we were run as `sh COMMAND'
11922     # in which case we are not to be found in the path.
11923     if test "x$as_myself" = x; then
11924     as_myself=$0
11925     fi
11926     if test ! -f "$as_myself"; then
11927     echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11928     { (exit 1); exit 1; }
11929     fi
11930    
11931     # Work around bugs in pre-3.0 UWIN ksh.
11932     for as_var in ENV MAIL MAILPATH
11933     do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11934     done
11935     PS1='$ '
11936     PS2='> '
11937     PS4='+ '
11938    
11939     # NLS nuisances.
11940     for as_var in \
11941     LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11942     LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11943     LC_TELEPHONE LC_TIME
11944     do
11945     if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11946     eval $as_var=C; export $as_var
11947     else
11948     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11949     fi
11950     done
11951    
11952     # Required to use basename.
11953     if expr a : '\(a\)' >/dev/null 2>&1 &&
11954     test "X`expr 00001 : '.*\(...\)'`" = X001; then
11955     as_expr=expr
11956     else
11957     as_expr=false
11958     fi
11959    
11960     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11961     as_basename=basename
11962     else
11963     as_basename=false
11964     fi
11965    
11966    
11967     # Name of the executable.
11968     as_me=`$as_basename -- "$0" ||
11969     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11970     X"$0" : 'X\(//\)$' \| \
11971     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11972     echo X/"$0" |
11973     sed '/^.*\/\([^/][^/]*\)\/*$/{
11974     s//\1/
11975     q
11976     }
11977     /^X\/\(\/\/\)$/{
11978     s//\1/
11979     q
11980     }
11981     /^X\/\(\/\).*/{
11982     s//\1/
11983     q
11984     }
11985     s/.*/./; q'`
11986    
11987     # CDPATH.
11988     $as_unset CDPATH
11989    
11990    
11991    
11992     as_lineno_1=$LINENO
11993     as_lineno_2=$LINENO
11994     test "x$as_lineno_1" != "x$as_lineno_2" &&
11995     test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11996    
11997     # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11998     # uniformly replaced by the line number. The first 'sed' inserts a
11999     # line-number line after each line using $LINENO; the second 'sed'
12000     # does the real work. The second script uses 'N' to pair each
12001     # line-number line with the line containing $LINENO, and appends
12002     # trailing '-' during substitution so that $LINENO is not a special
12003     # case at line end.
12004     # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12005     # scripts with optimization help from Paolo Bonzini. Blame Lee
12006     # E. McMahon (1931-1989) for sed's syntax. :-)
12007     sed -n '
12008     p
12009     /[$]LINENO/=
12010     ' <$as_myself |
12011     sed '
12012     s/[$]LINENO.*/&-/
12013     t lineno
12014     b
12015     :lineno
12016     N
12017     :loop
12018     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12019     t loop
12020     s/-\n.*//
12021     ' >$as_me.lineno &&
12022     chmod +x "$as_me.lineno" ||
12023     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12024     { (exit 1); exit 1; }; }
12025    
12026     # Don't try to exec as it changes $[0], causing all sort of problems
12027     # (the dirname of $[0] is not the place where we might find the
12028     # original and so on. Autoconf is especially sensitive to this).
12029     . "./$as_me.lineno"
12030     # Exit status is that of the last command.
12031     exit
12032     }
12033    
12034    
12035     if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12036     as_dirname=dirname
12037     else
12038     as_dirname=false
12039     fi
12040    
12041     ECHO_C= ECHO_N= ECHO_T=
12042     case `echo -n x` in
12043     -n*)
12044     case `echo 'x\c'` in
12045     *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12046     *) ECHO_C='\c';;
12047     esac;;
12048     *)
12049     ECHO_N='-n';;
12050     esac
12051    
12052     if expr a : '\(a\)' >/dev/null 2>&1 &&
12053     test "X`expr 00001 : '.*\(...\)'`" = X001; then
12054     as_expr=expr
12055     else
12056     as_expr=false
12057     fi
12058    
12059     rm -f conf$$ conf$$.exe conf$$.file
12060     if test -d conf$$.dir; then
12061     rm -f conf$$.dir/conf$$.file
12062     else
12063     rm -f conf$$.dir
12064     mkdir conf$$.dir
12065     fi
12066     echo >conf$$.file
12067     if ln -s conf$$.file conf$$ 2>/dev/null; then
12068     as_ln_s='ln -s'
12069     # ... but there are two gotchas:
12070     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12071     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12072     # In both cases, we have to default to `cp -p'.
12073     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12074     as_ln_s='cp -p'
12075     elif ln conf$$.file conf$$ 2>/dev/null; then
12076     as_ln_s=ln
12077     else
12078     as_ln_s='cp -p'
12079     fi
12080     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12081     rmdir conf$$.dir 2>/dev/null
12082    
12083     if mkdir -p . 2>/dev/null; then
12084     as_mkdir_p=:
12085     else
12086     test -d ./-p && rmdir ./-p
12087     as_mkdir_p=false
12088     fi
12089    
12090     if test -x / >/dev/null 2>&1; then
12091     as_test_x='test -x'
12092     else
12093     if ls -dL / >/dev/null 2>&1; then
12094     as_ls_L_option=L
12095     else
12096     as_ls_L_option=
12097     fi
12098     as_test_x='
12099     eval sh -c '\''
12100     if test -d "$1"; then
12101     test -d "$1/.";
12102     else
12103     case $1 in
12104     -*)set "./$1";;
12105     esac;
12106     case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12107     ???[sx]*):;;*)false;;esac;fi
12108     '\'' sh
12109     '
12110     fi
12111     as_executable_p=$as_test_x
12112    
12113     # Sed expression to map a string onto a valid CPP name.
12114     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12115    
12116     # Sed expression to map a string onto a valid variable name.
12117     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12118    
12119    
12120     exec 6>&1
12121    
12122     # Save the log message, to keep $[0] and so on meaningful, and to
12123     # report actual input values of CONFIG_FILES etc. instead of their
12124     # values after options handling.
12125     ac_log="
12126     This file was extended by $as_me, which was
12127     generated by GNU Autoconf 2.61. Invocation command line was
12128    
12129     CONFIG_FILES = $CONFIG_FILES
12130     CONFIG_HEADERS = $CONFIG_HEADERS
12131     CONFIG_LINKS = $CONFIG_LINKS
12132     CONFIG_COMMANDS = $CONFIG_COMMANDS
12133     $ $0 $@
12134    
12135     on `(hostname || uname -n) 2>/dev/null | sed 1q`
12136     "
12137    
12138     _ACEOF
12139    
12140     cat >>$CONFIG_STATUS <<_ACEOF
12141     # Files that config.status was made for.
12142     config_files="$ac_config_files"
12143     config_headers="$ac_config_headers"
12144     config_commands="$ac_config_commands"
12145    
12146     _ACEOF
12147    
12148     cat >>$CONFIG_STATUS <<\_ACEOF
12149     ac_cs_usage="\
12150     \`$as_me' instantiates files from templates according to the
12151     current configuration.
12152    
12153     Usage: $0 [OPTIONS] [FILE]...
12154    
12155     -h, --help print this help, then exit
12156     -V, --version print version number and configuration settings, then exit
12157     -q, --quiet do not print progress messages
12158     -d, --debug don't remove temporary files
12159     --recheck update $as_me by reconfiguring in the same conditions
12160     --file=FILE[:TEMPLATE]
12161     instantiate the configuration file FILE
12162     --header=FILE[:TEMPLATE]
12163     instantiate the configuration header FILE
12164    
12165     Configuration files:
12166     $config_files
12167    
12168     Configuration headers:
12169     $config_headers
12170    
12171     Configuration commands:
12172     $config_commands
12173    
12174     Report bugs to <bug-autoconf@gnu.org>."
12175    
12176     _ACEOF
12177     cat >>$CONFIG_STATUS <<_ACEOF
12178     ac_cs_version="\\
12179     config.status
12180     configured by $0, generated by GNU Autoconf 2.61,
12181     with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12182    
12183     Copyright (C) 2006 Free Software Foundation, Inc.
12184     This config.status script is free software; the Free Software Foundation
12185     gives unlimited permission to copy, distribute and modify it."
12186    
12187     ac_pwd='$ac_pwd'
12188     srcdir='$srcdir'
12189     INSTALL='$INSTALL'
12190     _ACEOF
12191    
12192     cat >>$CONFIG_STATUS <<\_ACEOF
12193     # If no file are specified by the user, then we need to provide default
12194     # value. By we need to know if files were specified by the user.
12195     ac_need_defaults=:
12196     while test $# != 0
12197     do
12198     case $1 in
12199     --*=*)
12200     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12201     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12202     ac_shift=:
12203     ;;
12204     *)
12205     ac_option=$1
12206     ac_optarg=$2
12207     ac_shift=shift
12208     ;;
12209     esac
12210    
12211     case $ac_option in
12212     # Handling of the options.
12213     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12214     ac_cs_recheck=: ;;
12215     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12216     echo "$ac_cs_version"; exit ;;
12217     --debug | --debu | --deb | --de | --d | -d )
12218     debug=: ;;
12219     --file | --fil | --fi | --f )
12220     $ac_shift
12221     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12222     ac_need_defaults=false;;
12223     --header | --heade | --head | --hea )
12224     $ac_shift
12225     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12226     ac_need_defaults=false;;
12227     --he | --h)
12228     # Conflict between --help and --header
12229     { echo "$as_me: error: ambiguous option: $1
12230     Try \`$0 --help' for more information." >&2
12231     { (exit 1); exit 1; }; };;
12232     --help | --hel | -h )
12233     echo "$ac_cs_usage"; exit ;;
12234     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12235     | -silent | --silent | --silen | --sile | --sil | --si | --s)
12236     ac_cs_silent=: ;;
12237    
12238     # This is an error.
12239     -*) { echo "$as_me: error: unrecognized option: $1
12240     Try \`$0 --help' for more information." >&2
12241     { (exit 1); exit 1; }; } ;;
12242    
12243     *) ac_config_targets="$ac_config_targets $1"
12244     ac_need_defaults=false ;;
12245    
12246     esac
12247     shift
12248     done
12249    
12250     ac_configure_extra_args=
12251    
12252     if $ac_cs_silent; then
12253     exec 6>/dev/null
12254     ac_configure_extra_args="$ac_configure_extra_args --silent"
12255     fi
12256    
12257     _ACEOF
12258     cat >>$CONFIG_STATUS <<_ACEOF
12259     if \$ac_cs_recheck; then
12260     echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12261     CONFIG_SHELL=$SHELL
12262     export CONFIG_SHELL
12263     exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12264     fi
12265    
12266     _ACEOF
12267     cat >>$CONFIG_STATUS <<\_ACEOF
12268     exec 5>>config.log
12269     {
12270     echo
12271     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12272     ## Running $as_me. ##
12273     _ASBOX
12274     echo "$ac_log"
12275     } >&5
12276    
12277     _ACEOF
12278     cat >>$CONFIG_STATUS <<_ACEOF
12279     #
12280     # INIT-COMMANDS
12281     #
12282     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12283    
12284     _ACEOF
12285    
12286     cat >>$CONFIG_STATUS <<\_ACEOF
12287    
12288     # Handling of arguments.
12289     for ac_config_target in $ac_config_targets
12290     do
12291     case $ac_config_target in
12292     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12293     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12294     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12295     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12296     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
12297     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12298     "src/cpu/Makefile") CONFIG_FILES="$CONFIG_FILES src/cpu/Makefile" ;;
12299     "src/cpu/cpu_generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/cpu/cpu_generic/Makefile" ;;
12300     "src/cpu/cpu_jitc_x86/Makefile") CONFIG_FILES="$CONFIG_FILES src/cpu/cpu_jitc_x86/Makefile" ;;
12301     "src/debug/Makefile") CONFIG_FILES="$CONFIG_FILES src/debug/Makefile" ;;
12302     "src/io/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/Makefile" ;;
12303     "src/io/3c90x/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/3c90x/Makefile" ;;
12304     "src/io/ide/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/ide/Makefile" ;;
12305     "src/io/graphic/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/graphic/Makefile" ;;
12306     "src/io/rtl8139/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/rtl8139/Makefile" ;;
12307     "src/io/prom/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/prom/Makefile" ;;
12308     "src/io/prom/fs/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/prom/fs/Makefile" ;;
12309     "src/io/prom/fs/hfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/prom/fs/hfs/Makefile" ;;
12310     "src/io/prom/fs/hfsplus/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/prom/fs/hfsplus/Makefile" ;;
12311     "src/io/cuda/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/cuda/Makefile" ;;
12312     "src/io/pci/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/pci/Makefile" ;;
12313     "src/io/pic/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/pic/Makefile" ;;
12314     "src/io/macio/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/macio/Makefile" ;;
12315     "src/io/nvram/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/nvram/Makefile" ;;
12316     "src/io/usb/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/usb/Makefile" ;;
12317     "src/io/serial/Makefile") CONFIG_FILES="$CONFIG_FILES src/io/serial/Makefile" ;;
12318     "src/system/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/Makefile" ;;
12319     "src/system/arch/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/arch/Makefile" ;;
12320     "src/system/arch/x86/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/arch/x86/Makefile" ;;
12321     "src/system/arch/generic/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/arch/generic/Makefile" ;;
12322     "src/system/osapi/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/osapi/Makefile" ;;
12323     "src/system/osapi/beos/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/osapi/beos/Makefile" ;;
12324     "src/system/osapi/posix/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/osapi/posix/Makefile" ;;
12325     "src/system/osapi/win32/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/osapi/win32/Makefile" ;;
12326     "src/system/ui/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/ui/Makefile" ;;
12327     "src/system/ui/beos/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/ui/beos/Makefile" ;;
12328     "src/system/ui/gtk/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/ui/gtk/Makefile" ;;
12329     "src/system/ui/qt/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/ui/qt/Makefile" ;;
12330     "src/system/ui/sdl/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/ui/sdl/Makefile" ;;
12331     "src/system/ui/win32/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/ui/win32/Makefile" ;;
12332     "src/system/ui/x11/Makefile") CONFIG_FILES="$CONFIG_FILES src/system/ui/x11/Makefile" ;;
12333     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
12334    
12335     *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12336     echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12337     { (exit 1); exit 1; }; };;
12338     esac
12339     done
12340    
12341    
12342     # If the user did not use the arguments to specify the items to instantiate,
12343     # then the envvar interface is used. Set only those that are not.
12344     # We use the long form for the default assignment because of an extremely
12345     # bizarre bug on SunOS 4.1.3.
12346     if $ac_need_defaults; then
12347     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12348     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12349     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12350     fi
12351    
12352     # Have a temporary directory for convenience. Make it in the build tree
12353     # simply because there is no reason against having it here, and in addition,
12354     # creating and moving files from /tmp can sometimes cause problems.
12355     # Hook for its removal unless debugging.
12356     # Note that there is a small window in which the directory will not be cleaned:
12357     # after its creation but before its name has been assigned to `$tmp'.
12358     $debug ||
12359     {
12360     tmp=
12361     trap 'exit_status=$?
12362     { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12363     ' 0
12364     trap '{ (exit 1); exit 1; }' 1 2 13 15
12365     }
12366     # Create a (secure) tmp directory for tmp files.
12367    
12368     {
12369     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12370     test -n "$tmp" && test -d "$tmp"
12371     } ||
12372     {
12373     tmp=./conf$$-$RANDOM
12374     (umask 077 && mkdir "$tmp")
12375     } ||
12376     {
12377     echo "$me: cannot create a temporary directory in ." >&2
12378     { (exit 1); exit 1; }
12379     }
12380    
12381     #
12382     # Set up the sed scripts for CONFIG_FILES section.
12383     #
12384    
12385     # No need to generate the scripts if there are no CONFIG_FILES.
12386     # This happens for instance when ./config.status config.h
12387     if test -n "$CONFIG_FILES"; then
12388    
12389     _ACEOF
12390    
12391    
12392    
12393     ac_delim='%!_!# '
12394     for ac_last_try in false false false false false :; do
12395     cat >conf$$subs.sed <<_ACEOF
12396     SHELL!$SHELL$ac_delim
12397     PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12398     PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12399     PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12400     PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12401     PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12402     PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12403     exec_prefix!$exec_prefix$ac_delim
12404     prefix!$prefix$ac_delim
12405     program_transform_name!$program_transform_name$ac_delim
12406     bindir!$bindir$ac_delim
12407     sbindir!$sbindir$ac_delim
12408     libexecdir!$libexecdir$ac_delim
12409     datarootdir!$datarootdir$ac_delim
12410     datadir!$datadir$ac_delim
12411     sysconfdir!$sysconfdir$ac_delim
12412     sharedstatedir!$sharedstatedir$ac_delim
12413     localstatedir!$localstatedir$ac_delim
12414     includedir!$includedir$ac_delim
12415     oldincludedir!$oldincludedir$ac_delim
12416     docdir!$docdir$ac_delim
12417     infodir!$infodir$ac_delim
12418     htmldir!$htmldir$ac_delim
12419     dvidir!$dvidir$ac_delim
12420     pdfdir!$pdfdir$ac_delim
12421     psdir!$psdir$ac_delim
12422     libdir!$libdir$ac_delim
12423     localedir!$localedir$ac_delim
12424     mandir!$mandir$ac_delim
12425     DEFS!$DEFS$ac_delim
12426     ECHO_C!$ECHO_C$ac_delim
12427     ECHO_N!$ECHO_N$ac_delim
12428     ECHO_T!$ECHO_T$ac_delim
12429     LIBS!$LIBS$ac_delim
12430     build_alias!$build_alias$ac_delim
12431     host_alias!$host_alias$ac_delim
12432     target_alias!$target_alias$ac_delim
12433     build!$build$ac_delim
12434     build_cpu!$build_cpu$ac_delim
12435     build_vendor!$build_vendor$ac_delim
12436     build_os!$build_os$ac_delim
12437     host!$host$ac_delim
12438     host_cpu!$host_cpu$ac_delim
12439     host_vendor!$host_vendor$ac_delim
12440     host_os!$host_os$ac_delim
12441     target!$target$ac_delim
12442     target_cpu!$target_cpu$ac_delim
12443     target_vendor!$target_vendor$ac_delim
12444     target_os!$target_os$ac_delim
12445     PACKAGE!$PACKAGE$ac_delim
12446     VERSION!$VERSION$ac_delim
12447     INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12448     INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12449     INSTALL_DATA!$INSTALL_DATA$ac_delim
12450     CYGPATH_W!$CYGPATH_W$ac_delim
12451     ACLOCAL!$ACLOCAL$ac_delim
12452     AUTOCONF!$AUTOCONF$ac_delim
12453     AUTOMAKE!$AUTOMAKE$ac_delim
12454     AUTOHEADER!$AUTOHEADER$ac_delim
12455     MAKEINFO!$MAKEINFO$ac_delim
12456     AMTAR!$AMTAR$ac_delim
12457     install_sh!$install_sh$ac_delim
12458     STRIP!$STRIP$ac_delim
12459     INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12460     mkdir_p!$mkdir_p$ac_delim
12461     AWK!$AWK$ac_delim
12462     SET_MAKE!$SET_MAKE$ac_delim
12463     am__leading_dot!$am__leading_dot$ac_delim
12464     USE_OSAPI_BEOS_TRUE!$USE_OSAPI_BEOS_TRUE$ac_delim
12465     USE_OSAPI_BEOS_FALSE!$USE_OSAPI_BEOS_FALSE$ac_delim
12466     USE_OSAPI_POSIX_TRUE!$USE_OSAPI_POSIX_TRUE$ac_delim
12467     USE_OSAPI_POSIX_FALSE!$USE_OSAPI_POSIX_FALSE$ac_delim
12468     USE_OSAPI_WIN32_TRUE!$USE_OSAPI_WIN32_TRUE$ac_delim
12469     USE_OSAPI_WIN32_FALSE!$USE_OSAPI_WIN32_FALSE$ac_delim
12470     USE_CPU_GENERIC_TRUE!$USE_CPU_GENERIC_TRUE$ac_delim
12471     USE_CPU_GENERIC_FALSE!$USE_CPU_GENERIC_FALSE$ac_delim
12472     USE_CPU_JITC_X86_TRUE!$USE_CPU_JITC_X86_TRUE$ac_delim
12473     USE_CPU_JITC_X86_FALSE!$USE_CPU_JITC_X86_FALSE$ac_delim
12474     RANLIB!$RANLIB$ac_delim
12475     MAKE!$MAKE$ac_delim
12476     CC!$CC$ac_delim
12477     CFLAGS!$CFLAGS$ac_delim
12478     LDFLAGS!$LDFLAGS$ac_delim
12479     CPPFLAGS!$CPPFLAGS$ac_delim
12480     ac_ct_CC!$ac_ct_CC$ac_delim
12481     EXEEXT!$EXEEXT$ac_delim
12482     OBJEXT!$OBJEXT$ac_delim
12483     DEPDIR!$DEPDIR$ac_delim
12484     am__include!$am__include$ac_delim
12485     am__quote!$am__quote$ac_delim
12486     AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12487     AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12488     AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12489     CCDEPMODE!$CCDEPMODE$ac_delim
12490     am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12491     am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12492     CXX!$CXX$ac_delim
12493     _ACEOF
12494    
12495     if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12496     break
12497     elif $ac_last_try; then
12498     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12499     echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12500     { (exit 1); exit 1; }; }
12501     else
12502     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12503     fi
12504     done
12505    
12506     ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12507     if test -n "$ac_eof"; then
12508     ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12509     ac_eof=`expr $ac_eof + 1`
12510     fi
12511    
12512     cat >>$CONFIG_STATUS <<_ACEOF
12513     cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12514     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12515     _ACEOF
12516     sed '
12517     s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12518     s/^/s,@/; s/!/@,|#_!!_#|/
12519     :n
12520     t n
12521     s/'"$ac_delim"'$/,g/; t
12522     s/$/\\/; p
12523     N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12524     ' >>$CONFIG_STATUS <conf$$subs.sed
12525     rm -f conf$$subs.sed
12526     cat >>$CONFIG_STATUS <<_ACEOF
12527     CEOF$ac_eof
12528     _ACEOF
12529    
12530    
12531     ac_delim='%!_!# '
12532     for ac_last_try in false false false false false :; do
12533     cat >conf$$subs.sed <<_ACEOF
12534     CXXFLAGS!$CXXFLAGS$ac_delim
12535     ac_ct_CXX!$ac_ct_CXX$ac_delim
12536     CXXDEPMODE!$CXXDEPMODE$ac_delim
12537     am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
12538     am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
12539     CPP!$CPP$ac_delim
12540     CCAS!$CCAS$ac_delim
12541     CCASFLAGS!$CCASFLAGS$ac_delim
12542     LEX!$LEX$ac_delim
12543     LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
12544     LEXLIB!$LEXLIB$ac_delim
12545     YACC!$YACC$ac_delim
12546     YFLAGS!$YFLAGS$ac_delim
12547     AR!$AR$ac_delim
12548     GREP!$GREP$ac_delim
12549     EGREP!$EGREP$ac_delim
12550     XMKMF!$XMKMF$ac_delim
12551     X_CFLAGS!$X_CFLAGS$ac_delim
12552     X_PRE_LIBS!$X_PRE_LIBS$ac_delim
12553     X_LIBS!$X_LIBS$ac_delim
12554     X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
12555     ac_thread!$ac_thread$ac_delim
12556     QT_CFLAGS!$QT_CFLAGS$ac_delim
12557     SDL_CONFIG!$SDL_CONFIG$ac_delim
12558     SDL_CFLAGS!$SDL_CFLAGS$ac_delim
12559     SDL_LIBS!$SDL_LIBS$ac_delim
12560     USE_ARCH_X86_TRUE!$USE_ARCH_X86_TRUE$ac_delim
12561     USE_ARCH_X86_FALSE!$USE_ARCH_X86_FALSE$ac_delim
12562     USE_ARCH_GENERIC_TRUE!$USE_ARCH_GENERIC_TRUE$ac_delim
12563     USE_ARCH_GENERIC_FALSE!$USE_ARCH_GENERIC_FALSE$ac_delim
12564     USE_UI_QT_TRUE!$USE_UI_QT_TRUE$ac_delim
12565     USE_UI_QT_FALSE!$USE_UI_QT_FALSE$ac_delim
12566     USE_UI_GTK_TRUE!$USE_UI_GTK_TRUE$ac_delim
12567     USE_UI_GTK_FALSE!$USE_UI_GTK_FALSE$ac_delim
12568     USE_UI_BEOS_TRUE!$USE_UI_BEOS_TRUE$ac_delim
12569     USE_UI_BEOS_FALSE!$USE_UI_BEOS_FALSE$ac_delim
12570     USE_UI_SDL_TRUE!$USE_UI_SDL_TRUE$ac_delim
12571     USE_UI_SDL_FALSE!$USE_UI_SDL_FALSE$ac_delim
12572     USE_UI_WIN32_TRUE!$USE_UI_WIN32_TRUE$ac_delim
12573     USE_UI_WIN32_FALSE!$USE_UI_WIN32_FALSE$ac_delim
12574     USE_UI_X11_TRUE!$USE_UI_X11_TRUE$ac_delim
12575     USE_UI_X11_FALSE!$USE_UI_X11_FALSE$ac_delim
12576     ARCH_DIR!$ARCH_DIR$ac_delim
12577     CPU_DIR!$CPU_DIR$ac_delim
12578     UI_DIR!$UI_DIR$ac_delim
12579     OSAPI_DIR!$OSAPI_DIR$ac_delim
12580     PPC_LDADD!$PPC_LDADD$ac_delim
12581     PPC_LDFLAGS!$PPC_LDFLAGS$ac_delim
12582     LIBOBJS!$LIBOBJS$ac_delim
12583     LTLIBOBJS!$LTLIBOBJS$ac_delim
12584     _ACEOF
12585    
12586     if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
12587     break
12588     elif $ac_last_try; then
12589     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12590     echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12591     { (exit 1); exit 1; }; }
12592     else
12593     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12594     fi
12595     done
12596    
12597     ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12598     if test -n "$ac_eof"; then
12599     ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12600     ac_eof=`expr $ac_eof + 1`
12601     fi
12602    
12603     cat >>$CONFIG_STATUS <<_ACEOF
12604     cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12605     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12606     _ACEOF
12607     sed '
12608     s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12609     s/^/s,@/; s/!/@,|#_!!_#|/
12610     :n
12611     t n
12612     s/'"$ac_delim"'$/,g/; t
12613     s/$/\\/; p
12614     N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12615     ' >>$CONFIG_STATUS <conf$$subs.sed
12616     rm -f conf$$subs.sed
12617     cat >>$CONFIG_STATUS <<_ACEOF
12618     :end
12619     s/|#_!!_#|//g
12620     CEOF$ac_eof
12621     _ACEOF
12622    
12623    
12624     # VPATH may cause trouble with some makes, so we remove $(srcdir),
12625     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12626     # trailing colons and then remove the whole line if VPATH becomes empty
12627     # (actually we leave an empty line to preserve line numbers).
12628     if test "x$srcdir" = x.; then
12629     ac_vpsub='/^[ ]*VPATH[ ]*=/{
12630     s/:*\$(srcdir):*/:/
12631     s/:*\${srcdir}:*/:/
12632     s/:*@srcdir@:*/:/
12633     s/^\([^=]*=[ ]*\):*/\1/
12634     s/:*$//
12635     s/^[^=]*=[ ]*$//
12636     }'
12637     fi
12638    
12639     cat >>$CONFIG_STATUS <<\_ACEOF
12640     fi # test -n "$CONFIG_FILES"
12641    
12642    
12643     for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12644     do
12645     case $ac_tag in
12646     :[FHLC]) ac_mode=$ac_tag; continue;;
12647     esac
12648     case $ac_mode$ac_tag in
12649     :[FHL]*:*);;
12650     :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12651     echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12652     { (exit 1); exit 1; }; };;
12653     :[FH]-) ac_tag=-:-;;
12654     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12655     esac
12656     ac_save_IFS=$IFS
12657     IFS=:
12658     set x $ac_tag
12659     IFS=$ac_save_IFS
12660     shift
12661     ac_file=$1
12662     shift
12663    
12664     case $ac_mode in
12665     :L) ac_source=$1;;
12666     :[FH])
12667     ac_file_inputs=
12668     for ac_f
12669     do
12670     case $ac_f in
12671     -) ac_f="$tmp/stdin";;
12672     *) # Look for the file first in the build tree, then in the source tree
12673     # (if the path is not absolute). The absolute path cannot be DOS-style,
12674     # because $ac_f cannot contain `:'.
12675     test -f "$ac_f" ||
12676     case $ac_f in
12677     [\\/$]*) false;;
12678     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12679     esac ||
12680     { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12681     echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12682     { (exit 1); exit 1; }; };;
12683     esac
12684     ac_file_inputs="$ac_file_inputs $ac_f"
12685     done
12686    
12687     # Let's still pretend it is `configure' which instantiates (i.e., don't
12688     # use $as_me), people would be surprised to read:
12689     # /* config.h. Generated by config.status. */
12690     configure_input="Generated from "`IFS=:
12691     echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12692     if test x"$ac_file" != x-; then
12693     configure_input="$ac_file. $configure_input"
12694     { echo "$as_me:$LINENO: creating $ac_file" >&5
12695     echo "$as_me: creating $ac_file" >&6;}
12696     fi
12697    
12698     case $ac_tag in
12699     *:-:* | *:-) cat >"$tmp/stdin";;
12700     esac
12701     ;;
12702     esac
12703    
12704     ac_dir=`$as_dirname -- "$ac_file" ||
12705     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12706     X"$ac_file" : 'X\(//\)[^/]' \| \
12707     X"$ac_file" : 'X\(//\)$' \| \
12708     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12709     echo X"$ac_file" |
12710     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12711     s//\1/
12712     q
12713     }
12714     /^X\(\/\/\)[^/].*/{
12715     s//\1/
12716     q
12717     }
12718     /^X\(\/\/\)$/{
12719     s//\1/
12720     q
12721     }
12722     /^X\(\/\).*/{
12723     s//\1/
12724     q
12725     }
12726     s/.*/./; q'`
12727     { as_dir="$ac_dir"
12728     case $as_dir in #(
12729     -*) as_dir=./$as_dir;;
12730     esac
12731     test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12732     as_dirs=
12733     while :; do
12734     case $as_dir in #(
12735     *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12736     *) as_qdir=$as_dir;;
12737     esac
12738     as_dirs="'$as_qdir' $as_dirs"
12739     as_dir=`$as_dirname -- "$as_dir" ||
12740     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12741     X"$as_dir" : 'X\(//\)[^/]' \| \
12742     X"$as_dir" : 'X\(//\)$' \| \
12743     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12744     echo X"$as_dir" |
12745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12746     s//\1/
12747     q
12748     }
12749     /^X\(\/\/\)[^/].*/{
12750     s//\1/
12751     q
12752     }
12753     /^X\(\/\/\)$/{
12754     s//\1/
12755     q
12756     }
12757     /^X\(\/\).*/{
12758     s//\1/
12759     q
12760     }
12761     s/.*/./; q'`
12762     test -d "$as_dir" && break
12763     done
12764     test -z "$as_dirs" || eval "mkdir $as_dirs"
12765     } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12766     echo "$as_me: error: cannot create directory $as_dir" >&2;}
12767     { (exit 1); exit 1; }; }; }
12768     ac_builddir=.
12769    
12770     case "$ac_dir" in
12771     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12772     *)
12773     ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12774     # A ".." for each directory in $ac_dir_suffix.
12775     ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12776     case $ac_top_builddir_sub in
12777     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12778     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12779     esac ;;
12780     esac
12781     ac_abs_top_builddir=$ac_pwd
12782     ac_abs_builddir=$ac_pwd$ac_dir_suffix
12783     # for backward compatibility:
12784     ac_top_builddir=$ac_top_build_prefix
12785    
12786     case $srcdir in
12787     .) # We are building in place.
12788     ac_srcdir=.
12789     ac_top_srcdir=$ac_top_builddir_sub
12790     ac_abs_top_srcdir=$ac_pwd ;;
12791     [\\/]* | ?:[\\/]* ) # Absolute name.
12792     ac_srcdir=$srcdir$ac_dir_suffix;
12793     ac_top_srcdir=$srcdir
12794     ac_abs_top_srcdir=$srcdir ;;
12795     *) # Relative name.
12796     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12797     ac_top_srcdir=$ac_top_build_prefix$srcdir
12798     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12799     esac
12800     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12801    
12802    
12803     case $ac_mode in
12804     :F)
12805     #
12806     # CONFIG_FILE
12807     #
12808    
12809     case $INSTALL in
12810     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12811     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12812     esac
12813     _ACEOF
12814    
12815     cat >>$CONFIG_STATUS <<\_ACEOF
12816     # If the template does not know about datarootdir, expand it.
12817     # FIXME: This hack should be removed a few years after 2.60.
12818     ac_datarootdir_hack=; ac_datarootdir_seen=
12819    
12820     case `sed -n '/datarootdir/ {
12821     p
12822     q
12823     }
12824     /@datadir@/p
12825     /@docdir@/p
12826     /@infodir@/p
12827     /@localedir@/p
12828     /@mandir@/p
12829     ' $ac_file_inputs` in
12830     *datarootdir*) ac_datarootdir_seen=yes;;
12831     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12832     { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12833     echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12834     _ACEOF
12835     cat >>$CONFIG_STATUS <<_ACEOF
12836     ac_datarootdir_hack='
12837     s&@datadir@&$datadir&g
12838     s&@docdir@&$docdir&g
12839     s&@infodir@&$infodir&g
12840     s&@localedir@&$localedir&g
12841     s&@mandir@&$mandir&g
12842     s&\\\${datarootdir}&$datarootdir&g' ;;
12843     esac
12844     _ACEOF
12845    
12846     # Neutralize VPATH when `$srcdir' = `.'.
12847     # Shell code in configure.ac might set extrasub.
12848     # FIXME: do we really want to maintain this feature?
12849     cat >>$CONFIG_STATUS <<_ACEOF
12850     sed "$ac_vpsub
12851     $extrasub
12852     _ACEOF
12853     cat >>$CONFIG_STATUS <<\_ACEOF
12854     :t
12855     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12856     s&@configure_input@&$configure_input&;t t
12857     s&@top_builddir@&$ac_top_builddir_sub&;t t
12858     s&@srcdir@&$ac_srcdir&;t t
12859     s&@abs_srcdir@&$ac_abs_srcdir&;t t
12860     s&@top_srcdir@&$ac_top_srcdir&;t t
12861     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12862     s&@builddir@&$ac_builddir&;t t
12863     s&@abs_builddir@&$ac_abs_builddir&;t t
12864     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12865     s&@INSTALL@&$ac_INSTALL&;t t
12866     $ac_datarootdir_hack
12867     " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12868    
12869     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12870     { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12871     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12872     { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12873     which seems to be undefined. Please make sure it is defined." >&5
12874     echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12875     which seems to be undefined. Please make sure it is defined." >&2;}
12876    
12877     rm -f "$tmp/stdin"
12878     case $ac_file in
12879     -) cat "$tmp/out"; rm -f "$tmp/out";;
12880     *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12881     esac
12882     ;;
12883     :H)
12884     #
12885     # CONFIG_HEADER
12886     #
12887     _ACEOF
12888    
12889     # Transform confdefs.h into a sed script `conftest.defines', that
12890     # substitutes the proper values into config.h.in to produce config.h.
12891     rm -f conftest.defines conftest.tail
12892     # First, append a space to every undef/define line, to ease matching.
12893     echo 's/$/ /' >conftest.defines
12894     # Then, protect against being on the right side of a sed subst, or in
12895     # an unquoted here document, in config.status. If some macros were
12896     # called several times there might be several #defines for the same
12897     # symbol, which is useless. But do not sort them, since the last
12898     # AC_DEFINE must be honored.
12899     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12900     # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12901     # NAME is the cpp macro being defined, VALUE is the value it is being given.
12902     # PARAMS is the parameter list in the macro definition--in most cases, it's
12903     # just an empty string.
12904     ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12905     ac_dB='\\)[ (].*,\\1define\\2'
12906     ac_dC=' '
12907     ac_dD=' ,'
12908    
12909     uniq confdefs.h |
12910     sed -n '
12911     t rset
12912     :rset
12913     s/^[ ]*#[ ]*define[ ][ ]*//
12914     t ok
12915     d
12916     :ok
12917     s/[\\&,]/\\&/g
12918     s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12919     s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12920     ' >>conftest.defines
12921    
12922     # Remove the space that was appended to ease matching.
12923     # Then replace #undef with comments. This is necessary, for
12924     # example, in the case of _POSIX_SOURCE, which is predefined and required
12925     # on some systems where configure will not decide to define it.
12926     # (The regexp can be short, since the line contains either #define or #undef.)
12927     echo 's/ $//
12928     s,^[ #]*u.*,/* & */,' >>conftest.defines
12929    
12930     # Break up conftest.defines:
12931     ac_max_sed_lines=50
12932    
12933     # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12934     # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12935     # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12936     # et cetera.
12937     ac_in='$ac_file_inputs'
12938     ac_out='"$tmp/out1"'
12939     ac_nxt='"$tmp/out2"'
12940    
12941     while :
12942     do
12943     # Write a here document:
12944     cat >>$CONFIG_STATUS <<_ACEOF
12945     # First, check the format of the line:
12946     cat >"\$tmp/defines.sed" <<\\CEOF
12947     /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12948     /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12949     b
12950     :def
12951     _ACEOF
12952     sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12953     echo 'CEOF
12954     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12955     ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12956     sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12957     grep . conftest.tail >/dev/null || break
12958     rm -f conftest.defines
12959     mv conftest.tail conftest.defines
12960     done
12961     rm -f conftest.defines conftest.tail
12962    
12963     echo "ac_result=$ac_in" >>$CONFIG_STATUS
12964     cat >>$CONFIG_STATUS <<\_ACEOF
12965     if test x"$ac_file" != x-; then
12966     echo "/* $configure_input */" >"$tmp/config.h"
12967     cat "$ac_result" >>"$tmp/config.h"
12968     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12969     { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12970     echo "$as_me: $ac_file is unchanged" >&6;}
12971     else
12972     rm -f $ac_file
12973     mv "$tmp/config.h" $ac_file
12974     fi
12975     else
12976     echo "/* $configure_input */"
12977     cat "$ac_result"
12978     fi
12979     rm -f "$tmp/out12"
12980     # Compute $ac_file's index in $config_headers.
12981     _am_stamp_count=1
12982     for _am_header in $config_headers :; do
12983     case $_am_header in
12984     $ac_file | $ac_file:* )
12985     break ;;
12986     * )
12987     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12988     esac
12989     done
12990     echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
12991     $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12992     X$ac_file : 'X\(//\)[^/]' \| \
12993     X$ac_file : 'X\(//\)$' \| \
12994     X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
12995     echo X$ac_file |
12996     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12997     s//\1/
12998     q
12999     }
13000     /^X\(\/\/\)[^/].*/{
13001     s//\1/
13002     q
13003     }
13004     /^X\(\/\/\)$/{
13005     s//\1/
13006     q
13007     }
13008     /^X\(\/\).*/{
13009     s//\1/
13010     q
13011     }
13012     s/.*/./; q'`/stamp-h$_am_stamp_count
13013     ;;
13014    
13015     :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13016     echo "$as_me: executing $ac_file commands" >&6;}
13017     ;;
13018     esac
13019    
13020    
13021     case $ac_file$ac_mode in
13022     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13023     # Strip MF so we end up with the name of the file.
13024     mf=`echo "$mf" | sed -e 's/:.*$//'`
13025     # Check whether this is an Automake generated Makefile or not.
13026     # We used to match only the files named `Makefile.in', but
13027     # some people rename them; so instead we look at the file content.
13028     # Grep'ing the first line is not enough: some people post-process
13029     # each Makefile.in and add a new line on top of each file to say so.
13030     # So let's grep whole file.
13031     if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13032     dirpart=`$as_dirname -- "$mf" ||
13033     $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13034     X"$mf" : 'X\(//\)[^/]' \| \
13035     X"$mf" : 'X\(//\)$' \| \
13036     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13037     echo X"$mf" |
13038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13039     s//\1/
13040     q
13041     }
13042     /^X\(\/\/\)[^/].*/{
13043     s//\1/
13044     q
13045     }
13046     /^X\(\/\/\)$/{
13047     s//\1/
13048     q
13049     }
13050     /^X\(\/\).*/{
13051     s//\1/
13052     q
13053     }
13054     s/.*/./; q'`
13055     else
13056     continue
13057     fi
13058     grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13059     # Extract the definition of DEP_FILES from the Makefile without
13060     # running `make'.
13061     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13062     test -z "$DEPDIR" && continue
13063     # When using ansi2knr, U may be empty or an underscore; expand it
13064     U=`sed -n 's/^U = //p' < "$mf"`
13065     test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
13066     # We invoke sed twice because it is the simplest approach to
13067     # changing $(DEPDIR) to its actual value in the expansion.
13068     for file in `sed -n '
13069     /^DEP_FILES = .*\\\\$/ {
13070     s/^DEP_FILES = //
13071     :loop
13072     s/\\\\$//
13073     p
13074     n
13075     /\\\\$/ b loop
13076     p
13077     }
13078     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
13079     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13080     # Make sure the directory exists.
13081     test -f "$dirpart/$file" && continue
13082     fdir=`$as_dirname -- "$file" ||
13083     $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13084     X"$file" : 'X\(//\)[^/]' \| \
13085     X"$file" : 'X\(//\)$' \| \
13086     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13087     echo X"$file" |
13088     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13089     s//\1/
13090     q
13091     }
13092     /^X\(\/\/\)[^/].*/{
13093     s//\1/
13094     q
13095     }
13096     /^X\(\/\/\)$/{
13097     s//\1/
13098     q
13099     }
13100     /^X\(\/\).*/{
13101     s//\1/
13102     q
13103     }
13104     s/.*/./; q'`
13105     { as_dir=$dirpart/$fdir
13106     case $as_dir in #(
13107     -*) as_dir=./$as_dir;;
13108     esac
13109     test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13110     as_dirs=
13111     while :; do
13112     case $as_dir in #(
13113     *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13114     *) as_qdir=$as_dir;;
13115     esac
13116     as_dirs="'$as_qdir' $as_dirs"
13117     as_dir=`$as_dirname -- "$as_dir" ||
13118     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13119     X"$as_dir" : 'X\(//\)[^/]' \| \
13120     X"$as_dir" : 'X\(//\)$' \| \
13121     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13122     echo X"$as_dir" |
13123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13124     s//\1/
13125     q
13126     }
13127     /^X\(\/\/\)[^/].*/{
13128     s//\1/
13129     q
13130     }
13131     /^X\(\/\/\)$/{
13132     s//\1/
13133     q
13134     }
13135     /^X\(\/\).*/{
13136     s//\1/
13137     q
13138     }
13139     s/.*/./; q'`
13140     test -d "$as_dir" && break
13141     done
13142     test -z "$as_dirs" || eval "mkdir $as_dirs"
13143     } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13144     echo "$as_me: error: cannot create directory $as_dir" >&2;}
13145     { (exit 1); exit 1; }; }; }
13146     # echo "creating $dirpart/$file"
13147     echo '# dummy' > "$dirpart/$file"
13148     done
13149     done
13150     ;;
13151    
13152     esac
13153     done # for ac_tag
13154    
13155    
13156     { (exit 0); exit 0; }
13157     _ACEOF
13158     chmod +x $CONFIG_STATUS
13159     ac_clean_files=$ac_clean_files_save
13160    
13161    
13162     # configure is writing to config.log, and then calls config.status.
13163     # config.status does its own redirection, appending to config.log.
13164     # Unfortunately, on DOS this fails, as config.log is still kept open
13165     # by configure, so config.status won't be able to write to it; its
13166     # output is simply discarded. So we exec the FD to /dev/null,
13167     # effectively closing config.log, so it can be properly (re)opened and
13168     # appended to by config.status. When coming back to configure, we
13169     # need to make the FD available again.
13170     if test "$no_create" != yes; then
13171     ac_cs_success=:
13172     ac_config_status_args=
13173     test "$silent" = yes &&
13174     ac_config_status_args="$ac_config_status_args --quiet"
13175     exec 5>/dev/null
13176     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13177     exec 5>>config.log
13178     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13179     # would make configure fail if this is the last instruction.
13180     $ac_cs_success || { (exit 1); exit 1; }
13181     fi
13182    
13183    
13184     { echo "$as_me:$LINENO: result: " >&5
13185     echo "${ECHO_T}" >&6; }
13186     { echo "$as_me:$LINENO: result: $0 successful." >&5
13187     echo "${ECHO_T}$0 successful." >&6; }
13188     { echo "$as_me:$LINENO: result: " >&5
13189     echo "${ECHO_T}" >&6; }
13190     { echo "$as_me:$LINENO: result: ================================================================================" >&5
13191     echo "${ECHO_T}================================================================================" >&6; }
13192     { echo "$as_me:$LINENO: result: Configuration summary" >&5
13193     echo "${ECHO_T} Configuration summary" >&6; }
13194     { echo "$as_me:$LINENO: result: ================================================================================" >&5
13195     echo "${ECHO_T}================================================================================" >&6; }
13196     { echo "$as_me:$LINENO: result: " >&5
13197     echo "${ECHO_T}" >&6; }
13198     { echo "$as_me:$LINENO: result: cpu emulation method: $CPU_DIR" >&5
13199     echo "${ECHO_T}cpu emulation method: $CPU_DIR" >&6; }
13200     { echo "$as_me:$LINENO: result: compiled for architecture: $ARCH_DIR" >&5
13201     echo "${ECHO_T}compiled for architecture: $ARCH_DIR" >&6; }
13202     { echo "$as_me:$LINENO: result: compiled for OS-API: $OSAPI_DIR" >&5
13203     echo "${ECHO_T}compiled for OS-API: $OSAPI_DIR" >&6; }
13204     { echo "$as_me:$LINENO: result: compiled for UI system: $UI_DIR" >&5
13205     echo "${ECHO_T}compiled for UI system: $UI_DIR" >&6; }
13206     { echo "$as_me:$LINENO: result: enable debug: $enable_debug" >&5
13207     echo "${ECHO_T}enable debug: $enable_debug" >&6; }
13208     { echo "$as_me:$LINENO: result: enable profiling: $enable_profiling" >&5
13209     echo "${ECHO_T}enable profiling: $enable_profiling" >&6; }
13210     { echo "$as_me:$LINENO: result: make release build: $enable_release" >&5
13211     echo "${ECHO_T}make release build: $enable_release" >&6; }
13212     { echo "$as_me:$LINENO: result: omit frame pointer: $enable_fpo" >&5
13213     echo "${ECHO_T}omit frame pointer: $enable_fpo" >&6; }
13214     { echo "$as_me:$LINENO: result: final C compiler flags: $PPC_CFLAGS" >&5
13215     echo "${ECHO_T}final C compiler flags: $PPC_CFLAGS" >&6; }
13216     { echo "$as_me:$LINENO: result: final C++ compiler flags: $PPC_CXXFLAGS" >&5
13217     echo "${ECHO_T}final C++ compiler flags: $PPC_CXXFLAGS" >&6; }
13218     { echo "$as_me:$LINENO: result: final linker flags: $PPC_LDFLAGS" >&5
13219     echo "${ECHO_T}final linker flags: $PPC_LDFLAGS" >&6; }
13220     { echo "$as_me:$LINENO: result: final linker add: $PPC_LDADD" >&5
13221     echo "${ECHO_T}final linker add: $PPC_LDADD" >&6; }
13222     { echo "$as_me:$LINENO: result: " >&5
13223     echo "${ECHO_T}" >&6; }
13224     { echo "$as_me:$LINENO: result: ================================================================================" >&5
13225     echo "${ECHO_T}================================================================================" >&6; }

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26